ManagementGroupSubscriptions interface
Interface representing a ManagementGroupSubscriptions.
Methods
create(string, string, Management |
Associates existing subscription with the management group. |
delete(string, string, Management |
De-associates subscription from the management group. |
get |
Retrieves details about given subscription which is associated with the management group. |
list |
Retrieves details about all subscriptions which are associated with the management group. |
Method Details
create(string, string, ManagementGroupSubscriptionsCreateOptionalParams)
Associates existing subscription with the management group.
function create(groupId: string, subscriptionId: string, options?: ManagementGroupSubscriptionsCreateOptionalParams): Promise<SubscriptionUnderManagementGroup>
Parameters
- groupId
-
string
Management Group ID.
- subscriptionId
-
string
Subscription ID.
The options parameters.
Returns
Promise<SubscriptionUnderManagementGroup>
delete(string, string, ManagementGroupSubscriptionsDeleteOptionalParams)
De-associates subscription from the management group.
function delete(groupId: string, subscriptionId: string, options?: ManagementGroupSubscriptionsDeleteOptionalParams): Promise<void>
Parameters
- groupId
-
string
Management Group ID.
- subscriptionId
-
string
Subscription ID.
The options parameters.
Returns
Promise<void>
getSubscription(string, string, ManagementGroupSubscriptionsGetSubscriptionOptionalParams)
Retrieves details about given subscription which is associated with the management group.
function getSubscription(groupId: string, subscriptionId: string, options?: ManagementGroupSubscriptionsGetSubscriptionOptionalParams): Promise<SubscriptionUnderManagementGroup>
Parameters
- groupId
-
string
Management Group ID.
- subscriptionId
-
string
Subscription ID.
The options parameters.
Returns
Promise<SubscriptionUnderManagementGroup>
listSubscriptionsUnderManagementGroup(string, ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams)
Retrieves details about all subscriptions which are associated with the management group.
function listSubscriptionsUnderManagementGroup(groupId: string, options?: ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupOptionalParams): PagedAsyncIterableIterator<SubscriptionUnderManagementGroup, SubscriptionUnderManagementGroup[], PageSettings>
Parameters
- groupId
-
string
Management Group ID.
The options parameters.