Lists function instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListInstances |
list |
*All Resource
|
None | None |
Request syntax
GET /2023-03-30/functions/{functionName}/instances HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| functionName |
string |
Yes |
The function name. |
my-func |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The function version or alias. |
LATEST |
| withAllActive |
boolean |
No |
Specifies whether to list all active instances. |
true |
| instanceStatus |
array |
No |
An array of instance statuses. The operation returns only instances whose status is in this array. |
|
|
string |
No |
The instance status. |
||
| startTimeMs |
integer |
No |
The start time of the query range, specified as a UNIX timestamp in milliseconds. |
|
| endTimeMs |
integer |
No |
The end time of the query range, specified as a UNIX timestamp in milliseconds. |
|
| startKey |
string |
No |
The token that specifies where to start the query. It is returned in a truncated response and can be used to retrieve the next page of results. |
|
| limit |
string |
No |
The maximum number of instances to return. |
|
| instanceIds |
array |
No |
A list of instance IDs to return. |
|
|
string |
No |
The instance ID. |
Response elements
|
Element |
Type |
Description |
Example |
| ListInstancesOutput |
The list of function instances. |
Examples
Success response
JSON format
{
"instances": [
{
"instanceId": "1ef6b6ff-7f7b-485e-ab49-501ac681****",
"versionId": "0",
"qualifier": "",
"status": "",
"createdTimeMs": 0,
"destroyedTimeMs": 0,
"resourceType": ""
}
],
"requestId": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.