Skip to main content

address

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

Overview

Nameaddress
TypeResource
Idazure_extras.edgeorder.address

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
namestringThe name of the resource.
addressValidationStatusstringStatus of address validation. Known values are: "Valid", "Invalid", and "Ambiguous".
contactDetailsobjectContact details for the address. Required.
locationstringThe geo-location where the resource lives. Required.
shippingAddressobjectShipping details for the address.
systemDataobjectRepresents resource creation and update time.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_address_by_nameselectaddress_name, resource_group_name, subscription_idGets information about the specified address.
create_addressinsertaddress_name, resource_group_name, subscription_id, location, propertiesCreates a new address with the specified parameters. Existing address can be updated with this API.
update_addressupdateaddress_name, resource_group_name, subscription_idIf-MatchUpdates the properties of an existing address.
delete_address_by_namedeleteaddress_name, resource_group_name, subscription_idDeletes 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
address_namestringThe 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. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
If-MatchstringDefines the If-Match condition. The patch will be performed only if the ETag of the job on the server matches this value. Default value is None.

SELECT examples

Gets information about the specified address.

SELECT
id,
name,
addressValidationStatus,
contactDetails,
location,
shippingAddress,
systemData,
tags,
type
FROM azure_extras.edgeorder.address
WHERE address_name = '{{ address_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new address with the specified parameters. Existing address can be updated with this API.

INSERT INTO azure_extras.edgeorder.address (
tags,
location,
properties,
address_name,
resource_group_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ address_name }}',
'{{ resource_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the properties of an existing address.

UPDATE azure_extras.edgeorder.address
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
address_name = '{{ address_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes an address.

DELETE FROM azure_extras.edgeorder.address
WHERE address_name = '{{ address_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;