insight_attachments
Creates, updates, deletes, gets or lists an insight_attachments resource.
Overview
| Name | insight_attachments |
| Type | Resource |
| Id | azure_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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
delete | delete | party_id, model_id, resource_type, resource_id, insight_attachment_id, endpoint | Deletes a specified insight resource. | |
get_raw | exec | party_id, model_id, resource_type, resource_id, insight_attachment_id, endpoint | Gets a specified insight resource under a particular party. | |
list_by_party_id_model_id_and_resource | exec | party_id, model_id, resource_type, resource_id, endpoint | minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipToken | Returns a paginated list of insight resources. |
download | exec | party_id, model_id, resource_type, resource_id, insight_attachment_id, endpoint | Downloads 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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme). (default: ) |
insight_attachment_id | string | Id of the insight attachment resource. Required. |
model_id | string | Id of the associated model. It can be either 'BiomassModelId', 'SensorPlacementModelId', 'SoilMoistureModelId' or any solution id. Required. |
party_id | string | Id of the associated party. Required. |
resource_id | string | Id of the associated resource. Required. |
resource_type | string | Resource type associated with the record. Required. |
maxCreatedDateTime | string (date-time) | Maximum creation date of resource (inclusive). Default value is None. |
maxLastModifiedDateTime | string (date-time) | Maximum last modified date of resource (inclusive). Default value is None. |
minCreatedDateTime | string (date-time) | Minimum creation date of resource (inclusive). Default value is None. |
minLastModifiedDateTime | string (date-time) | Minimum last modified date of resource (inclusive). Default value is None. |
skipToken | string | Skip token for getting next set of results. Default value is None. |
DELETE examples
- delete
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
- get_raw
- list_by_party_id_model_id_and_resource
- download
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
;
Returns a paginated list of insight resources.
EXEC azure_extras.agrifood_farming.insight_attachments.list_by_party_id_model_id_and_resource
@party_id='{{ party_id }}' --required,
@model_id='{{ model_id }}' --required,
@resource_type='{{ resource_type }}' --required,
@resource_id='{{ resource_id }}' --required,
@endpoint='{{ endpoint }}' --required,
@minCreatedDateTime='{{ minCreatedDateTime }}',
@maxCreatedDateTime='{{ maxCreatedDateTime }}',
@minLastModifiedDateTime='{{ minLastModifiedDateTime }}',
@maxLastModifiedDateTime='{{ maxLastModifiedDateTime }}',
@skipToken='{{ skipToken }}'
;
Downloads and returns insight-attachment as response for the given input filePath.
EXEC azure_extras.agrifood_farming.insight_attachments.download
@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
;