Workspaces - List Keys

이 작업 영역과 연결된 모든 키를 Lists. 여기에는 스토리지 계정의 키, 컨테이너 레지스트리의 앱 인사이트 및 암호가 포함됩니다.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys?api-version=2024-04-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
resourceGroupName
path True

string

리소스 그룹의 이름. 이름은 대소문자를 구분하지 않습니다.

subscriptionId
path True

string

대상 구독의 ID입니다.

workspaceName
path True

string

Azure Machine Learning 작업 영역의 이름입니다.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$

api-version
query True

string

이 작업에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

ListWorkspaceKeysResult

요청이 성공했습니다. 요청이 올바르게 구성되고 제대로 수신되었습니다.

Other Status Codes

ErrorResponse

작업이 실패한 이유를 설명하는 오류 응답

보안

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation 사용자 계정 가장

예제

List Workspace Keys

Sample Request

POST https://management.azure.com/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/listKeys?api-version=2024-04-01

Sample Response

{
  "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
  }
}

정의

Name Description
ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

ErrorDetail

오류 세부 정보입니다.

ErrorResponse

오류 응답

ListNotebookKeysResult
ListWorkspaceKeysResult
Password
RegistryListCredentialsResult

ErrorAdditionalInfo

리소스 관리 오류 추가 정보입니다.

Name 형식 Description
info

object

추가 정보입니다.

type

string

추가 정보 유형입니다.

ErrorDetail

오류 세부 정보입니다.

Name 형식 Description
additionalInfo

ErrorAdditionalInfo[]

오류 추가 정보입니다.

code

string

오류 코드입니다.

details

ErrorDetail[]

오류 세부 정보입니다.

message

string

오류 메시지입니다.

target

string

오류 대상입니다.

ErrorResponse

오류 응답

Name 형식 Description
error

ErrorDetail

Error 개체.

ListNotebookKeysResult

Name 형식 Description
primaryAccessKey

string

secondaryAccessKey

string

ListWorkspaceKeysResult

Name 형식 Description
appInsightsInstrumentationKey

string

containerRegistryCredentials

RegistryListCredentialsResult

notebookAccessKeys

ListNotebookKeysResult

userStorageKey

string

userStorageResourceId

string

Password

Name 형식 Description
name

string

value

string

RegistryListCredentialsResult

Name 형식 Description
location

string

passwords

Password[]

username

string