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

    AccountId string
    Account Identifier
    StoreId string
    Store Identifier
    Filter GetSecretsStoreSecretFilter
    SecretId string
    Secret identifier tag.
    AccountId string
    Account Identifier
    StoreId string
    Store Identifier
    Filter GetSecretsStoreSecretFilter
    SecretId string
    Secret identifier tag.
    account_id string
    Account Identifier
    store_id string
    Store Identifier
    filter object
    secret_id string
    Secret identifier tag.
    accountId String
    Account Identifier
    storeId String
    Store Identifier
    filter GetSecretsStoreSecretFilter
    secretId String
    Secret identifier tag.
    accountId string
    Account Identifier
    storeId string
    Store Identifier
    filter GetSecretsStoreSecretFilter
    secretId string
    Secret identifier tag.
    account_id str
    Account Identifier
    store_id str
    Store Identifier
    filter GetSecretsStoreSecretFilter
    secret_id str
    Secret identifier tag.
    accountId String
    Account Identifier
    storeId String
    Store Identifier
    filter Property Map
    secretId String
    Secret identifier tag.

    getSecretsStoreSecret Result

    The following output properties are available:

    AccountId string
    Account Identifier
    Comment string
    Freeform text describing the secret
    Created string
    Whenthe secret was created.
    Id string
    Secret identifier tag.
    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
    Store Identifier
    Filter GetSecretsStoreSecretFilter
    SecretId string
    Secret identifier tag.
    AccountId string
    Account Identifier
    Comment string
    Freeform text describing the secret
    Created string
    Whenthe secret was created.
    Id string
    Secret identifier tag.
    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
    Store Identifier
    Filter GetSecretsStoreSecretFilter
    SecretId string
    Secret identifier tag.
    account_id string
    Account Identifier
    comment string
    Freeform text describing the secret
    created string
    Whenthe secret was created.
    id string
    Secret identifier tag.
    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
    Store Identifier
    filter object
    secret_id string
    Secret identifier tag.
    accountId String
    Account Identifier
    comment String
    Freeform text describing the secret
    created String
    Whenthe secret was created.
    id String
    Secret identifier tag.
    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
    Store Identifier
    filter GetSecretsStoreSecretFilter
    secretId String
    Secret identifier tag.
    accountId string
    Account Identifier
    comment string
    Freeform text describing the secret
    created string
    Whenthe secret was created.
    id string
    Secret identifier tag.
    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
    Store Identifier
    filter GetSecretsStoreSecretFilter
    secretId string
    Secret identifier tag.
    account_id str
    Account Identifier
    comment str
    Freeform text describing the secret
    created str
    Whenthe secret was created.
    id str
    Secret identifier tag.
    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
    Store Identifier
    filter GetSecretsStoreSecretFilter
    secret_id str
    Secret identifier tag.
    accountId String
    Account Identifier
    comment String
    Freeform text describing the secret
    created String
    Whenthe secret was created.
    id String
    Secret identifier tag.
    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
    Store Identifier
    filter Property Map
    secretId String
    Secret identifier tag.

    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<ImmutableArray<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(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<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[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<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
    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