Realtime Cloud Storage

listRoles

Retrieves a paginated list of the names of all the roles created by the user’s application.

Sample

curl 'https://storage-backend-prd-useast1.realtime.co/listRoles' -H 'Content-Type: application/json; charset=UTF-8' -d '{"applicationKey":"[YOUR_APP_KEY]", "privateKey":"[YOUR_PVT_KEY]"}'

Parameters

String applicationKey

Public key of the application's license.

String privateKey

Private key of the application's license. For administration use only.

ListRolesResponse callback

Function called when the operation completes.

Response

ListRolesResponse(data, error)

Response of the listRoles operation.

String[] data

The list of the names of the roles created by this application key.

Error error

The attribute that holds the results of the operation if an error occurred.