To better manage your services and functions in Function Compute environments, you can use the version management feature to publish multiple versions of a service and use these versions in development workflows. This topic describes how to publish, view, and delete a version in the Function Compute console.

Publish a version

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select your region.
  3. In the left-side navigation pane, click Service/Function.
  4. Click the target service and choose Versions > Publish New Version.version_release
  5. In the Publish New Version from LATEST dialog box, enter the version description and click OK.
    You can view the published version in the version list. version-list

View a version

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select your region.
  3. In the left-side navigation pane, click Service/Function.
  4. Click the target service and click the Versions tab.

    You can view the versions of the service on the opened tab.

Delete a version

When you delete a version, all the functions and configurations of the version are also deleted. However, the alias that points to the version or triggers associated with the version are retained. We recommend that you unbind the alias that points to the version or triggers associated with the version before deleting the version. After the version is deleted, functions for the version can longer be triggered.

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select your region.
  3. In the left-side navigation pane, click Service/Function.
  4. Click the target service and click the Versions tab.
  5. Find the target version, and click Delete Version in the Actions column.delete-version

References

You can also use the fcli command-line tool to publish, view, and delete versions. For more information, see fcli.