Skip to main content

workspace_keys

Creates, updates, deletes, gets or lists a workspace_keys resource.

Overview

Nameworkspace_keys
TypeResource
Idazure.quantum.workspace_keys

Fields

The following fields are returned by SELECT queries:

The request was successful.

NameDatatypeDescription
apiKeyEnabledbooleanIndicator of enablement of the Quantum workspace Api keys.
primaryConnectionStringstringThe connection string of the primary api key.
primaryKeyobjectThe quantum workspace primary api key.
secondaryConnectionStringstringThe connection string of the secondary api key.
secondaryKeyobjectThe quantum workspace secondary api key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, workspaceNameGet 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
workspaceNamestringThe name of the quantum workspace resource.

SELECT examples

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.

SELECT
apiKeyEnabled,
primaryConnectionString,
primaryKey,
secondaryConnectionString,
secondaryKey
FROM azure.quantum.workspace_keys
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
;