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

Republish Version

Description

Submit image republish request. This can also be used to expand image to new provider instances. This operation occurs in background.

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
imageId Required

imageId


string
versionId Required

versionId


Request Body

Request Body

VersionRepublishCreateTO of mimetype application/json Required

versionRepublishCreateTO

{
	"additionalReplicas": [
		{
			"providerInstanceId": "string"
		}
	],
	"orgId": "string"
}
array of ReplicasTO
additionalReplicas Optional

Additional ReplicasTO of the image. Optional and is used to expand image to new provider instances.


string
orgId Optional

Org ID

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

202 Accepted

Returns VersionPublishTO of type application/json

Successfully accepted Image republish request

{
    "description": "Test version",
    "timeZone": "America/Los Angeles(UTC-08:00)",
    "versionId": "0123456789",
    "versionName": "1.0, 1.1.1",
    "versionStatus": "AVAILABLE"
}
string
companyName Optional

Company name of the tenant


string
description Optional

Description for this version


options Optional

string
orgId Optional

Org ID that the published image belongs to


array of ReplicasTO
replicas Optional

ReplicasTO of the image


string
timeZone Optional

TimeZone that will be default for desktops created with this image


string
versionId Optional

Id of the version that is being published


string
versionName Optional

Version name.


string
versionStatus Optional

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

Possible values are: AVAILABLEDELETINGDISABLEDFAILEDIMPORT_COMPLETEIMPORT_IN_PROGRESSPARTIALLY_AVAILABLEPENDINGPUBLISH_IN_PROGRESSREPLICATION_IN_PROGRESS

Errors

Errors

400

Bad request


401

Unauthorized


403

Forbidden


404

Not Found


409

Conflict


424

Failed Dependency for Republish


500

Failed to submit Image republish request

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"additionalReplicas":[{"providerInstanceId":"string"}],"orgId":"string"}' https://cloud.vmwarehorizon.com/imagemgmt/v1/images/{imageId}/versions/{versionId}/republish
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: versionRepublishCreateTO


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

Was this page helpful?