Skip to main content

azure_bare_metal_storage_instances

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

Overview

Nameazure_bare_metal_storage_instances
TypeResource
Idazure.bare_metal_infrastructure.azure_bare_metal_storage_instances

Fields

NameDatatypeDescription
azureBareMetalStorageInstanceNametextfield from the properties object
azure_bare_metal_storage_instance_unique_identifiertextfield from the properties object
identitytextIdentity for Azure Bare Metal Storage Instance.
locationtextThe geo-location where the resource lives
resourceGroupNametextfield from the properties object
storage_propertiestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTazureBareMetalStorageInstanceName, resourceGroupName, subscriptionIdGets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.
list_by_subscriptionSELECTsubscriptionIdGets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.
createINSERTazureBareMetalStorageInstanceName, resourceGroupName, subscriptionIdCreates an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name.
deleteDELETEazureBareMetalStorageInstanceName, resourceGroupName, subscriptionIdDeletes an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name.
updateUPDATEazureBareMetalStorageInstanceName, resourceGroupName, subscriptionIdPatches the Tags field of a Azure BareMetalStorage instance for the specified subscription, resource group, and instance name.

SELECT examples

Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.

SELECT
azureBareMetalStorageInstanceName,
azure_bare_metal_storage_instance_unique_identifier,
identity,
location,
resourceGroupName,
storage_properties,
subscriptionId,
tags
FROM azure.bare_metal_infrastructure.vw_azure_bare_metal_storage_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.bare_metal_infrastructure.azure_bare_metal_storage_instances (
azureBareMetalStorageInstanceName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ azureBareMetalStorageInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a azure_bare_metal_storage_instances resource.

/*+ update */
UPDATE azure.bare_metal_infrastructure.azure_bare_metal_storage_instances
SET
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
azureBareMetalStorageInstanceName = '{{ azureBareMetalStorageInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified azure_bare_metal_storage_instances resource.

/*+ delete */
DELETE FROM azure.bare_metal_infrastructure.azure_bare_metal_storage_instances
WHERE azureBareMetalStorageInstanceName = '{{ azureBareMetalStorageInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';