Mengkueri semua layanan yang memiliki tag.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:ListTaggedResources |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /2021-04-06/tags HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| nextToken |
string |
No |
Token yang diperlukan untuk mendapatkan hasil lainnya. Jika jumlah lapisan melebihi batas, parameter nextToken akan dikembalikan. Anda dapat menyertakan parameter ini dalam panggilan berikutnya untuk mendapatkan hasil lainnya. Anda tidak perlu menyediakan parameter ini dalam panggilan pertama. |
a-service |
| limit |
integer |
No |
Jumlah maksimum hasil yang akan dikembalikan. Nilai default: 20. Nilai maksimum: 100. Jumlah sumber daya yang dikembalikan kurang dari atau sama dengan jumlah yang ditentukan. |
20 |
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Pengatur 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. |
my-test-trace-id |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| 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. |
a-service |
| resources |
array |
The information about tagged services. |
|
| Resource |
The information about the tagged resource. |
Contoh
Respons sukses
JSONformat
{
"nextToken": "a-service",
"resources": [
{
"resourceArn": "acs:fc:cn-shanghai:188077086902****:services/demo",
"tags": {
"key": "{\"k1\":\"v1\" , \"k2\":\"v2\"}"
}
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.