Commit fd42699e authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Added info about ACLs to the README


Signed-off-by: Kristian Feldsam's avatarKristian Feldsam <feldsam@gmail.com>
parent acb94b85
......@@ -68,6 +68,21 @@ $vms = $response->getIndexedBy('ID', 'VM');
$vm = $vms->get(2403);
```
**Working with ACL rules**
[Understanding ACL Rules](http://docs.opennebula.io/5.12/operation/users_groups_management/chmod.html#understanding-acl-rules)
```
// user readable acl rule
$aclRule = '@131 DATASTORE/%100 USE #0';
// parse rule to hex numbers
list($user, $resource, $rights, $zone) = \One\Acl::parseRule($aclRule);
// use hex in api call
$client->aclAddrule($user, $resource, $rights, $zone);
```
## Development
To contribute bug patches or new features, you can use the github Pull Request model. It is assumed that code and documentation are contributed under the Apache License 2.0.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment