[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen

Get Version

Description

Get version by image id and version id.

Request

Request

URL

URL


get
https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}
Copy

Path Parameters

Path Parameters

string
imageId Required

imageId


string
versionId Required

versionId


Query Parameters

Query Parameters

string
org_id Optional

org_id


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns VersionTO of type application/json

Successfully retrieved version

{
    "id": "0123456789",
    "lastTriggeredAction": "IMPORT",
    "orgId": "0123456789",
    "sourceType": "AZURE_MARKET_PLACE",
    "state": "PUBLISHED",
    "status": "AVAILABLE",
    "streamId": "0123456789",
    "versionHistory": [
        "1.0.0",
        "2.0.0"
    ],
    "versionType": "MAJOR"
}
string as date-time
createdAt Optional

Timestamp of record creation


string
description Optional

Description of this version of the image


string
id Optional

Unique record ID


string
lastTriggeredAction Optional

Indicates the last action performed on the version

Possible values are: CLONEDELETEIMPORTPUBLISHUNPUBLISH


array of MarkerTO
markers Optional

Markers associated with Version


string
name Optional

Version name


options Optional

string
orgId Optional

Org ID that owns this record


string
os Optional

OS name for this version. If this value is null at version level, value from Image can be referred.


string
sourceType Optional

Indicates source type of the version

Possible values are: AKKA_CUSTOM_VMAKKA_MARKET_PLACEAKKA_SIGAZURE_CUSTOM_VMAZURE_MARKET_PLACEAZURE_SIGCOPIED_FROM_VERSIONIMPORTED_VMSUPLOADEDVSPHERE_CATALOG


string
sourceVersionId Optional

Indicates the specific version in the current stream that was used to create this version if any


string
state Optional

Indicates state of the version

Possible values are: NOT_READYPARTIALLY_PUBLISHEDPUBLISHEDUNPUBLISHED


string
status Optional

Indicates the status of the version based on its stage in import or publish workflow

Possible values are: AVAILABLEDELETINGDISABLEDFAILEDIMPORT_COMPLETEIMPORT_IN_PROGRESSPARTIALLY_AVAILABLEPENDINGPUBLISH_IN_PROGRESSREPLICATION_IN_PROGRESS


string
streamId Optional

Stream id that this version belong to.


string as date-time
updatedAt Optional

Timestamp of last record modification


integer as int64
version Optional

Record version (internal)


array of string
versionHistory Optional

Indicates lineage of all versions preceding this version


string
versionType Optional

Indicates version type

Possible values are: MAJORMINORPATCH


versionValidationDetails Optional
Errors

Errors

ErrorResponse
400

Bad request - unsupported provider type


ErrorResponse
401

Unauthorized


ErrorResponse
403

Forbidden


ErrorResponse
404

Version is not found for given imageId and versionId

Code Samples

Code Samples

cURL Command

curl https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}


[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Feedback

Was this page helpful?