Create Category Deprecated
Creates a category. To invoke this operation, you need the create category privilege.
Request
URLURL
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"create_spec": {
"associable_types": [
"string"
],
"cardinality": "SINGLE",
"description": "string",
"name": "string"
}
}
Authentication
Response
Response BodyResponse Body
The identifier of the created category. The result will be an identifier for the resource type: com.vmware.cis.tagging.Category.
{
"value": "string"
}
The identifier of the created category. The result will be an identifier for the resource type: com.vmware.cis.tagging.Category.
Errors
com.vmware.vapi.std.errors.already_exists : if the Category.CreateSpec.name provided in the createSpec is the name of an already existing category. | com.vmware.vapi.std.errors.invalid_argument : if any of the information in the createSpec is invalid.
com.vmware.vapi.std.errors.unauthorized : if you do not have the privilege to create a category.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
cURL Command
Vendor Extensions
x-vmw-doc-new-method: post
x-vmw-doc-new-path: /api/cis/tagging/category
x-vmw-doc-operation: create