import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing NGINX Dataplane API Key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.nginx.getApiKey({ * name: "existing", * nginxDeploymentId: exampleAzurermNginxDeployment.id, * }); * export const id = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Nginx.NginxPlus` - 2024-11-01-preview */ export declare function getApiKey(args: GetApiKeyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getApiKey. */ export interface GetApiKeyArgs { /** * The name of the NGINX Dataplane API Key. */ name: string; /** * The ID of the NGINX Deployment that the API key is associated with. */ nginxDeploymentId: string; } /** * A collection of values returned by getApiKey. */ export interface GetApiKeyResult { /** * The RFC3339 formatted time after which this Dataplane API Key is no longer valid. */ readonly endDateTime: string; /** * The first three characters of the secret text to help identify it in use. */ readonly hint: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; readonly nginxDeploymentId: string; } /** * Use this data source to access information about an existing NGINX Dataplane API Key. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.nginx.getApiKey({ * name: "existing", * nginxDeploymentId: exampleAzurermNginxDeployment.id, * }); * export const id = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Nginx.NginxPlus` - 2024-11-01-preview */ export declare function getApiKeyOutput(args: GetApiKeyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getApiKey. */ export interface GetApiKeyOutputArgs { /** * The name of the NGINX Dataplane API Key. */ name: pulumi.Input; /** * The ID of the NGINX Deployment that the API key is associated with. */ nginxDeploymentId: pulumi.Input; }