Skip to content

Commit 94ecc3b

Browse files
04diiguyiYi Gu
authored andcommitted
Quantum [master]: Add kind (v1/v2) to workspace (Azure#38686)
* Add workspaceKind v1/v2 to workspace resource type * Add support for filter to offerings API * Add support for more target-specific properties/metadata on offerings API --------- Co-authored-by: Yi Gu <guyi@microsoft.com>
1 parent a85f5ba commit 94ecc3b

30 files changed

+2870
-1
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"operationId": "Offerings_List",
3+
"title": "Offerings_List",
4+
"parameters": {
5+
"subscriptionId": "1C4B2828-7D49-494F-933D-061373BE28C2",
6+
"api-version": "2025-11-01-preview",
7+
"locationName": "westus2"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "QIO",
15+
"name": "Quantum Inspired Optimization",
16+
"properties": {
17+
"description": "Provide Quantum Inspired Optimization solvers",
18+
"targets": [
19+
{
20+
"name": "CPU annealer",
21+
"id": "p1",
22+
"description": "CPU annealer algorithm",
23+
"numQubits": 80,
24+
"targetProfile": "unrestricted",
25+
"metadata": {
26+
"key": "value"
27+
}
28+
}
29+
],
30+
"skus": [
31+
{
32+
"name": "Standard",
33+
"id": "Standard",
34+
"version": "1.0",
35+
"description": "Provider CPU and FPGA QIO based solver.",
36+
"restrictedAccessUri": "https://endpoint",
37+
"autoAdd": true,
38+
"targets": [
39+
"p1"
40+
],
41+
"quotaDimensions": [
42+
{
43+
"id": "quota1",
44+
"scope": "Workspace"
45+
}
46+
],
47+
"pricingDetails": [
48+
{
49+
"id": "price",
50+
"value": "200 dollars"
51+
},
52+
{
53+
"id": "rate",
54+
"value": "10 hours/month"
55+
}
56+
]
57+
}
58+
],
59+
"quotaDimensions": [
60+
{
61+
"id": "job-count",
62+
"scope": "Workspace",
63+
"period": "Monthly",
64+
"quota": 30,
65+
"name": "Job count",
66+
"description": "The number of jobs you may submit per month",
67+
"unit": "job",
68+
"unitPlural": "jobs"
69+
},
70+
{
71+
"id": "job-hour",
72+
"scope": "Subscription",
73+
"period": "Monthly",
74+
"quota": 1000,
75+
"name": "Job hours",
76+
"description": "The number of hours of solver time you may use per month",
77+
"unit": "hour",
78+
"unitPlural": "hours"
79+
}
80+
],
81+
"pricingDimensions": [
82+
{
83+
"id": "price",
84+
"name": "Pricing"
85+
},
86+
{
87+
"id": "rate",
88+
"name": "Minimum monthly rate"
89+
}
90+
]
91+
}
92+
}
93+
]
94+
}
95+
}
96+
}
97+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"operationId": "Operations_List",
3+
"title": "Operations_List",
4+
"parameters": {
5+
"api-version": "2025-11-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "Microsoft.Quantum/Locations/Offerings/Read",
13+
"isDataAction": false,
14+
"display": {
15+
"provider": "Microsoft.Quantum",
16+
"resource": "Workspaces",
17+
"operation": "Read quantum workspace's available providers",
18+
"description": "Read providers supported"
19+
}
20+
}
21+
]
22+
}
23+
}
24+
}
25+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"operationId": "SuiteOffers_ListBySubscription",
3+
"title": "SuiteOffers_ListBySubscription",
4+
"parameters": {
5+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
6+
"api-version": "2025-11-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Quantum/suiteOffers/provider1",
14+
"name": "provider1",
15+
"type": "Microsoft.Quantum/suiteOffers",
16+
"properties": {
17+
"providerId": "provider1",
18+
"providerName": "Contoso Provider 1",
19+
"description": "Contoso Provider 1 description",
20+
"companyName": "Contoso",
21+
"location": "West US",
22+
"quotas": {
23+
"standardMinutesLifetime": 5000,
24+
"highMinutesLifetime": 200
25+
}
26+
}
27+
}
28+
]
29+
}
30+
}
31+
}
32+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"operationId": "Workspaces_CheckNameAvailability",
3+
"title": "Workspaces_CheckNameAvailability",
4+
"parameters": {
5+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
6+
"api-version": "2025-11-01-preview",
7+
"location": "westus2",
8+
"body": {
9+
"name": "sample-workspace-name",
10+
"type": "Microsoft.Quantum/Workspaces"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"nameAvailable": false,
17+
"reason": "AlreadyExists",
18+
"message": "Resource name already exists"
19+
}
20+
}
21+
}
22+
}
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
{
2+
"operationId": "Workspaces_CreateOrUpdate",
3+
"title": "Workspaces_CreateOrUpdate",
4+
"parameters": {
5+
"workspaceName": "quantumworkspace1",
6+
"resourceGroupName": "quantumResourcegroup",
7+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
8+
"api-version": "2025-11-01-preview",
9+
"resource": {
10+
"location": "West US",
11+
"properties": {
12+
"providers": [
13+
{
14+
"providerId": "Honeywell",
15+
"providerSku": "Basic"
16+
},
17+
{
18+
"providerId": "IonQ",
19+
"providerSku": "Basic"
20+
},
21+
{
22+
"providerId": "OneQBit",
23+
"providerSku": "Basic"
24+
}
25+
],
26+
"storageAccount": "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
27+
"quotas": {
28+
"standardMinutesLifetime": 500,
29+
"highMinutesLifetime": 50
30+
}
31+
}
32+
}
33+
},
34+
"responses": {
35+
"200": {
36+
"body": {
37+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/quantumResourcegroup/providers/Microsoft.Quantum/Workspaces/quantumworkspace1",
38+
"name": "quantumworkspace1",
39+
"type": "Microsoft.Quantum/Workspaces",
40+
"properties": {
41+
"providers": [
42+
{
43+
"providerId": "Honeywell",
44+
"providerSku": "Basic",
45+
"applicationName": "quantumworkspace1-h1",
46+
"instanceUri": "https://h1.endpoint.com",
47+
"provisioningState": "Succeeded",
48+
"resourceUsageId": "00000000-1111-2222-3333-444444444444"
49+
},
50+
{
51+
"providerId": "IonQ",
52+
"provisioningState": "Succeeded",
53+
"applicationName": "quantumworkspace1-i1",
54+
"instanceUri": "https://i1.endpoint.com",
55+
"providerSku": "Basic",
56+
"resourceUsageId": "00000000-1111-2222-3333-444444444445"
57+
},
58+
{
59+
"providerId": "OneQBit",
60+
"provisioningState": "Succeeded",
61+
"applicationName": "quantumworkspace1-o1",
62+
"instanceUri": "https://o1.endpoint.com",
63+
"providerSku": "Basic",
64+
"resourceUsageId": "00000000-1111-2222-3333-444444444446"
65+
}
66+
],
67+
"provisioningState": "Succeeded",
68+
"usable": "Yes",
69+
"workspaceKind": "V1",
70+
"storageAccount": "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
71+
"endpointUri": "https://quantumworkspace1.westus.quantum.azure.com",
72+
"apiKeyEnabled": true,
73+
"quotas": {
74+
"standardMinutesLifetime": 500,
75+
"highMinutesLifetime": 50
76+
}
77+
},
78+
"location": "West US",
79+
"tags": {
80+
"department": "MightyMight",
81+
"company": "Contoso"
82+
},
83+
"identity": {
84+
"type": "SystemAssigned",
85+
"principalId": "00000000-1111-2222-3333-444444444444",
86+
"tenantId": "00000000-1111-2222-3333-444444444444"
87+
},
88+
"systemData": {
89+
"createdBy": "user1",
90+
"createdByType": "User",
91+
"createdAt": "2020-01-01T17:18:19.1234567Z",
92+
"lastModifiedBy": "user2",
93+
"lastModifiedByType": "User",
94+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
95+
}
96+
}
97+
},
98+
"201": {
99+
"body": {
100+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/quantumResourcegroup/providers/Microsoft.Quantum/Workspaces/quantumworkspace1",
101+
"name": "quantumworkspace1",
102+
"properties": {
103+
"providers": [
104+
{
105+
"providerId": "Honeywell",
106+
"providerSku": "Basic",
107+
"applicationName": "quantumworkspace1-h1",
108+
"provisioningState": "Launching"
109+
},
110+
{
111+
"providerId": "IonQ",
112+
"provisioningState": "Launching",
113+
"applicationName": "quantumworkspace1-i1",
114+
"providerSku": "Basic"
115+
},
116+
{
117+
"providerId": "OneQBit",
118+
"provisioningState": "Launching",
119+
"applicationName": "quantumworkspace1-o1",
120+
"providerSku": "Basic"
121+
}
122+
],
123+
"provisioningState": "ProviderLaunching",
124+
"usable": "No",
125+
"workspaceKind": "V1",
126+
"apiKeyEnabled": true,
127+
"quotas": {
128+
"standardMinutesLifetime": 500,
129+
"highMinutesLifetime": 50
130+
}
131+
},
132+
"location": "West US",
133+
"tags": {
134+
"department": "MightyMight",
135+
"company": "Contoso"
136+
},
137+
"identity": {
138+
"type": "SystemAssigned",
139+
"principalId": "00000000-1111-2222-3333-444444444444",
140+
"tenantId": "00000000-1111-2222-3333-444444444444"
141+
},
142+
"systemData": {
143+
"createdBy": "user1",
144+
"createdByType": "User",
145+
"createdAt": "2020-01-01T17:18:19.1234567Z",
146+
"lastModifiedBy": "user2",
147+
"lastModifiedByType": "User",
148+
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
149+
}
150+
}
151+
}
152+
}
153+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"operationId": "Workspaces_Delete",
3+
"title": "Workspaces_Delete",
4+
"parameters": {
5+
"workspaceName": "quantumworkspace1",
6+
"resourceGroupName": "quantumResourcegroup",
7+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
8+
"api-version": "2025-11-01-preview"
9+
},
10+
"responses": {
11+
"202": {
12+
"headers": {
13+
"Location": "https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/quantumResourcegroup/providers/Microsoft.Quantum/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-11-13-preview"
14+
},
15+
"description": "Workspace delete request accepted."
16+
},
17+
"204": {
18+
"headers": {
19+
"Location": "https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/quantumResourcegroup/providers/Microsoft.Quantum/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-11-13-preview"
20+
},
21+
"description": "Workspace does not exist."
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)