

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 API 在 Neptune 中標記
<a name="tagging-api"></a>

您可以使用 Neptune API，新增、列出或移除資料庫執行個體的標籤。
+ 若要將標籤新增到 Neptune 資源，請使用 [API_AddTagsToResource.html](API_AddTagsToResource.html) 操作。
+ 若要列出指派給 Neptune 資源的標籤，請使用 [API_ListTagsForResource.html](API_ListTagsForResource.html)。
+ 若要從 Neptune 資源中移除標籤，請使用 [API_RemoveTagsFromResource.html](API_RemoveTagsFromResource.html) 操作。

若要進一步了解如何建構必要的 ARN，請參閱[建構 Neptune 的 ARN](tagging-arns-constructing.md)。

搭配 XML 使用 Neptune API 時，標籤會使用以下結構描述：

```
 1. <Tagging>
 2.     <TagSet>
 3.         <Tag>
 4.             <Key>Project</Key>
 5.             <Value>Trinity</Value>
 6.         </Tag>
 7.         <Tag>
 8.             <Key>User</Key>
 9.             <Value>Jones</Value>
10.         </Tag>
11.     </TagSet>
12. </Tagging>
```

下表列出允許的 XML 標籤及其特性。`Key` 和 `Value` 的值區分大小寫。例如，`project=Trinity` 和 `PROJECT=Trinity` 是兩個不同的標籤。


****  
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/neptune/latest/userguide/tagging-api.html)