Skip to main content

addresses

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

Overview

Nameaddresses
TypeResource
Idazure_extras.edge_order.addresses

Fields

NameDatatypeDescription
addressNametextfield from the properties object
address_classificationtextfield from the properties object
address_validation_statustextfield from the properties object
contact_detailstextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
shipping_addresstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaddressName, resourceGroupName, subscriptionIdGet information about the specified address.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all the addresses available under the given resource group.
list_by_subscriptionSELECTsubscriptionIdList all the addresses available under the subscription.
createINSERTaddressName, resourceGroupName, subscriptionId, data__propertiesCreate a new address with the specified parameters. Existing address cannot be updated with this API and should
instead be updated with the Update address API.
deleteDELETEaddressName, resourceGroupName, subscriptionIdDelete an address.
updateUPDATEaddressName, resourceGroupName, subscriptionIdUpdate the properties of an existing address.

SELECT examples

List all the addresses available under the subscription.

SELECT
addressName,
address_classification,
address_validation_status,
contact_details,
location,
provisioning_state,
resourceGroupName,
shipping_address,
subscriptionId,
tags
FROM azure_extras.edge_order.vw_addresses
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a addresses resource.

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

DELETE example

Deletes the specified addresses resource.

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