1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getSecretsStore
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 exampleSecretsStore = cloudflare.getSecretsStore({
        accountId: "985e105f4ecef8ad9ca31a8372d0c353",
        storeId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_secrets_store = cloudflare.get_secrets_store(account_id="985e105f4ecef8ad9ca31a8372d0c353",
        store_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetSecretsStore(ctx, &cloudflare.LookupSecretsStoreArgs{
    			AccountId: "985e105f4ecef8ad9ca31a8372d0c353",
    			StoreId:   pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
    		}, 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 exampleSecretsStore = Cloudflare.GetSecretsStore.Invoke(new()
        {
            AccountId = "985e105f4ecef8ad9ca31a8372d0c353",
            StoreId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetSecretsStoreArgs;
    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 exampleSecretsStore = CloudflareFunctions.getSecretsStore(GetSecretsStoreArgs.builder()
                .accountId("985e105f4ecef8ad9ca31a8372d0c353")
                .storeId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleSecretsStore:
        fn::invoke:
          function: cloudflare:getSecretsStore
          arguments:
            accountId: 985e105f4ecef8ad9ca31a8372d0c353
            storeId: 023e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getsecretsstore" "exampleSecretsStore" {
      account_id = "985e105f4ecef8ad9ca31a8372d0c353"
      store_id   = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getSecretsStore

    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 getSecretsStore(args: GetSecretsStoreArgs, opts?: InvokeOptions): Promise<GetSecretsStoreResult>
    function getSecretsStoreOutput(args: GetSecretsStoreOutputArgs, opts?: InvokeOptions): Output<GetSecretsStoreResult>
    def get_secrets_store(account_id: Optional[str] = None,
                          filter: Optional[GetSecretsStoreFilter] = None,
                          store_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSecretsStoreResult
    def get_secrets_store_output(account_id: pulumi.Input[Optional[str]] = None,
                          filter: pulumi.Input[Optional[GetSecretsStoreFilterArgs]] = None,
                          store_id: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetSecretsStoreResult]
    func LookupSecretsStore(ctx *Context, args *LookupSecretsStoreArgs, opts ...InvokeOption) (*LookupSecretsStoreResult, error)
    func LookupSecretsStoreOutput(ctx *Context, args *LookupSecretsStoreOutputArgs, opts ...InvokeOption) LookupSecretsStoreResultOutput

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

    public static class GetSecretsStore 
    {
        public static Task<GetSecretsStoreResult> InvokeAsync(GetSecretsStoreArgs args, InvokeOptions? opts = null)
        public static Output<GetSecretsStoreResult> Invoke(GetSecretsStoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecretsStoreResult> getSecretsStore(GetSecretsStoreArgs args, InvokeOptions options)
    public static Output<GetSecretsStoreResult> getSecretsStore(GetSecretsStoreArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getSecretsStore:getSecretsStore
      arguments:
        # arguments dictionary
    data "cloudflare_get_secrets_store" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Account Identifier
    Filter GetSecretsStoreFilter
    StoreId string
    Store Identifier
    AccountId string
    Account Identifier
    Filter GetSecretsStoreFilter
    StoreId string
    Store Identifier
    account_id string
    Account Identifier
    filter object
    store_id string
    Store Identifier
    accountId String
    Account Identifier
    filter GetSecretsStoreFilter
    storeId String
    Store Identifier
    accountId string
    Account Identifier
    filter GetSecretsStoreFilter
    storeId string
    Store Identifier
    account_id str
    Account Identifier
    filter GetSecretsStoreFilter
    store_id str
    Store Identifier
    accountId String
    Account Identifier
    filter Property Map
    storeId String
    Store Identifier

    getSecretsStore Result

    The following output properties are available:

    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
    Filter GetSecretsStoreFilter
    StoreId string
    Store Identifier
    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
    Filter GetSecretsStoreFilter
    StoreId string
    Store Identifier
    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
    filter object
    store_id string
    Store Identifier
    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
    filter GetSecretsStoreFilter
    storeId String
    Store Identifier
    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
    filter GetSecretsStoreFilter
    storeId string
    Store Identifier
    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
    filter GetSecretsStoreFilter
    store_id str
    Store Identifier
    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
    filter Property Map
    storeId String
    Store Identifier

    Supporting Types

    GetSecretsStoreFilter

    Direction string
    Direction to sort objects Available values: "asc", "desc".
    Order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    Direction string
    Direction to sort objects Available values: "asc", "desc".
    Order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    direction string
    Direction to sort objects Available values: "asc", "desc".
    order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    direction String
    Direction to sort objects Available values: "asc", "desc".
    order String
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    direction string
    Direction to sort objects Available values: "asc", "desc".
    order string
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    direction str
    Direction to sort objects Available values: "asc", "desc".
    order str
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
    direction String
    Direction to sort objects Available values: "asc", "desc".
    order String
    Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".

    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