trevorflanagan 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:

I have updated with the assumed links to master (when the 
https://github.com/jclouds/jclouds-examples/pull/94 is merged)

-- 
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_r224152671

Reply via email to