Microsoft.Quantum (preview:2025-01-01)

2025/05/08 • 11 new methods

Operations_List (new)
Description List the operations for the provider
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Quantum/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: enum ,
actionType: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_CheckNameAvailability (new)
Description Check the availability of the resource name for the given location.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{location}/checkNameAvailability
{
api-version: string ,
subscriptionId: string ,
location: string ,
body:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Offerings_List (new)
Description Returns the list of all provider offerings available for the given location.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings
{
api-version: string ,
subscriptionId: string ,
locationName: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
properties:
{
description: string ,
providerType: string ,
company: string ,
defaultEndpoint: string ,
aad:
{
applicationId: string ,
tenantId: string ,
}
,
managedApplication:
{
publisherId: string ,
offerId: string ,
}
,
targets:
[
{
id: string ,
name: string ,
description: string ,
acceptedDataFormats:
[
string ,
]
,
acceptedContentEncodings:
[
string ,
]
,
}
,
]
,
skus:
[
{
id: string ,
name: string ,
version: string ,
description: string ,
restrictedAccessUri: string ,
autoAdd: boolean ,
targets:
[
string ,
]
,
quotaDimensions:
[
{
id: string ,
scope: string ,
period: string ,
quota: number ,
name: string ,
description: string ,
unit: string ,
unitPlural: string ,
}
,
]
,
pricingDetails:
[
{
id: string ,
value: string ,
}
,
]
,
}
,
]
,
quotaDimensions:
[
{
id: string ,
scope: string ,
period: string ,
quota: number ,
name: string ,
description: string ,
unit: string ,
unitPlural: string ,
}
,
]
,
pricingDimensions:
[
{
id: string ,
name: string ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_ListBySubscription (new)
Description Gets the list of Workspaces within a Subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_ListByResourceGroup (new)
Description Gets the list of Workspaces within a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_Get (new)
Description Returns the Workspace resource associated with the given name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
}

⚐ Response (200)

{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_CreateOrUpdate (new)
Description Creates or updates a Workspace resource.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
resource:
{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_UpdateTags (new)
Description Updates an existing Workspace's tags.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
properties:
{
tags: object ,
}
,
}

⚐ Response (200)

{
properties:
{
providers:
[
{
providerId: string ,
providerSku: string ,
instanceUri: string ,
applicationName: string ,
provisioningState: enum ,
resourceUsageId: string ,
}
,
]
,
usable: enum ,
provisioningState: enum ,
storageAccount: string ,
endpointUri: string ,
apiKeyEnabled: boolean ,
managedOnBehalfOfConfiguration:
{
moboBrokerResources:
[
{
id: string ,
}
,
]
,
}
,
managedStorageAccount: string ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_Delete (new)
Description Deletes a Workspace resource.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_ListKeys (new)
Description 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.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/listKeys
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
}

⚐ Response (200)

{
apiKeyEnabled: boolean ,
primaryKey:
{
createdAt: string ,
key: string ,
}
,
secondaryKey:
{
createdAt: string ,
key: string ,
}
,
primaryConnectionString: string ,
secondaryConnectionString: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workspaces_RegenerateKeys (new)
Description Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/regenerateKey
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
body:
{
keys:
[
string ,
]
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}