REST API - progress

vcenter ovf import session: progress

Used by the client to set the progress of disk upload when the source type is PUSH_SOURCE. Should be called regularly to keep the given export session alive.

Request:

HTTP request

POST https://{server}/rest/com/vmware/vcenter/ovf/import-session/id:{id}?~action=progress

Path Parameters

Name Type Description
Required
id string the import session ID.

Request Body Structure:

{
    "percent"1
}

Request Body Parameters:

Name Type Description
bold = required
percent long upload completion status represented as an integer in the range 0-100.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
404 not_found if the specified session could not be found.
400 invalid_argument if the provided completion status is less than the current progress or more than 100, or the vcenter.ovf.import_session.vcenter.ovf.import_session.createforresourcepool-input.source_type is not PUSH_SOURCE.
400 not_allowed_in_current_state if the specified session is not in the IMPORT_FILE_TRANSFER state.