Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
Secrets Store ReadSecrets Store Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleSecretsStoreSecrets = cloudflare.getSecretsStoreSecrets({
accountId: "985e105f4ecef8ad9ca31a8372d0c353",
storeId: "023e105f4ecef8ad9ca31a8372d0c353",
scopes: [[
"workers",
"ai_gateway",
"dex",
"access",
]],
search: "search",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_secrets_store_secrets = cloudflare.get_secrets_store_secrets(account_id="985e105f4ecef8ad9ca31a8372d0c353",
store_id="023e105f4ecef8ad9ca31a8372d0c353",
scopes=[[
"workers",
"ai_gateway",
"dex",
"access",
]],
search="search")
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.GetSecretsStoreSecrets(ctx, &cloudflare.LookupSecretsStoreSecretsArgs{
AccountId: "985e105f4ecef8ad9ca31a8372d0c353",
StoreId: "023e105f4ecef8ad9ca31a8372d0c353",
Scopes: [][]string{
[]string{
"workers",
"ai_gateway",
"dex",
"access",
},
},
Search: pulumi.StringRef("search"),
}, 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 exampleSecretsStoreSecrets = Cloudflare.GetSecretsStoreSecrets.Invoke(new()
{
AccountId = "985e105f4ecef8ad9ca31a8372d0c353",
StoreId = "023e105f4ecef8ad9ca31a8372d0c353",
Scopes = new[]
{
new[]
{
"workers",
"ai_gateway",
"dex",
"access",
},
},
Search = "search",
});
});
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.GetSecretsStoreSecretsArgs;
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 exampleSecretsStoreSecrets = CloudflareFunctions.getSecretsStoreSecrets(GetSecretsStoreSecretsArgs.builder()
.accountId("985e105f4ecef8ad9ca31a8372d0c353")
.storeId("023e105f4ecef8ad9ca31a8372d0c353")
.scopes(
"workers",
"ai_gateway",
"dex",
"access")
.search("search")
.build());
}
}
variables:
exampleSecretsStoreSecrets:
fn::invoke:
function: cloudflare:getSecretsStoreSecrets
arguments:
accountId: 985e105f4ecef8ad9ca31a8372d0c353
storeId: 023e105f4ecef8ad9ca31a8372d0c353
scopes:
- - workers
- ai_gateway
- dex
- access
search: search
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getsecretsstoresecrets" "exampleSecretsStoreSecrets" {
account_id = "985e105f4ecef8ad9ca31a8372d0c353"
store_id = "023e105f4ecef8ad9ca31a8372d0c353"
scopes = [["workers", "ai_gateway", "dex", "access"]]
search = "search"
}
Using getSecretsStoreSecrets
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 getSecretsStoreSecrets(args: GetSecretsStoreSecretsArgs, opts?: InvokeOptions): Promise<GetSecretsStoreSecretsResult>
function getSecretsStoreSecretsOutput(args: GetSecretsStoreSecretsOutputArgs, opts?: InvokeOptions): Output<GetSecretsStoreSecretsResult>def get_secrets_store_secrets(account_id: Optional[str] = None,
direction: Optional[str] = None,
max_items: Optional[int] = None,
order: Optional[str] = None,
scopes: Optional[Sequence[Sequence[str]]] = None,
search: Optional[str] = None,
store_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecretsStoreSecretsResult
def get_secrets_store_secrets_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,
scopes: pulumi.Input[Optional[Sequence[pulumi.Input[Sequence[pulumi.Input[str]]]]]] = None,
search: pulumi.Input[Optional[str]] = None,
store_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecretsStoreSecretsResult]func LookupSecretsStoreSecrets(ctx *Context, args *LookupSecretsStoreSecretsArgs, opts ...InvokeOption) (*LookupSecretsStoreSecretsResult, error)
func LookupSecretsStoreSecretsOutput(ctx *Context, args *LookupSecretsStoreSecretsOutputArgs, opts ...InvokeOption) LookupSecretsStoreSecretsResultOutput> Note: This function is named LookupSecretsStoreSecrets in the Go SDK.
public static class GetSecretsStoreSecrets
{
public static Task<GetSecretsStoreSecretsResult> InvokeAsync(GetSecretsStoreSecretsArgs args, InvokeOptions? opts = null)
public static Output<GetSecretsStoreSecretsResult> Invoke(GetSecretsStoreSecretsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecretsStoreSecretsResult> getSecretsStoreSecrets(GetSecretsStoreSecretsArgs args, InvokeOptions options)
public static Output<GetSecretsStoreSecretsResult> getSecretsStoreSecrets(GetSecretsStoreSecretsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getSecretsStoreSecrets:getSecretsStoreSecrets
arguments:
# arguments dictionarydata "cloudflare_get_secrets_store_secrets" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Account Identifier
- Store
Id string - Store Identifier
- Direction string
- Direction to sort objects Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- Order string
- Order secrets by values in the given field Available values: "name", "comment", "created", "modified", "status".
- Scopes
List<Immutable
Array<string>> - Only secrets with the given scopes will be returned
- Search string
- Search secrets using a filter string, filtering across name and comment
- Account
Id string - Account Identifier
- Store
Id string - Store Identifier
- Direction string
- Direction to sort objects Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- 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
- account_
id string - Account Identifier
- store_
id string - Store 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".
- 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
- account
Id String - Account Identifier
- store
Id String - Store Identifier
- direction String
- Direction to sort objects Available values: "asc", "desc".
- max
Items Integer - Max items to fetch, default: 1000
- 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
- account
Id string - Account Identifier
- store
Id string - Store 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".
- scopes string[][]
- Only secrets with the given scopes will be returned
- search string
- Search secrets using a filter string, filtering across name and comment
- account_
id str - Account Identifier
- store_
id str - Store 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".
- 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
- account
Id String - Account Identifier
- store
Id String - Store 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".
- 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
getSecretsStoreSecrets Result
The following output properties are available:
- 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<Get
Secrets Store Secrets Result> - The items returned by the data source
- Store
Id string - Store Identifier
- Max
Items int - Max items to fetch, default: 1000
- Scopes
List<Immutable
Array<string>> - Only secrets with the given scopes will be returned
- Search string
- Search secrets using a filter string, filtering across name and comment
- 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
[]Get
Secrets Store Secrets Result - The items returned by the data source
- Store
Id string - Store Identifier
- Max
Items int - Max items to fetch, default: 1000
- Scopes [][]string
- Only secrets with the given scopes will be returned
- Search string
- Search secrets using a filter string, filtering across name and comment
- 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
- store_
id string - Store Identifier
- max_
items number - Max items to fetch, default: 1000
- 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
- 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<Get
Secrets Store Secrets Result> - The items returned by the data source
- store
Id String - Store Identifier
- max
Items Integer - Max items to fetch, default: 1000
- 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
- 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
Get
Secrets Store Secrets Result[] - The items returned by the data source
- store
Id string - Store Identifier
- max
Items number - Max items to fetch, default: 1000
- scopes string[][]
- Only secrets with the given scopes will be returned
- search string
- Search secrets using a filter string, filtering across name and comment
- 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[Get
Secrets Store Secrets Result] - The items returned by the data source
- store_
id str - Store Identifier
- max_
items int - Max items to fetch, default: 1000
- 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
- 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<Property Map>
- The items returned by the data source
- store
Id String - Store Identifier
- max
Items Number - Max items to fetch, default: 1000
- 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
Supporting Types
GetSecretsStoreSecretsResult
- 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
- 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".
- Store
Id string - Store 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
- 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
- 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".
- store
Id string - Store 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
- 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
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi