Creating tagging categories in vCenter 7.0 U1 for associable types requires namespace URI to be added
search cancel

Creating tagging categories in vCenter 7.0 U1 for associable types requires namespace URI to be added

book

Article ID: 336089

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

From tagging view, associable types consists of namespace URI and local def. Before vCenter version 7.0 u1 if you pass only local part while creating category, without the namespace, vCenter would automatically prepend the namespace. 

The following request body is valid from 6.7 u3 to 7.0 u1

{
"create_spec": {
"associable_types": [
"ClusterComputeResource",
],
"cardinality": "SINGLE",
"description": "example category description",
"name": "cat-name"
}
}


From vCenter 7.0 U1 onwards, you have to add the namespace uri to associable type. When you try to retrieve the categories created without namespace, you see the exception Illegal associableType due to validation at retrieval phase.

The urn:vim25: prefix is required when creating categories.

Environment

VMware vCenter Server 7.0.x

Cause

This issue is caused by an exception for Illegal associableType, due to localPart being set but NameSpaceUri being unset

Resolution

This issue is resolved in vCenter Server 7.0 U1 and later