[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
Create
DescriptionCreates a site
Request
URLURL
https://cloud.vmwarehorizon.com/portal/v2/sites
Request Body
Request Body
{
"description": "Site-desc",
"id": "site-id-12345",
"name": "site1",
"orgId": "org-id-12345"
}
string
description
Optional
Site description
string
id
Optional
Site Id
string
name
Optional
Site name
string
orgId
Optional
Site OrgId
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
201 Created
Returns
Site
of type */*
{
"description": "Site-desc",
"id": "site-id-12345",
"location": "US",
"name": "site1",
"orgId": "org-id-12345"
}
string as date-time
createdAt
Optional
Time when site was created
string
description
Optional
Site description
string
geoGraphicLocation
Optional
Possible values are: APJ , EU , UK , US
string
id
Optional
Site Id
string
location
Optional
Location that is mapped with Org Id
string
name
Optional
Site name
string
orgId
Optional
Site OrgId
string as date-time
updatedAt
Optional
Time when site was updated
Errors
ErrorResponse
400
Bad Request
ErrorResponse
401
Unauthorized
ErrorResponse
403
Forbidden
ErrorResponse
412
Precondition Failed
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"description":"Site-desc","id":"site-id-12345","name":"site1","orgId":"org-id-12345"}' https://cloud.vmwarehorizon.com/portal/v2/sites
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-codegen-request-body-name: siteRequest
[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen
On This Page
Portal Operations
post
put
post
put
delete
delete
delete
delete
delete
delete
get
get
get
get
put
put
post
post