You can call this operation to publish a service version.
Request headers
This operation uses only common request headers. For more information, see Common parameters.
Request syntax
POST /services/{serviceName}/versions
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
serviceName | String | Path | Yes | service_name |
The name of the service. |
Object | Body | No |
The definition of the version. |
||
description | String | Body | No | test_description |
The description of the service version. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
createdTime | String | 2020-04-08T08:00:15Z |
The time when the service version was created. |
description | String | test_description |
The description of the service version. |
lastModifiedTime | String | 2020-04-08T08:00:15Z |
The last time when the service version was updated. |
versionId | String | 1 |
The version of the service. |
Examples
Sample requests
POST /2016-08-15/services/service_name/versions HTTP/1.1
Sample success responses
JSON
format
HTTP/1.1 200 OK Common response headers { "versionId": "1", "description": "test_description", "createdTime": "2020-04-08T08:00:15Z", "lastModifiedTime": "2020-04-08T08:00:15Z" }