You need to enable JavaScript to run this app.
导航
UpgradeComponentStep
最近更新时间:2024.09.27 14:46:38首次发布时间:2024.08.16 14:58:40

升级自定义步骤。该操作不影响使用了历史版本步骤的存量流水线。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com/?Action=UpgradeComponentStep&Version=2023-05-01

请求参数

参数类型是否必选示例值描述
ActionStringUpgradeComponentStep接口名称。当前 API 的名称为 UpgradeComponentStep
VersionString2023-05-01接口版本。当前 API 的版本为 2023-05-01

ComponentStepYaml

String

c3RlcDogdjJjdXN0b21zdGVwCmRpc3BsYXlOYW1lOiDoh6rlrprkuYnmraXpqqR2Mi3mm7TmlrAKaW1hZ2U6IGJ1c3lib3g6bGF0ZXN0CmlucHV0czoKICAtIG5hbWU6IGNvbW1hbmQKICAgIGRpc3BsYXlOYW1lOiDlkb3ku6TmiafooYwKICAgIHR5cGU6IHN0cmluZwogICAgZGVmYXVsdFZhbHVlOiBlY2hvIGhlbGxvIHdvcmxkCiAgICByZXF1aXJlZDogdHJ1ZQogICAgZGVzY3JpcHRpb246IOi+k+WHuuasoui/juWRveS7pAogICAgdWlDb25maWc6CiAgICAgIHR5cGU6IElucHV0CnNjcmlwdDogfAogICQoaW5wdXRzLmNvbW1hbmQpCmR******

自定义步骤 YAML 描述文件的 Base64 字符编码。
自定义步骤 YAML 的详细说明请参见 创建自定义步骤

请求示例

POST https://open.volcengineapi.com/?Action=UpgradeComponentStep&Version=2023-05-01 HTTP/1.1
Content-Type: application/json
{
  "ComponentStepYaml": "c3RlcDogdjJjdXN0b21zdGVwCmRpc3BsYXlOYW1lOiDoh6rlrprkuYnmraXpqqR2Mi3mm7TmlrAKaW1hZ2U6IGJ1c3lib3g6bGF0ZXN0CmlucHV0czoKICAtIG5hbWU6IGNvbW1hbmQKICAgIGRpc3BsYXlOYW1lOiDlkb3ku6TmiafooYwKICAgIHR5cGU6IHN0cmluZwogICAgZGVmYXVsdFZhbHVlOiBlY2hvIGhlbGxvIHdvcmxkCiAgICByZXF1aXJlZDogdHJ1ZQogICAgZGVzY3JpcHRpb246IOi+k+WHuuasoui/juWRveS7pAogICAgdWlDb25maWc6CiAgICAgIHR5cGU6IElucHV0CnNjcmlwdDogfAogICQoaW5wdXRzLmNvbW1hbmQpCmR******",
  "Identifier": "custom@1.0.0/stepname@1.0.2"
}

返回参数

参数类型示例值描述
IdentifierStringcustom@1.0.0/stepname@1.0.3自定义步骤唯一标识符。升级后会返回新版本的 identifier。

返回示例

HTTP/1.1 200 OK
Content-Type: application/json
{
    "ResponseMetadata": {
        "RequestId": "202404071710430739950998FB****",
        "Action": "UpgradeComponentStep",
        "Version": "2023-05-01",
        "Service": "cp",
        "Region": "cn-beijing"
    },
    "Result": {
         "Identifier": "custom@1.0.0/stepname@1.0.3"
    }
}

错误码

当前接口暂无独立错误码,若接口调用返回异常,可参考 公共错误码 进行故障排查。