Etiketleri sorgular.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:ListTagResources |
get |
*FileSystem
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
Kaynağın türü. Geçerli değerler:
|
filesystem |
| NextToken |
string |
No |
Sonraki istekte yeni bir sonuç sayfası almak için kullanılan sayfalama belirteci. |
无 |
| ResourceId |
array |
No |
Kaynağın kimliği. Hedef kaynağın kimliği. N için geçerli değerler: 1 ile 50 arası. |
03e08484f0 |
|
string |
No |
Kaynak kimliği.
|
03e08484f0 |
|
| Tag |
array<object> |
No |
Kaynağın etiketleri. Dizi en fazla 20 etiket içerebilir. Dizi birden fazla etiket içeriyorsa, her etiket anahtarı benzersizdir. |
|
|
object |
No |
Etiket. |
||
| Key |
string |
No |
Bir etiketin anahtarı. Sınırlamalar:
|
nastest |
| Value |
string |
No |
Bir etiketin değeri. Sınırlamalar:
|
filetest |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
Bir sayfalama belirteci. Sonraki istekte yeni bir sonuç sayfası almak için kullanılabilir. Bu parametrenin değeri boşsa, mevcut sorgudan sonra başka bir sorgu yapılmaz. |
无 |
| RequestId |
string |
İstek kimliği. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| TagResources |
object |
||
| TagResource |
array<object> |
Kaynakların listesi. |
|
|
object |
|||
| ResourceType |
string |
Kaynak türü. |
filesystem |
| TagValue |
string |
Etiket değeri. |
test |
| ResourceId |
string |
Kaynak kimliği. |
i-2zebd226fxed6h4iadhe |
| TagKey |
string |
Etiket anahtarı. |
test1 |
Examples
Success response
JSON format
{
"NextToken": "None",
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****",
"TagResources": {
"TagResource": [
{
"ResourceType": "filesystem",
"TagValue": "test",
"ResourceId": "i-2zebd226fxed6h4iadhe",
"TagKey": "test1"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.ResourceIdOrTag | Either ResourceId or Tag must be specified. | Either ResourceId or Tag must be specified. |
| 400 | InvalidNextToken | The NextToken is invalid. | The NextToken is invalid. |
| 400 | NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. The maximum is 50. | The maximum number of resource ID is exceeded. The maximum is 50. |
| 400 | MissingParameter.ResourceIds | You must specify ResourceIds. | You must specify ResourceId. |
| 400 | Duplicate.ResourceId | The request contains duplicated ResourceId. | ResourceId cannot be duplicated. |
| 400 | NumberExceed.Tags | The maximum number of Tags is exceeded. The maximum is 20. | The maximum number of Tags is exceeded. The maximum is 20. |
| 400 | Duplicate.TagKey | The Tag.N.Key contains a duplicated key. | The specified TagKey is duplicated. |
| 400 | InvalidResourceId.NotFound | The ResourceId does not exist. | The specified ResourceId does not exist. |
| 400 | InvalidParameter.TagKey | The specified Tag.n.Key is invalid. | The specified TagKey is invalid. |
| 400 | InvalidParameter.TagValue | The specified Tag.n.Value is invalid. | The specified TagValue is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.