SubscriptionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:subscriptions> attribute.
Constructor
SubscriptionsOperations(*args, **kwargs)
Methods
| check_zone_peers |
Compares a subscriptions logical zone mapping. |
| get |
Gets details about a specified subscription. |
| list |
Gets all subscriptions for a tenant. |
| list_locations |
Gets all available geo-locations. This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list. |
check_zone_peers
Compares a subscriptions logical zone mapping.
check_zone_peers(subscription_id: str, parameters: _models.CheckZonePeersRequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.CheckZonePeersResult
Parameters
| Name | Description |
|---|---|
|
subscription_id
Required
|
The ID of the target subscription. The value must be an UUID. Required. |
|
parameters
Required
|
The request body. Is one of the following types: CheckZonePeersRequest, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
CheckZonePeersResult. The CheckZonePeersResult is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get
Gets details about a specified subscription.
get(subscription_id: str, **kwargs: Any) -> Subscription
Parameters
| Name | Description |
|---|---|
|
subscription_id
Required
|
The ID of the target subscription. The value must be an UUID. Required. |
Returns
| Type | Description |
|---|---|
|
Subscription. The Subscription is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Gets all subscriptions for a tenant.
list(**kwargs: Any) -> ItemPaged[Subscription]
Returns
| Type | Description |
|---|---|
|
An iterator like instance of Subscription |
Exceptions
| Type | Description |
|---|---|
list_locations
Gets all available geo-locations.
This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
list_locations(subscription_id: str, *, include_extended_locations: bool | None = None, **kwargs: Any) -> ItemPaged[Location]
Parameters
| Name | Description |
|---|---|
|
subscription_id
Required
|
The ID of the target subscription. The value must be an UUID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
include_extended_locations
|
Whether to include extended locations. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of Location |
Exceptions
| Type | Description |
|---|---|