All Products
Search
Document Center

Function Compute:ListInstances

Last Updated:Jun 02, 2023

Queries the available instances of a function.

Operation Description

The maximum number of resources to return. Valid values: [0,1000].

The number of returned resources is less than or equal to the specified number.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /2021-04-06/services/{serviceName}/functions/{functionName}/instances

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringYes

The instances that are queried.

demoService
functionNamestringYes

The version of the service to which the instance belongs. If the instance belongs to the LATEST alias, 0 is returned as the version.

demoFunction
qualifierstringNo

The ID of the instance.

dev
instanceIdsarrayNo

The name of the service.

stringNo

The information about instances.

["1ef6b6ff-7f7b-485e-ab49-501ac681****", "04db0821-c6d2-4c10-970b-93e36f1a****"]
limitintegerNo

The ID of your Alibaba Cloud account.

20
X-Fc-Account-IdstringYes

Queries the available instances of a function.

188077086902****

Response parameters

ParameterTypeDescriptionExample
object

Queries available instances

instancesobject []

210234

Examples

Sample success responses

JSONformat

{
  "instances": [
    {
      "instanceId": "1ef6b6ff-7f7b-485e-ab49-501ac681****",
      "versionId": "1"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-06-15Add Operation