Menambahkan tag ke resource.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fc:TagResource |
create |
*All Resource
|
None | None |
Sintaks permintaan
POST /2021-04-06/tag HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Detail tag. |
acs:fc:cn-shanghai:188077086902****:services/demo |
| resourceArn |
string |
Yes |
The ARN of the resource. Catatan
You can use the value of this parameter to query the information about the resource, such as the account, service, and region information of the resource. You can manage tags only for services for top level resources. |
acs:fc:cn-shanghai:188077086902****:services/demo |
| tags |
object |
Yes |
The tag dictionary. |
{"k1":"v1"} |
|
string |
No |
The tag dictionary. A tag consists of the following parameters:
Tag keys and tag values are case-sensitive. If you specify multiple tags, the system adds all the tags to the specified resources. Each tag key on a resource can have only one tag value. If you attempt to add a tag that has the same key as an existing tag, the value of the existing tag is overwritten.
|
{"k1":"v1" , "k2":"v2"} |
|
| X-Fc-Account-Id |
string |
No |
ID akun Alibaba Cloud Anda. |
188077086902**** |
| X-Fc-Date |
string |
No |
Waktu saat fungsi dipanggil. Format: EEE,d MMM yyyy HH:mm:ss GMT. |
Wed, 11 May 2022 09:00:00 GMT |
| X-Fc-Trace-Id |
string |
No |
ID permintaan kustom. |
my-test-trace-id |
Elemen respons
|
Element |
Type |
Description |
Example |
Tidak ada yang didefinisikan.
Contoh
Respons sukses
JSONformat
{}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.