VMware Cloud Director API - POST-ControlAccess
POST /vApp/{id}/action/controlAccess
- Operation:
- POST /vApp/{id}/action/controlAccess
- Description:
- Update access control information for a vApp.
- Since:
- 0.9
- Input parameters
-
- Consume media type(s):
-
application/vnd.vmware.vcloud.controlAccess+xml
application/vnd.vmware.vcloud.controlAccess+json
- Input type:
- ControlAccessParamsType
- Output parameters
-
ControlAccessParamsType
- Produce media type(s):
-
application/vnd.vmware.vcloud.controlAccess+xml
application/vnd.vmware.vcloud.controlAccess+json
- Output type:
- ControlAccessParamsType
- Examples
-
- Request
-
HTTP 1.1
POST /api/vApp/vapp-df69981f-3582-4df2-8762-2750df34e0d2/action/controlAccess
Headers:
x-vcloud-authorization: rzvVqckvO3xcmcrrH6VZoHswyNR7otBhVqErry4V7yk=
Body:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns6:ControlAccessParams
xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5">
<ns6:IsSharedToEveryone>true</ns6:IsSharedToEveryone>
<ns6:EveryoneAccessLevel>ReadOnly</ns6:EveryoneAccessLevel>
</ns6:ControlAccessParams>
- Response
-
HTTP/1.1 200 OK
Headers:
Content-Length: 388
Content-Type: application/vnd.vmware.vcloud.controlAccess+xml; version=5.5
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?>
<ControlAccessParams
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloud.example.com/api/v1.5/schema/master.xsd">
<IsSharedToEveryone>true</IsSharedToEveryone>
<EveryoneAccessLevel>ReadOnly</EveryoneAccessLevel>
</ControlAccessParams>