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

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

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

Parameters

group_id
str
Required

Management Group ID.

subscription_id
str
Required

Subscription ID.

cache_control
str
default value: no-cache

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.

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

Parameters

group_id
str
Required

Management Group ID.

subscription_id
str
Required

Subscription ID.

cache_control
str
default value: no-cache

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.

get_subscription(group_id: str, subscription_id: str, cache_control: Optional[str] = 'no-cache', **kwargs: Any) -> _models.SubscriptionUnderManagementGroup

Parameters

group_id
str
Required

Management Group ID.

subscription_id
str
Required

Subscription ID.

cache_control
str
default value: no-cache

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

Parameters

group_id
str
Required

Management Group ID.

skiptoken
str
default value: None

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