Skip to main content

racks

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

Overview

Nameracks
TypeResource
Idazure_extras.network_cloud.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.
availabilityZonestringThe value that will be used for machines in this rack to represent the availability zones that can be referenced by Hybrid AKS Clusters for node arrangement. Required.
clusterIdstringThe resource ID of the cluster the rack is created for. This value is set when the rack is created by the cluster.
detailedStatusstringThe more detailed status of the rack. Known values are: "Error", "Available", and "Provisioning". (Error, Available, Provisioning)
detailedStatusMessagestringThe descriptive message about the current detailed status.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
extendedLocationobjectThe extended location of the resource. This property is required when creating the resource. Required.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioning state of the rack resource. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", and "Accepted". (Succeeded, Failed, Canceled, Provisioning, Accepted)
rackLocationstringThe free-form description of the rack location. (e.g. "DTN Datacenter, Floor 3, Isle 9, Rack 2B"). Required.
rackSerialNumberstringThe unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired. Required.
rackSkuIdstringThe SKU for the rack. Required.
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, rack_name, subscription_idGet properties of the provided rack.
list_by_resource_groupselectresource_group_name, subscription_id$top, $skipTokenGet a list of racks in the provided resource group.
list_by_subscriptionselectsubscription_id$top, $skipTokenGet a list of racks in the provided subscription.
create_or_updateinsertresource_group_name, rack_name, subscription_id, location, properties, extendedLocationCreate a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
updateupdateresource_group_name, rack_name, subscription_idPatch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently.
create_or_updatereplaceresource_group_name, rack_name, subscription_id, location, properties, extendedLocationCreate a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
deletedeleteresource_group_name, rack_name, subscription_idDelete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

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
rack_namestringThe name of the rack. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipTokenstringThe opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. Default value is None.
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Get properties of the provided rack.

SELECT
id,
name,
availabilityZone,
clusterId,
detailedStatus,
detailedStatusMessage,
etag,
extendedLocation,
location,
provisioningState,
rackLocation,
rackSerialNumber,
rackSkuId,
systemData,
tags,
type
FROM azure_extras.network_cloud.racks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND rack_name = '{{ rack_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

INSERT INTO azure_extras.network_cloud.racks (
tags,
location,
properties,
extendedLocation,
resource_group_name,
rack_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ extendedLocation }}' /* required */,
'{{ resource_group_name }}',
'{{ rack_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Patch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently.

UPDATE azure_extras.network_cloud.racks
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND rack_name = '{{ rack_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create a new rack or update properties of the existing one. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

REPLACE azure_extras.network_cloud.racks
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND rack_name = '{{ rack_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

DELETE FROM azure_extras.network_cloud.racks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND rack_name = '{{ rack_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;