Skip to content

Commit e4a5d19

Browse files
committed
add another new endpoint
1 parent 2ab304a commit e4a5d19

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
4+
"resourceGroupName": "testrg123",
5+
"workspaceName": "workspaces123",
6+
"api-version": "2020-09-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"primaryAccessKey": "vBvVhYgAGtUSewVCUv3w95p4/q5Yrsnw",
12+
"secondaryAccessKey": "0KARRQoQHSUq1yViPWg7YFernOS"
13+
}
14+
}
15+
}
16+
}

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/machineLearningServices.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,48 @@
349349
}
350350
}
351351
},
352+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys": {
353+
"get": {
354+
"tags": [
355+
"Workspaces"
356+
],
357+
"description": "Lists notebook keys associated with this workspace. The notebook keys are used for loading notebook components, which a reader should have access to. So make it a Get, not Post call",
358+
"operationId": "Workspaces_ListNotebookKeys",
359+
"x-ms-examples": {
360+
"List Workspace Keys": {
361+
"$ref": "./examples/listWorkspaceNotebookKeys.json"
362+
}
363+
},
364+
"parameters": [
365+
{
366+
"$ref": "#/parameters/APIVersionParameter"
367+
},
368+
{
369+
"$ref": "#/parameters/SubscriptionIdParameter"
370+
},
371+
{
372+
"$ref": "#/parameters/ResourceGroupNameParameter"
373+
},
374+
{
375+
"$ref": "#/parameters/WorkspaceNameParameter"
376+
}
377+
],
378+
"responses": {
379+
"200": {
380+
"description": "The request was successful; the request was well-formed and received properly.",
381+
"schema": {
382+
"$ref": "#/definitions/NotebookListCredentialsResult"
383+
}
384+
},
385+
"default": {
386+
"description": "Error response describing why the operation failed",
387+
"schema": {
388+
"$ref": "#/definitions/MachineLearningServiceError"
389+
}
390+
}
391+
}
392+
}
393+
},
352394
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys": {
353395
"post": {
354396
"tags": [
@@ -2743,6 +2785,17 @@
27432785
"description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.",
27442786
"x-ms-azure-resource": true
27452787
},
2788+
"NotebookListCredentialsResult": {
2789+
"type": "object",
2790+
"properties": {
2791+
"primaryAccessKey": {
2792+
"type": "string"
2793+
},
2794+
"secondaryAccessKey": {
2795+
"type": "string"
2796+
}
2797+
}
2798+
},
27462799
"ListWorkspaceKeysResult": {
27472800
"type": "object",
27482801
"properties": {

0 commit comments

Comments
 (0)