Skip to main content

associations_interface

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

Overview

Nameassociations_interface
TypeResource
Idazure.service_networking.associations_interface

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}.
namestringThe name of the resource.
associationTypestringAssociation Type. Required. "subnets" (subnets)
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringProvisioning State of Traffic Controller Association Resource. Known values are: "Provisioning", "Updating", "Deleting", "Accepted", "Succeeded", "Failed", and "Canceled". (Provisioning, Updating, Deleting, Accepted, Succeeded, Failed, Canceled)
subnetobjectAssociation Subnet.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectresource_group_name, traffic_controller_name, association_name, subscription_idGet a Association.
list_by_traffic_controllerselectresource_group_name, traffic_controller_name, subscription_idList Association resources by TrafficController.
create_or_updateinsertresource_group_name, traffic_controller_name, association_name, subscription_id, locationCreate a Association.
updateupdateresource_group_name, traffic_controller_name, association_name, subscription_idUpdate a Association.
create_or_updatereplaceresource_group_name, traffic_controller_name, association_name, subscription_id, locationCreate a Association.
deletedeleteresource_group_name, traffic_controller_name, association_name, subscription_idDelete a Association.

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
association_namestringName of Association. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
traffic_controller_namestringtraffic controller name for path. Required.

SELECT examples

Get a Association.

SELECT
id,
name,
associationType,
location,
provisioningState,
subnet,
systemData,
tags,
type
FROM azure.service_networking.associations_interface
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND traffic_controller_name = '{{ traffic_controller_name }}' -- required
AND association_name = '{{ association_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Association.

INSERT INTO azure.service_networking.associations_interface (
tags,
location,
properties,
resource_group_name,
traffic_controller_name,
association_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ traffic_controller_name }}',
'{{ association_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a Association.

UPDATE azure.service_networking.associations_interface
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND traffic_controller_name = '{{ traffic_controller_name }}' --required
AND association_name = '{{ association_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a Association.

REPLACE azure.service_networking.associations_interface
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND traffic_controller_name = '{{ traffic_controller_name }}' --required
AND association_name = '{{ association_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Association.

DELETE FROM azure.service_networking.associations_interface
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND traffic_controller_name = '{{ traffic_controller_name }}' --required
AND association_name = '{{ association_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;