SubscriptionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SubscriptionClient's

<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.

async check_zone_peers(subscription_id: str, parameters: _models.CheckZonePeersRequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.CheckZonePeersResult

Parameters

Name Description
subscription_id
Required
str

The ID of the target subscription. The value must be an UUID. Required.

parameters
Required
CheckZonePeersRequest or <xref:JSON> or IO[bytes]

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.

async get(subscription_id: str, **kwargs: Any) -> Subscription

Parameters

Name Description
subscription_id
Required
str

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) -> AsyncItemPaged[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) -> AsyncItemPaged[Location]

Parameters

Name Description
subscription_id
Required
str

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