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

NameDatatypeDescription
apiKeyEnabledbooleanIndicator of enablement of the Quantum workspace Api keys.
primaryConnectionStringstringThe connection string of the primary api key.
primaryKeyobjectAzure quantum workspace Api key details.
secondaryConnectionStringstringThe connection string of the secondary api key.
secondaryKeyobjectAzure quantum workspace Api key details.

Methods

NameAccessible byRequired ParamsDescription
listSELECTresourceGroupName, subscriptionId, 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.

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 resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';