com.vmware.vcenter.ovf

parse_issue

The parse_issue structure contains the information about the issue found when parsing an OVF package during deployment or exporting an OVF package including:
  • Parsing and validation error on OVF descriptor (which is an XML document), manifest and certificate files.
  • OVF descriptor generating and device error.
  • Unexpected server error.
Representations:
{
    "category""VALUE_ILLEGAL",
    "column_number"10,
    "file""string",
    "line_number"10,
    "message"{
        "args"[
            "string",
            "string"
        ],
        "default_message""string",
        "id""string"
    }
}
<?xml version="1.0" ?>
<ns0:ParseIssue xmlns:ns0="http://vmware.com/vcenter/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <message>
    <default_message>string</default_message>
    <id>string</id>
    <args-array>
      <array-item>string</array-item>
      <array-item>string</array-item>
    </args-array>
  </message>
  <category>VALUE_ILLEGAL</category>
  <file>string</file>
  <line_number>10</line_number>
  <column_number>10</column_number>
</ns0:ParseIssue>

Attributes:
Name Type Required Description
category
 *
com.vmware.vcenter.ovf.parse_issue.category Yes The category of the parse issue.
The category enumerated type defines the categories of issues that can be found when parsing files inside an OVF package (see com.vmware.vcenter.ovf.parse_issue) including OVF descriptor (which is an XML document), manifest and certificate files, or exporting an OVF package.
Values one of
VALUE_ILLEGAL: Illegal value error. For example, the value is malformed, not a number, or outside of the given range, and so on.
ATTRIBUTE_REQUIRED: Required attribute error. It indicates that a required attribute is missing from an element in the OVF descriptor.
ATTRIBUTE_ILLEGAL: Illegal attribute error. It indicates that an illegal attribute is set for an element in the OVF descriptor. For example, empty disks do not use format, parentRef, and populatedSize attributes, if these attributes are present in an empty disk element then will get this pasrse issue.
ELEMENT_REQUIRED: Required element error. It indicates that a required element is missing from the OVF descriptor.
ELEMENT_ILLEGAL: Illegal element error. It indicates that an element is present in a location which is not allowed, or found multiple elements but only one is allowed at the location in the OVF descriptor.
ELEMENT_UNKNOWN: Unknown element error. It indicates that an element is unsupported when parsing an OVF descriptor.
SECTION_UNKNOWN: Section unknown error. It indicates that a section is unsupported when parsing an OVF descriptor.
SECTION_RESTRICTION: Section restriction error. It indicates that a section appears in place in the OVF descriptor where it is not allowed, a section appears fewer times than is required, or a section appears more times than is allowed.
PARSE_ERROR: OVF package parsing error, including:
  • OVF descriptor parsing errors, for example, syntax errors or schema errors.
  • Manifest file parsing and verification errors.
  • Certificate file parsing and verification errors.

GENERATE_ERROR: OVF descriptor (which is an XML document) generating error, for example, well-formedness errors as well as unexpected processing conditions.
VALIDATION_ERROR: An issue with the manifest and signing.
EXPORT_ERROR: Issue during OVF export, for example, malformed deviceId, controller not found, or file backing for a device not found.
INTERNAL_ERROR: Server encountered an unexpected error which prevented it from fulfilling the request.
file
 *
string Yes The name of the file in which the parse issue was found.
line_number
 *
long Yes The line number of the line in the file (see com.vmware.vcenter.ovf.parse_issue.file) where the parse issue was found (or -1 if not applicable).
column_number
 *
long Yes The position in the line (see com.vmware.vcenter.ovf.parse_issue.line_number) (or -1 if not applicable).
message
 *
localizable_message Yes A localizable message describing the parse issue.

Copyright © 2014. All Rights Reserved.