azure_bare_metal_storage_instances
Creates, updates, deletes, gets or lists a azure_bare_metal_storage_instances
resource.
Overview
Name | azure_bare_metal_storage_instances |
Type | Resource |
Id | azure.bare_metal_infrastructure.azure_bare_metal_storage_instances |
Fields
- vw_azure_bare_metal_storage_instances
- azure_bare_metal_storage_instances
Name | Datatype | Description |
---|---|---|
azureBareMetalStorageInstanceName | text | field from the properties object |
azure_bare_metal_storage_instance_unique_identifier | text | field from the properties object |
identity | text | Identity for Azure Bare Metal Storage Instance. |
location | text | The geo-location where the resource lives |
resourceGroupName | text | field from the properties object |
storage_properties | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | Identity for Azure Bare Metal Storage Instance. |
location | string | The geo-location where the resource lives |
properties | object | Describes the properties of an AzureBareMetalStorageInstance. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | azureBareMetalStorageInstanceName, resourceGroupName, subscriptionId | Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets 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_subscription | SELECT | subscriptionId | Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance. |
create | INSERT | azureBareMetalStorageInstanceName, resourceGroupName, subscriptionId | Creates an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name. |
delete | DELETE | azureBareMetalStorageInstanceName, resourceGroupName, subscriptionId | Deletes an Azure Bare Metal Storage Instance for the specified subscription, resource group, and instance name. |
update | UPDATE | azureBareMetalStorageInstanceName, resourceGroupName, subscriptionId | Patches 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.
- vw_azure_bare_metal_storage_instances
- azure_bare_metal_storage_instances
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 }}';
SELECT
identity,
location,
properties,
tags
FROM azure.bare_metal_infrastructure.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: azureBareMetalStorageInstanceUniqueIdentifier
value: string
- name: storageProperties
value:
- name: provisioningState
value: string
- name: offeringType
value: string
- name: storageType
value: string
- name: generation
value: string
- name: hardwareType
value: string
- name: workloadType
value: string
- name: storageBillingProperties
value:
- name: billingMode
value: string
- name: azureBareMetalStorageInstanceSize
value: string
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: string
- name: tags
value: object
- name: location
value: string
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 }}';