All Products
Search
Document Center

Publish new version

Last Updated: May 30, 2019

When the LATEST version of the service is stable, you can publish new version from the LATEST version, allowing the new version to serve online invocation requests, and keep developing more features on the LATEST version.

Go back to service page, choose “Publish new version” in “Operations” dropdown menu:pageview

Fill in description in the form, click “ok” to confirm:publishversion

The information displayed on service page is new published version. At this point, the “Version” dropdown menu shows that you are in version 1:v1

Using new published version

Choose function “echo_version_info”, and click “Invoke”:efv1Then check result and log at the bottom. From the log, you can see the qualifier is 1 in runtime, the resolved verison number is also 1:lr1

Using specific version in APIs

By adding delimiter “.” and version id as “qualifier” after service name, you can invoke function of specific version.

  1. POST /services/{serviceName}.{qualifier}/functions/{functionName}/invocations

Following APIs support adding “.{qualifier} after service name to operate version you specify:

Delete version

For versions that are no longer in use, you can remove them on console. Select the version in “Version” dropdown menu, choose “Delete Version” in “Operations” dropdown menu. It is recommended that you remove the aliases and triggers pointing to this version first to ensure that requests will not continue to be sent to this version.

Next:Use an alias