---
title: Resource Groups
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/typescript)

[IAM](https://developers.cloudflare.com/api/typescript/resources/iam)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Resource Groups

##### [List Resource Groups](https://developers.cloudflare.com/api/typescript/resources/iam/subresources/resource%5Fgroups/methods/list)

client.iam.resourceGroups.list(ResourceGroupListParams { account\_id, id, name } params, RequestOptionsoptions?): SinglePage<[ResourceGroupListResponse](https://developers.cloudflare.com/api/typescript/resources/iam#%28resource%29%20iam.resource%5Fgroups%20%3E%20%28model%29%20resource%5Fgroup%5Flist%5Fresponse%20%3E%20%28schema%29) { id, scope, meta, name } \>

GET/accounts/{account\_id}/iam/resource\_groups

##### [Resource Group Details](https://developers.cloudflare.com/api/typescript/resources/iam/subresources/resource%5Fgroups/methods/get)

client.iam.resourceGroups.get(stringresourceGroupID, ResourceGroupGetParams { account\_id } params, RequestOptionsoptions?): [ResourceGroupGetResponse](https://developers.cloudflare.com/api/typescript/resources/iam#%28resource%29%20iam.resource%5Fgroups%20%3E%20%28model%29%20resource%5Fgroup%5Fget%5Fresponse%20%3E%20%28schema%29) { id, scope, meta, name } 

GET/accounts/{account\_id}/iam/resource\_groups/{resource\_group\_id}

##### [Create Resource Group](https://developers.cloudflare.com/api/typescript/resources/iam/subresources/resource%5Fgroups/methods/create)

client.iam.resourceGroups.create(ResourceGroupCreateParams { account\_id, name, scope } params, RequestOptionsoptions?): [ResourceGroupCreateResponse](https://developers.cloudflare.com/api/typescript/resources/iam#%28resource%29%20iam.resource%5Fgroups%20%3E%20%28model%29%20resource%5Fgroup%5Fcreate%5Fresponse%20%3E%20%28schema%29) { id, scope, meta, name } 

POST/accounts/{account\_id}/iam/resource\_groups

##### [Update Resource Group](https://developers.cloudflare.com/api/typescript/resources/iam/subresources/resource%5Fgroups/methods/update)

client.iam.resourceGroups.update(stringresourceGroupID, ResourceGroupUpdateParams { account\_id, name, scope } params, RequestOptionsoptions?): [ResourceGroupUpdateResponse](https://developers.cloudflare.com/api/typescript/resources/iam#%28resource%29%20iam.resource%5Fgroups%20%3E%20%28model%29%20resource%5Fgroup%5Fupdate%5Fresponse%20%3E%20%28schema%29) { id, scope, meta, name } 

PUT/accounts/{account\_id}/iam/resource\_groups/{resource\_group\_id}

##### [Remove Resource Group](https://developers.cloudflare.com/api/typescript/resources/iam/subresources/resource%5Fgroups/methods/delete)

client.iam.resourceGroups.delete(stringresourceGroupID, ResourceGroupDeleteParams { account\_id } params, RequestOptionsoptions?): [ResourceGroupDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/iam#%28resource%29%20iam.resource%5Fgroups%20%3E%20%28model%29%20resource%5Fgroup%5Fdelete%5Fresponse%20%3E%20%28schema%29) { id } | null

DELETE/accounts/{account\_id}/iam/resource\_groups/{resource\_group\_id}

##### ModelsExpand Collapse 

ResourceGroupListResponse { id, scope, meta, name } 

A group of scoped resources.

id: string

Identifier of the resource group.

scope: Scope { key, objects } 

A scope is a combination of scope objects which provides additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Account ID etc.)

objects: Array<Object\>

A list of scope objects for additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Zone ID etc.)

meta?: Meta { key, value } 

Attributes associated to the resource group.

key?: string

value?: string

name?: string

Name of the resource group.

ResourceGroupGetResponse { id, scope, meta, name } 

A group of scoped resources.

id: string

Identifier of the resource group.

scope: Scope { key, objects } 

A scope is a combination of scope objects which provides additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Account ID etc.)

objects: Array<Object\>

A list of scope objects for additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Zone ID etc.)

meta?: Meta { key, value } 

Attributes associated to the resource group.

key?: string

value?: string

name?: string

Name of the resource group.

ResourceGroupCreateResponse { id, scope, meta, name } 

A group of scoped resources.

id: string

Identifier of the resource group.

scope: Scope { key, objects } 

A scope is a combination of scope objects which provides additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Account ID etc.)

objects: Array<Object\>

A list of scope objects for additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Zone ID etc.)

meta?: Meta { key, value } 

Attributes associated to the resource group.

key?: string

value?: string

name?: string

Name of the resource group.

ResourceGroupUpdateResponse { id, scope, meta, name } 

A group of scoped resources.

id: string

Identifier of the resource group.

scope: Scope { key, objects } 

A scope is a combination of scope objects which provides additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Account ID etc.)

objects: Array<Object\>

A list of scope objects for additional context.

key: string

This is a combination of pre-defined resource name and identifier (like Zone ID etc.)

meta?: Meta { key, value } 

Attributes associated to the resource group.

key?: string

value?: string

name?: string

Name of the resource group.

ResourceGroupDeleteResponse { id } 

id: string

Identifier

maxLength32

minLength32