Vault
创建 Vault
创建一个密钥库
cURL
复制
curl --request POST \
--url 'https://dashscope.aliyuncs.com/api/v1/agentstudio/vaults' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "生产环境密钥箱",
"metadata": {
"environment": "production"
}
}
'复制
{
"id": "vlt_xxx",
"type": "vault",
"display_name": "生产环境密钥箱",
"metadata": {
"environment": "production"
},
"archived_at": null,
"created_at": "2026-06-20T10:00:00Z",
"updated_at": "2026-06-20T10:00:00Z"
}