Note: This library is under active development as I expand it to cover Cloudflare API. Consider the public API of this package a little unstable as I work towards a v1.0. See Coverage.

Roles

Whenever you add a new member to your account, you can assign policies to those users and make use of the available roles. Roles can only ever be assigned to their given scope and multiple roles can be assigned to a given policy.

Cloudflare API docs

List

Get all available roles for an account.

php
$response = $client->accounts()->roles()->list('ACCOUNT_ID');

Details

Get information about a specific role for an account.

php
$response = $client->accounts()->roles()->details('ACCOUNT_ID', 'ROLE_ID');
Table of Contents