update_spec
structure describes the updates to be made to an existing category. Use the update operation to modify a category. When you call the operation, specify the category identifier. You obtain the category identifier when you call the create operation. You can also retrieve an identifier by using the list operation.
{
"associable_types": [ "string", "string" ], "cardinality": "SINGLE", "description": "string", "name": "string" }
<?xml version="1.0" ?>
<ns0:UpdateSpec xmlns:ns0="http://vmware.com/cis/tagging/category" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <associable_types-array> <array-item>string</array-item> <array-item>string</array-item> </associable_types-array> <description>string</description> <name>string</name> <cardinality>SINGLE</cardinality> </ns0:UpdateSpec> |
Name | Type | Required | Description |
---|---|---|---|
name | string | No. If unset the name will not be modified. | The display name of the category. |
description | string | No. If unset the description will not be modified. | The description of the category. |
cardinality | com.vmware.cis.tagging.category_model.cardinality | No. If unset the cardinality will not be modified. | The associated cardinality (SINGLE , MULTIPLE ) of the category. |
associable_types | Set<string> | No. If unset the associable types will not be modified. | Object types to which this category's tags can be attached. The set of associable types cannot be updated incrementally. For example, if com.vmware.cis.tagging.category.update_spec.associable_types originally contains {A,B,C} and you want to add D, then you need to pass {A,B,C,D} in your update specification. You also cannot remove any item from this set. For example, if you have {A,B,C}, then you cannot remove say {A} from it. Similarly, if you start with an empty set, then that implies that you can tag any object and hence you cannot later pass say {A}, because that would be restricting the type of objects you want to tag. Thus, associable types can only grow and not shrink. |
Copyright © 2014. All Rights Reserved.