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

Update Entitlement Deprecated

Description

Update an existing entitlement record with new values. The new data must be complete and valid as if it were a new record

Request

Request

URL

URL


put
https://cloud.vmwarehorizon.com/portal/v1/entitlements/{id}
Copy

Path Parameters

Path Parameters

string
id Required

id


Request Body

Request Body

Entitlement of mimetype application/json Required

entitlement

{
    "entitlementType": "DESKTOP",
    "name": "entitlement-123",
    "templateType": "MULTI_SESSION"
}
string
entitlementType Required

Entitlement type

Possible values are: APPLICATIONDESKTOPDESKTOP_APPLICATION


array of Template
templates Required

List of templates


string
templateType Required

Template type - templates added to the entitlement must match this value

Possible values are: DEDICATEDFLOATINGMULTI_SESSIONRDSHWVD


array of Protocol
protocols Required

List of supported desktop protocols


string as ^[a-zA-Z][a-zA-Z0-9\- ]+$
name Required

Entitlement name


array of ApplicationItem
applications Optional

List of applications


array of string
groupIds Optional

List of entitled user groups - requires group ID returned from IAM


map of string
homesiteMappings Optional

Map to store UsersId or GroupId with their preferred homesite Id


string
id Optional

Entitlement ID


string
location Optional

Location that is mapped with Org Id


boolean
enableSSO Optional

Enable SSO on this entitlement.


string
orgId Optional

Org ID that owns this entitlement


powerPolicy Optional

Power policy Spec


string
preferredClientType Optional

Preferred Client Type

Possible values are: BROWSERHORIZON_CLIENT


string
description Optional

Entitlement description


reportedCapacity Optional

boolean
requireHomesite Optional

Flag to specify home site restriction is enabled or not


string
scope Optional

Scope - use first preferred homesite or all preferred home sites

Possible values are: ALL_SITESWITHIN_SITE


string as date-time
createdAt Optional

Time when the entitlement was created


string
connectionAffinity Optional

Connection Affinity - rule to be used while brokering the entitlement

Possible values are: HOME_SITENEAREST_SITE


string as date-time
updatedAt Optional

Time when the entitlement was updated


array of string
userIds Optional

List of entitled users - requires user ID returned from IAM

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns Entitlement of type */*

Entitlement updated

{
    "connectionAffinity": "NEAREST_SITE",
    "description": "entitlement description",
    "entitlementType": "DESKTOP",
    "groupIds": [
        "group-id-1",
        "group-id-2"
    ],
    "homesiteMappings": {
        "group-id-1": "site-id-2",
        "user-id-1": "site-id-1"
    },
    "id": "ent-id-12345",
    "location": "US",
    "name": "entitlement-123",
    "orgId": "0123456789",
    "preferredClientType": "HORIZON_CLIENT",
    "requireHomesite": true,
    "scope": "ALL_SITES",
    "templateType": "MULTI_SESSION",
    "userIds": [
        "user-id-1",
        "user-id-2"
    ]
}
string
entitlementType Required

Entitlement type

Possible values are: APPLICATIONDESKTOPDESKTOP_APPLICATION


array of Template
templates Required

List of templates


string
templateType Required

Template type - templates added to the entitlement must match this value

Possible values are: DEDICATEDFLOATINGMULTI_SESSIONRDSHWVD


array of Protocol
protocols Required

List of supported desktop protocols


string as ^[a-zA-Z][a-zA-Z0-9\- ]+$
name Required

Entitlement name


array of ApplicationItem
applications Optional

List of applications


array of string
groupIds Optional

List of entitled user groups - requires group ID returned from IAM


map of string
homesiteMappings Optional

Map to store UsersId or GroupId with their preferred homesite Id


string
id Optional

Entitlement ID


string
location Optional

Location that is mapped with Org Id


boolean
enableSSO Optional

Enable SSO on this entitlement.


string
orgId Optional

Org ID that owns this entitlement


powerPolicy Optional

Power policy Spec


string
preferredClientType Optional

Preferred Client Type

Possible values are: BROWSERHORIZON_CLIENT


string
description Optional

Entitlement description


reportedCapacity Optional

boolean
requireHomesite Optional

Flag to specify home site restriction is enabled or not


string
scope Optional

Scope - use first preferred homesite or all preferred home sites

Possible values are: ALL_SITESWITHIN_SITE


string as date-time
createdAt Optional

Time when the entitlement was created


string
connectionAffinity Optional

Connection Affinity - rule to be used while brokering the entitlement

Possible values are: HOME_SITENEAREST_SITE


string as date-time
updatedAt Optional

Time when the entitlement was updated


array of string
userIds Optional

List of entitled users - requires user ID returned from IAM


201 Created

Created

Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


404

Not found


412

Precondition Failed

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"connectionAffinity":"NEAREST_SITE","description":"entitlement description","entitlementType":"DESKTOP","groupIds":["group-id-1","group-id-2"],"homesiteMappings":{"group-id-1":"site-id-2","user-id-1":"site-id-1"},"id":"ent-id-12345","location":"US","name":"entitlement-123","orgId":"0123456789","preferredClientType":"HORIZON_CLIENT","requireHomesite":true,"scope":"ALL_SITES","templateType":"MULTI_SESSION","userIds":["user-id-1","user-id-2"]}' https://cloud.vmwarehorizon.com/portal/v1/entitlements/{id}
Vendor Extensions

Vendor Extensions

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


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

Was this page helpful?