Mengkueri informasi tentang alias.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:GetAlias |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/services/{serviceName}/aliases/{aliasName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
Nama layanan. |
service_name |
| aliasName |
string |
Yes |
Nama alias. |
alias_test |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat fungsi dipanggil. Format nilainya adalah: EEE,d MMM yyyy HH:mm:ss GMT. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
ID jejak permintaan pemanggilan Function Compute. |
r4isu4sls**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The definition of the alias. |
||
| additionalVersionWeight |
object |
The additional version to which the alias points and the weight of the additional version.
|
|
|
number |
The traffic weight. Valid values: 0 to 1. |
1 |
|
| aliasName |
string |
The name of the alias. |
alias_test |
| createdTime |
string |
The time when the alias was created. |
2020-07-27T06:37:29Z |
| description |
string |
The description of the alias. |
test_description |
| lastModifiedTime |
string |
The time when the alias was last modified. |
2020-07-27T06:37:29Z |
| versionId |
string |
The version to which the alias points. |
2 |
| resolvePolicy |
string |
The canary release mode. Valid values:
|
Random |
| routePolicy | RoutePolicy |
The canary release rule. Traffic that meets the canary release rule is routed to the canary release instance. |
Contoh
Respons sukses
JSONformat
{
"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": "="
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.