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

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.

get

Gets details about a specified subscription.

get(subscription_id: str, **kwargs: Any) -> azure.mgmt.subscription.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.subscription.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.subscription.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.subscription.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\subscription\\models\\__init__.py'>