---
title: List account shares
---

[Skip to content](#_top)

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

[Resource Sharing](https://developers.cloudflare.com/api/go/resources/resource_sharing)

Copy Markdown

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

---

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

# List account shares

client.ResourceSharing.List(ctx, params) (\*V4PagePaginationArray\[[ResourceSharingListResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/shares

Lists all account shares.

##### Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**`X-Auth-Email: user@example.com`

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### ParametersExpand Collapse

<details>

<summary>

params ResourceSharingListParams

</summary>

AccountID param.Field\[string]

Path param: Account identifier.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

<details>

<summary>

Direction param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)">ResourceSharingListParamsDirection</a>]Optional

Query param: Direction to sort objects.

</summary>

const ResourceSharingListParamsDirectionAsc <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)">ResourceSharingListParamsDirection</a> = "asc"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListParamsDirectionDesc <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)">ResourceSharingListParamsDirection</a> = "desc"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20direction">Link to this property</a>

IncludeRecipientCounts param.Field\[bool]Optional

Query param: Include recipient counts in the response.

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20include_recipient_counts">Link to this property</a>

IncludeResources param.Field\[bool]Optional

Query param: Include resources in the response.

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20include_resources">Link to this property</a>

<details>

<summary>

Kind param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)">ResourceSharingListParamsKind</a>]Optional

Query param: Filter shares by kind.

</summary>

const ResourceSharingListParamsKindSent <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)">ResourceSharingListParamsKind</a> = "sent"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListParamsKindReceived <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)">ResourceSharingListParamsKind</a> = "received"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20kind%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20kind">Link to this property</a>

<details>

<summary>

Order param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)">ResourceSharingListParamsOrder</a>]Optional

Query param: Order shares by values in the given field.

</summary>

const ResourceSharingListParamsOrderName <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)">ResourceSharingListParamsOrder</a> = "name"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListParamsOrderCreated <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)">ResourceSharingListParamsOrder</a> = "created"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20order">Link to this property</a>

Page param.Field\[int64]Optional

Query param: Page number. Defaults to <code>1</code> when <code>per_page</code> is supplied without <code>page</code>. May be omitted entirely along with <code>per_page</code> to receive a non-paginated response.

minimum1

multipleOf1

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20page">Link to this property</a>

PerPage param.Field\[int64]Optional

Query param: Number of objects to return per page. Defaults to <code>20</code> when <code>page</code> is supplied without <code>per_page</code>. May be omitted entirely along with <code>page</code> to receive a non-paginated response.

maximum100

minimum1

multipleOf1

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20per_page">Link to this property</a>

<details>

<summary>

ResourceTypes param.Field\[\[]ResourceSharingListParamsResourceType]Optional

Query param: Filter share resources by resource\_types.

</summary>

const ResourceSharingListParamsResourceTypeCustomRuleset ResourceSharingListParamsResourceType = "custom-ruleset"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListParamsResourceTypeGatewayPolicy ResourceSharingListParamsResourceType = "gateway-policy"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const ResourceSharingListParamsResourceTypeGatewayDestinationIP ResourceSharingListParamsResourceType = "gateway-destination-ip"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const ResourceSharingListParamsResourceTypeGatewayBlockPageSettings ResourceSharingListParamsResourceType = "gateway-block-page-settings"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const ResourceSharingListParamsResourceTypeGatewayExtendedEmailMatching ResourceSharingListParamsResourceType = "gateway-extended-email-matching"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

const ResourceSharingListParamsResourceTypeIdPFederationGrant ResourceSharingListParamsResourceType = "idp-federation-grant"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

const ResourceSharingListParamsResourceTypeTrustGrant ResourceSharingListParamsResourceType = "trust-grant"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20resource_types">Link to this property</a>

<details>

<summary>

Status param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)">ResourceSharingListParamsStatus</a>]Optional

Query param: Filter shares by status.

</summary>

const ResourceSharingListParamsStatusActive <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)">ResourceSharingListParamsStatus</a> = "active"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListParamsStatusDeleting <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)">ResourceSharingListParamsStatus</a> = "deleting"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const ResourceSharingListParamsStatusDeleted <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)">ResourceSharingListParamsStatus</a> = "deleted"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20status">Link to this property</a>

Tag param.Field\[\[]string]Optional

Query param: 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(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20tag">Link to this property</a>

<details>

<summary>

TargetType param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20target_type%20%3E%20(schema)">ResourceSharingListParamsTargetType</a>]Optional

Query param: Filter shares by target\_type.

</summary>

const ResourceSharingListParamsTargetTypeAccount <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20target_type%20%3E%20(schema)">ResourceSharingListParamsTargetType</a> = "account"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20target_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListParamsTargetTypeOrganization <a href="https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20target_type%20%3E%20(schema)">ResourceSharingListParamsTargetType</a> = "organization"

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20target_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20target_type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(method)%20list%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type ResourceSharingListResponse struct{…}

</summary>

ID string

Share identifier tag.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

AccountID string

Account identifier.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20account_id">Link to this property</a>

AccountName string

The display name of an account.

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20account_name">Link to this property</a>

Created Time

When the share was created.

formatdate-time

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

Modified Time

When the share was modified.

formatdate-time

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

Name string

The name of the share.

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

OrganizationID string

Organization identifier.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20organization_id">Link to this property</a>

<details>

<summary>

Status ResourceSharingListResponseStatus

</summary>

One of the following:

const ResourceSharingListResponseStatusActive ResourceSharingListResponseStatus = "active"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListResponseStatusDeleting ResourceSharingListResponseStatus = "deleting"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const ResourceSharingListResponseStatusDeleted ResourceSharingListResponseStatus = "deleted"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

TargetType ResourceSharingListResponseTargetType

</summary>

One of the following:

const ResourceSharingListResponseTargetTypeAccount ResourceSharingListResponseTargetType = "account"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20target_type%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListResponseTargetTypeOrganization ResourceSharingListResponseTargetType = "organization"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20target_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20target_type">Link to this property</a>

AssociatedRecipientCount int64Optional

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(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20associated_recipient_count">Link to this property</a>

AssociatingRecipientCount int64Optional

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(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20associating_recipient_count">Link to this property</a>

DisassociatedRecipientCount int64Optional

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(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20disassociated_recipient_count">Link to this property</a>

DisassociatingRecipientCount int64Optional

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(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20disassociating_recipient_count">Link to this property</a>

<details>

<summary>

Kind ResourceSharingListResponseKindOptional

</summary>

One of the following:

const ResourceSharingListResponseKindSent ResourceSharingListResponseKind = "sent"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20kind%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListResponseKindReceived ResourceSharingListResponseKind = "received"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20kind%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20kind">Link to this property</a>

<details>

<summary>

Resources \[]ResourceSharingListResponseResourceOptional

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.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

Created Time

When the share was created.

formatdate-time

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20created">Link to this property</a>

Meta unknown

Resource Metadata.

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20meta">Link to this property</a>

Modified Time

When the share was modified.

formatdate-time

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20modified">Link to this property</a>

ResourceAccountID string

Account identifier.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_account_id">Link to this property</a>

ResourceID string

Share Resource identifier.

maxLength32

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_id">Link to this property</a>

<details>

<summary>

ResourceType ResourceSharingListResponseResourcesResourceType

Resource Type.

</summary>

One of the following:

const ResourceSharingListResponseResourcesResourceTypeCustomRuleset ResourceSharingListResponseResourcesResourceType = "custom-ruleset"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListResponseResourcesResourceTypeGatewayPolicy ResourceSharingListResponseResourcesResourceType = "gateway-policy"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%201">Link to this property</a>

const ResourceSharingListResponseResourcesResourceTypeGatewayDestinationIP ResourceSharingListResponseResourcesResourceType = "gateway-destination-ip"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%202">Link to this property</a>

const ResourceSharingListResponseResourcesResourceTypeGatewayBlockPageSettings ResourceSharingListResponseResourcesResourceType = "gateway-block-page-settings"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%203">Link to this property</a>

const ResourceSharingListResponseResourcesResourceTypeGatewayExtendedEmailMatching ResourceSharingListResponseResourcesResourceType = "gateway-extended-email-matching"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%204">Link to this property</a>

const ResourceSharingListResponseResourcesResourceTypeIdPFederationGrant ResourceSharingListResponseResourcesResourceType = "idp-federation-grant"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%205">Link to this property</a>

const ResourceSharingListResponseResourcesResourceTypeTrustGrant ResourceSharingListResponseResourcesResourceType = "trust-grant"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_type">Link to this property</a>

ResourceVersion int64

Resource Version.

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20resource_version">Link to this property</a>

<details>

<summary>

Status ResourceSharingListResponseResourcesStatus

Resource Status.

</summary>

One of the following:

const ResourceSharingListResponseResourcesStatusActive ResourceSharingListResponseResourcesStatus = "active"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const ResourceSharingListResponseResourcesStatusDeleting ResourceSharingListResponseResourcesStatus = "deleting"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const ResourceSharingListResponseResourcesStatusDeleted ResourceSharingListResponseResourcesStatus = "deleted"

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(items)%20%3E%20(property)%20status">Link to this property</a>

</details>

<a href="#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)%20%3E%20(property)%20resources">Link to this property</a>

</details>

[Link to this property](<#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)>)

### List account shares

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/resource_sharing"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  page, err := client.ResourceSharing.List(context.TODO(), resource_sharing.ResourceSharingListParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "id": "3fd85f74b32742f1bff64a85009dda07",
      "account_id": "023e105f4ecef8ad9ca31a8372d0c353",
      "account_name": "Account A",
      "created": "2023-09-21T18:56:32.624632Z",
      "modified": "2023-09-21T18:56:32.624632Z",
      "name": "My Shared WAF Managed Rule",
      "organization_id": "023e105f4ecef8ad9ca31a8372d0c353",
      "status": "active",
      "target_type": "account",
      "associated_recipient_count": 10,
      "associating_recipient_count": 1,
      "disassociated_recipient_count": 0,
      "disassociating_recipient_count": 0,
      "kind": "sent",
      "resources": [
        {
          "id": "023e105f4ecef8ad9ca31a8372d0c353",
          "created": "2023-09-21T18:56:32.624632Z",
          "meta": {},
          "modified": "2023-09-21T18:56:32.624632Z",
          "resource_account_id": "023e105f4ecef8ad9ca31a8372d0c353",
          "resource_id": "023e105f4ecef8ad9ca31a8372d0c353",
          "resource_type": "custom-ruleset",
          "resource_version": 0,
          "status": "active"
        }
      ]
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 50
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": [
    {
      "id": "3fd85f74b32742f1bff64a85009dda07",
      "account_id": "023e105f4ecef8ad9ca31a8372d0c353",
      "account_name": "Account A",
      "created": "2023-09-21T18:56:32.624632Z",
      "modified": "2023-09-21T18:56:32.624632Z",
      "name": "My Shared WAF Managed Rule",
      "organization_id": "023e105f4ecef8ad9ca31a8372d0c353",
      "status": "active",
      "target_type": "account",
      "associated_recipient_count": 10,
      "associating_recipient_count": 1,
      "disassociated_recipient_count": 0,
      "disassociating_recipient_count": 0,
      "kind": "sent",
      "resources": [
        {
          "id": "023e105f4ecef8ad9ca31a8372d0c353",
          "created": "2023-09-21T18:56:32.624632Z",
          "meta": {},
          "modified": "2023-09-21T18:56:32.624632Z",
          "resource_account_id": "023e105f4ecef8ad9ca31a8372d0c353",
          "resource_id": "023e105f4ecef8ad9ca31a8372d0c353",
          "resource_type": "custom-ruleset",
          "resource_version": 0,
          "status": "active"
        }
      ]
    }
  ],
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000,
    "total_pages": 50
  }
}
```