Workspaces - List Keys
列出與此工作區相關聯的所有索引鍵。 這包括儲存體帳戶的金鑰、應用程式深入解析和容器登錄的密碼
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys?api-version=2025-09-01
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
|
subscription
|
path | True |
string minLength: 1 |
目標訂用帳戶的標識碼。 |
|
workspace
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ |
Azure Machine Learning 工作區的名稱。 |
|
api-version
|
query | True |
string minLength: 1 |
用於此作業的 API 版本。 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
請求成功;該請求格式良好,並得到妥善處理。 |
|
| Other Status Codes |
描述作業失敗原因的錯誤回應 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
| 名稱 | Description |
|---|---|
| user_impersonation | 模擬您的用戶帳戶 |
範例
List Workspace Keys
範例要求
POST https://management.azure.com/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/listKeys?api-version=2025-09-01
範例回覆
{
"userStorageKey": null,
"userStorageResourceId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ragargeastus2euap/providers/Microsoft.Storage/storageAccounts/testdemoworkazashomr",
"appInsightsInstrumentationKey": null,
"containerRegistryCredentials": {
"location": null,
"username": "testdemoworkjmjmeykp",
"passwords": [
{
"name": "password",
"value": "<value>"
},
{
"name": "password2",
"value": "0KARRQoQHSUq1yViPWg7YFernOS=Ic/t"
}
]
},
"notebookAccessKeys": {
"primaryAccessKey": null,
"secondaryAccessKey": null
}
}
定義
| 名稱 | Description |
|---|---|
|
Error |
資源管理錯誤其他資訊。 |
|
Error |
錯誤詳細數據。 |
|
Error |
錯誤回應 |
|
List |
|
|
List |
|
| Password | |
|
Registry |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
| 名稱 | 類型 | Description |
|---|---|---|
| info |
object |
其他資訊。 |
| type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
| 名稱 | 類型 | Description |
|---|---|---|
| additionalInfo |
錯誤其他資訊。 |
|
| code |
string |
錯誤碼。 |
| details |
錯誤詳細數據。 |
|
| message |
string |
錯誤訊息。 |
| target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
| 名稱 | 類型 | Description |
|---|---|---|
| error |
error 物件。 |
ListNotebookKeysResult
| 名稱 | 類型 | Description |
|---|---|---|
| primaryAccessKey |
string |
|
| secondaryAccessKey |
string |
ListWorkspaceKeysResult
| 名稱 | 類型 | Description |
|---|---|---|
| appInsightsInstrumentationKey |
string |
|
| containerRegistryCredentials | ||
| notebookAccessKeys | ||
| userStorageKey |
string |
|
| userStorageResourceId |
string |
Password
| 名稱 | 類型 | Description |
|---|---|---|
| name |
string |
|
| value |
string |
RegistryListCredentialsResult
| 名稱 | 類型 | Description |
|---|---|---|
| location |
string |
|
| passwords |
Password[] |
|
| username |
string |