nacx commented on this pull request.
> + +Dimension Data CloudControl allows for Tags to be applied to assets. There are two parts to the tagging process, first a tag key needs to be created, second the tag key is applied to an asset. + +Create a tag key. We will use this to tag the assets that we create. +{% highlight java %} + String tagKeyId = api.getTagApi().createTagKey("jclouds", "owner of the asset", true, false); +{% endhighlight %} + +Follows is the sample code for applying a Tag to the Server. We use AssetType SERVER. Pass in the tagKeyId and a value that we want to associate, in this case jclouds. +{% highlight java %} + api.getTagApi().applyTags(serverId, "SERVER", Collections.singletonList(TagInfo.create(tagKeyId, "jclouds"))); +{% endhighlight %} + +The full set of AssetTypes are SERVER, NETWORK_DOMAIN, VLAN, CUSTOMER_IMAGE, PUBLIC_IP_BLOCK or ACCOUNT. + +## <a id="examples"></a>Examples: Instead of doing this, I'd just add one line saying that further and more detailed examples can be found in the examples repo under the `dimensiondata` folder. Just one line. Otherwise, are we going to add every example we may add here? Let's just add that note. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/220#discussion_r224345951