Skip to main content

order_items

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

Overview

Nameorder_items
TypeResource
Idazure_extras.edge_order.order_items

Fields

NameDatatypeDescription
address_detailstextfield from the properties object
identitytextMsi identity details of the resource
locationtextThe geo-location where the resource lives
orderItemNametextfield from the properties object
order_idtextfield from the properties object
order_item_detailstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
start_timetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTorderItemName, resourceGroupName, subscriptionIdGet an order item.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList order items at resource group level.
list_by_subscriptionSELECTsubscriptionIdList order items at subscription level.
createINSERTorderItemName, resourceGroupName, subscriptionId, data__propertiesCreate an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item
API.
deleteDELETEorderItemName, resourceGroupName, subscriptionIdDelete an order item.
updateUPDATEorderItemName, resourceGroupName, subscriptionIdUpdate the properties of an existing order item.
cancelEXECorderItemName, resourceGroupName, subscriptionId, data__reasonCancel order item.
returnEXECorderItemName, resourceGroupName, subscriptionId, data__returnReasonReturn order item.

SELECT examples

List order items at subscription level.

SELECT
address_details,
identity,
location,
orderItemName,
order_id,
order_item_details,
provisioning_state,
resourceGroupName,
start_time,
subscriptionId,
tags
FROM azure_extras.edge_order.vw_order_items
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new order_items resource.

/*+ create */
INSERT INTO azure_extras.edge_order.order_items (
orderItemName,
resourceGroupName,
subscriptionId,
data__properties,
tags,
location,
properties,
identity
)
SELECT
'{{ orderItemName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a order_items resource.

/*+ update */
UPDATE azure_extras.edge_order.order_items
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
orderItemName = '{{ orderItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified order_items resource.

/*+ delete */
DELETE FROM azure_extras.edge_order.order_items
WHERE orderItemName = '{{ orderItemName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';