Billing Containers - List By Subscription
List BillingContainer resources by subscription ID
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DeviceRegistry/billingContainers?api-version=2024-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string (uuid) |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Azure operation completed successfully. |
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
List_BillingContainers_Subscription
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DeviceRegistry/billingContainers/my-billingContainer1",
"name": "my-billingContainer1",
"type": "Microsoft.DeviceRegistry/billingcontainers",
"etag": "\"4b036688-0000-0100-0000-6632c7bf0000\"",
"systemData": {
"createdBy": "0e1b4448-67b9-46a1-8158-e3dade4c008e",
"createdByType": "Application",
"createdAt": "2024-05-01T22:52:46.0165055Z",
"lastModifiedBy": "0e1b4448-67b9-46a1-8158-e3dade4c008e",
"lastModifiedByType": "Application",
"lastModifiedAt": "2024-05-01T22:52:46.0165055Z"
},
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DeviceRegistry/billingContainers/my-billingContainer2",
"name": "my-billingContainer2",
"type": "Microsoft.DeviceRegistry/billingcontainers",
"etag": "\"4e03ed61-0000-0100-0000-6632d7200000\"",
"systemData": {
"createdBy": "0e1b4448-67b9-46a1-8158-e3dade4c008e",
"createdByType": "Application",
"createdAt": "2024-05-01T23:58:23.3213061Z",
"lastModifiedBy": "0e1b4448-67b9-46a1-8158-e3dade4c008e",
"lastModifiedByType": "Application",
"lastModifiedAt": "2024-05-01T23:58:23.3213061Z"
},
"properties": {
"provisioningState": "Succeeded"
}
}
]
}
Definitions
Name | Description |
---|---|
Billing |
billingContainer Model as Azure resource whose sole purpose is to keep track of billables resources under a subscription. |
Billing |
The response of a BillingContainer list operation. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Provisioning |
The provisioning status of the resource. |
system |
Metadata pertaining to creation and last modification of the resource. |
BillingContainer
billingContainer Model as Azure resource whose sole purpose is to keep track of billables resources under a subscription.
Name | Type | Description |
---|---|---|
etag |
string |
Resource ETag |
id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties.provisioningState |
Provisioning state of the resource. |
|
systemData |
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" |
BillingContainerListResult
The response of a BillingContainer list operation.
Name | Type | Description |
---|---|---|
nextLink |
string (uri) |
The link to the next page of items |
value |
The BillingContainer items on this page |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ProvisioningState
The provisioning status of the resource.
Value | Description |
---|---|
Succeeded |
Resource has been created. |
Failed |
Resource creation failed. |
Canceled |
Resource creation was canceled. |
Accepted |
Resource has been accepted by the server. |
Deleting |
Resource is deleting. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |