[{"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

{
	"createdAt": "string",
	"description": "string",
	"id": "0123456789",
	"lastTriggeredAction": "IMPORT",
	"name": "string",
	"options": {
		"agents": [
			{
				"agentVersion": "string",
				"details": {},
				"name": "string",
				"type": "HAI, NSX, AV, etc"
			}
		],
		"osCustomizations": [
			"DisableWindowsUpdate"
		]
	},
	"orgId": "0123456789",
	"sourceVersionId": "string",
	"state": "PUBLISHED",
	"status": "AVAILABLE",
	"streamId": "0123456789",
	"updatedAt": "string",
	"version": 0,
	"versionHistory": [
		"1.0.0 | 2.0.0"
	]
}
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


string
name Optional

Version name


options Optional

string
orgId Optional

Org ID that owns this record


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

Errors

Errors

400

Bad request - unsupported provider type


401

Unauthorized


403

Forbidden


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?