Skip to main content

trunked_networks

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

Overview

Nametrunked_networks
TypeResource
Idazure.nexus.trunked_networks

Fields

NameDatatypeDescription
associated_resource_idstextfield from the properties object
cluster_idtextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
extended_locationtextfield from the properties object
hybrid_aks_clusters_associated_idstextfield from the properties object
hybrid_aks_plugin_typetextfield from the properties object
interface_nametextfield from the properties object
isolation_domain_idstextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
trunkedNetworkNametextfield from the properties object
virtual_machines_associated_idstextfield from the properties object
vlanstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, trunkedNetworkNameGet properties of the provided trunked network.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of trunked networks in the provided resource group.
list_by_subscriptionSELECTsubscriptionIdGet a list of trunked networks in the provided subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, trunkedNetworkName, data__extendedLocation, data__propertiesCreate a new trunked network or update the properties of the existing trunked network.
deleteDELETEresourceGroupName, subscriptionId, trunkedNetworkNameDelete the provided trunked network.
updateUPDATEresourceGroupName, subscriptionId, trunkedNetworkNameUpdate tags associated with the provided trunked network.

SELECT examples

Get a list of trunked networks in the provided subscription.

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 }}';

INSERT example

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

/*+ 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 }}'
;

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 }}';