ManagementGroupSubscriptionsOperations Class

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

Constructor

ManagementGroupSubscriptionsOperations(client, config, serializer, deserializer)

Parameters

Name Description
client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

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

create(group_id: str, subscription_id: str, cache_control: str | None = 'no-cache', **kwargs: Any) -> _models.SubscriptionUnderManagementGroup

Parameters

Name Description
group_id
Required
str

Management Group ID.

subscription_id
Required
str

Subscription ID.

cache_control
str

Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.

Default value: no-cache

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

SubscriptionUnderManagementGroup, or the result of cls(response)

Exceptions

Type Description

delete

De-associates subscription from the management group.

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

Parameters

Name Description
group_id
Required
str

Management Group ID.

subscription_id
Required
str

Subscription ID.

cache_control
str

Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.

Default value: no-cache

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

None, or the result of cls(response)

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 | None = 'no-cache', **kwargs: Any) -> _models.SubscriptionUnderManagementGroup

Parameters

Name Description
group_id
Required
str

Management Group ID.

subscription_id
Required
str

Subscription ID.

cache_control
str

Indicates whether the request should utilize any caches. Populate the header with 'no-cache' value to bypass existing caches.

Default value: no-cache

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

SubscriptionUnderManagementGroup, or the result of cls(response)

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) -> Iterable['_models.ListSubscriptionUnderManagementGroup']

Parameters

Name Description
group_id
Required
str

Management Group ID.

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: None

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 ListSubscriptionUnderManagementGroup or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.managementgroups.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\managementgroups\\models\\__init__.py'>