subscriptions
Creates, updates, deletes, gets or lists a subscriptions
resource.
Overview
Name | subscriptions |
Type | Resource |
Id | azure.subscription.subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. |
authorizationSource | string | The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. |
displayName | string | The subscription display name. |
state | string | The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. |
subscriptionId | string | The subscription ID. |
subscriptionPolicies | object | Subscription policies. |
tags | object | Tags for the subscription |
tenantId | string | The tenant ID. For example, 00000000-0000-0000-0000-000000000000. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | subscriptionId | Gets details about a specified subscription. |
list | SELECT |
| Gets all subscriptions for a tenant. |
accept_ownership | EXEC | subscriptionId | Accept subscription ownership. |
accept_ownership_status | EXEC | subscriptionId | Accept subscription ownership status. |
cancel | EXEC | subscriptionId | The operation to cancel a subscription |
enable | EXEC | subscriptionId | The operation to enable a subscription |
rename | EXEC | subscriptionId | The operation to rename a subscription |
SELECT
examples
Gets all subscriptions for a tenant.
SELECT
id,
authorizationSource,
displayName,
state,
subscriptionId,
subscriptionPolicies,
tags,
tenantId
FROM azure.subscription.subscriptions
;