EasyManua.ls Logo

VMware VCLOUD API 1.0 - API - Common Elements; Description; Error

VMware VCLOUD API 1.0 - API
212 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
vCloud API Programming Guide
146 VMware, Inc.
XML Namespace Prefixes in Request and Response Bodies
WhenarequestorresponseincludeselementsfrommultipleXMLnamespaces,eachelementnameisprefixed
withanamespaceidentifier.UnlessallelementsinarequestorresponseoriginateinthesameXML
namespace,theseprefixesarerequiredinrequestbodies,andarealwaysincludedinresponsebodies.
Example 5‐16on
page 78andExample 7‐22onpage 133showhownamespaceprefixesappearinelement
names.
Common Elements
ThevCloud APIdefinesanumberofelementsthatcanbecontainedbytherepresentationsofmanykindsof
objects.
Description
TheDescriptionelementcontainsastringthatdescribestheobject.Thiselementisalwaysoptional.
Error
Errorelementsareusedtotransmitread‐onlyerrorinformationinaresponse.
Content-Type application/vnd.vmware.vcloud.error+xml
Table 8‐6liststheminorerrorcodevaluesdefinedinthisreleaseofthevCloud 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,ortheContent‐typeoftherequest
wasincorrect.

Table of Contents