SubscriptionsOperations Class

SubscriptionsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
SubscriptionsOperations

Constructor

SubscriptionsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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: azure.mgmt.resource.subscriptions.v2016_06_01.models._models_py3.CheckZonePeersRequest, **kwargs: Any) -> azure.mgmt.resource.subscriptions.v2016_06_01.models._models_py3.CheckZonePeersResult

Parameters

subscription_id
str
Required

The ID of the target subscription.

parameters
CheckZonePeersRequest
Required

Parameters for checking zone peers.

cls
callable

A custom type or function that will be passed the direct response

Returns

CheckZonePeersResult, or the result of cls(response)

Return type

Exceptions

get

Gets details about a specified subscription.

get(subscription_id: str, **kwargs: Any) -> azure.mgmt.resource.subscriptions.v2016_06_01.models._models_py3.Subscription

Parameters

subscription_id
str
Required

The ID of the target subscription.

cls
callable

A custom type or function that will be passed the direct response

Returns

Subscription, or the result of cls(response)

Return type

Exceptions

list

Gets all subscriptions for a tenant.

list(**kwargs: Any) -> Iterable[azure.mgmt.resource.subscriptions.v2016_06_01.models._models_py3.SubscriptionListResult]

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either SubscriptionListResult or the result of cls(response)

Return type

Exceptions

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, **kwargs: Any) -> Iterable[azure.mgmt.resource.subscriptions.v2016_06_01.models._models_py3.LocationListResult]

Parameters

subscription_id
str
Required

The ID of the target subscription.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either LocationListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.resource.subscriptions.v2016_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\resource\\subscriptions\\v2016_06_01\\models\\__init__.py'>