@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves details about given subscription which is associated with the management group.
*
* Uses Azure REST API version 2023-04-01.
*
* Other available API versions: 2021-04-01, 2024-02-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native management [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getManagementGroupSubscription(args: GetManagementGroupSubscriptionArgs, opts?: pulumi.InvokeOptions): Promise<GetManagementGroupSubscriptionResult>;
export interface GetManagementGroupSubscriptionArgs {
/**
* Management Group ID.
*/
groupId: string;
/**
* Subscription ID.
*/
subscriptionId?: string;
}
/**
* The details of subscription under management group.
*/
export interface GetManagementGroupSubscriptionResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The friendly name of the subscription.
*/
readonly displayName?: string;
/**
* The fully qualified ID for the subscription. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001
*/
readonly id: string;
/**
* The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000
*/
readonly name: string;
/**
* The ID of the parent management group.
*/
readonly parent?: outputs.management.DescendantParentGroupInfoResponse;
/**
* The state of the subscription.
*/
readonly state?: string;
/**
* The AAD Tenant ID associated with the subscription. For example, 00000000-0000-0000-0000-000000000000
*/
readonly tenant?: string;
/**
* The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions
*/
readonly type: string;
}
/**
* Retrieves details about given subscription which is associated with the management group.
*
* Uses Azure REST API version 2023-04-01.
*
* Other available API versions: 2021-04-01, 2024-02-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native management [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getManagementGroupSubscriptionOutput(args: GetManagementGroupSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetManagementGroupSubscriptionResult>;
export interface GetManagementGroupSubscriptionOutputArgs {
/**
* Management Group ID.
*/
groupId: pulumi.Input<string>;
/**
* Subscription ID.
*/
subscriptionId?: pulumi.Input<string>;
}