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

Get Versions

Description

Get versions by image id.

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
imageId Required

imageId


Query Parameters

Query Parameters

string
org_id Optional

org_id


string
page Optional

Page number to retrieve.


string
search Optional

Search Criteria. Please see model definition for list of searchable fields.

search example
"providerInstanceId $eq provider-instance-id-1"

string
size Optional

Size of each page.


array of string
sort Optional

Ascending/Descending. Format is property,{asc|desc} and default is ascending.

Parameter Serialization Style: form Explode:true

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns PageVersionTO of type application/json

Successfully retrieved versions

{
	"content": [
		{
			"createdAt": "string",
			"description": "string",
			"id": "0123456789",
			"lastTriggeredAction": "IMPORT",
			"markers": [
				{
					"createdAt": "string",
					"errorCode": "UPDATES_FAILED",
					"errorDetails": "string",
					"errorDetailsParameters": {
						"key": "string"
					},
					"id": "0123456789",
					"imageId": "0123456789",
					"name": "HRLite,HRPro",
					"nextVersionId": "0123456789",
					"orgId": "0123456789",
					"status": "IN_PROGRESS",
					"templateCount": 0,
					"updatedAt": "string",
					"versionId": "0123456789"
				}
			],
			"name": "string",
			"options": {
				"agents": [
					{
						"agentVersion": "string",
						"details": {},
						"name": "string",
						"type": "HAI, NSX, AV, etc"
					}
				],
				"osCustomizations": [
					"DisableWindowsUpdate"
				],
				"publishWithResiliency": false,
				"validateImage": false
			},
			"orgId": "0123456789",
			"os": "string",
			"sourceType": "AZURE_MARKET_PLACE",
			"sourceVersionId": "string",
			"state": "PUBLISHED",
			"status": "AVAILABLE",
			"streamId": "0123456789",
			"updatedAt": "string",
			"version": 0,
			"versionHistory": [
				"1.0.0 | 2.0.0"
			],
			"versionType": "MAJOR",
			"versionValidationDetails": {
				"details": {},
				"errorDetails": "string",
				"errorDetailsParameters": {
					"key": "string"
				},
				"onDemandValidation": false,
				"studioTemplateId": "string",
				"studioTemplateName": "string",
				"studioTemplateStatus": "string",
				"validationStatus": "FAILED"
			}
		}
	],
	"empty": false,
	"first": false,
	"last": false,
	"number": 0,
	"numberOfElements": 0,
	"pageable": {
		"offset": 0,
		"pageNumber": 0,
		"pageSize": 0,
		"paged": false,
		"sort": {
			"empty": false,
			"sorted": false,
			"unsorted": false
		},
		"unpaged": false
	},
	"size": 0,
	"sort": {
		"empty": false,
		"sorted": false,
		"unsorted": false
	},
	"totalElements": 0,
	"totalPages": 0
}
array of VersionTO
content Optional

boolean
empty Optional

boolean
first Optional

boolean
last Optional

integer as int32
number Optional

integer as int32
numberOfElements Optional

pageable Optional

integer as int32
size Optional

sort Optional

integer as int64
totalElements Optional

integer as int32
totalPages Optional
Errors

Errors

400

Bad request - unsupported provider type


401

Unauthorized


403

Forbidden


404

Versions are not found for requested imageId

Code Samples

Code Samples

cURL Command

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


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

Was this page helpful?