You need to enable JavaScript to run this app.
导航
DeleteVersions
最近更新时间:2025.01.23 14:19:43首次发布时间:2025.01.23 14:19:43

删除制品版本。

请求说明

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

请求参数

参数名类型是否必选示例值描述
ActionStringDeleteVersion接口名称,当前 API 的名称为DeleteVersion
VersionString2025-01-01接口版本。当前 API 的版本为2025-01-01

Registry

String

artifact-demo

制品仓库实例名称。
可以调用 ListArtifactRegistries 接口,获取制品仓库实例名称。

PackageStringpakcage-demo制品包名称。
NamesArray of String["version5","version10"]需要删除的制品版本号,为空字符串时需要传 “”。

请求示例

POST https://open.volcengineapi.com/?Action=DeleteVersion&Version=2025-01-01
Content-Type: application/json
{
    "Registry": "artifact-demo",
    "Package": "pakcage-demo",
    "Names": ["version5","version10"]
}

返回参数

参数名类型示例值描述
SuccessesArray of Success-删除成功的版本。
FailuresArray of Failure-删除失败的版本。

返回示例

HTTP/1.1: 200 OK
Content-Type: application/json
{
    "ResponseMetadata": {
        "RequestId": "20250101110420****100232280022D31",
        "Action": "DeleteVersion",
        "Version": "2025-01-01",
        "Service": "artifacts",
        "Region": "cn-north-1"
    },
    "Result": {
        "Successes": [
        	{
        		"Name": "version5"
        	}
        ],
        "Failures": [
        	{
        		"Name": "version10",
        		"Reason": "tag version10 not exist"
        	}
        ]
    }
}