Skip to main content

insight_attachments

Creates, updates, deletes, gets or lists an insight_attachments resource.

Overview

Nameinsight_attachments
TypeResource
Idazure_extras.agrifood_farming.insight_attachments

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
deletedeleteparty_id, model_id, resource_type, resource_id, insight_attachment_id, endpointDeletes a specified insight resource.
get_rawexecparty_id, model_id, resource_type, resource_id, insight_attachment_id, endpointGets a specified insight resource under a particular party.
list_by_party_id_model_id_and_resourceexecparty_id, model_id, resource_type, resource_id, endpointminCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a paginated list of insight resources.
downloadexecparty_id, model_id, resource_type, resource_id, insight_attachment_id, endpointDownloads and returns insight-attachment as response for the given input filePath.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme). (default: )
insight_attachment_idstringId of the insight attachment resource. Required.
model_idstringId of the associated model. It can be either 'BiomassModelId', 'SensorPlacementModelId', 'SoilMoistureModelId' or any solution id. Required.
party_idstringId of the associated party. Required.
resource_idstringId of the associated resource. Required.
resource_typestringResource type associated with the record. Required.
maxCreatedDateTimestring (date-time)Maximum creation date of resource (inclusive). Default value is None.
maxLastModifiedDateTimestring (date-time)Maximum last modified date of resource (inclusive). Default value is None.
minCreatedDateTimestring (date-time)Minimum creation date of resource (inclusive). Default value is None.
minLastModifiedDateTimestring (date-time)Minimum last modified date of resource (inclusive). Default value is None.
skipTokenstringSkip token for getting next set of results. Default value is None.

DELETE examples

Deletes a specified insight resource.

DELETE FROM azure_extras.agrifood_farming.insight_attachments
WHERE party_id = '{{ party_id }}' --required
AND model_id = '{{ model_id }}' --required
AND resource_type = '{{ resource_type }}' --required
AND resource_id = '{{ resource_id }}' --required
AND insight_attachment_id = '{{ insight_attachment_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Gets a specified insight resource under a particular party.

EXEC azure_extras.agrifood_farming.insight_attachments.get_raw 
@party_id='{{ party_id }}' --required,
@model_id='{{ model_id }}' --required,
@resource_type='{{ resource_type }}' --required,
@resource_id='{{ resource_id }}' --required,
@insight_attachment_id='{{ insight_attachment_id }}' --required,
@endpoint='{{ endpoint }}' --required
;