1.0

Table Of Contents
vCloud API Programming Guide
146 VMware, Inc.
XML Namespace Prefixes in Request and Response Bodies
WhenarequestorresponseincludeselementsfrommultipleXMLnamespaces,eachelementnameisprefixed
withanamespaceidentifier.UnlessallelementsinarequestorresponseoriginateinthesameXML
namespace,theseprefixesarerequiredinrequestbodies,andarealwaysincludedinresponsebodies.
Example 516on
page 78andExample 722onpage 133showhownamespaceprefixesappearinelement
names.
Common Elements
ThevCloud APIdefinesanumberofelementsthatcanbecontainedbytherepresentationsofmanykindsof
objects.
Description
TheDescriptionelementcontainsastringthatdescribestheobject.Thiselementisalwaysoptional.
Error
Errorelementsareusedtotransmitreadonlyerrorinformationinaresponse.
Content-Type application/vnd.vmware.vcloud.error+xml
Table 86liststheminorerrorcodevaluesdefinedinthisreleaseofthevCloud API.
Schema
Name Min Max Type Description
message 1 1 xs:string Messagedescribingtheerror
majorErrorCode 1 1 xs:int MatchestheHTTPstatuscode.See“StatusCodes”onpage 18.
minorErrorCode 1 1 xs:string Errorcodespecifictothefailedoperation
vendorSpecificErrorCode 0 1 xs:string Emptyinthisrelease
stackTrace 0 1 xs:string Stacktraceoftheerror,ifavailable.Thisattributeisreturned
onlytoasystemadministrator.
Table 8-6. Minor Error Codes
Error Code Description of Error
ACCESS_TO_RESOURCE_IS_FORBIDDEN Therequestwasmadebyauserwhohadinsufficientrightstotheobject
oroperation.
BAD_REQUEST TherequestcouldnotbevalidatedorcontainedinvalidXML.
CONFLICT AconflictwasdetectedbetweensectionsofanOVFdescriptor.
EULA_NOT_ACCEPTED AnattempttoinstantiateavAppTemplateoruseavAppTemplateora
Vmin
acompositiondidnotincludeanAllEULAsAcceptedelement
withavalueoftrue.
INTERNAL_SERVER_ERROR Returnedforanyfailurethatcannotbematchedtoanotherminorerror
code.
INVALID_REFERENCE Oneormorereferences(hrefattributevalues)suppliedintherequest
couldnotberesolvedtoanobject.
METHOD_NOT_ALLOWED TheHTTPmethod(GET,PUT,
POST,DELETE)isnotallowedforthe
request.
RESOURCE_NOT_FOUND Oneormorereferences(hrefattributevalues)suppliedintherequest
couldnotberesolvedtoanobject,ortheContenttypeoftherequest
wasincorrect.