import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing API Management Workspace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleService = new azure.apimanagement.Service("example", { * name: "example-apimanagement", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * publisherName: "pub1", * publisherEmail: "pub1@email.com", * skuName: "Premium_1", * }); * const example = azure.apimanagement.getWorkspaceOutput({ * name: "existing", * apiManagementId: exampleService.id, * }); * export const id = example.apply(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2024-05-01 */ export declare function getWorkspace(args: GetWorkspaceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getWorkspace. */ export interface GetWorkspaceArgs { /** * The ID of the API Management Workspace. */ apiManagementId: string; /** * The name of this API Management Workspace. */ name: string; } /** * A collection of values returned by getWorkspace. */ export interface GetWorkspaceResult { readonly apiManagementId: string; /** * The display name of the API Management Workspace. */ readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; } /** * Use this data source to access information about an existing API Management Workspace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleService = new azure.apimanagement.Service("example", { * name: "example-apimanagement", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * publisherName: "pub1", * publisherEmail: "pub1@email.com", * skuName: "Premium_1", * }); * const example = azure.apimanagement.getWorkspaceOutput({ * name: "existing", * apiManagementId: exampleService.id, * }); * export const id = example.apply(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.ApiManagement` - 2024-05-01 */ export declare function getWorkspaceOutput(args: GetWorkspaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getWorkspace. */ export interface GetWorkspaceOutputArgs { /** * The ID of the API Management Workspace. */ apiManagementId: pulumi.Input; /** * The name of this API Management Workspace. */ name: pulumi.Input; }