Namespaces_Instances_VMServiceSpec

Namespaces_Instances_VMServiceSpec
Namespaces_Instances_VMServiceSpec

The Instances.VMServiceSpec structure contains the specification required to configure the VM Service specification associated with a namespace.

JSON Example
{
    "content_libraries": [
        "string"
    ],
    "vm_classes": [
        "string"
    ]
}
array of string
content_libraries
Optional

Set of Content Libraries for use by the VM Service. The Content Libraries specified should exist in vSphere inventory. The Content Libraries specified for the VM Image Service, using {CreateSpec#contentLibraries} during Instances.create operation or {UpdateSpec#contentLibraries} during Instances.update operation or {SetSpec#contentLibraries} during Instances.set operation will also be included in this list.

If the same Content Library is present both here and in VM Image Service specification, then:

  • The Content Library is only surfaced to users once.
  • The settings in VM Image Service specification are honored.

This field is optional because it was added in a newer version than its parent node. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.content.Library. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.content.Library.

array of string
vm_classes
Optional

Set of VirtualMachineClasses for use by the VM Service. The class names specified here should exist in vSphere inventory. If this field is empty in an updated specification, all VirtualMachineClasses that are currently associated with the namespace will be disassociated from it. NOTE: Any change in virtual machine classes associated with the namespace will not impact existing VMs.

This field is optional because it was added in a newer version than its parent node. When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.vcenter.namespace_management.VirtualMachineClass.