5.5

Table Of Contents
Object Identifier, Type, and Reference
These attributes are common to all object representations.
id
The object identifier, expressed in URN format. The value of the id attribute
uniquely identifies the object, persists for the life of the object, and is never
reused. The id attribute value is intended to provide a context-free identifier
that can be used with the vCloud API entityResolver (see “Retrieve an
Object as an Entity,” on page 362).
type
The object type, specified as a MIME content type.
href
An object reference, expressed in URL format. Because this URL includes the
object identifier portion of the id attribute value, it uniquely identifies the
object, persists for the life of the object, and is never reused. The value of the
href attribute is a reference to a view of the object, and can be used to access
a representation of the object that is valid in a particular context. Although
URLs have a well-known syntax and a well-understood interpretation, a
client should treat each href as an opaque string. The rules that govern how
the server constructs href strings might change in future releases.
Object Creation Status
Objects such as VAppTemplate, VApp, and Vm, that extend the ResourceEntity type have a status attribute
whose value indicates the state of the object. In this table, YES indicates that a status value is allowed for the
object listed in the column header. The status value for a VAppTemplate or VApp, which contain Vm objects
that each have a status attribute of their own, is computed from the status of the contained objects. When
returned in an XML representation, status has a numeric value. When returned by the query service, it has
a string value.
Table 124. status Attribute Values for VAppTemplate, VApp, Vm, and Media Objects
Num
eric
Valu
e String Value Description
vAppTem
plate vApp Vm Media
-1 FAILED_CREATIO
N
The object could not be created. YES YES YES YES
0 UNRESOLVED The object is unresolved. YES YES YES YES
1 RESOLVED The object is resolved. YES YES YES YES
2 DEPLOYED The object is deployed. No No No No
3 SUSPENDED The object is suspended. No YES YES No
4 POWERED_ON The object is powered on. No YES YES No
5 WAITING_FOR_IN
PUT
The object is waiting for user
input.
No YES YES No
6 UNKNOWN The object is in an unknown
state.
YES YES YES No
7 UNRECOGNIZED The object is in an
unrecognized state.
YES YES YES No
8 POWERED_OFF The object is resolved and
powered off.
YES YES YES No
9 INCONSISTENT_ST
ATE
The object is in an inconsistent
state.
No YES YES No
Chapter 12 XML Representations in the vCloud API
VMware, Inc. 361