Compute - List Keys
获取与机器学习计算(存储密钥、服务凭据等)相关的机密。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys?api-version=2025-09-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
compute
|
path | True |
string |
Azure 机器学习计算的名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
|
workspace
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ |
Azure 机器学习工作区的名称。 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK | ComputeSecrets: |
成功。 |
| Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
List AKS Compute Keys
示例请求
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/computes/compute123/listKeys?api-version=2025-09-01
示例响应
{
"computeType": "AKS",
"userKubeConfig": "user kube config...",
"adminKubeConfig": "admin kube config...",
"imagePullSecretName": "the image pull secret name"
}
定义
| 名称 | 说明 |
|---|---|
|
Aks |
与基于 AKS 的机器学习计算相关的机密。 |
|
Compute |
计算的类型 |
|
Databricks |
与基于 Databricks 的机器学习计算相关的机密。 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Virtual |
与基于 AKS 的机器学习计算相关的机密。 |
|
Virtual |
虚拟机的管理员凭据 |
AksComputeSecrets
与基于 AKS 的机器学习计算相关的机密。
| 名称 | 类型 | 说明 |
|---|---|---|
| adminKubeConfig |
string |
kubeconfig 文件的内容,可用于连接到 Kubernetes 集群。 |
| computeType |
string:
AKS |
计算的类型 |
| imagePullSecretName |
string |
镜像注册表拉取密钥。 |
| userKubeConfig |
string |
kubeconfig 文件的内容,可用于连接到 Kubernetes 集群。 |
ComputeType
计算的类型
| 值 | 说明 |
|---|---|
| AKS | |
| Kubernetes | |
| AmlCompute | |
| ComputeInstance | |
| DataFactory | |
| VirtualMachine | |
| HDInsight | |
| Databricks | |
| DataLakeAnalytics | |
| SynapseSpark |
DatabricksComputeSecrets
与基于 Databricks 的机器学习计算相关的机密。
| 名称 | 类型 | 说明 |
|---|---|---|
| computeType |
string:
Databricks |
计算的类型 |
| databricksAccessToken |
string |
Databricks 帐户的访问令牌。 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
VirtualMachineSecrets
与基于 AKS 的机器学习计算相关的机密。
| 名称 | 类型 | 说明 |
|---|---|---|
| administratorAccount |
虚拟机的管理员凭据。 |
|
| computeType |
string:
Virtual |
计算的类型 |
VirtualMachineSshCredentials
虚拟机的管理员凭据
| 名称 | 类型 | 说明 |
|---|---|---|
| password |
string |
管理员帐户的密码 |
| privateKeyData |
string |
私钥数据 |
| publicKeyData |
string |
公钥数据 |
| username |
string |
管理员帐户的用户名 |