Location
/api/apps/{appID}/things/VENDOR_THING_ID:{vendorThingID}/topics/{topicID}/acl/{ACLVerb}
This resource represents a verb (permission) that is granted or to be revoked from a subject.
Please read ACL to learn more about the ACL, its verb and subject.
Request Headers (Applies to all methods)
Authorization
header
Required: Yes
GET
/api/apps/{appID}/things/VENDOR_THING_ID:{vendorThingID}/topics/{topicID}/acl/{ACLVerb}
Description
Retrieve the ACL entries for the current verb.
Security
The administrator can always perform this action.
For other users, actors who can perform this action depends on the target resource:
- User scope: the user.
- Group scope: the group owner.
- Thing scope: the thing or a thing owner.
- Bucket: the scope owner.
- Object: the scope owner and the object owner.
- Topic: the scope owner and the topic creator.
Name
Required?
type
Description
Authorization
Yes
string
Authorization header. OAuth2 Bearer token
Name
Required?
type
Description
ACLVerb
Yes
string
The verb
Responses
200
Content-Type application/vnd.kii.ACLVerbRetrievalResponse+json
The ACL entries have been successfully retrieved.
The response is a JSON array of subjects who have the verb granted on
the target resource.
Contents
Name | Type | Description |
---|---|---|
subject | ACLSubject | |
An array of subjects to whom this action is permitted. Each subject is represented by a JSON object with the format `{ "userID": "{PERMITTED USER ID}" }` for the user permission or `{ "groupID": "{PERMITTED GROUP ID}" }` for the group permission. |
404
Content-Type application/vnd.kii.ThingNotFoundException+json
The thing was not found.
Contents
Name | Type | Description |
---|---|---|
errorCode | string | Error code "THING_NOT_FOUND". |
message | string | The error message. |
field | string | The field used for searching the thing. This can be the "thingID" or "vendorThingID" field. |
value | string | The field value used for searching the thing. |
appID | string | The ID of the application. |
404
Content-Type application/vnd.kii.TopicNotFoundException+json
The topic was not found.
Contents
Name | Type | Description |
---|---|---|
errorCode | string | Error code "TOPIC_NOT_FOUND". |
message | string | The error message. |
topicID | string | The ID of the topic that is not found |
objectScope | ObjectScope | The scope of the topic |
appID | string | The ID of the application. |
userID | string | The ID of the user. Only provided for a user-scope bucket. |
groupID | string | The ID of the group. Only provided for a group-scope bucket. |
thingID | string | The ID of the thing. Only provided for a thing-scope bucket. |
type | string | One of "APP", "APP_AND_USER", "APP_AND_GROUP", or "APP_AND_THING". |
401
Content-Type application/vnd.kii.UnauthorizedAccessException+json
Not authorized to read the ACL of the target resource.
Contents
Name | Type | Description |
---|---|---|
errorCode | string | Error code "UNAUTHORIZED". |
message | string | The error message. |
authenticatedAppID | string | The authenticated appID. |
authenticatedPrincipalID | string | The authenticated principal ID (userID or thingID). |