You need to enable JavaScript to run this app.
导航
UpdateRobotAccount
最近更新时间:2025.06.09 14:36:47首次发布时间:2025.06.09 14:36:47
我的收藏
有用
有用
无用
无用

更新机器人账户。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=UpdateRobotAccount&Version=2022-05-12

调试

请求参数

调用该 API 时,除了以下请求参数外,还需传入公共请求参数。公共请求参数说明,请参见 火山引擎公共参数文档

参数类型是否必选示例值描述
ActionStringUpdateRobotAccount接口名称。当前 API 的名称为 UpdateRobotAccount
VersionString2022-05-12接口版本。当前 API 的版本为 2022-05-12
RegistryStringregistrya机器人账号所在实例名。
UsernameStringcrrobot@username机器人账户的名称。
DescriptionStringdescriptionxxxxxx机器人账户的描述。
DisabledBooleantrue是否禁用账户。
DurationLong40生效时间,单位为天,上限为 366。无限期填 -1。
PermissionsArray of Permission[{"Resource":"*","Actions":"CreateRepository"]机器人账号的操作权限。

Permission

参数类型是否必选示例值描述

Actions

Array of String

PushRepository

支持的操作权限:

  • CreateRepository:创建镜像仓库。
  • PullRepository:拉取镜像。
  • PushRepository:推送镜像。
ResourceString*操作的资源对象。

请求示例

POST https://open.volcengineapi.com?Action=UpdateRobotAccount&Version=2022-05-12
{
    "Registry": "registrya",
    "Username": "crrobot@username",
    "Description": "descriptionxxxxxx",
    "Disabled": true,
    "Duration": 40,
    "Permissions": [
        {
            "Actions": [
                "PushRepository"
            ],
            "Resource": "*"
        }
    ]
}

返回参数

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230604110420****100232280022D31",
        "Action": "UpdateRobotAccount",
        "Version": "2022-05-12",
        "Service": "cr",
        "Region": "cn-north-1"
    },
    "Result": {}
}

错误码

本接口无特有错误码,公共错误码请参见 公共错误码