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.
async 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 type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
CheckZonePeersResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets details about a specified subscription.
async get(subscription_id: str, **kwargs: Any) -> Subscription
Parameters
Name | Description |
---|---|
subscription_id
Required
|
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) -> AsyncIterable[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) -> AsyncIterable[Location]
Parameters
Name | Description |
---|---|
subscription_id
Required
|
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.resource.subscriptions.v2019_11_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\resource\\subscriptions\\v2019_11_01\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for