ManagementGroupSubscriptionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ManagementGroupsMgmtClient's

<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.

async create(group_id: str, subscription_id: str, *, cache_control: str = 'no-cache', **kwargs: Any) -> SubscriptionUnderManagementGroup

Parameters

Name Description
group_id
Required
str

Management Group ID. Required.

subscription_id
Required
str

Subscription ID. Required.

Keyword-Only Parameters

Name Description
cache_control
str

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.

async delete(group_id: str, subscription_id: str, *, cache_control: str = 'no-cache', **kwargs: Any) -> None

Parameters

Name Description
group_id
Required
str

Management Group ID. Required.

subscription_id
Required
str

Subscription ID. Required.

Keyword-Only Parameters

Name Description
cache_control
str

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.

async get_subscription(group_id: str, subscription_id: str, *, cache_control: str = 'no-cache', **kwargs: Any) -> SubscriptionUnderManagementGroup

Parameters

Name Description
group_id
Required
str

Management Group ID. Required.

subscription_id
Required
str

Subscription ID. Required.

Keyword-Only Parameters

Name Description
cache_control
str

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) -> AsyncItemPaged[SubscriptionUnderManagementGroup]

Parameters

Name Description
group_id
Required
str

Management Group ID. Required.

Keyword-Only Parameters

Name Description
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. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of SubscriptionUnderManagementGroup

Exceptions

Type Description