azure-native.quantum.listWorkspaceKeys
Explore with Pulumi AI
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 for details.
Using listWorkspaceKeys
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function listWorkspaceKeys(args: ListWorkspaceKeysArgs, opts?: InvokeOptions): Promise<ListWorkspaceKeysResult>
function listWorkspaceKeysOutput(args: ListWorkspaceKeysOutputArgs, opts?: InvokeOptions): Output<ListWorkspaceKeysResult>
def list_workspace_keys(resource_group_name: Optional[str] = None,
workspace_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ListWorkspaceKeysResult
def list_workspace_keys_output(resource_group_name: Optional[pulumi.Input[str]] = None,
workspace_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ListWorkspaceKeysResult]
func ListWorkspaceKeys(ctx *Context, args *ListWorkspaceKeysArgs, opts ...InvokeOption) (*ListWorkspaceKeysResult, error)
func ListWorkspaceKeysOutput(ctx *Context, args *ListWorkspaceKeysOutputArgs, opts ...InvokeOption) ListWorkspaceKeysResultOutput
> Note: This function is named ListWorkspaceKeys
in the Go SDK.
public static class ListWorkspaceKeys
{
public static Task<ListWorkspaceKeysResult> InvokeAsync(ListWorkspaceKeysArgs args, InvokeOptions? opts = null)
public static Output<ListWorkspaceKeysResult> Invoke(ListWorkspaceKeysInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ListWorkspaceKeysResult> listWorkspaceKeys(ListWorkspaceKeysArgs args, InvokeOptions options)
public static Output<ListWorkspaceKeysResult> listWorkspaceKeys(ListWorkspaceKeysArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:quantum:listWorkspaceKeys
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - The name of the quantum workspace resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - The name of the quantum workspace resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - The name of the quantum workspace resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- workspace
Name string - The name of the quantum workspace resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- workspace_
name str - The name of the quantum workspace resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - The name of the quantum workspace resource.
listWorkspaceKeys Result
The following output properties are available:
- Primary
Connection stringString - The connection string of the primary api key.
- Secondary
Connection stringString - The connection string of the secondary api key.
- Api
Key boolEnabled - Indicator of enablement of the Quantum workspace Api keys.
- Primary
Key Pulumi.Azure Native. Quantum. Outputs. Api Key Response - The quantum workspace primary api key.
- Secondary
Key Pulumi.Azure Native. Quantum. Outputs. Api Key Response - The quantum workspace secondary api key.
- Primary
Connection stringString - The connection string of the primary api key.
- Secondary
Connection stringString - The connection string of the secondary api key.
- Api
Key boolEnabled - Indicator of enablement of the Quantum workspace Api keys.
- Primary
Key ApiKey Response - The quantum workspace primary api key.
- Secondary
Key ApiKey Response - The quantum workspace secondary api key.
- primary
Connection StringString - The connection string of the primary api key.
- secondary
Connection StringString - The connection string of the secondary api key.
- api
Key BooleanEnabled - Indicator of enablement of the Quantum workspace Api keys.
- primary
Key ApiKey Response - The quantum workspace primary api key.
- secondary
Key ApiKey Response - The quantum workspace secondary api key.
- primary
Connection stringString - The connection string of the primary api key.
- secondary
Connection stringString - The connection string of the secondary api key.
- api
Key booleanEnabled - Indicator of enablement of the Quantum workspace Api keys.
- primary
Key ApiKey Response - The quantum workspace primary api key.
- secondary
Key ApiKey Response - The quantum workspace secondary api key.
- primary_
connection_ strstring - The connection string of the primary api key.
- secondary_
connection_ strstring - The connection string of the secondary api key.
- api_
key_ boolenabled - Indicator of enablement of the Quantum workspace Api keys.
- primary_
key ApiKey Response - The quantum workspace primary api key.
- secondary_
key ApiKey Response - The quantum workspace secondary api key.
- primary
Connection StringString - The connection string of the primary api key.
- secondary
Connection StringString - The connection string of the secondary api key.
- api
Key BooleanEnabled - Indicator of enablement of the Quantum workspace Api keys.
- primary
Key Property Map - The quantum workspace primary api key.
- secondary
Key Property Map - The quantum workspace secondary api key.
Supporting Types
ApiKeyResponse
- key str
- The Api key.
- created_
at str - The creation time of the api key.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0