Queries the list of 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 name of the function. |
my-func |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| qualifier |
string |
No |
The version or alias of the function. |
LATEST |
| withAllActive |
boolean |
No |
Specifies whether to list all instances. Valid values: true, false. |
true |
| instanceStatus |
array |
No |
The list of instance statuses. |
|
|
string |
No |
The instance status. |
Running |
|
| startTimeMs |
integer |
No |
The start time (UNIX timestamp in milliseconds). |
1790812800000 |
| endTimeMs |
integer |
No |
The end time (UNIX timestamp in milliseconds). |
1790899200000 |
| startKey |
string |
No |
The start marker. |
c-01234567-89abcdef-0123456789ab~ |
| limit |
string |
No |
The maximum number of instances to return. |
100 |
| instanceIds |
array |
No |
The list of instance IDs. |
|
|
string |
No |
The instance ID. |
c-01234567-89abcdef-0123456789ab |
Response elements
|
Element |
Type |
Description |
Example |
| ListInstancesOutput |
The list of function instances. |
Examples
Success response
JSON format
{
"instances": [
{
"createdTimeMs": 0,
"destroyedTimeMs": 0,
"instanceId": "1ef6b6ff-7f7b-485e-ab49-501ac681****",
"qualifier": "",
"resourceType": "",
"status": "",
"versionId": "0"
}
],
"requestId": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.