All Products
Search
Document Center

Function Compute:ListServiceVersions

Last Updated:Jun 02, 2023

Queries all the versions of a service.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /2021-04-06/services/{serviceName}/versions

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringYes

The token used to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.

demo-service
limitintegerNo

The token used to obtain more results. If the number of resources exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call.

20
nextTokenstringNo

The description of the service version.

8bj81uI8n****
startKeystringNo

The time when the service version was created.

nextservice
directionstringNo

The name of the service.

BACKWARD
X-Fc-Account-IdstringNo

The ID of your Alibaba Cloud account.

188077086902****
X-Fc-DatestringNo

The time when Function Compute API is called. Specify the time in the EEE,d MMM yyyy HH:mm:ss GMT format.

Wed, 11 May 2022 09:00:00 GMT
X-Fc-Trace-IdstringNo

The maximum number of resources to return. Default value: 20. Maximum value: 100. The number of returned resources is less than or equal to the specified number.

rid281s******

Response parameters

ParameterTypeDescriptionExample
object

The list of versions.

directionstring

The information about the version.

BACKWARD
nextTokenstring

$.parameters[9].schema.description

eJhojW7N****
versionsobject []

$.parameters[9].schema.enumValueTitles

createdTimestring

$.parameters[10].schema.enumValueTitles

2020-03-16T06:23:50Z
descriptionstring

Queries all the versions of a service.

test_description
lastModifiedTimestring

Xiaoqi

2020-07-15T06:12:31Z

Examples

Sample success responses

JSONformat

{
  "direction": "BACKWARD",
  "nextToken": "eJhojW7N****",
  "versions": [
    {
      "createdTime": "2020-03-16T06:23:50Z",
      "description": "test_description",
      "lastModifiedTime": "2020-07-15T06:12:31Z",
      "versionId": "1"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id