-
Notifications
You must be signed in to change notification settings - Fork 0
api auth entity list
Alban LEROUX edited this page Mar 10, 2012
·
1 revision
Retrieve all entities of user
, if not provided, connected user is used.
Filter with the grant access grant
if grant
is provided.
require admin
or self
grant access
NOTE:
self
grant is not a real grant, it means that a authenticated user can act on its data.
GET http://example.com/api/get/auth.entity.list/json/?grant=write
{
"method" : "auth.entity.list",
"request" :
{
"grant" : "write"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>auth.entity.list</method>
<request>
<grant>write</grant>
</request>
</xml>
{
"status" : "valid",
"response" :
{
"list" :
[
{
"entity" : "fa10c4d7b02a13e27a2ae5a5bbe8130b",
"name" : "LR addon",
"public_key" : "fa10c4d7b02a13e27a2ae5a5bbe8130b"
},
{
"entity" : "8b863651d51f3000226aa9a628df4ee8",
"name" : "Aperture addon",
"public_key" : "8b863651d51f3000226aa9a628df4ee8"
}
]
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<list>
<entity>fa10c4d7b02a13e27a2ae5a5bbe8130b</entity>
<name>LR addon</name>
<public_key>fa10c4d7b02a13e27a2ae5a5bbe8130b</public_key>
</list>
<list>
<entity>8b863651d51f3000226aa9a628df4ee8</entity>
<name>Aperture addon</name>
<public_key>8b863651d51f3000226aa9a628df4ee8</public_key>
</list>
</response>
</xml>
- [grant]: the grant access
-
list: array of entity with:
- entity: entity identifier.
- name: entity name.
- public_key: the entity public key
- private_key: the entity private key (only if the authentication is made from the admin web interface).
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