PHP Client for Cloudflare API
Iam

Resource Groups

Resource Groups endpoint reference.

List

List all the resource groups for an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
paramsarrayNo[]Array containing the necessary params, e.g. id, name.
php
$response = $client->iam()->resourceGroups()->list('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference

Create

Create a new Resource Group under the specified account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
valuesarrayYesResource Group values, requires name and scope.
php
$response = $client->iam()->resourceGroups()->create('ACCOUNT_ID', []);
View this operation on the Cloudflare API Reference

Get

Get information about a specific resource group in an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
resourceGroupIdstringYesResource Group identifier.
php
$response = $client->iam()->resourceGroups()->get('ACCOUNT_ID', 'RESOURCE_GROUP_ID');
View this operation on the Cloudflare API Reference

Update

Modify an existing resource group.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
resourceGroupIdstringYesResource Group identifier.
valuesarrayNo[]Resource Group values, e.g. name, scope.
php
$response = $client->iam()->resourceGroups()->update('ACCOUNT_ID', 'RESOURCE_GROUP_ID', []);
View this operation on the Cloudflare API Reference

Delete

Remove a resource group from an account.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
resourceGroupIdstringYesResource Group identifier.
php
$response = $client->iam()->resourceGroups()->delete('ACCOUNT_ID', 'RESOURCE_GROUP_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026