1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getSecretsStores
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

    Accepted Permissions

    • Secrets Store Read
    • Secrets Store Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleSecretsStores = cloudflare.getSecretsStores({
        accountId: "985e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_secrets_stores = cloudflare.get_secrets_stores(account_id="985e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetSecretsStores(ctx, &cloudflare.LookupSecretsStoresArgs{
    			AccountId: "985e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleSecretsStores = Cloudflare.GetSecretsStores.Invoke(new()
        {
            AccountId = "985e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetSecretsStoresArgs;
    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 exampleSecretsStores = CloudflareFunctions.getSecretsStores(GetSecretsStoresArgs.builder()
                .accountId("985e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleSecretsStores:
        fn::invoke:
          function: cloudflare:getSecretsStores
          arguments:
            accountId: 985e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getsecretsstores" "exampleSecretsStores" {
      account_id = "985e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getSecretsStores

    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 getSecretsStores(args: GetSecretsStoresArgs, opts?: InvokeOptions): Promise<GetSecretsStoresResult>
    function getSecretsStoresOutput(args: GetSecretsStoresOutputArgs, opts?: InvokeOptions): Output<GetSecretsStoresResult>
    def get_secrets_stores(account_id: Optional[str] = None,
                           direction: Optional[str] = None,
                           max_items: Optional[int] = None,
                           order: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetSecretsStoresResult
    def get_secrets_stores_output(account_id: pulumi.Input[Optional[str]] = None,
                           direction: pulumi.Input[Optional[str]] = None,
                           max_items: pulumi.Input[Optional[int]] = None,
                           order: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetSecretsStoresResult]
    func LookupSecretsStores(ctx *Context, args *LookupSecretsStoresArgs, opts ...InvokeOption) (*LookupSecretsStoresResult, error)
    func LookupSecretsStoresOutput(ctx *Context, args *LookupSecretsStoresOutputArgs, opts ...InvokeOption) LookupSecretsStoresResultOutput

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

    public static class GetSecretsStores 
    {
        public static Task<GetSecretsStoresResult> InvokeAsync(GetSecretsStoresArgs args, InvokeOptions? opts = null)
        public static Output<GetSecretsStoresResult> Invoke(GetSecretsStoresInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecretsStoresResult> getSecretsStores(GetSecretsStoresArgs args, InvokeOptions options)
    public static Output<GetSecretsStoresResult> getSecretsStores(GetSecretsStoresArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getSecretsStores:getSecretsStores
      arguments:
        # arguments dictionary
    data "cloudflare_get_secrets_stores" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Account Identifier
    Direction string
    Direction to sort objects Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    AccountId string
    Account Identifier
    Direction string
    Direction to sort objects Available values: "asc", "desc".
    MaxItems int
    Max items to fetch, default: 1000
    Order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    account_id string
    Account Identifier
    direction string
    Direction to sort objects Available values: "asc", "desc".
    max_items number
    Max items to fetch, default: 1000
    order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    accountId String
    Account Identifier
    direction String
    Direction to sort objects Available values: "asc", "desc".
    maxItems Integer
    Max items to fetch, default: 1000
    order String
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    accountId string
    Account Identifier
    direction string
    Direction to sort objects Available values: "asc", "desc".
    maxItems number
    Max items to fetch, default: 1000
    order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    account_id str
    Account Identifier
    direction str
    Direction to sort objects Available values: "asc", "desc".
    max_items int
    Max items to fetch, default: 1000
    order str
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    accountId String
    Account Identifier
    direction String
    Direction to sort objects Available values: "asc", "desc".
    maxItems Number
    Max items to fetch, default: 1000
    order String
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".

    getSecretsStores 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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    Results List<GetSecretsStoresResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    Results []GetSecretsStoresResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    results List<GetSecretsStoresResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    results GetSecretsStoresResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    results Sequence[GetSecretsStoresResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    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 secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetSecretsStoresResult

    AccountId string
    Account Identifier
    Created string
    Whenthe secret was created.
    Id string
    Store Identifier
    Modified string
    When the secret was modified.
    Name string
    The name of the store
    AccountId string
    Account Identifier
    Created string
    Whenthe secret was created.
    Id string
    Store Identifier
    Modified string
    When the secret was modified.
    Name string
    The name of the store
    account_id string
    Account Identifier
    created string
    Whenthe secret was created.
    id string
    Store Identifier
    modified string
    When the secret was modified.
    name string
    The name of the store
    accountId String
    Account Identifier
    created String
    Whenthe secret was created.
    id String
    Store Identifier
    modified String
    When the secret was modified.
    name String
    The name of the store
    accountId string
    Account Identifier
    created string
    Whenthe secret was created.
    id string
    Store Identifier
    modified string
    When the secret was modified.
    name string
    The name of the store
    account_id str
    Account Identifier
    created str
    Whenthe secret was created.
    id str
    Store Identifier
    modified str
    When the secret was modified.
    name str
    The name of the store
    accountId String
    Account Identifier
    created String
    Whenthe secret was created.
    id String
    Store Identifier
    modified String
    When the secret was modified.
    name String
    The name of the store

    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