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

Create

Description

Creates a site

Request

Request

URL

URL


post
https://cloud.vmwarehorizon.com/portal/v1/sites
Copy

Request Body

Request Body

SiteRequest of mimetype application/json Required

siteRequest

{
    "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

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns Site of type */*
{
    "description": "Site-desc",
    "id": "site-id-12345",
    "location": "US",
    "name": "site1",
    "orgId": "org-id-12345"
}
array of Edge
edges Required

List of edges


string as date-time
createdAt Optional

Time when site was created


string
description Optional

Site description


string
geoGraphicLocation Optional

Possible values are: APJEUUKUS


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

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


412

Precondition Failed

Code Samples

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/v1/sites
Vendor Extensions

Vendor Extensions

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


Feedback

Was this page helpful?