All Products
Search
Document Center

Function Compute:PublishServiceVersion

Last Updated:Aug 21, 2025

You can call this operation to publish a service version.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample codes.

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" }