blob_inventory_policies
Creates, updates, deletes, gets or lists a blob_inventory_policies
resource.
Overview
Name | blob_inventory_policies |
Type | Resource |
Id | azure.storage.blob_inventory_policies |
Fields
- vw_blob_inventory_policies
- blob_inventory_policies
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
accountName | text | field from the properties object |
blobInventoryPolicyName | text | field from the properties object |
last_modified_time | text | field from the properties object |
policy | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | The storage account blob inventory policy properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, blobInventoryPolicyName, resourceGroupName, subscriptionId | Gets the blob inventory policy associated with the specified storage account. |
list | SELECT | accountName, resourceGroupName, subscriptionId | Gets the blob inventory policy associated with the specified storage account. |
create_or_update | INSERT | accountName, blobInventoryPolicyName, resourceGroupName, subscriptionId | Sets the blob inventory policy to the specified storage account. |
delete | DELETE | accountName, blobInventoryPolicyName, resourceGroupName, subscriptionId | Deletes the blob inventory policy associated with the specified storage account. |
SELECT
examples
Gets the blob inventory policy associated with the specified storage account.
- vw_blob_inventory_policies
- blob_inventory_policies
SELECT
id,
name,
accountName,
blobInventoryPolicyName,
last_modified_time,
policy,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.storage.vw_blob_inventory_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.storage.blob_inventory_policies
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new blob_inventory_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.storage.blob_inventory_policies (
accountName,
blobInventoryPolicyName,
resourceGroupName,
subscriptionId,
properties,
systemData
)
SELECT
'{{ accountName }}',
'{{ blobInventoryPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ systemData }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: lastModifiedTime
value: string
- name: policy
value:
- name: enabled
value: boolean
- name: destination
value: string
- name: type
value: string
- name: rules
value:
- - name: enabled
value: boolean
- name: name
value: string
- name: destination
value: string
- name: definition
value:
- name: filters
value:
- name: prefixMatch
value:
- string
- name: excludePrefix
value:
- string
- name: blobTypes
value:
- string
- name: includeBlobVersions
value: boolean
- name: includeSnapshots
value: boolean
- name: includeDeleted
value: boolean
- name: creationTime
value:
- name: lastNDays
value: integer
- name: format
value: string
- name: schedule
value: string
- name: objectType
value: string
- name: schemaFields
value:
- string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
DELETE
example
Deletes the specified blob_inventory_policies
resource.
/*+ delete */
DELETE FROM azure.storage.blob_inventory_policies
WHERE accountName = '{{ accountName }}'
AND blobInventoryPolicyName = '{{ blobInventoryPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';