trunked_networks
Creates, updates, deletes, gets or lists a trunked_networks
resource.
Overview
Name | trunked_networks |
Type | Resource |
Id | azure.nexus.trunked_networks |
Fields
- vw_trunked_networks
- trunked_networks
Name | Datatype | Description |
---|---|---|
associated_resource_ids | text | field from the properties object |
cluster_id | text | field from the properties object |
detailed_status | text | field from the properties object |
detailed_status_message | text | field from the properties object |
extended_location | text | field from the properties object |
hybrid_aks_clusters_associated_ids | text | field from the properties object |
hybrid_aks_plugin_type | text | field from the properties object |
interface_name | text | field from the properties object |
isolation_domain_ids | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
trunkedNetworkName | text | field from the properties object |
virtual_machines_associated_ids | text | field from the properties object |
vlans | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | |
location | string | The geo-location where the resource lives |
properties | object | |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, trunkedNetworkName | Get properties of the provided trunked network. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get a list of trunked networks in the provided resource group. |
list_by_subscription | SELECT | subscriptionId | Get a list of trunked networks in the provided subscription. |
create_or_update | INSERT | resourceGroupName, subscriptionId, trunkedNetworkName, data__extendedLocation, data__properties | Create a new trunked network or update the properties of the existing trunked network. |
delete | DELETE | resourceGroupName, subscriptionId, trunkedNetworkName | Delete the provided trunked network. |
update | UPDATE | resourceGroupName, subscriptionId, trunkedNetworkName | Update tags associated with the provided trunked network. |
SELECT
examples
Get a list of trunked networks in the provided subscription.
- vw_trunked_networks
- trunked_networks
SELECT
associated_resource_ids,
cluster_id,
detailed_status,
detailed_status_message,
extended_location,
hybrid_aks_clusters_associated_ids,
hybrid_aks_plugin_type,
interface_name,
isolation_domain_ids,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
trunkedNetworkName,
virtual_machines_associated_ids,
vlans
FROM azure.nexus.vw_trunked_networks
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.trunked_networks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new trunked_networks
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.nexus.trunked_networks (
resourceGroupName,
subscriptionId,
trunkedNetworkName,
data__extendedLocation,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ trunkedNetworkName }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: associatedResourceIds
value:
- string
- name: clusterId
value: string
- name: detailedStatus
value: string
- name: detailedStatusMessage
value: string
- name: hybridAksClustersAssociatedIds
value:
- string
- name: hybridAksPluginType
value: string
- name: interfaceName
value: string
- name: isolationDomainIds
value:
- string
- name: provisioningState
value: string
- name: virtualMachinesAssociatedIds
value:
- string
- name: vlans
value:
- integer
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a trunked_networks
resource.
/*+ update */
UPDATE azure.nexus.trunked_networks
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trunkedNetworkName = '{{ trunkedNetworkName }}';
DELETE
example
Deletes the specified trunked_networks
resource.
/*+ delete */
DELETE FROM azure.nexus.trunked_networks
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trunkedNetworkName = '{{ trunkedNetworkName }}';