Skip to main content

prescriptions

Creates, updates, deletes, gets or lists a prescriptions resource.

Overview

Nameprescriptions
TypeResource
Idazure_extras.agrifood_farming.prescriptions

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
create_or_updateinsertparty_id, prescription_id, endpointCreates or Updates a prescription resource under a particular party.
create_or_updatereplaceparty_id, prescription_id, endpointCreates or Updates a prescription resource under a particular party.
deletedeleteparty_id, prescription_id, endpointDeletes a specified prescription resource under a particular party.
get_rawexecparty_id, prescription_id, endpointGets a specified prescription resource under a particular party.
list_rawexecendpointminCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a paginated list of prescription resources across all parties.
list_by_party_idexecparty_id, endpointminCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a paginated list of prescription resources under a particular party.
get_cascade_delete_job_detailsexecjob_id, endpointGet a cascade delete job for specified prescription.
create_cascade_delete_jobexecjob_id, partyId, prescriptionId, endpointCreate a cascade delete job for specified prescription.

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: )
job_idstringJob ID supplied by end user. Required.
partyIdstringID of the associated party. Required.
party_idstringId of the associated party. Required.
prescriptionIdstringID of the prescription to be deleted. Required.
prescription_idstringId of the prescription. 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.

INSERT examples

Creates or Updates a prescription resource under a particular party.

INSERT INTO azure_extras.agrifood_farming.prescriptions (
party_id,
prescription_id,
endpoint
)
SELECT
'{{ party_id }}',
'{{ prescription_id }}',
'{{ endpoint }}'
;

REPLACE examples

Creates or Updates a prescription resource under a particular party.

REPLACE azure_extras.agrifood_farming.prescriptions
SET
-- No updatable properties
WHERE
party_id = '{{ party_id }}' --required
AND prescription_id = '{{ prescription_id }}' --required
AND endpoint = '{{ endpoint }}' --required;

DELETE examples

Deletes a specified prescription resource under a particular party.

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

Lifecycle Methods

Gets a specified prescription resource under a particular party.

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