[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Set Allowed Origins

Description

Sets allowed origins to the given set of origins.

Request

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/site/settings/cors
Copy

Request Body

Request Body

AllowedOrigins of type(s) application/json Required
This request body class requires all of the following: Page, InlineAllowedOrigins1
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns AllowedOrigins of type(s) application/json;version=36.3
This response body class contains all of the following: Page, InlineAllowedOrigins1

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"associations":[{"associationId":"string","entityId":"string"}],"page":0,"pageCount":0,"pageSize":0,"resultTotal":0,"values":[{"origin":"string"}]}' https://{api_host}/cloudapi/1.0.0/site/settings/cors
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vcloud-event: com/vmware/vcloud/event/cors/allowedOrigins/modify


[{"label":"Latest (v37.2)","version":"latest"},{"version":"v37.1"},{"version":"v37.0"},{"version":"v36.3"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Feedback

Was this page helpful?