1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getSecretsStoreSecret
Viewing docs for Cloudflare v6.19.0
published on Thursday, Aug 6, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.19.0
published on Thursday, Aug 6, 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 exampleSecretsStoreSecret = cloudflare.getSecretsStoreSecret({
        accountId: "985e105f4ecef8ad9ca31a8372d0c353",
        storeId: "023e105f4ecef8ad9ca31a8372d0c353",
        secretId: "3fd85f74b32742f1bff64a85009dda07",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_secrets_store_secret = cloudflare.get_secrets_store_secret(account_id="985e105f4ecef8ad9ca31a8372d0c353",
        store_id="023e105f4ecef8ad9ca31a8372d0c353",
        secret_id="3fd85f74b32742f1bff64a85009dda07")
    
    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.GetSecretsStoreSecret(ctx, &cloudflare.LookupSecretsStoreSecretArgs{
    			AccountId: "985e105f4ecef8ad9ca31a8372d0c353",
    			StoreId:   "023e105f4ecef8ad9ca31a8372d0c353",
    			SecretId:  pulumi.StringRef("3fd85f74b32742f1bff64a85009dda07"),
    		}, 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 exampleSecretsStoreSecret = Cloudflare.GetSecretsStoreSecret.Invoke(new()
        {
            AccountId = "985e105f4ecef8ad9ca31a8372d0c353",
            StoreId = "023e105f4ecef8ad9ca31a8372d0c353",
            SecretId = "3fd85f74b32742f1bff64a85009dda07",
        });
    
    });
    
    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.GetSecretsStoreSecretArgs;
    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 exampleSecretsStoreSecret = CloudflareFunctions.getSecretsStoreSecret(GetSecretsStoreSecretArgs.builder()
                .accountId("985e105f4ecef8ad9ca31a8372d0c353")
                .storeId("023e105f4ecef8ad9ca31a8372d0c353")
                .secretId("3fd85f74b32742f1bff64a85009dda07")
                .build());
    
        }
    }
    
    variables:
      exampleSecretsStoreSecret:
        fn::invoke:
          function: cloudflare:getSecretsStoreSecret
          arguments:
            accountId: 985e105f4ecef8ad9ca31a8372d0c353
            storeId: 023e105f4ecef8ad9ca31a8372d0c353
            secretId: 3fd85f74b32742f1bff64a85009dda07
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getsecretsstoresecret" "exampleSecretsStoreSecret" {
      account_id = "985e105f4ecef8ad9ca31a8372d0c353"
      store_id   = "023e105f4ecef8ad9ca31a8372d0c353"
      secret_id  = "3fd85f74b32742f1bff64a85009dda07"
    }
    

    Using getSecretsStoreSecret

    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 getSecretsStoreSecret(args: GetSecretsStoreSecretArgs, opts?: InvokeOptions): Promise<GetSecretsStoreSecretResult>
    function getSecretsStoreSecretOutput(args: GetSecretsStoreSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretsStoreSecretResult>
    def get_secrets_store_secret(account_id: Optional[str] = None,
                                 filter: Optional[GetSecretsStoreSecretFilter] = None,
                                 secret_id: Optional[str] = None,
                                 store_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSecretsStoreSecretResult
    def get_secrets_store_secret_output(account_id: pulumi.Input[Optional[str]] = None,
                                 filter: pulumi.Input[Optional[GetSecretsStoreSecretFilterArgs]] = None,
                                 secret_id: pulumi.Input[Optional[str]] = None,
                                 store_id: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSecretsStoreSecretResult]
    func LookupSecretsStoreSecret(ctx *Context, args *LookupSecretsStoreSecretArgs, opts ...InvokeOption) (*LookupSecretsStoreSecretResult, error)
    func LookupSecretsStoreSecretOutput(ctx *Context, args *LookupSecretsStoreSecretOutputArgs, opts ...InvokeOption) LookupSecretsStoreSecretResultOutput

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

    public static class GetSecretsStoreSecret 
    {
        public static Task<GetSecretsStoreSecretResult> InvokeAsync(GetSecretsStoreSecretArgs args, InvokeOptions? opts = null)
        public static Output<GetSecretsStoreSecretResult> Invoke(GetSecretsStoreSecretInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecretsStoreSecretResult> getSecretsStoreSecret(GetSecretsStoreSecretArgs args, InvokeOptions options)
    public static Output<GetSecretsStoreSecretResult> getSecretsStoreSecret(GetSecretsStoreSecretArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getSecretsStoreSecret:getSecretsStoreSecret
      arguments:
        # arguments dictionary
    data "cloudflare_get_secrets_store_secret" "name" {
        # arguments
    }

    The following arguments are supported:

    getSecretsStoreSecret Result

    The following output properties are available:

    AccountId string
    Comment string
    Freeform text describing the secret.
    Created string
    When the secret was created.
    Id string
    The ID of this resource.
    Modified string
    When the secret was modified.
    Name string
    The name of the secret.
    Scopes List<string>
    The list of services that can use this secret.
    Status string
    Available values: "pending", "active", "deleted".
    StoreId string
    Filter GetSecretsStoreSecretFilter
    SecretId string
    AccountId string
    Comment string
    Freeform text describing the secret.
    Created string
    When the secret was created.
    Id string
    The ID of this resource.
    Modified string
    When the secret was modified.
    Name string
    The name of the secret.
    Scopes []string
    The list of services that can use this secret.
    Status string
    Available values: "pending", "active", "deleted".
    StoreId string
    Filter GetSecretsStoreSecretFilter
    SecretId string
    account_id string
    comment string
    Freeform text describing the secret.
    created string
    When the secret was created.
    id string
    The ID of this resource.
    modified string
    When the secret was modified.
    name string
    The name of the secret.
    scopes list(string)
    The list of services that can use this secret.
    status string
    Available values: "pending", "active", "deleted".
    store_id string
    filter object
    secret_id string
    accountId String
    comment String
    Freeform text describing the secret.
    created String
    When the secret was created.
    id String
    The ID of this resource.
    modified String
    When the secret was modified.
    name String
    The name of the secret.
    scopes List<String>
    The list of services that can use this secret.
    status String
    Available values: "pending", "active", "deleted".
    storeId String
    filter GetSecretsStoreSecretFilter
    secretId String
    accountId string
    comment string
    Freeform text describing the secret.
    created string
    When the secret was created.
    id string
    The ID of this resource.
    modified string
    When the secret was modified.
    name string
    The name of the secret.
    scopes string[]
    The list of services that can use this secret.
    status string
    Available values: "pending", "active", "deleted".
    storeId string
    filter GetSecretsStoreSecretFilter
    secretId string
    account_id str
    comment str
    Freeform text describing the secret.
    created str
    When the secret was created.
    id str
    The ID of this resource.
    modified str
    When the secret was modified.
    name str
    The name of the secret.
    scopes Sequence[str]
    The list of services that can use this secret.
    status str
    Available values: "pending", "active", "deleted".
    store_id str
    filter GetSecretsStoreSecretFilter
    secret_id str
    accountId String
    comment String
    Freeform text describing the secret.
    created String
    When the secret was created.
    id String
    The ID of this resource.
    modified String
    When the secret was modified.
    name String
    The name of the secret.
    scopes List<String>
    The list of services that can use this secret.
    status String
    Available values: "pending", "active", "deleted".
    storeId String
    filter Property Map
    secretId String

    Supporting Types

    GetSecretsStoreSecretFilter

    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".
    Scopes List<string>
    Only secrets with the given scopes will be returned.
    Search string
    Search secrets using a filter string, filtering across name and comment.
    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".
    Scopes []string
    Only secrets with the given scopes will be returned.
    Search string
    Search secrets using a filter string, filtering across name and comment.
    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".
    scopes list(string)
    Only secrets with the given scopes will be returned.
    search string
    Search secrets using a filter string, filtering across name and comment.
    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".
    scopes List<String>
    Only secrets with the given scopes will be returned.
    search String
    Search secrets using a filter string, filtering across name and comment.
    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".
    scopes string[]
    Only secrets with the given scopes will be returned.
    search string
    Search secrets using a filter string, filtering across name and comment.
    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".
    scopes Sequence[str]
    Only secrets with the given scopes will be returned.
    search str
    Search secrets using a filter string, filtering across name and comment.
    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".
    scopes List<String>
    Only secrets with the given scopes will be returned.
    search String
    Search secrets using a filter string, filtering across name and comment.

    Package Details

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial