Hi all,
I am using vCloud Director 8.10. I have a lot of catalogs object under to an organization such as windows, linux etc... I can share these catalogs with specific organization via vCloud Director user interface. But, i need to do this using Rest Api. I am following api guide which provided by vmware ( vCloud API Programming Guide for Service Providers 8.10 ) But, it does not work !
I think that there is a bug on vCloud Director rest api about sharing catalog with specific organization. Because, i tried to make this using vRO workflows and PowerCLI but it does not work.
For example ; Api guide says like that ;
Is there anybody who tried this before and is there any way to share this catalog with powercli etc...
Hi all,
I fixed the issue ;
POST URL and parameters is incorret, it should be like that ;
POST https://vCloudUrl/api/catalog/9217d5b1-b545-405b-af08-bb786a5e80e0/action/controlAccess
Content-Type : application/vnd.vmware.vcloud.controlAccess+xml
<?xml version="1.0" encoding="UTF-8"?>
<ControlAccessParams xmlns="http://www.vmware.com/vcloud/v1.5">
<IsSharedToEveryone>false</IsSharedToEveryone>
<AccessSettings>
<AccessSetting>
<Subject href="https://vcloudUrl/api/admin/org/1e3318c6-6d30-41dc-b309-daa6cbd50fa4"/>
<AccessLevel>ReadOnly</AccessLevel>
</AccessSetting>
</AccessSettings>
</ControlAccessParams>
Hi all,
I fixed the issue ;
POST URL and parameters is incorret, it should be like that ;
POST https://vCloudUrl/api/catalog/9217d5b1-b545-405b-af08-bb786a5e80e0/action/controlAccess
Content-Type : application/vnd.vmware.vcloud.controlAccess+xml
<?xml version="1.0" encoding="UTF-8"?>
<ControlAccessParams xmlns="http://www.vmware.com/vcloud/v1.5">
<IsSharedToEveryone>false</IsSharedToEveryone>
<AccessSettings>
<AccessSetting>
<Subject href="https://vcloudUrl/api/admin/org/1e3318c6-6d30-41dc-b309-daa6cbd50fa4"/>
<AccessLevel>ReadOnly</AccessLevel>
</AccessSetting>
</AccessSettings>
</ControlAccessParams>