升级自定义步骤。该操作不影响使用了历史版本步骤的存量流水线。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UpgradeComponentStep | 接口名称。当前 API 的名称为 UpgradeComponentStep 。 |
Version | String | 是 | 2023-05-01 | 接口版本。当前 API 的版本为 2023-05-01 。 |
ComponentStepYaml | String | 是 | c3RlcDogdjJjdXN0b21zdGVwCmRpc3BsYXlOYW1lOiDoh6rlrprkuYnmraXpqqR2Mi3mm7TmlrAKaW1hZ2U6IGJ1c3lib3g6bGF0ZXN0CmlucHV0czoKICAtIG5hbWU6IGNvbW1hbmQKICAgIGRpc3BsYXlOYW1lOiDlkb3ku6TmiafooYwKICAgIHR5cGU6IHN0cmluZwogICAgZGVmYXVsdFZhbHVlOiBlY2hvIGhlbGxvIHdvcmxkCiAgICByZXF1aXJlZDogdHJ1ZQogICAgZGVzY3JpcHRpb246IOi+k+WHuuasoui/juWRveS7pAogICAgdWlDb25maWc6CiAgICAgIHR5cGU6IElucHV0CnNjcmlwdDogfAogICQoaW5wdXRzLmNvbW1hbmQpCmR****** | 自定义步骤 YAML 描述文件的 Base64 字符编码。 |
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" }
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Identifier | String | custom@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" } }
当前接口暂无独立错误码,若接口调用返回异常,可参考 公共错误码 进行故障排查。