-
Notifications
You must be signed in to change notification settings - Fork 0
api auth grant list
Alban LEROUX edited this page Oct 3, 2011
·
2 revisions
Retrieve all grants if user is not provided.
Retrieve all user's grant if user is provided.
require admin grant access
GET http://example.com/api/get/auth.grant.list/json/?user=jhon
{
"method" : "auth.grant.list",
"request" : { "user" : "jhon" }
}<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>auth.grant.list</method>
<request>
<user>jhon</user>
</request>
</xml>{
"status" : "valid",
"response" :
{
"grant" :
[
{ "id" : 1, "name" : "read" },
{ "id" : 2, "name" : "write" },
{ "id" : 3, "name" : "delete" },
{ "id" : 4, "name" : "config" },
{ "id" : 5, "name" : "admin" }
]
}
}<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<grant><id>1</id><name>read</name></grant>
<grant><id>2</id><name>write</name></grant>
<grant><id>3</id><name>delete</name></grant>
<grant><id>4</id><name>config</name></grant>
<grant><id>4</id><name>admin</name></grant>
</response>
</xml>- [user]: the user name
-
grant: array of grant with
idfor grant id andnamefor grant name.
auth.config.get
auth.config.set
auth.request
auth.token
auth.refresh
auth.destroy
auth.user.add
auth.user.set
auth.user.del
auth.user.get
auth.user.list
auth.entity.add
auth.entity.set
auth.entity.del
auth.entity.get
auth.entity.list
auth.grant.add
auth.grant.set
auth.grant.del
auth.grant.get
auth.grant.list