5.5

Table Of Contents
Table 121. Length Limits on Element and Attribute String Values (Continued)
Object Element or Attribute Name Maximum Length in Characters
VApp name
128
VApp Description
256
VAppTemplate name
128
VAppTemplate Description
256
Vdc name
256
Vdc Description
256
Vm name
128
Vm ComputerName
15 on Windows, 63 on all other platforms
API Versioning
vCloud API schema version information appears in the values of the xsi:schemaLocation and xmlns
attributes in a response document. For example, a response body that used schema version 1.5 would
include the following attributes:
xmlns="http://www.vmware.com/vcloud/v1.5"
xsi:schemaLocation="https://vcloud.example.com/api/v1.5/schema/master.xsd"
To discover the API versions that a server supports, a client can make an unauthenticated GET request to a
well-known URL on the server, as shown in “Example: Versions Request and Response,” on page 43.
NOTE Starting with API version 1.5, all vCloud API requests are processed in the
http://www.vmware.com/vcloud/v1.5 XML namespace. Treatment of version-specific elements and attributes
in requests is controlled by the value of the Accept header. For example, this Accept header specifies that the
request body is presumed to be valid for vCloud API version 5.5 and a version 5.5 response is expected:
Accept: application/*+xml;version=5.5
Requests are validated against the elements and attributes defined in the specified version. Responses are
filtered to remove elements and attributes that are not defined in the specified version. In general, client
requests can access objects defined by any version of the vCloud API that is less than or equal to the version
specified in the Accept header. Exceptions to this rule are mentioned in the vCloud Director Release Notes.
The vCloud API Schema Reference indicates the deprecation status of elements and attributes, and also
indicates when each element or attribute was added to the API. See “About the Schema Reference,” on
page 22.
Extensibility
The vCloud API provides complete programmatic access to the vCloud Director Extension Services facility
described at Chapter 11, “vCloud Director Extension Services,” on page 329.
In addition, there is a more general extensibility mechanism, VCloudExtension, that clients are free to use.
VCloudExtensibleType is an abstract type that all complex types defined in the vCloud API namespace
extend. It can contain an arbitrary number of elements and attributes, and provides a way for you to add
custom attributes and elements to any type.
The VCloudExtension element has an attribute named required that specifies how clients and servers
proceed when they see an unknown extension. All VCloudExtension elements are assumed to require a
server that understands them. The required attribute is optional, but if omitted is assumed to be present
with a value of true. This extensibility mechanism allows new servers to extend the XML representations
native to the vCloud API without requiring existing clients to understand those extensions.
vCloud API Programming Guide
358 VMware, Inc.