5.1

Table Of Contents
Table 12-1. Length Limits on Element and Attribute String Values (Continued)
Object Element or Attribute Name Maximum Length in Characters
VAppTemplate name
128
VAppTemplate Description
256
Vm name
128
Vm ComputerName
15 on Windows, 63 on all other platforms
Catalog name
128
Catalog Description
256
Media name
128
Media Description
256
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 schema 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, requests to all versions of the vCloud API 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.1 and a version 5.1 response is expected:
Accept: application/*+xml;version=5.1
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.
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 21.
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 281.
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
308 VMware, Inc.