Content Library Usages AddSpec

Content Library Usages AddSpec
Content Library Usages AddSpec

The Content Library Usages AddSpec schema defines the information required to add a resource usage on a content library.

This schema was added in vSphere API 9.1.0.0.

JSON Example
{
    "resource_urn": "string"
}
string As uri As uri
resource_urn
Required

A Uniform Resource Name (URN) of the resource that is using the content library.

The URN is a fully qualified, unique string that identifies a specific instance of a resource such as a virtual machine, supervisor, namespace, cluster, etc. This identifier enables the Content Library service to track which resources are using a given content library.

The expected URN format is: <urn-scheme>:<global-namespace>:<resource-type>:<resource-id>, where:

  • urn-scheme specifies the identifier scheme (e.g., urn)
  • global-namespace represents the owning domain (e.g., vmomi)
  • resource-type indicates the type of the resource (e.g., vm, supervisor)
  • resource-id is the unique identifier for the resource (e.g., vm-12)

Example URNs:

  • urn:vmomi:vm:vm-12
  • urn:vmomi:supervisor:sup-56789
  • urn:vmomi:namespace:ns-abcde

This property was added in vSphere API 9.1.0.0.