Menambahkan tag ke Sumber daya tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:TagResources |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Wilayah. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Nilai valid:
|
CLUSTER、GATEWAY、GOVERNANCEAPPLICATION |
| ResourceId |
array |
No |
ID Sumber daya.
Catatan
Angka pada nama parameter menentukan Indeks ID Instans. Contohnya:
|
|
|
string |
No |
The resource ID. |
mse-cn-7pp2st29t16 hkhon1****@0932f4959f8**** |
|
| Tag |
array<object> |
Yes |
Daftar tag. Anda dapat menentukan hingga 20 tag. |
|
|
object |
No |
A collection of tag information. |
||
| Key |
string |
No |
The tag key. The tag key cannot be an empty string. It can be up to 128 characters in length. The tag key cannot start with `aliyun` or `acs:`. The tag key cannot contain `http://` or `https://`. |
env |
| Value |
string |
No |
The tag value. |
prd |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E0A79810-9396-521C-A09D-E757B3E2BAF4 |
| Message |
string |
The returned message. |
Succ |
| ErrorCode |
string |
The error code. |
mse-100-000 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "E0A79810-9396-521C-A09D-E757B3E2BAF4",
"Message": "Succ",
"ErrorCode": "mse-100-000",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | |
| 400 | InvalidParameter | Parameter error:%s | |
| 500 | InternalError | Console error. Try again later:%s | |
| 403 | NoPermission | You are not authorized to perform this operation:%s | |
| 404 | NotFound | Not found:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.