billing_containers
Creates, updates, deletes, gets or lists a billing_containers resource.
Overview
| Name | billing_containers |
| Type | Resource |
| Id | azure.device_registry.billing_containers |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_subscription
| 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. |
etag | string | Resource ETag. |
provisioningState | string | Provisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Deleting) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | 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. |
etag | string | Resource ETag. |
provisioningState | string | Provisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", and "Deleting". (Succeeded, Failed, Canceled, Accepted, Deleting) |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_container_name, subscription_id | Get a BillingContainer. | |
list_by_subscription | select | subscription_id | List BillingContainer resources by subscription ID. |
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.
| Name | Datatype | Description |
|---|---|---|
billing_container_name | string | Name of the billing container. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_subscription
Get a BillingContainer.
SELECT
id,
name,
etag,
provisioningState,
systemData,
type
FROM azure.device_registry.billing_containers
WHERE billing_container_name = '{{ billing_container_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List BillingContainer resources by subscription ID.
SELECT
id,
name,
etag,
provisioningState,
systemData,
type
FROM azure.device_registry.billing_containers
WHERE subscription_id = '{{ subscription_id }}' -- required
;