[{"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
DescriptionSets allowed origins to the given set of origins.
Request
URLURL
https://{api_host}/cloudapi/1.0.0/site/settings/cors
Request Body
Request Body
AllowedOrigins
of type(s) application/json
Required
This request body class requires all of the following:
Page, InlineAllowedOrigins1
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
AllowedOrigins
of type(s) application/json;version=37.2
This response body class contains all of the following:
Page, InlineAllowedOrigins1
No error details were provided in the OpenAPI specification.
Code SamplesCode 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
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
Availability
Added in 36.0