network_racks
Creates, updates, deletes, gets or lists a network_racks
resource.
Overview
Name | network_racks |
Type | Resource |
Id | azure.managed_network_fabric.network_racks |
Fields
- vw_network_racks
- network_racks
Name | Datatype | Description |
---|---|---|
annotation | text | field from the properties object |
location | text | The geo-location where the resource lives |
networkRackName | text | field from the properties object |
network_devices | text | field from the properties object |
network_fabric_id | text | field from the properties object |
network_rack_type | text | field from the properties object |
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. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Network Rack Properties defines the properties of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | networkRackName, resourceGroupName, subscriptionId | Get Network Rack resource details. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all Network Rack resources in the given resource group. |
list_by_subscription | SELECT | subscriptionId | List all Network Rack resources in the given subscription |
create | INSERT | networkRackName, resourceGroupName, subscriptionId, data__location, data__properties | Create Network Rack resource. |
delete | DELETE | networkRackName, resourceGroupName, subscriptionId | Delete Network Rack resource. |
update | UPDATE | networkRackName, resourceGroupName, subscriptionId | Update certain properties of the Network Rack resource. |
SELECT
examples
List all Network Rack resources in the given subscription
- vw_network_racks
- network_racks
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 }}';
SELECT
location,
properties,
tags
FROM azure.managed_network_fabric.network_racks
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_racks
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: annotation
value: string
- name: networkRackType
value: string
- name: networkFabricId
value: []
- name: networkDevices
value:
- []
- name: provisioningState
value: []
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 }}';