Mengkueri semua versi layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListServiceVersions |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/services/{serviceName}/versions HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| serviceName |
string |
Yes |
Nama layanan. |
demo-service |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| limit |
integer |
No |
Jumlah maksimum hasil yang akan dikembalikan. Nilai default: 20. Nilai maksimum: 100. Jumlah konfigurasi yang dikembalikan kurang dari atau sama dengan jumlah yang ditentukan. |
20 |
| nextToken |
string |
No |
Token yang diperlukan untuk mendapatkan hasil lebih lanjut. Jika jumlah hasil melebihi batas, parameter nextToken akan dikembalikan. Anda dapat menyertakan parameter ini dalam panggilan berikutnya untuk mendapatkan hasil lebih lanjut. Anda tidak perlu menyediakan parameter ini pada panggilan pertama. |
8bj81uI8n**** |
| startKey |
string |
No |
Posisi awal daftar. Hasil diurutkan berdasarkan nomor versi. |
nextservice |
| direction |
string |
No |
Urutan pengurutan versi yang dikembalikan. Nilai valid:
|
BACKWARD |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat fungsi dipanggil. Nilai dalam format 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 untuk API Function Compute. |
rid281s****** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| direction |
string |
The order in which the returned versions are sorted. Valid values:
|
BACKWARD |
| nextToken |
string |
The token required to obtain more results. If the number of layers exceeds the limit, the nextToken parameter is returned. You can include the parameter in subsequent calls to obtain more results. You do not need to provide this parameter in the first call. |
eJhojW7N**** |
| versions |
array<object> |
The versions. |
|
|
object |
The information about the version. |
||
| createdTime |
string |
The time when the service version was created. |
2020-03-16T06:23:50Z |
| description |
string |
The description of the service version. |
test_description |
| lastModifiedTime |
string |
The last time when the service version was updated. |
2020-07-15T06:12:31Z |
| versionId |
string |
The version of the service. |
1 |
Contoh
Respons sukses
JSONformat
{
"direction": "BACKWARD",
"nextToken": "eJhojW7N****",
"versions": [
{
"createdTime": "2020-03-16T06:23:50Z",
"description": "test_description",
"lastModifiedTime": "2020-07-15T06:12:31Z",
"versionId": "1"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.