@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.76 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.
*
* Uses Azure REST API version 2023-11-13-preview.
*
* Other available API versions: 2025-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native quantum [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listWorkspaceKeys(args: ListWorkspaceKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListWorkspaceKeysResult>;
export interface ListWorkspaceKeysArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the quantum workspace resource.
*/
workspaceName: string;
}
/**
* Result of list Api keys and connection strings.
*/
export interface ListWorkspaceKeysResult {
/**
* Indicator of enablement of the Quantum workspace Api keys.
*/
readonly apiKeyEnabled?: boolean;
/**
* The connection string of the primary api key.
*/
readonly primaryConnectionString: string;
/**
* The quantum workspace primary api key.
*/
readonly primaryKey?: outputs.quantum.ApiKeyResponse;
/**
* The connection string of the secondary api key.
*/
readonly secondaryConnectionString: string;
/**
* The quantum workspace secondary api key.
*/
readonly secondaryKey?: outputs.quantum.ApiKeyResponse;
}
/**
* Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.
*
* Uses Azure REST API version 2023-11-13-preview.
*
* Other available API versions: 2025-01-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native quantum [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function listWorkspaceKeysOutput(args: ListWorkspaceKeysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<ListWorkspaceKeysResult>;
export interface ListWorkspaceKeysOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the quantum workspace resource.
*/
workspaceName: pulumi.Input<string>;
}