Skip to main content

racks

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

Overview

Nameracks
TypeResource
Idazure.nexus.racks

Fields

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster associated with the resource. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: RackProperties represents the properties of the rack.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, rackNameGet properties of the provided rack.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet a list of racks in the provided resource group.
list_by_subscriptionselectsubscriptionIdGet a list of racks in the provided subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, rackName, data__extendedLocation, data__propertiesCreate 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.
updateupdatesubscriptionId, resourceGroupName, rackNamePatch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently.
deletedeletesubscriptionId, resourceGroupName, rackNameDelete 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
rackNamestringThe name of the rack.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get properties of the provided rack.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.racks
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND rackName = '{{ rackName }}' -- 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.nexus.racks (
data__extendedLocation,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
rackName
)
SELECT
'{{ extendedLocation }}' /* required */,
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ rackName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

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.nexus.racks
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND rackName = '{{ rackName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

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.nexus.racks
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND rackName = '{{ rackName }}' --required
;