SubscriptionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:subscriptions> attribute.
- Inheritance
-
builtins.objectSubscriptionsOperations
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.
check_zone_peers(subscription_id: str, parameters: _models.CheckZonePeersRequest, *, content_type: str = 'application/json', **kwargs: Any) -> _models.CheckZonePeersResult
Parameters
Name | Description |
---|---|
subscription_id
Required
|
The ID of the target subscription. Required. |
parameters
Required
|
Parameters for checking zone peers. Is either a CheckZonePeersRequest type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
CheckZonePeersResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets details about a specified subscription.
get(subscription_id: str, **kwargs: Any) -> Subscription
Parameters
Name | Description |
---|---|
subscription_id
Required
|
The ID of the target subscription. Required. |
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]
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
|
The ID of the target subscription. Required. |
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.resource.subscriptions.v2016_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\resource\\subscriptions\\v2016_06_01\\models\\__init__.py'>
Azure SDK for Python