VMware Cloud Director API - POST-CreateAclRule

VMware Cloud Director API - POST-CreateAclRule

POST /admin/extension/service/resourceclassaction/{id}/aclrules

Operation:
POST /admin/extension/service/resourceclassaction/{id}/aclrules
Description:
Registers resource class ACL rule for extension service.
Since:
Input parameters
Newly registered or already existing resource class ACL rule

Consume media type(s):
application/vnd.vmware.admin.aclRule+xml
application/vnd.vmware.admin.aclRule+json
Input type:
AclRuleType
Output parameters
Produce media type(s):
application/vnd.vmware.admin.aclRule+xml
application/vnd.vmware.admin.aclRule+json
Output type:
AclRuleType
Examples
Request
HTTP 1.1
POST /api/admin/extension/service/resourceclassaction/487c49a1-84af-452e-bbfb-2eb57270e5a7/aclrules

Headers:
Content-Length: 506
Content-Type: application/vnd.vmware.admin.aclRule+xml; charset=ISO-8859-1
x-vcloud-authorization: SZMKkKToUBmDWSEeqZYL2yxpCqDiyToj5PYW3TigOrI=

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:AclRule
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    name="Acl for the resource Type Backup and shared Org">
    <vmext:ServiceResourceAccess>
        <vmext:Access>Shared</vmext:Access>
    </vmext:ServiceResourceAccess>
    <vmext:OrganizationAccess>
        <vmext:Access>Shared</vmext:Access>
    </vmext:OrganizationAccess>
    <vmext:PrincipalAccess>
        <vmext:Access>Shared</vmext:Access>
    </vmext:PrincipalAccess>
</vmext:AclRule>
Response
HTTP/1.1 201 Created

Headers:
Content-Length: 1368
Content-Type: application/vnd.vmware.admin.aclrule+xml;version=5.5
Location: https://vcloud.example.com/api/admin/extension/service/aclrule/1dfe41bf-6328-4ac3-9285-9967b61f317b
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><vmext:AclRule
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/admin/extension/service/aclrule/1dfe41bf-6328-4ac3-9285-9967b61f317b"
    id="urn:vcloud:aclRule:1dfe41bf-6328-4ac3-9285-9967b61f317b"
    name="Acl for the resource Type Backup and shared Org"
    type="application/vnd.vmware.admin.aclRule+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://https://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <vcloud:Link
        href="https://vcloud.example.com/api/admin/extension/service/aclrule/1dfe41bf-6328-4ac3-9285-9967b61f317b"
        rel="remove"/>
    <vcloud:Link
        href="https://vcloud.example.com/api/admin/extension/service/resourceclassaction/487c49a1-84af-452e-bbfb-2eb57270e5a7"
        rel="up"
        type="application/vnd.vmware.admin.resourceClassAction+xml"/>
    <vmext:ServiceResourceAccess>
        <vmext:Access>Shared</vmext:Access>
    </vmext:ServiceResourceAccess>
    <vmext:OrganizationAccess>
        <vmext:Access>Shared</vmext:Access>
    </vmext:OrganizationAccess>
    <vmext:PrincipalAccess>
        <vmext:Access>Shared</vmext:Access>
    </vmext:PrincipalAccess>
</vmext:AclRule>