[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Patch Network Preferences
DescriptionThis operation should be used to perform action update which can replaces/overwrites preferences lists associated with provider instance.
Request
URLURL
https://cloud.vmwarehorizon.com/admin/v2/providers/{label}/instances/{id}/preferences/networks
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"
}
]
}
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse 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"
}
]
}
204 No Content
No Content
Operation doesn't return any data structure.
Errors
ErrorResponse
400
Bad Request
ErrorResponse
401
Unauthorized
ErrorResponse
403
Forbidden
ErrorResponse
404
Not Found
ErrorResponse
423
Provider disabled
ErrorResponse
500
Unexpected internal server error
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
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