ManagementGroupSubscriptionsOperations Class
ManagementGroupSubscriptionsOperations async 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.objectManagementGroupSubscriptionsOperations
Constructor
ManagementGroupSubscriptionsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create |
Associates existing subscription with the management group. |
| delete |
De-associates subscription from the management group. |
| get_subscription |
Retrieves details about given subscription which is associated with the management group. |
| get_subscriptions_under_management_group |
Retrieves details about all subscriptions which are associated with the management group. |
create
Associates existing subscription with the management group.
async create(group_id: str, subscription_id: str, cache_control: Optional[str] = 'no-cache', **kwargs: Any) -> azure.mgmt.managementgroups.models._models_py3.SubscriptionUnderManagementGroup
Parameters
- cache_control
- str
Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SubscriptionUnderManagementGroup, or the result of cls(response)
Return type
Exceptions
delete
De-associates subscription from the management group.
async delete(group_id: str, subscription_id: str, cache_control: Optional[str] = 'no-cache', **kwargs: Any) -> None
Parameters
- cache_control
- str
Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get_subscription
Retrieves details about given subscription which is associated with the management group.
async get_subscription(group_id: str, subscription_id: str, cache_control: Optional[str] = 'no-cache', **kwargs: Any) -> azure.mgmt.managementgroups.models._models_py3.SubscriptionUnderManagementGroup
Parameters
- cache_control
- str
Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SubscriptionUnderManagementGroup, or the result of cls(response)
Return type
Exceptions
get_subscriptions_under_management_group
Retrieves details about all subscriptions which are associated with the management group.
get_subscriptions_under_management_group(group_id: str, skiptoken: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.managementgroups.models._models_py3.ListSubscriptionUnderManagementGroup]
Parameters
- skiptoken
- str
Page continuation token is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ListSubscriptionUnderManagementGroup or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.managementgroups.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\managementgroups\\models\\__init__.py'>
Feedback
Submit and view feedback for