1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getShares
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleShares = cloudflare.getShares({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        includeRecipientCounts: true,
        includeResources: true,
        kind: "sent",
        resourceTypes: ["custom-ruleset"],
        status: "active",
        tags: ["env=production"],
        targetType: "account",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_shares = cloudflare.get_shares(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        include_recipient_counts=True,
        include_resources=True,
        kind="sent",
        resource_types=["custom-ruleset"],
        status="active",
        tags=["env=production"],
        target_type="account")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetShares(ctx, &cloudflare.LookupSharesArgs{
    			AccountId:              "023e105f4ecef8ad9ca31a8372d0c353",
    			IncludeRecipientCounts: pulumi.BoolRef(true),
    			IncludeResources:       pulumi.BoolRef(true),
    			Kind:                   pulumi.StringRef("sent"),
    			ResourceTypes: []string{
    				"custom-ruleset",
    			},
    			Status: pulumi.StringRef("active"),
    			Tags: []string{
    				"env=production",
    			},
    			TargetType: pulumi.StringRef("account"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleShares = Cloudflare.GetShares.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            IncludeRecipientCounts = true,
            IncludeResources = true,
            Kind = "sent",
            ResourceTypes = new[]
            {
                "custom-ruleset",
            },
            Status = "active",
            Tags = new[]
            {
                "env=production",
            },
            TargetType = "account",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetSharesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleShares = CloudflareFunctions.getShares(GetSharesArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .includeRecipientCounts(true)
                .includeResources(true)
                .kind("sent")
                .resourceTypes("custom-ruleset")
                .status("active")
                .tags("env=production")
                .targetType("account")
                .build());
    
        }
    }
    
    variables:
      exampleShares:
        fn::invoke:
          function: cloudflare:getShares
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            includeRecipientCounts: true
            includeResources: true
            kind: sent
            resourceTypes:
              - custom-ruleset
            status: active
            tags:
              - env=production
            targetType: account
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getshares" "exampleShares" {
      account_id               = "023e105f4ecef8ad9ca31a8372d0c353"
      include_recipient_counts = true
      include_resources        = true
      kind                     = "sent"
      resource_types           = ["custom-ruleset"]
      status                   = "active"
      tags                     = ["env=production"]
      target_type              = "account"
    }
    

    Using getShares

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getShares(args: GetSharesArgs, opts?: InvokeOptions): Promise<GetSharesResult>
    function getSharesOutput(args: GetSharesOutputArgs, opts?: InvokeOptions): Output<GetSharesResult>
    def get_shares(account_id: Optional[str] = None,
                   direction: Optional[str] = None,
                   include_recipient_counts: Optional[bool] = None,
                   include_resources: Optional[bool] = None,
                   kind: Optional[str] = None,
                   max_items: Optional[int] = None,
                   order: Optional[str] = None,
                   resource_types: Optional[Sequence[str]] = None,
                   status: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None,
                   target_type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSharesResult
    def get_shares_output(account_id: pulumi.Input[Optional[str]] = None,
                   direction: pulumi.Input[Optional[str]] = None,
                   include_recipient_counts: pulumi.Input[Optional[bool]] = None,
                   include_resources: pulumi.Input[Optional[bool]] = None,
                   kind: pulumi.Input[Optional[str]] = None,
                   max_items: pulumi.Input[Optional[int]] = None,
                   order: pulumi.Input[Optional[str]] = None,
                   resource_types: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                   status: pulumi.Input[Optional[str]] = None,
                   tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                   target_type: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSharesResult]
    func LookupShares(ctx *Context, args *LookupSharesArgs, opts ...InvokeOption) (*LookupSharesResult, error)
    func LookupSharesOutput(ctx *Context, args *LookupSharesOutputArgs, opts ...InvokeOption) LookupSharesResultOutput

    > Note: This function is named LookupShares in the Go SDK.

    public static class GetShares 
    {
        public static Task<GetSharesResult> InvokeAsync(GetSharesArgs args, InvokeOptions? opts = null)
        public static Output<GetSharesResult> Invoke(GetSharesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSharesResult> getShares(GetSharesArgs args, InvokeOptions options)
    public static Output<GetSharesResult> getShares(GetSharesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getShares:getShares
      arguments:
        # arguments dictionary
    data "cloudflare_get_shares" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Account identifier.
    Direction string
    Direction to sort objects. Available values: "asc", "desc".
    IncludeRecipientCounts bool
    Include recipient counts in the response.
    IncludeResources bool
    Include resources in the response.
    Kind string
    Filter shares by kind. Available values: "sent", "received".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Order shares by values in the given field. Available values: "name", "created".
    ResourceTypes List<string>
    Filter share resources by resource_types.
    Status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    Tags 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.
    TargetType string
    Filter shares by target_type. Available values: "account", "organization".
    AccountId string
    Account identifier.
    Direction string
    Direction to sort objects. Available values: "asc", "desc".
    IncludeRecipientCounts bool
    Include recipient counts in the response.
    IncludeResources bool
    Include resources in the response.
    Kind string
    Filter shares by kind. Available values: "sent", "received".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Order shares by values in the given field. Available values: "name", "created".
    ResourceTypes []string
    Filter share resources by resource_types.
    Status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    Tags []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.
    TargetType string
    Filter shares by target_type. Available values: "account", "organization".
    account_id string
    Account identifier.
    direction string
    Direction to sort objects. Available values: "asc", "desc".
    include_recipient_counts bool
    Include recipient counts in the response.
    include_resources bool
    Include resources in the response.
    kind string
    Filter shares by kind. Available values: "sent", "received".
    max_items number
    Max items to fetch, default: 1000
    order string
    Order shares by values in the given field. Available values: "name", "created".
    resource_types list(string)
    Filter share resources by resource_types.
    status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    target_type string
    Filter shares by target_type. Available values: "account", "organization".
    accountId String
    Account identifier.
    direction String
    Direction to sort objects. Available values: "asc", "desc".
    includeRecipientCounts Boolean
    Include recipient counts in the response.
    includeResources Boolean
    Include resources in the response.
    kind String
    Filter shares by kind. Available values: "sent", "received".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    Order shares by values in the given field. Available values: "name", "created".
    resourceTypes List<String>
    Filter share resources by resource_types.
    status String
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    targetType String
    Filter shares by target_type. Available values: "account", "organization".
    accountId string
    Account identifier.
    direction string
    Direction to sort objects. Available values: "asc", "desc".
    includeRecipientCounts boolean
    Include recipient counts in the response.
    includeResources boolean
    Include resources in the response.
    kind string
    Filter shares by kind. Available values: "sent", "received".
    maxItems number
    Max items to fetch, default: 1000
    order string
    Order shares by values in the given field. Available values: "name", "created".
    resourceTypes string[]
    Filter share resources by resource_types.
    status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    targetType string
    Filter shares by target_type. Available values: "account", "organization".
    account_id str
    Account identifier.
    direction str
    Direction to sort objects. Available values: "asc", "desc".
    include_recipient_counts bool
    Include recipient counts in the response.
    include_resources bool
    Include resources in the response.
    kind str
    Filter shares by kind. Available values: "sent", "received".
    max_items int
    Max items to fetch, default: 1000
    order str
    Order shares by values in the given field. Available values: "name", "created".
    resource_types Sequence[str]
    Filter share resources by resource_types.
    status str
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags Sequence[str]
    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.
    target_type str
    Filter shares by target_type. Available values: "account", "organization".
    accountId String
    Account identifier.
    direction String
    Direction to sort objects. Available values: "asc", "desc".
    includeRecipientCounts Boolean
    Include recipient counts in the response.
    includeResources Boolean
    Include resources in the response.
    kind String
    Filter shares by kind. Available values: "sent", "received".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    Order shares by values in the given field. Available values: "name", "created".
    resourceTypes List<String>
    Filter share resources by resource_types.
    status String
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    targetType String
    Filter shares by target_type. Available values: "account", "organization".

    getShares Result

    The following output properties are available:

    AccountId string
    Account identifier.
    Direction string
    Direction to sort objects. Available values: "asc", "desc".
    Id string
    The provider-assigned unique ID for this managed resource.
    Order string
    Order shares by values in the given field. Available values: "name", "created".
    Results List<GetSharesResult>
    The items returned by the data source
    IncludeRecipientCounts bool
    Include recipient counts in the response.
    IncludeResources bool
    Include resources in the response.
    Kind string
    Filter shares by kind. Available values: "sent", "received".
    MaxItems int
    Max items to fetch, default: 1000
    ResourceTypes List<string>
    Filter share resources by resource_types.
    Status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    Tags 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.
    TargetType string
    Filter shares by target_type. Available values: "account", "organization".
    AccountId string
    Account identifier.
    Direction string
    Direction to sort objects. Available values: "asc", "desc".
    Id string
    The provider-assigned unique ID for this managed resource.
    Order string
    Order shares by values in the given field. Available values: "name", "created".
    Results []GetSharesResult
    The items returned by the data source
    IncludeRecipientCounts bool
    Include recipient counts in the response.
    IncludeResources bool
    Include resources in the response.
    Kind string
    Filter shares by kind. Available values: "sent", "received".
    MaxItems int
    Max items to fetch, default: 1000
    ResourceTypes []string
    Filter share resources by resource_types.
    Status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    Tags []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.
    TargetType string
    Filter shares by target_type. Available values: "account", "organization".
    account_id string
    Account identifier.
    direction string
    Direction to sort objects. Available values: "asc", "desc".
    id string
    The provider-assigned unique ID for this managed resource.
    order string
    Order shares by values in the given field. Available values: "name", "created".
    results list(object)
    The items returned by the data source
    include_recipient_counts bool
    Include recipient counts in the response.
    include_resources bool
    Include resources in the response.
    kind string
    Filter shares by kind. Available values: "sent", "received".
    max_items number
    Max items to fetch, default: 1000
    resource_types list(string)
    Filter share resources by resource_types.
    status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    target_type string
    Filter shares by target_type. Available values: "account", "organization".
    accountId String
    Account identifier.
    direction String
    Direction to sort objects. Available values: "asc", "desc".
    id String
    The provider-assigned unique ID for this managed resource.
    order String
    Order shares by values in the given field. Available values: "name", "created".
    results List<GetSharesResult>
    The items returned by the data source
    includeRecipientCounts Boolean
    Include recipient counts in the response.
    includeResources Boolean
    Include resources in the response.
    kind String
    Filter shares by kind. Available values: "sent", "received".
    maxItems Integer
    Max items to fetch, default: 1000
    resourceTypes List<String>
    Filter share resources by resource_types.
    status String
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    targetType String
    Filter shares by target_type. Available values: "account", "organization".
    accountId string
    Account identifier.
    direction string
    Direction to sort objects. Available values: "asc", "desc".
    id string
    The provider-assigned unique ID for this managed resource.
    order string
    Order shares by values in the given field. Available values: "name", "created".
    results GetSharesResult[]
    The items returned by the data source
    includeRecipientCounts boolean
    Include recipient counts in the response.
    includeResources boolean
    Include resources in the response.
    kind string
    Filter shares by kind. Available values: "sent", "received".
    maxItems number
    Max items to fetch, default: 1000
    resourceTypes string[]
    Filter share resources by resource_types.
    status string
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    targetType string
    Filter shares by target_type. Available values: "account", "organization".
    account_id str
    Account identifier.
    direction str
    Direction to sort objects. Available values: "asc", "desc".
    id str
    The provider-assigned unique ID for this managed resource.
    order str
    Order shares by values in the given field. Available values: "name", "created".
    results Sequence[GetSharesResult]
    The items returned by the data source
    include_recipient_counts bool
    Include recipient counts in the response.
    include_resources bool
    Include resources in the response.
    kind str
    Filter shares by kind. Available values: "sent", "received".
    max_items int
    Max items to fetch, default: 1000
    resource_types Sequence[str]
    Filter share resources by resource_types.
    status str
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags Sequence[str]
    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.
    target_type str
    Filter shares by target_type. Available values: "account", "organization".
    accountId String
    Account identifier.
    direction String
    Direction to sort objects. Available values: "asc", "desc".
    id String
    The provider-assigned unique ID for this managed resource.
    order String
    Order shares by values in the given field. Available values: "name", "created".
    results List<Property Map>
    The items returned by the data source
    includeRecipientCounts Boolean
    Include recipient counts in the response.
    includeResources Boolean
    Include resources in the response.
    kind String
    Filter shares by kind. Available values: "sent", "received".
    maxItems Number
    Max items to fetch, default: 1000
    resourceTypes List<String>
    Filter share resources by resource_types.
    status String
    Filter shares by status. Available values: "active", "deleting", "deleted".
    tags 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.
    targetType String
    Filter shares by target_type. Available values: "account", "organization".

    Supporting Types

    GetSharesResult

    AccountId string
    Account identifier.
    AccountName string
    The display name of an account.
    AssociatedRecipientCount int
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    AssociatingRecipientCount int
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    Created string
    When the share was created.
    DisassociatedRecipientCount int
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    DisassociatingRecipientCount int
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    Id string
    Share identifier tag.
    Kind string
    Available values: "sent", "received".
    Modified string
    When the share was modified.
    Name string
    The name of the share.
    OrganizationId string
    Organization identifier.
    Resources List<GetSharesResultResource>
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    Status string
    Available values: "active", "deleting", "deleted".
    TargetType string
    Available values: "account", "organization".
    AccountId string
    Account identifier.
    AccountName string
    The display name of an account.
    AssociatedRecipientCount int
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    AssociatingRecipientCount int
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    Created string
    When the share was created.
    DisassociatedRecipientCount int
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    DisassociatingRecipientCount int
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    Id string
    Share identifier tag.
    Kind string
    Available values: "sent", "received".
    Modified string
    When the share was modified.
    Name string
    The name of the share.
    OrganizationId string
    Organization identifier.
    Resources []GetSharesResultResource
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    Status string
    Available values: "active", "deleting", "deleted".
    TargetType string
    Available values: "account", "organization".
    account_id string
    Account identifier.
    account_name string
    The display name of an account.
    associated_recipient_count number
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    associating_recipient_count number
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    created string
    When the share was created.
    disassociated_recipient_count number
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    disassociating_recipient_count number
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    id string
    Share identifier tag.
    kind string
    Available values: "sent", "received".
    modified string
    When the share was modified.
    name string
    The name of the share.
    organization_id string
    Organization identifier.
    resources list(object)
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    status string
    Available values: "active", "deleting", "deleted".
    target_type string
    Available values: "account", "organization".
    accountId String
    Account identifier.
    accountName String
    The display name of an account.
    associatedRecipientCount Integer
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    associatingRecipientCount Integer
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    created String
    When the share was created.
    disassociatedRecipientCount Integer
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    disassociatingRecipientCount Integer
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    id String
    Share identifier tag.
    kind String
    Available values: "sent", "received".
    modified String
    When the share was modified.
    name String
    The name of the share.
    organizationId String
    Organization identifier.
    resources List<GetSharesResultResource>
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    status String
    Available values: "active", "deleting", "deleted".
    targetType String
    Available values: "account", "organization".
    accountId string
    Account identifier.
    accountName string
    The display name of an account.
    associatedRecipientCount number
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    associatingRecipientCount number
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    created string
    When the share was created.
    disassociatedRecipientCount number
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    disassociatingRecipientCount number
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    id string
    Share identifier tag.
    kind string
    Available values: "sent", "received".
    modified string
    When the share was modified.
    name string
    The name of the share.
    organizationId string
    Organization identifier.
    resources GetSharesResultResource[]
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    status string
    Available values: "active", "deleting", "deleted".
    targetType string
    Available values: "account", "organization".
    account_id str
    Account identifier.
    account_name str
    The display name of an account.
    associated_recipient_count int
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    associating_recipient_count int
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    created str
    When the share was created.
    disassociated_recipient_count int
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    disassociating_recipient_count int
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    id str
    Share identifier tag.
    kind str
    Available values: "sent", "received".
    modified str
    When the share was modified.
    name str
    The name of the share.
    organization_id str
    Organization identifier.
    resources Sequence[GetSharesResultResource]
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    status str
    Available values: "active", "deleting", "deleted".
    target_type str
    Available values: "account", "organization".
    accountId String
    Account identifier.
    accountName String
    The display name of an account.
    associatedRecipientCount Number
    The number of recipients in the 'associated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    associatingRecipientCount Number
    The number of recipients in the 'associating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    created String
    When the share was created.
    disassociatedRecipientCount Number
    The number of recipients in the 'disassociated' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    disassociatingRecipientCount Number
    The number of recipients in the 'disassociating' state. This field is only included when requested via the 'includerecipientcounts' parameter.
    id String
    Share identifier tag.
    kind String
    Available values: "sent", "received".
    modified String
    When the share was modified.
    name String
    The name of the share.
    organizationId String
    Organization identifier.
    resources List<Property Map>
    A list of resources that are part of the share. This field is only included when requested via the 'include_resources' parameter.
    status String
    Available values: "active", "deleting", "deleted".
    targetType String
    Available values: "account", "organization".

    GetSharesResultResource

    Created string
    When the share was created.
    Id string
    Share Resource identifier.
    Meta string
    Resource Metadata.
    Modified string
    When the share was modified.
    ResourceAccountId string
    Account identifier.
    ResourceId string
    Share Resource identifier.
    ResourceType string
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    ResourceVersion int
    Resource Version.
    Status string
    Resource Status. Available values: "active", "deleting", "deleted".
    Created string
    When the share was created.
    Id string
    Share Resource identifier.
    Meta string
    Resource Metadata.
    Modified string
    When the share was modified.
    ResourceAccountId string
    Account identifier.
    ResourceId string
    Share Resource identifier.
    ResourceType string
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    ResourceVersion int
    Resource Version.
    Status string
    Resource Status. Available values: "active", "deleting", "deleted".
    created string
    When the share was created.
    id string
    Share Resource identifier.
    meta string
    Resource Metadata.
    modified string
    When the share was modified.
    resource_account_id string
    Account identifier.
    resource_id string
    Share Resource identifier.
    resource_type string
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    resource_version number
    Resource Version.
    status string
    Resource Status. Available values: "active", "deleting", "deleted".
    created String
    When the share was created.
    id String
    Share Resource identifier.
    meta String
    Resource Metadata.
    modified String
    When the share was modified.
    resourceAccountId String
    Account identifier.
    resourceId String
    Share Resource identifier.
    resourceType String
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    resourceVersion Integer
    Resource Version.
    status String
    Resource Status. Available values: "active", "deleting", "deleted".
    created string
    When the share was created.
    id string
    Share Resource identifier.
    meta string
    Resource Metadata.
    modified string
    When the share was modified.
    resourceAccountId string
    Account identifier.
    resourceId string
    Share Resource identifier.
    resourceType string
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    resourceVersion number
    Resource Version.
    status string
    Resource Status. Available values: "active", "deleting", "deleted".
    created str
    When the share was created.
    id str
    Share Resource identifier.
    meta str
    Resource Metadata.
    modified str
    When the share was modified.
    resource_account_id str
    Account identifier.
    resource_id str
    Share Resource identifier.
    resource_type str
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    resource_version int
    Resource Version.
    status str
    Resource Status. Available values: "active", "deleting", "deleted".
    created String
    When the share was created.
    id String
    Share Resource identifier.
    meta String
    Resource Metadata.
    modified String
    When the share was modified.
    resourceAccountId String
    Account identifier.
    resourceId String
    Share Resource identifier.
    resourceType String
    Resource Type. Available values: "custom-ruleset", "gateway-policy", "gateway-destination-ip", "gateway-block-page-settings", "gateway-extended-email-matching", "idp-federation-grant".
    resourceVersion Number
    Resource Version.
    status String
    Resource Status. Available values: "active", "deleting", "deleted".

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial