Skip to main content

network_racks

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

Overview

Namenetwork_racks
TypeResource
Idazure_extras.managed_network_fabric.network_racks

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.
annotationstringSwitch configuration description.
configurationStatestringConfiguration state of the resource. Known values are: "Succeeded", "Failed", "Rejected", "Accepted", "Provisioned", "ErrorProvisioning", "Deprovisioning", "Deprovisioned", "ErrorDeprovisioning", "DeferredControl", "Provisioning", "PendingCommit", and "PendingAdministrativeUpdate". (Succeeded, Failed, Rejected, Accepted, Provisioned, ErrorProvisioning, Deprovisioning, Deprovisioned, ErrorDeprovisioning, DeferredControl, Provisioning, PendingCommit, PendingAdministrativeUpdate)
lastOperationobjectDetails of the last operation performed on the resource.
locationstringThe geo-location where the resource lives. Required.
networkDevicesarrayList of network device ARM resource IDs.
networkFabricIdstringARM resource ID of the Network Fabric. Required.
networkRackTypestringNetwork Rack SKU name. Known values are: "Aggregate", "Compute", and "Combined". (Aggregate, Compute, Combined)
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Succeeded", "Updating", "Deleting", "Failed", and "Canceled". (Accepted, Succeeded, Updating, Deleting, Failed, Canceled)
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, network_rack_name, subscription_idGet Network Rack resource details.
list_by_resource_groupselectresource_group_name, subscription_idList all Network Rack resources in the given resource group.
list_by_subscriptionselectsubscription_idList all Network Rack resources in the given subscription.
createinsertresource_group_name, network_rack_name, subscription_id, location, propertiesCreate Network Rack resource.
updateupdateresource_group_name, network_rack_name, subscription_idUpdate certain properties of the Network Rack resource.
deletedeleteresource_group_name, network_rack_name, subscription_idDelete Network Rack resource.

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
network_rack_namestringName of the Network Rack. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get Network Rack resource details.

SELECT
id,
name,
annotation,
configurationState,
lastOperation,
location,
networkDevices,
networkFabricId,
networkRackType,
provisioningState,
systemData,
tags,
type
FROM azure_extras.managed_network_fabric.network_racks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_rack_name = '{{ network_rack_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create Network Rack resource.

INSERT INTO azure_extras.managed_network_fabric.network_racks (
tags,
location,
properties,
resource_group_name,
network_rack_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ network_rack_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update certain properties of the Network Rack resource.

UPDATE azure_extras.managed_network_fabric.network_racks
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_rack_name = '{{ network_rack_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete Network Rack resource.

DELETE FROM azure_extras.managed_network_fabric.network_racks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_rack_name = '{{ network_rack_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;