azure.mgmt.resource.subscriptions.operations module

class azure.mgmt.resource.subscriptions.operations.SubscriptionsOperations(client, config, serializer, deserializer)[source]

Bases: object

SubscriptionsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
get(subscription_id, custom_headers=None, raw=False, **operation_config)[source]

Gets details about a specified subscription.

Parameters:
  • subscription_id (str) – The ID of the target subscription.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Subscription

Return type:

ClientRawResponse if raw=true

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets all subscriptions for a tenant.

Parameters:
Return type:

SubscriptionPaged

Raises:

CloudError

list_locations(subscription_id, custom_headers=None, raw=False, **operation_config)[source]

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.

Parameters:
  • subscription_id (str) – The ID of the target subscription.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

LocationPaged

Raises:

CloudError

class azure.mgmt.resource.subscriptions.operations.TenantsOperations(client, config, serializer, deserializer)[source]

Bases: object

TenantsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
list(custom_headers=None, raw=False, **operation_config)[source]

Gets the tenants for your account.

Parameters:
Return type:

TenantIdDescriptionPaged

Raises:

CloudError