Skip to main content

attachments

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

Overview

Nameattachments
TypeResource
Idazure_extras.agrifood_farming.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, attachment_id, endpointDeletes a specified attachment resource under a particular party.
get_rawexecparty_id, attachment_id, endpointGets a specified attachment resource under a particular party.
list_by_party_idexecparty_id, endpointminCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a paginated list of attachment resources under a particular party.
downloadexecparty_id, attachment_id, endpointDownloads and returns 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
attachment_idstringId of attachment to be downloaded. Required.
endpointstringThe service endpoint host (no scheme). (default: )
party_idstringId of the associated party. 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 attachment resource under a particular party.

DELETE FROM azure_extras.agrifood_farming.attachments
WHERE party_id = '{{ party_id }}' --required
AND attachment_id = '{{ attachment_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Gets a specified attachment resource under a particular party.

EXEC azure_extras.agrifood_farming.attachments.get_raw 
@party_id='{{ party_id }}' --required,
@attachment_id='{{ attachment_id }}' --required,
@endpoint='{{ endpoint }}' --required
;