Realtime Cloud Storage

getRole

Retrieves the policies that compose the role.

Sample

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

Parameters

String applicationKey

Public key of the application's license.

String privateKey

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

String role

The name of the role.

GetRoleResponse callback

Function called when the operation completes.

Response

GetRoleResponse(data, error)

Response of the getRole operation.

Role data

The requested role.

Error error

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