调用PublishServiceVersion接口发布服务版本。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
POST /services/{serviceName}/versions
请求参数
| 名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|---|
| serviceName | String | Path | 是 | service_name |
服务的名称。 |
| Object | Body | 否 |
版本定义。 |
||
| description | String | Body | 否 | test_description |
服务的版本描述。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| createdTime | String | 2020-04-08T08:00:15Z |
服务版本的创建时间。 |
| description | String | test_description |
服务的版本描述。 |
| lastModifiedTime | String | 2020-04-08T08:00:15Z |
服务的版本上一次被更新的时间。 |
| versionId | String | 1 |
服务的版本号。 |
示例
请求示例
POST /2016-08-15/services/service_name/versions HTTP/1.1
公共请求头
{
"description":"test_description"
}
正常返回示例
JSON 格式
HTTP/1.1 200 OK
公共响应头
{
"versionId": "1",
"description": "test_description",
"createdTime": "2020-04-08T08:00:15Z",
"lastModifiedTime": "2020-04-08T08:00:15Z"
}