Skip to main content

addresses

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

Overview

Nameaddresses
TypeResource
Idazure_extras.edge_order.addresses

Fields

The following fields are returned by SELECT queries:

Address object.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectProperties of an address.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, addressNameGet information about the specified address.
list_by_resource_groupselectsubscriptionId, resourceGroupName$filter, $skipToken, $topList all the addresses available under the given resource group.
list_by_subscriptionselectsubscriptionId$filter, $skipToken, $topList all the addresses available under the subscription.
createinsertsubscriptionId, resourceGroupName, addressName, 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.
updateupdatesubscriptionId, resourceGroupName, addressNameIf-MatchUpdate the properties of an existing address.
deletedeletesubscriptionId, resourceGroupName, addressNameDelete an address.

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
addressNamestringThe name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$filterstring$filter is supported to filter based on shipping address properties. Filter supports only equals operation.
$skipTokenstring$skipToken is supported on Get list of addresses, which provides the next page in the list of addresses.
$topinteger (int32)$top is supported on fetching list of resources. $top=10 means that the first 10 items in the list will be returned to the API caller.
If-MatchstringDefines the If-Match condition. The patch will be performed only if the ETag of the job on the server matches this value.

SELECT examples

Get information about the specified address.

SELECT
location,
properties,
tags
FROM azure_extras.edge_order.addresses
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND addressName = '{{ addressName }}' -- required
;

INSERT examples

Create 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.

INSERT INTO azure_extras.edge_order.addresses (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
addressName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ addressName }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Update the properties of an existing address.

UPDATE azure_extras.edge_order.addresses
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND addressName = '{{ addressName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
location,
properties,
tags;

DELETE examples

Delete an address.

DELETE FROM azure_extras.edge_order.addresses
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND addressName = '{{ addressName }}' --required
;