com.vmware.cis.tagging.tag

The tag service provides operations to create, read, update, delete, and enumerate tags.

create

POST /com/vmware/cis/tagging/tag
POST /com/vmware/cis/tagging/tag?~action=create

Creates a tag. To invoke this operation, you need the create tag privilege on the input category.
Request:
Representations:
{
    "create_spec"{
        "category_id""obj-103",
        "description""string",
        "name""string"
    }
}
<?xml version="1.0" ?>
<ns0:Create-Input xmlns:ns0="http://vmware.com/cis/tagging/tag" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <create_spec>
    <description>string</description>
    <name>string</name>
    <category_id>obj-103</category_id>
  </create_spec>
</ns0:Create-Input>
POST /com/vmware/cis/tagging/tag
?create_spec.description=string
&create_spec.name=string
&create_spec.category_id=obj-103

Parameters:
Name Type Required Description
create_spec
 *
create_spec Yes Specification for the new tag to be created.

Response:
Representations:
{
    "value""obj-103"
}
<?xml version="1.0" ?>
<ns0:Create-Result xmlns:ns0="http://vmware.com/cis/tagging/tag" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <value>obj-103</value>
</ns0:Create-Result>

Parameters:
Name Type Required Description
result ID Yes The identifier of the created tag. Id of type com.vmware.cis.tagging.Tag.

Errors:
Type Description HTTP Status Code
already_exists if the com.vmware.cis.tagging.tag.create_spec.name provided in the create_spec is the name of an already existing tag in the input category. 400
invalid_argument if any of the input information in the create_spec is invalid. 400
not_found if the category for in the given create_spec does not exist in the system. 404
unauthorized if you do not have the privilege to create tag. 403

Copyright © 2014. All Rights Reserved.