---
title: Resource Groups
---

[Skip to content](#_top)

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

[IAM](https://developers.cloudflare.com/api/python/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/python/resources/iam/subresources/resource_groups/methods/list)

iam.resource\_groups.list(ResourceGroupListParams\*\*kwargs) -> SyncSinglePage\[[ResourceGroupListResponse](<https://developers.cloudflare.com/api/python/resources/iam#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)>)]

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

##### [Resource Group Details](https://developers.cloudflare.com/api/python/resources/iam/subresources/resource_groups/methods/get)

iam.resource\_groups.get(strresource\_group\_id, ResourceGroupGetParams\*\*kwargs) -> [ResourceGroupGetResponse](<https://developers.cloudflare.com/api/python/resources/iam#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)>)

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

##### [Create Resource Group](https://developers.cloudflare.com/api/python/resources/iam/subresources/resource_groups/methods/create)

iam.resource\_groups.create(ResourceGroupCreateParams\*\*kwargs) -> [ResourceGroupCreateResponse](<https://developers.cloudflare.com/api/python/resources/iam#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)>)

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

##### [Update Resource Group](https://developers.cloudflare.com/api/python/resources/iam/subresources/resource_groups/methods/update)

iam.resource\_groups.update(strresource\_group\_id, ResourceGroupUpdateParams\*\*kwargs) -> [ResourceGroupUpdateResponse](<https://developers.cloudflare.com/api/python/resources/iam#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)>)

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

##### [Remove Resource Group](https://developers.cloudflare.com/api/python/resources/iam/subresources/resource_groups/methods/delete)

iam.resource\_groups.delete(strresource\_group\_id, ResourceGroupDeleteParams\*\*kwargs) -> [ResourceGroupDeleteResponse](<https://developers.cloudflare.com/api/python/resources/iam#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class ResourceGroupListResponse: …

A group of scoped resources.

</summary>

id: str

Identifier of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

scope: Scope

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

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20key">Link to this property</a>

<details>

<summary>

objects: List\[ScopeObject]

A list of scope objects for additional context.

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects%20%3E%20(items)%20%3E%20(property)%20key">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

<details>

<summary>

meta: Optional\[Meta]

Attributes associated to the resource group.

</summary>

key: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20key">Link to this property</a>

value: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

name: Optional\[str]

Name of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_list_response%20%3E%20(schema)>)

<details>

<summary>

class ResourceGroupGetResponse: …

A group of scoped resources.

</summary>

id: str

Identifier of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

scope: Scope

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

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20key">Link to this property</a>

<details>

<summary>

objects: List\[ScopeObject]

A list of scope objects for additional context.

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects%20%3E%20(items)%20%3E%20(property)%20key">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

<details>

<summary>

meta: Optional\[Meta]

Attributes associated to the resource group.

</summary>

key: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20key">Link to this property</a>

value: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

name: Optional\[str]

Name of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_get_response%20%3E%20(schema)>)

<details>

<summary>

class ResourceGroupCreateResponse: …

A group of scoped resources.

</summary>

id: str

Identifier of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

scope: Scope

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

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20key">Link to this property</a>

<details>

<summary>

objects: List\[ScopeObject]

A list of scope objects for additional context.

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects%20%3E%20(items)%20%3E%20(property)%20key">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

<details>

<summary>

meta: Optional\[Meta]

Attributes associated to the resource group.

</summary>

key: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20key">Link to this property</a>

value: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

name: Optional\[str]

Name of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_create_response%20%3E%20(schema)>)

<details>

<summary>

class ResourceGroupUpdateResponse: …

A group of scoped resources.

</summary>

id: str

Identifier of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

scope: Scope

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

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20key">Link to this property</a>

<details>

<summary>

objects: List\[ScopeObject]

A list of scope objects for additional context.

</summary>

key: str

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

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects%20%3E%20(items)%20%3E%20(property)%20key">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(property)%20objects">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

<details>

<summary>

meta: Optional\[Meta]

Attributes associated to the resource group.

</summary>

key: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20key">Link to this property</a>

value: Optional\[str]

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

name: Optional\[str]

Name of the resource group.

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_update_response%20%3E%20(schema)>)

<details>

<summary>

class ResourceGroupDeleteResponse: …

</summary>

id: str

Identifier

maxLength32

minLength32

<a href="#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_delete_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20iam.resource_groups%20%3E%20(model)%20resource_group_delete_response%20%3E%20(schema)>)