Queries the information about an alias.
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /2021-04-06/services/{serviceName}/aliases/{aliasName}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
serviceName | string | Yes | The name of the service. | service_name |
aliasName | string | Yes | The name of the alias. | alias_test |
X-Fc-Account-Id | string | No | The ID of your Alibaba Cloud account. | 188077086902**** |
X-Fc-Date | string | No | The time on which the function is invoked. The format of the value is: EEE,d MMM yyyy HH:mm:ss GMT. | Wed, 11 May 2022 09:00:00 GMT |
X-Fc-Trace-Id | string | No | The trace ID of the invocation request of Function Compute. | r4isu4sls**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"additionalVersionWeight": {
"key": 1
},
"aliasName": "alias_test",
"createdTime": "2020-07-27T06:37:29Z",
"description": "test_description",
"lastModifiedTime": "2020-07-27T06:37:29Z",
"versionId": "2",
"resolvePolicy": "Random",
"routePolicy": {
"condition": "AND",
"policyItems": [
{
"type": "Header",
"key": "x-test-uid",
"value": "11111",
"operator": "="
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-08-04 | The response structure of the API operation changes. | |||||||||||||||
| ||||||||||||||||
2021-06-29 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-29 | The input parameters of the API operation change. | |||||||||||||||
| ||||||||||||||||
2021-06-29 | The input parameters of the API operation change. | |||||||||||||||
|