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

Patch Network Preferences

Description

This operation should be used to perform action update which can replaces/overwrites preferences lists associated with provider instance.

Request

Request

URL

URL


patch
https://cloud.vmwarehorizon.com/admin/v2/providers/{label}/instances/{id}/preferences/networks
Copy

Path Parameters

Path Parameters

string
id Required

ID of provider instance to be updated


string
label Required

Provider label


Query Parameters

Query Parameters

string
org_id Optional

Organization ID: non-super users can only access their own organization


Request Body

Request Body

NetworkPreferenceTO of mimetype application/json Optional

Available Labels: ‘desktop, dmz, management’

{
	"desktop": [
		{
			"data": {},
			"id": "string",
			"infrastructureLinks": {},
			"kind": "string"
		}
	],
	"dmz": [
		{
			"data": {},
			"id": "string",
			"infrastructureLinks": {},
			"kind": "string"
		}
	],
	"management": [
		{
			"data": {},
			"id": "string",
			"infrastructureLinks": {},
			"kind": "string"
		}
	]
}
desktop Optional

Desktop networks preferences


dmz Optional

Dmz networks preferences


management Optional

Management networks preferences

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns NetworkPreferenceTO of type */*

Successfully updated provider instance network preferences

{
	"desktop": [
		{
			"data": {},
			"id": "string",
			"infrastructureLinks": {},
			"kind": "string"
		}
	],
	"dmz": [
		{
			"data": {},
			"id": "string",
			"infrastructureLinks": {},
			"kind": "string"
		}
	],
	"management": [
		{
			"data": {},
			"id": "string",
			"infrastructureLinks": {},
			"kind": "string"
		}
	]
}
desktop Optional

Desktop networks preferences


dmz Optional

Dmz networks preferences


management Optional

Management networks preferences


204 No Content

No Content

Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found


423

Provider disabled


500

Unexpected internal server error

Code Samples

Code Samples

cURL Command

curl -X PATCH -H "Content-Type: application/json" -d '{"desktop":[{"data":{},"id":"string","infrastructureLinks":{},"kind":"string"}],"dmz":[{"data":{},"id":"string","infrastructureLinks":{},"kind":"string"}],"management":[{"data":{},"id":"string","infrastructureLinks":{},"kind":"string"}]}' https://cloud.vmwarehorizon.com/admin/v2/providers/{label}/instances/{id}/preferences/networks
Vendor Extensions

Vendor Extensions

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


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

Was this page helpful?