Menambahkan tag ke cluster PolarDB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:TagResources |
create |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe resource. Atur nilainya menjadi cluster. |
cluster |
| ResourceId |
array |
Yes |
ID cluster target. |
pc-***************** |
|
string |
No |
ID cluster target. Untuk menambahkan tag ke beberapa cluster sekaligus, klik Tambah untuk menentukan beberapa ID cluster. Catatan
Anda dapat menambahkan tag ke maksimum 50 cluster dalam satu waktu. |
pc-***************** |
|
| Tag |
array<object> |
Yes |
Daftar tag. |
|
|
object |
No |
|||
| Key |
string |
No |
Key tag. Untuk menambahkan beberapa tag ke cluster sekaligus, klik Tambah untuk menentukan beberapa key tag. Catatan
Anda dapat menambahkan maksimum 20 pasangan tag dalam satu waktu. |
type |
| Value |
string |
No |
Value tag. Untuk menambahkan beberapa tag ke cluster sekaligus, klik Tambah untuk menentukan beberapa value tag. Catatan
Anda dapat menambahkan maksimum 20 pasangan tag dalam satu waktu. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID request. |
1CB5286F-AF5A-4E09-BFE9-588D4C****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1CB5286F-AF5A-4E09-BFE9-588D4C******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NumberExceed.Tags | The number of tags is exceed , Valid : 20 | |
| 400 | InvalidTagKey.Malformed | The specified parameter TagKey.n is not valid. | |
| 400 | Duplicate.TagKey | The specified parameter Tag.n.Key is duplicated. | |
| 400 | InvalidTagValue.Malformed | The specified parameter Tag.n.Value is not valid. | |
| 400 | InvalidParameter.ResourceId | The specified parameter ResourceId.n is not valid. | |
| 400 | NumberExceed.ResourceIds | The ResourceIds parameter's number is exceed. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.