次の方法で共有


ManagementGroupSubscriptionsOperations クラス

ManagementGroupSubscriptionsOperations 操作。

このクラスを直接インスタンス化しないでください。 代わりに、インスタンス化して属性としてアタッチするクライアント インスタンスを作成する必要があります。

継承
builtins.object
ManagementGroupSubscriptionsOperations

コンストラクター

ManagementGroupSubscriptionsOperations(client, config, serializer, deserializer)

パラメーター

client
必須

サービス要求のクライアント。

config
必須

サービス クライアントの構成。

serializer
必須

オブジェクト モデル シリアライザー。

deserializer
必須

オブジェクト モデル逆シリアライザー。

変数

models

この操作グループで使用されるモデル クラスの別名。

メソッド

create

既存のサブスクリプションと管理グループを関連付けます。

delete

管理グループからサブスクリプションの関連付けを解除します。

get_subscription

管理グループに関連付けられている特定のサブスクリプションに関する詳細を取得します。

get_subscriptions_under_management_group

管理グループに関連付けられているすべてのサブスクリプションの詳細を取得します。

create

既存のサブスクリプションと管理グループを関連付けます。

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

パラメーター

group_id
str
必須

管理グループ ID。

subscription_id
str
必須

[サブスクリプション ID] が表示されます。

cache_control
str
既定値: no-cache

要求がキャッシュを利用する必要があるかどうかを示します。 既存のキャッシュをバイパスするには、ヘッダーに "キャッシュなし" 値を設定します。

cls
callable

直接応答に渡されるカスタム型または関数

戻り値

SubscriptionUnderManagementGroup、または cls(response) の結果

の戻り値の型 :

例外

delete

管理グループからサブスクリプションの関連付けを解除します。

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

パラメーター

group_id
str
必須

管理グループ ID。

subscription_id
str
必須

[サブスクリプション ID] が表示されます。

cache_control
str
既定値: no-cache

要求がキャッシュを利用する必要があるかどうかを示します。 既存のキャッシュをバイパスするには、ヘッダーに "キャッシュなし" 値を設定します。

cls
callable

直接応答に渡されるカスタム型または関数

戻り値

None、または cls(response) の結果

の戻り値の型 :

例外

get_subscription

管理グループに関連付けられている特定のサブスクリプションに関する詳細を取得します。

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

パラメーター

group_id
str
必須

管理グループ ID。

subscription_id
str
必須

[サブスクリプション ID] が表示されます。

cache_control
str
既定値: no-cache

要求がキャッシュを利用する必要があるかどうかを示します。 既存のキャッシュをバイパスするには、ヘッダーに "キャッシュなし" 値を設定します。

cls
callable

直接応答に渡されるカスタム型または関数

戻り値

SubscriptionUnderManagementGroup、または cls(response) の結果

の戻り値の型 :

例外

get_subscriptions_under_management_group

管理グループに関連付けられているすべてのサブスクリプションの詳細を取得します。

get_subscriptions_under_management_group(group_id: str, skiptoken: str | None = None, **kwargs: Any) -> Iterable['_models.ListSubscriptionUnderManagementGroup']

パラメーター

group_id
str
必須

管理グループ ID。

skiptoken
str
既定値: None

ページ継続トークンは、前の操作で部分的な結果が返された場合にのみ使用されます。 前の応答に nextLink 要素が含まれている場合、nextLink 要素の値には、後続の呼び出しに使用する開始点を指定するトークン パラメーターが含まれます。

cls
callable

直接応答に渡されるカスタム型または関数

戻り値

ListSubscriptionUnderManagementGroup または cls(response) の結果のいずれかのインスタンスのような反復子

の戻り値の型 :

例外

属性

models

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