---
title: Resource Sharing
---

[Skip to content](#_top)

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

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Resource Sharing

#### resource cloudflare\_share

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

<details>

<summary>

recipients: List\[Attributes]

</summary>

Deprecatedaccount\_id?: String

This field has been renamed to <code>recipient_account_id</code>. Both names are accepted during the deprecation period.

Deprecated alias for <code>recipient_account_id</code>. Use <code>recipient_account_id</code> instead. The body field collided with the URL path parameter of the same name, which prevented SDK generators from distinguishing the source account (in the URL) from the recipient account (in the body). Both names will continue to be accepted until 2027-05-26 (see <code>x-sunset</code>).

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20recipients%20%3E%20(attribute)%20account_id">Link to this property</a>

organization\_id?: String

Organization identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20recipients%20%3E%20(attribute)%20organization_id">Link to this property</a>

recipient\_account\_id?: String

The account that will receive the share.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20recipients%20%3E%20(attribute)%20recipient_account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20recipients>)

<details>

<summary>

resources: List\[Attributes]

</summary>

meta: JSON

Resource Metadata.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20meta">Link to this property</a>

resource\_account\_id: String

Account identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_account_id">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_type: String

Resource Type.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources>)

name: String

The name of the share.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

##### computed Expand Collapse

id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

account\_name: String

The display name of an account.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_name>)

associated\_recipient\_count: Int64

The number of recipients in the ‘associated’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20associated_recipient_count>)

associating\_recipient\_count: Int64

The number of recipients in the ‘associating’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20associating_recipient_count>)

created: Time

When the share was created.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

disassociated\_recipient\_count: Int64

The number of recipients in the ‘disassociated’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20disassociated_recipient_count>)

disassociating\_recipient\_count: Int64

The number of recipients in the ‘disassociating’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20disassociating_recipient_count>)

kind: String

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20kind>)

modified: Time

When the share was modified.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

organization\_id: String

Organization identifier.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20organization_id>)

status: String

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

target\_type: String

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20target_type>)

### cloudflare\_share

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_share" "example_share" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "My Shared WAF Managed Rule"
  recipients = [{
    organization_id = "023e105f4ecef8ad9ca31a8372d0c353"
    recipient_account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  }]
  resources = [{
    meta = {

    }
    resource_account_id = "023e105f4ecef8ad9ca31a8372d0c353"
    resource_id = "023e105f4ecef8ad9ca31a8372d0c353"
    resource_type = "custom-ruleset"
  }]
}
```

#### data cloudflare\_share

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

share\_id?: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20share_id>)

include\_recipient\_counts?: Bool

Include recipient counts in the response.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20include_recipient_counts>)

include\_resources?: Bool

Include resources in the response.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20include_resources>)

<details>

<summary>

filter?: Attributes

</summary>

direction?: String

Direction to sort objects.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20direction">Link to this property</a>

kind?: String

Filter shares by kind.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20kind">Link to this property</a>

order?: String

Order shares by values in the given field.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20order">Link to this property</a>

resource\_types?: List\[String]

Filter share resources by resource\_types.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20resource_types">Link to this property</a>

status?: String

Filter shares by status.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20status">Link to this property</a>

tag?: List\[String]

Filter shares by tag. Each value is either <code>key=value</code> (matches shares whose tags contain that key/value pair) or <code>key</code> alone (matches shares that have any value for that key). May be repeated; multiple <code>tag</code> parameters are ANDed together. Maximum 20 <code>tag</code> parameters per request.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20tag">Link to this property</a>

target\_type?: String

Filter shares by target\_type.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20target_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

account\_name: String

The display name of an account.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_name>)

associated\_recipient\_count: Int64

The number of recipients in the ‘associated’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20associated_recipient_count>)

associating\_recipient\_count: Int64

The number of recipients in the ‘associating’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20associating_recipient_count>)

created: Time

When the share was created.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created>)

disassociated\_recipient\_count: Int64

The number of recipients in the ‘disassociated’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20disassociated_recipient_count>)

disassociating\_recipient\_count: Int64

The number of recipients in the ‘disassociating’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20disassociating_recipient_count>)

kind: String

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20kind>)

modified: Time

When the share was modified.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

name: String

The name of the share.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

organization\_id: String

Organization identifier.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20organization_id>)

status: String

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

target\_type: String

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20target_type>)

<details>

<summary>

resources: List\[Attributes]

A list of resources that are part of the share. This field is only included when requested via the ‘include\_resources’ parameter.

</summary>

id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20id">Link to this property</a>

created: Time

When the share was created.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20created">Link to this property</a>

meta: JSON

Resource Metadata.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20meta">Link to this property</a>

modified: Time

When the share was modified.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20modified">Link to this property</a>

resource\_account\_id: String

Account identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_account_id">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_type: String

Resource Type.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_type">Link to this property</a>

resource\_version: Int64

Resource Version.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_version">Link to this property</a>

status: String

Resource Status.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources>)

### cloudflare\_share

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_share" "example_share" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  include_recipient_counts = true
  include_resources = true
}
```

#### data cloudflare\_shares

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

include\_recipient\_counts?: Bool

Include recipient counts in the response.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20include_recipient_counts>)

include\_resources?: Bool

Include resources in the response.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20include_resources>)

kind?: String

Filter shares by kind.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20kind>)

status?: String

Filter shares by status.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20status>)

target\_type?: String

Filter shares by target\_type.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20target_type>)

resource\_types?: List\[String]

Filter share resources by resource\_types.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20resource_types>)

tag?: List\[String]

Filter shares by tag. Each value is either `key=value` (matches shares whose tags contain that key/value pair) or `key` alone (matches shares that have any value for that key). May be repeated; multiple `tag` parameters are ANDed together. Maximum 20 `tag` parameters per request.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20tag>)

direction?: String

Direction to sort objects.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20direction>)

order?: String

Order shares by values in the given field.

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20order>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Share identifier tag.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

account\_id: String

Account identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20account_id">Link to this property</a>

account\_name: String

The display name of an account.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20account_name">Link to this property</a>

created: Time

When the share was created.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created">Link to this property</a>

modified: Time

When the share was modified.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified">Link to this property</a>

name: String

The name of the share.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20name">Link to this property</a>

organization\_id: String

Organization identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20organization_id">Link to this property</a>

status: String

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20status">Link to this property</a>

target\_type: String

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20target_type">Link to this property</a>

associated\_recipient\_count: Int64

The number of recipients in the ‘associated’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20associated_recipient_count">Link to this property</a>

associating\_recipient\_count: Int64

The number of recipients in the ‘associating’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20associating_recipient_count">Link to this property</a>

disassociated\_recipient\_count: Int64

The number of recipients in the ‘disassociated’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20disassociated_recipient_count">Link to this property</a>

disassociating\_recipient\_count: Int64

The number of recipients in the ‘disassociating’ state. This field is only included when requested via the ‘include\_recipient\_counts’ parameter.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20disassociating_recipient_count">Link to this property</a>

kind: String

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20kind">Link to this property</a>

<details>

<summary>

resources: List\[Attributes]

A list of resources that are part of the share. This field is only included when requested via the ‘include\_resources’ parameter.

</summary>

id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20id">Link to this property</a>

created: Time

When the share was created.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20created">Link to this property</a>

meta: JSON

Resource Metadata.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20meta">Link to this property</a>

modified: Time

When the share was modified.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20modified">Link to this property</a>

resource\_account\_id: String

Account identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_account_id">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_type: String

Resource Type.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_type">Link to this property</a>

resource\_version: Int64

Resource Version.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_version">Link to this property</a>

status: String

Resource Status.

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20status">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_shares

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_shares" "example_shares" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  include_recipient_counts = true
  include_resources = true
  kind = "sent"
  resource_types = ["custom-ruleset"]
  status = "active"
  tag = ["env=production"]
  target_type = "account"
}
```

#### Resource SharingRecipients

#### resource cloudflare\_share\_recipient

##### required Expand Collapse

share\_id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20share_id>)

Deprecatedaccount\_id: String

This field has been renamed to `recipient_account_id`. Both names are accepted during the deprecation period.

Deprecated alias for `recipient_account_id`. Use `recipient_account_id` instead. The body field collided with the URL path parameter of the same name, which prevented SDK generators from distinguishing the source account (in the URL) from the recipient account (in the body). Both names will continue to be accepted until 2027-05-26 (see `x-sunset`).

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

organization\_id?: String

Organization identifier.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20organization_id>)

recipient\_account\_id?: String

The account that will receive the share.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20recipient_account_id>)

##### computed Expand Collapse

id: String

Share Recipient identifier tag.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

association\_status: String

The current state of the recipient relative to the share. The `desired_association_status` (not exposed in the response) tracks the target state set by the API; the background reconciliation workflow drives `current_association_status` toward it.

- `associating` — The recipient was recently added; the workflow is pushing shared resources into the recipient account.
- `associated` — Shared resources have been successfully applied to the recipient account.
- `disassociating` — The recipient was removed (via DELETE or PUT replacement); the workflow is removing shared resources from the recipient account.
- `disassociated` — Shared resources have been removed from the recipient account. The recipient record remains in the database.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20association_status>)

created: Time

When the share was created.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

modified: Time

When the share was modified.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

<details>

<summary>

resources: List\[Attributes]

</summary>

error: String

Share Recipient error message.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20error">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_version: Int64

Resource Version.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_version">Link to this property</a>

terminal: Bool

Whether the error is terminal or will be continually retried.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20terminal">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resources>)

### cloudflare\_share\_recipient

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_share_recipient" "example_share_recipient" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  organization_id = "023e105f4ecef8ad9ca31a8372d0c353"
  recipient_account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### data cloudflare\_share\_recipient

##### required Expand Collapse

recipient\_id: String

Share Recipient identifier tag.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20recipient_id>)

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

share\_id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20share_id>)

##### optional Expand Collapse

include\_resources?: Bool

Include resources in the response.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20include_resources>)

##### computed Expand Collapse

id: String

Share Recipient identifier tag.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

association\_status: String

The current state of the recipient relative to the share. The `desired_association_status` (not exposed in the response) tracks the target state set by the API; the background reconciliation workflow drives `current_association_status` toward it.

- `associating` — The recipient was recently added; the workflow is pushing shared resources into the recipient account.
- `associated` — Shared resources have been successfully applied to the recipient account.
- `disassociating` — The recipient was removed (via DELETE or PUT replacement); the workflow is removing shared resources from the recipient account.
- `disassociated` — Shared resources have been removed from the recipient account. The recipient record remains in the database.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20association_status>)

created: Time

When the share was created.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created>)

modified: Time

When the share was modified.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

<details>

<summary>

resources: List\[Attributes]

</summary>

error: String

Share Recipient error message.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20error">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_version: Int64

Resource Version.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_version">Link to this property</a>

terminal: Bool

Whether the error is terminal or will be continually retried.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20terminal">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resources>)

### cloudflare\_share\_recipient

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_share_recipient" "example_share_recipient" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  recipient_id = "3fd85f74b32742f1bff64a85009dda07"
  include_resources = true
}
```

#### data cloudflare\_share\_recipients

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

share\_id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20share_id>)

##### optional Expand Collapse

include\_resources?: Bool

Include resources in the response.

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20include_resources>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Share Recipient identifier tag.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

account\_id: String

Account identifier.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20account_id">Link to this property</a>

association\_status: String

The current state of the recipient relative to the share. The <code>desired_association_status</code> (not exposed in the response) tracks the target state set by the API; the background reconciliation workflow drives <code>current_association_status</code> toward it.

- <code>associating</code> — The recipient was recently added; the workflow is pushing shared resources into the recipient account.
- <code>associated</code> — Shared resources have been successfully applied to the recipient account.
- <code>disassociating</code> — The recipient was removed (via DELETE or PUT replacement); the workflow is removing shared resources from the recipient account.
- <code>disassociated</code> — Shared resources have been removed from the recipient account. The recipient record remains in the database.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20association_status">Link to this property</a>

created: Time

When the share was created.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created">Link to this property</a>

modified: Time

When the share was modified.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified">Link to this property</a>

<details>

<summary>

resources: List\[Attributes]

</summary>

error: String

Share Recipient error message.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20error">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_version: Int64

Resource Version.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20resource_version">Link to this property</a>

terminal: Bool

Whether the error is terminal or will be continually retried.

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources%20%3E%20(attribute)%20terminal">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing.recipients%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_share\_recipients

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_share_recipients" "example_share_recipients" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  include_resources = true
}
```

#### Resource SharingResources

#### resource cloudflare\_share\_resource

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

share\_id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20share_id>)

resource\_account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resource_account_id>)

resource\_id: String

Share Resource identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resource_id>)

resource\_type: String

Resource Type.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resource_type>)

meta: JSON

Resource Metadata.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20meta>)

##### computed Expand Collapse

id: String

Share Resource identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created: Time

When the share was created.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

modified: Time

When the share was modified.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

resource\_version: Int64

Resource Version.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20resource_version>)

status: String

Resource Status.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

### cloudflare\_share\_resource

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_share_resource" "example_share_resource" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  meta = {

  }
  resource_account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  resource_id = "023e105f4ecef8ad9ca31a8372d0c353"
  resource_type = "custom-ruleset"
}
```

#### data cloudflare\_share\_resource

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

share\_id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20share_id>)

##### optional Expand Collapse

share\_resource\_id?: String

Share Resource identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20share_resource_id>)

<details>

<summary>

filter?: Attributes

</summary>

resource\_type?: String

Filter share resources by resource\_type.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20resource_type">Link to this property</a>

status?: String

Filter share resources by status.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

Share Resource identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created: Time

When the share was created.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created>)

modified: Time

When the share was modified.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

resource\_account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resource_account_id>)

resource\_id: String

Share Resource identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resource_id>)

resource\_type: String

Resource Type.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resource_type>)

resource\_version: Int64

Resource Version.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20resource_version>)

status: String

Resource Status.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

meta: JSON

Resource Metadata.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20meta>)

### cloudflare\_share\_resource

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_share_resource" "example_share_resource" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  share_resource_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### data cloudflare\_share\_resources

##### required Expand Collapse

account\_id: String

Account identifier.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

share\_id: String

Share identifier tag.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20share_id>)

##### optional Expand Collapse

resource\_type?: String

Filter share resources by resource\_type.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20resource_type>)

status?: String

Filter share resources by status.

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20status>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

created: Time

When the share was created.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created">Link to this property</a>

meta: JSON

Resource Metadata.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20meta">Link to this property</a>

modified: Time

When the share was modified.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified">Link to this property</a>

resource\_account\_id: String

Account identifier.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resource_account_id">Link to this property</a>

resource\_id: String

Share Resource identifier.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resource_id">Link to this property</a>

resource\_type: String

Resource Type.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resource_type">Link to this property</a>

resource\_version: Int64

Resource Version.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20resource_version">Link to this property</a>

status: String

Resource Status.

<a href="#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing.resources%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_share\_resources

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_share_resources" "example_share_resources" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  share_id = "3fd85f74b32742f1bff64a85009dda07"
  resource_type = "custom-ruleset"
  status = "active"
}
```