ManagementGroupSubscriptionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:management_group_subscriptions> attribute.
Constructor
ManagementGroupSubscriptionsOperations(*args, **kwargs)
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.
create(group_id: str, subscription_id: str, *, cache_control: str = 'no-cache', **kwargs: Any) -> SubscriptionUnderManagementGroup
Parameters
| Name | Description |
|---|---|
|
group_id
Required
|
Management Group ID. Required. |
|
subscription_id
Required
|
Subscription ID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cache_control
|
Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. Default value is "no-cache". Default value: no-cache
|
Returns
| Type | Description |
|---|---|
|
SubscriptionUnderManagementGroup. The SubscriptionUnderManagementGroup is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete
De-associates subscription from the management group.
delete(group_id: str, subscription_id: str, *, cache_control: str = 'no-cache', **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
group_id
Required
|
Management Group ID. Required. |
|
subscription_id
Required
|
Subscription ID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cache_control
|
Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. Default value is "no-cache". Default value: no-cache
|
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get_subscription
Retrieves details about given subscription which is associated with the management group.
get_subscription(group_id: str, subscription_id: str, *, cache_control: str = 'no-cache', **kwargs: Any) -> SubscriptionUnderManagementGroup
Parameters
| Name | Description |
|---|---|
|
group_id
Required
|
Management Group ID. Required. |
|
subscription_id
Required
|
Subscription ID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cache_control
|
Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches. Default value is "no-cache". Default value: no-cache
|
Returns
| Type | Description |
|---|---|
|
SubscriptionUnderManagementGroup. The SubscriptionUnderManagementGroup is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
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: str | None = None, **kwargs: Any) -> ItemPaged[SubscriptionUnderManagementGroup]
Parameters
| Name | Description |
|---|---|
|
group_id
Required
|
Management Group ID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
skiptoken
|
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. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of SubscriptionUnderManagementGroup |
Exceptions
| Type | Description |
|---|---|