Membuat dan menyambungkan tag ke Sumber daya tertentu. Sistem file dan titik akses didukung.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:TagResources |
create |
*FileSystem
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Nilai valid:
|
filesystem |
| ResourceId |
array |
Yes |
ID Sumber daya. Nilai valid: 1 hingga 50. |
03e08484f0 |
|
string |
No |
ID Sumber daya.
|
31a8e4**** |
|
| Tag |
array<object> |
Yes |
Array tag. Panjang array berkisar dari 1 hingga 20. Jika array berisi beberapa objek tag, kunci tag Key harus unik. |
|
|
object |
No |
Objek tag. |
||
| Key |
string |
Yes |
Kunci tag. Batasan:
|
nastest |
| Value |
string |
Yes |
Nilai tag. Batasan:
|
filetest |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. The maximum is 50. | |
| 400 | MissingParameter.ResourceIds | You must specify ResourceIds. | |
| 400 | Duplicate.ResourceId | The request contains duplicated ResourceId. | |
| 400 | NumberExceed.Tags | The maximum number of Tags is exceeded. The maximum is 20. | |
| 400 | Duplicate.TagKey | The Tag.N.Key contains a duplicated key. | |
| 400 | InvalidResourceId.NotFound | The ResourceId does not exist. | |
| 400 | InvalidParameter.TagKey | The specified Tag.n.Key is invalid. | |
| 400 | InvalidParameter.TagValue | The specified Tag.n.Value is invalid. | |
| 400 | CustomTag.NumberExceed | The maximum number of system tags for each resource is 20. | |
| 403 | OperationDenied.KeyValueNotNull | The key value cannot be null. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.