import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing API Management Subscription. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.apimanagement.getSubscription({ * apiManagementId: "example-apim", * subscriptionId: "example-subscription-id", * }); * export const id = example.then(example => example.subscriptionId); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 */ export declare function getSubscription(args: GetSubscriptionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSubscription. */ export interface GetSubscriptionArgs { /** * The ID of the API Management Service in which this Subscription exists. */ apiManagementId: string; /** * The Identifier for the API Management Subscription. */ subscriptionId: string; } /** * A collection of values returned by getSubscription. */ export interface GetSubscriptionResult { /** * Indicates whether tracing is enabled. */ readonly allowTracing: boolean; /** * The ID of the API assigned to this Subscription. */ readonly apiId: string; readonly apiManagementId: string; /** * The display name of this Subscription. */ readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The primary key for this subscription. */ readonly primaryKey: string; /** * The ID of the Product assigned to this Subscription. */ readonly productId: string; /** * The secondary key for this subscription. */ readonly secondaryKey: string; /** * The state of this Subscription. */ readonly state: string; readonly subscriptionId: string; /** * The ID of the User assigned to this Subscription. */ readonly userId: string; } /** * Use this data source to access information about an existing API Management Subscription. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.apimanagement.getSubscription({ * apiManagementId: "example-apim", * subscriptionId: "example-subscription-id", * }); * export const id = example.then(example => example.subscriptionId); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2022-08-01 */ export declare function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSubscription. */ export interface GetSubscriptionOutputArgs { /** * The ID of the API Management Service in which this Subscription exists. */ apiManagementId: pulumi.Input; /** * The Identifier for the API Management Subscription. */ subscriptionId: pulumi.Input; }