Lists the versions of a specified function.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListFunctionVersions |
list |
*All Resource
|
None | None |
Request syntax
GET /2023-03-30/functions/{functionName}/versions 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 |
| nextToken |
string |
No |
The token that marks the start of the next page of results. |
MTIzNCNhYmM= |
| direction |
string |
No |
The order in which to sort the versions. Valid values: BACKWARD and FORWARD. |
BACKWARD |
| limit |
integer |
No |
The number of versions to return. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
| ListVersionsOutput |
The list of function versions. |
Examples
Success response
JSON format
{
"direction": "FORWARD",
"nextToken": "3",
"versions": [
{
"createdTime": "2006-01-02T15:04:05Z07:00",
"description": "my version",
"lastModifiedTime": "2006-01-02T15:04:05Z07:00",
"versionId": "1"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.