Xml Representations In The Vcloud Api; About Object Representations; Schema - VMware VCLOUD API 1.0 - API Programming Manual

Table of Contents

Advertisement

8
XML Representations in the
vCloud API
The vCloud API represents objects in a vCloud as XML documents in which object properties are encoded as 
elements and attributes with typed values and an explicit object hierarchy defined by an XML schema. This 
chapter provides reference information about how the vCloud API uses XML to represent vCloud objects.
This chapter includes the following topics:
"About Object Representations" on page 141
"Common Datatypes" on page 142
"Common Attributes" on page 143
"Common Elements" on page 146
"API Versioning" on page 147
"Extensibility" on page 148

About Object Representations

Client programs of RESTful Web services must be able to request object representations from the server, parse 
the server's responses to extract the information they contain, and compose requests that, in many cases, are 
based on the information extracted from a response. Developers of such clients must understand the structure 
of each representation that might be part of a request or response, as well as any requirements that the network 
protocol (HTTP) places on client‐server interaction. In this guide, reference information on each object 
representation includes the XML schema of the element that represents the object, the object type (encoded as 
the MIME content type of the request or response), and a prototype of the object reference (a URL).

Schema

Each vCloud API object is defined in an XML schema document. Some objects are defined in their own schema 
documents. Others are defined in the context of the larger schema in which they are used. Still others are 
defined in a common schema document, from which other schemas inherit. This guide presents reference 
information about XML schemas in tabular form, as shown in Table
Table 8-1. Schema Reference Table Columns
Name
Min
Name of an element or 
Minimum number of 
attribute contained. 
this attribute or 
Element names begin 
element required by 
with an uppercase 
the schema.
character. Attribute 
names begin with a 
lowercase character.
VMware, Inc.
Max
Type
Maximum number of 
Type of the attribute or 
this attribute or 
element, either a 
element allowed by the 
primitive XML 
schema. A value of n 
datatype or a complex 
means that the 
type defined by the 
maximum number is 
vCloud API.
unlimited.
8‐1.
Description
Description of the 
attribute or element
8
141

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VCLOUD API 1.0 - API and is the answer not in the manual?

Questions and answers

Table of Contents