POST /com/vmware/cis/tagging/tag |
POST /com/vmware/cis/tagging/tag?~action=create |
{
"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 |
Name | Type | Required | Description |
---|---|---|---|
create_spec* |
create_spec | Yes | Specification for the new tag to be created. |
Name | Type | Required | Description |
---|---|---|---|
result | ID | Yes | The identifier of the created tag. Id of type com.vmware.cis.tagging.Tag. |
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.