Skip to main content

racks

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

Overview

Nameracks
TypeResource
Idazure.nexus.racks

Fields

NameDatatypeDescription
availability_zonetextfield from the properties object
cluster_idtextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
rackNametextfield from the properties object
rack_locationtextfield from the properties object
rack_serial_numbertextfield from the properties object
rack_sku_idtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTrackName, resourceGroupName, subscriptionIdGet properties of the provided rack.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of racks in the provided resource group.
list_by_subscriptionSELECTsubscriptionIdGet a list of racks in the provided subscription.
create_or_updateINSERTrackName, resourceGroupName, subscriptionId, 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.
deleteDELETErackName, resourceGroupName, subscriptionIdDelete the provided rack.
All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
updateUPDATErackName, resourceGroupName, subscriptionIdPatch properties of the provided rack, or update the tags associated with the rack. Properties and tag updates can be done independently.

SELECT examples

Get a list of racks in the provided subscription.

SELECT
availability_zone,
cluster_id,
detailed_status,
detailed_status_message,
extended_location,
location,
provisioning_state,
rackName,
rack_location,
rack_serial_number,
rack_sku_id,
resourceGroupName,
subscriptionId,
tags
FROM azure.nexus.vw_racks
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.nexus.racks (
rackName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ rackName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a racks resource.

/*+ update */
UPDATE azure.nexus.racks
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
rackName = '{{ rackName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified racks resource.

/*+ delete */
DELETE FROM azure.nexus.racks
WHERE rackName = '{{ rackName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';