SubscriptionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SubscriptionClient's

<xref:subscriptions> attribute.

Inheritance
builtins.object
SubscriptionsOperations

Constructor

SubscriptionsOperations(*args, **kwargs)

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) -> Subscription

Parameters

Name Description
subscription_id
Required
str

The ID of the target subscription. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

Subscription or the result of cls(response)

Exceptions

Type Description

list

Gets all subscriptions for a tenant.

list(**kwargs: Any) -> Iterable[Subscription]

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

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, **kwargs: Any) -> Iterable[Location]

Parameters

Name Description
subscription_id
Required
str

The ID of the target subscription. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.subscription.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\subscription\\models\\__init__.py'>