Skip to main content

network_racks

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

Overview

Namenetwork_racks
TypeResource
Idazure.managed_network_fabric.network_racks

Fields

NameDatatypeDescription
annotationtextfield from the properties object
locationtextThe geo-location where the resource lives
networkRackNametextfield from the properties object
network_devicestextfield from the properties object
network_fabric_idtextfield from the properties object
network_rack_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkRackName, resourceGroupName, subscriptionIdGet Network Rack resource details.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all Network Rack resources in the given resource group.
list_by_subscriptionSELECTsubscriptionIdList all Network Rack resources in the given subscription
createINSERTnetworkRackName, resourceGroupName, subscriptionId, data__location, data__propertiesCreate Network Rack resource.
deleteDELETEnetworkRackName, resourceGroupName, subscriptionIdDelete Network Rack resource.
updateUPDATEnetworkRackName, resourceGroupName, subscriptionIdUpdate certain properties of the Network Rack resource.

SELECT examples

List all Network Rack resources in the given subscription

SELECT
annotation,
location,
networkRackName,
network_devices,
network_fabric_id,
network_rack_type,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.managed_network_fabric.vw_network_racks
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.managed_network_fabric.network_racks (
networkRackName,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
tags,
location,
properties
)
SELECT
'{{ networkRackName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a network_racks resource.

/*+ update */
UPDATE azure.managed_network_fabric.network_racks
SET

WHERE
networkRackName = '{{ networkRackName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified network_racks resource.

/*+ delete */
DELETE FROM azure.managed_network_fabric.network_racks
WHERE networkRackName = '{{ networkRackName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';