查询用户信息。
参数名 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetUser | 接口名称。当前 API 的名称为GetUser 。 |
Version | String | 是 | 2025-01-01 | 接口版本。当前 API 的版本为2025-01-01 。 |
Registry | String | 是 | artifacts-demo | 制品仓库实例名称。 |
POST https://open.volcengineapi.com/?Action=GetUser&Version=2025-01-01
Content-Type: application/json
{
"Registry": "artifacts-demo"
}
参数名 | 类型 | 示例值 | 描述 |
---|---|---|---|
Username | String | user@12345 | 登录制品仓库的用户名。 |
Status | String | Inactive | 用户状态,取值:
|
HTTP/1.1: 200 OK
Content-Type: application/json
{
"ResponseMetadata": {
"RequestId": "20250101110420****100232280022D31",
"Action": "GetUser",
"Version": "2025-01-01",
"Service": "artifacts",
"Region": "cn-north-1"
},
"Result": {
"Username": "user@12345",
"Status": "Inactive"
}
}