Querying the Version Alias List of a Function
Function
This API is used to query the version alias list of a function.
URI
GET /v2/{project_id}/fgs/functions/{function_urn}/aliases
Table 1 describes the URI parameters.
Parameter | Type | Mandatory | Description |
---|---|---|---|
project_id | String | Yes | Project ID. |
function_urn | String | Yes | Function URN. See Function Model. |
Request
None
Response
Table 2 describes the response parameters.
Parameter | Type | Description |
---|---|---|
name | String | Alias to be obtained. |
version | String | Version corresponding to the alias. |
description | String | Description of the alias. |
additional_version_weights | String | Key-value pair in JSON format to respectively indicate an additional version and a weight. |
last_modified | String | Time when the alias was last modified. |
alias_urn | String | URN of the alias. |
Example
Example request
GET /v2/7aad83af3e8d42e99ac194e8419e2c9b/fgs/functions/urn:fss:xxxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:latest/aliases HTTP/1.1
Example response
The format of the response for a successful request is as follows:
HTTP/1.1 200 OK[{"alias_urn": "urn:fss:xxxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test:!testqq","additional_version_weights":{"1.0":10 },"last_modified": "2018-03-21T10:06:30+08:00","name": "testqq","version": "latest"}]
The format of the response for a failed request is as follows:
HTTP/1.1 404 Not Found{"error_code": "FSS.1051","error_msg": "Not found the function"}
Status Code
See Status Codes.
- Function
- URI
- Request
- Response
- Example
- Status Code