1. Packages
  2. Gcore Provider
  3. API Docs
  4. FastedgeSecret
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
gcore logo
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core

    FastEdge secrets store sensitive values such as API keys and tokens that can be referenced by FastEdge applications.

    Example Usage

    Secret with multiple slots

    Creates a FastEdge secret with two secret slots using variables.

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    // Create a FastEdge secret with multiple slots
    const example = new gcore.FastedgeSecret("example", {
        name: "my-edge-secret",
        comment: "API keys for edge functions",
        secretSlots: [
            {
                slot: 0,
                value: secretSlot0,
            },
            {
                slot: 1,
                value: secretSlot1,
            },
        ],
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    # Create a FastEdge secret with multiple slots
    example = gcore.FastedgeSecret("example",
        name="my-edge-secret",
        comment="API keys for edge functions",
        secret_slots=[
            {
                "slot": 0,
                "value": secret_slot0,
            },
            {
                "slot": 1,
                "value": secret_slot1,
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a FastEdge secret with multiple slots
    		_, err := gcore.NewFastedgeSecret(ctx, "example", &gcore.FastedgeSecretArgs{
    			Name:    pulumi.String("my-edge-secret"),
    			Comment: pulumi.String("API keys for edge functions"),
    			SecretSlots: gcore.FastedgeSecretSecretSlotArray{
    				&gcore.FastedgeSecretSecretSlotArgs{
    					Slot:  pulumi.Float64(0),
    					Value: pulumi.Any(secretSlot0),
    				},
    				&gcore.FastedgeSecretSecretSlotArgs{
    					Slot:  pulumi.Float64(1),
    					Value: pulumi.Any(secretSlot1),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a FastEdge secret with multiple slots
        var example = new Gcore.FastedgeSecret("example", new()
        {
            Name = "my-edge-secret",
            Comment = "API keys for edge functions",
            SecretSlots = new[]
            {
                new Gcore.Inputs.FastedgeSecretSecretSlotArgs
                {
                    Slot = 0,
                    Value = secretSlot0,
                },
                new Gcore.Inputs.FastedgeSecretSecretSlotArgs
                {
                    Slot = 1,
                    Value = secretSlot1,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.FastedgeSecret;
    import com.pulumi.gcore.FastedgeSecretArgs;
    import com.pulumi.gcore.inputs.FastedgeSecretSecretSlotArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            // Create a FastEdge secret with multiple slots
            var example = new FastedgeSecret("example", FastedgeSecretArgs.builder()
                .name("my-edge-secret")
                .comment("API keys for edge functions")
                .secretSlots(            
                    FastedgeSecretSecretSlotArgs.builder()
                        .slot(0.0)
                        .value(secretSlot0)
                        .build(),
                    FastedgeSecretSecretSlotArgs.builder()
                        .slot(1.0)
                        .value(secretSlot1)
                        .build())
                .build());
    
        }
    }
    
    resources:
      # Create a FastEdge secret with multiple slots
      example:
        type: gcore:FastedgeSecret
        properties:
          name: my-edge-secret
          comment: API keys for edge functions
          secretSlots:
            - slot: 0
              value: ${secretSlot0}
            - slot: 1
              value: ${secretSlot1}
    

    Create FastedgeSecret Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FastedgeSecret(name: string, args?: FastedgeSecretArgs, opts?: CustomResourceOptions);
    @overload
    def FastedgeSecret(resource_name: str,
                       args: Optional[FastedgeSecretArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def FastedgeSecret(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       comment: Optional[str] = None,
                       name: Optional[str] = None,
                       secret_slots: Optional[Sequence[FastedgeSecretSecretSlotArgs]] = None)
    func NewFastedgeSecret(ctx *Context, name string, args *FastedgeSecretArgs, opts ...ResourceOption) (*FastedgeSecret, error)
    public FastedgeSecret(string name, FastedgeSecretArgs? args = null, CustomResourceOptions? opts = null)
    public FastedgeSecret(String name, FastedgeSecretArgs args)
    public FastedgeSecret(String name, FastedgeSecretArgs args, CustomResourceOptions options)
    
    type: gcore:FastedgeSecret
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FastedgeSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FastedgeSecretArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FastedgeSecretArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FastedgeSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FastedgeSecretArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var fastedgeSecretResource = new Gcore.FastedgeSecret("fastedgeSecretResource", new()
    {
        Comment = "string",
        Name = "string",
        SecretSlots = new[]
        {
            new Gcore.Inputs.FastedgeSecretSecretSlotArgs
            {
                Slot = 0,
                Checksum = "string",
                Value = "string",
            },
        },
    });
    
    example, err := gcore.NewFastedgeSecret(ctx, "fastedgeSecretResource", &gcore.FastedgeSecretArgs{
    	Comment: pulumi.String("string"),
    	Name:    pulumi.String("string"),
    	SecretSlots: gcore.FastedgeSecretSecretSlotArray{
    		&gcore.FastedgeSecretSecretSlotArgs{
    			Slot:     pulumi.Float64(0),
    			Checksum: pulumi.String("string"),
    			Value:    pulumi.String("string"),
    		},
    	},
    })
    
    var fastedgeSecretResource = new FastedgeSecret("fastedgeSecretResource", FastedgeSecretArgs.builder()
        .comment("string")
        .name("string")
        .secretSlots(FastedgeSecretSecretSlotArgs.builder()
            .slot(0.0)
            .checksum("string")
            .value("string")
            .build())
        .build());
    
    fastedge_secret_resource = gcore.FastedgeSecret("fastedgeSecretResource",
        comment="string",
        name="string",
        secret_slots=[{
            "slot": 0,
            "checksum": "string",
            "value": "string",
        }])
    
    const fastedgeSecretResource = new gcore.FastedgeSecret("fastedgeSecretResource", {
        comment: "string",
        name: "string",
        secretSlots: [{
            slot: 0,
            checksum: "string",
            value: "string",
        }],
    });
    
    type: gcore:FastedgeSecret
    properties:
        comment: string
        name: string
        secretSlots:
            - checksum: string
              slot: 0
              value: string
    

    FastedgeSecret Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FastedgeSecret resource accepts the following input properties:

    Comment string
    A description or comment about the secret.
    Name string
    The unique name of the secret.
    SecretSlots List<FastedgeSecretSecretSlot>
    A list of secret slots associated with this secret.
    Comment string
    A description or comment about the secret.
    Name string
    The unique name of the secret.
    SecretSlots []FastedgeSecretSecretSlotArgs
    A list of secret slots associated with this secret.
    comment String
    A description or comment about the secret.
    name String
    The unique name of the secret.
    secretSlots List<FastedgeSecretSecretSlot>
    A list of secret slots associated with this secret.
    comment string
    A description or comment about the secret.
    name string
    The unique name of the secret.
    secretSlots FastedgeSecretSecretSlot[]
    A list of secret slots associated with this secret.
    comment str
    A description or comment about the secret.
    name str
    The unique name of the secret.
    secret_slots Sequence[FastedgeSecretSecretSlotArgs]
    A list of secret slots associated with this secret.
    comment String
    A description or comment about the secret.
    name String
    The unique name of the secret.
    secretSlots List<Property Map>
    A list of secret slots associated with this secret.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FastedgeSecret resource produces the following output properties:

    AppCount double
    The number of applications that use this secret.
    FastedgeSecretId double
    The unique identifier of the secret.
    Id string
    The provider-assigned unique ID for this managed resource.
    AppCount float64
    The number of applications that use this secret.
    FastedgeSecretId float64
    The unique identifier of the secret.
    Id string
    The provider-assigned unique ID for this managed resource.
    appCount Double
    The number of applications that use this secret.
    fastedgeSecretId Double
    The unique identifier of the secret.
    id String
    The provider-assigned unique ID for this managed resource.
    appCount number
    The number of applications that use this secret.
    fastedgeSecretId number
    The unique identifier of the secret.
    id string
    The provider-assigned unique ID for this managed resource.
    app_count float
    The number of applications that use this secret.
    fastedge_secret_id float
    The unique identifier of the secret.
    id str
    The provider-assigned unique ID for this managed resource.
    appCount Number
    The number of applications that use this secret.
    fastedgeSecretId Number
    The unique identifier of the secret.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FastedgeSecret Resource

    Get an existing FastedgeSecret resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FastedgeSecretState, opts?: CustomResourceOptions): FastedgeSecret
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_count: Optional[float] = None,
            comment: Optional[str] = None,
            fastedge_secret_id: Optional[float] = None,
            name: Optional[str] = None,
            secret_slots: Optional[Sequence[FastedgeSecretSecretSlotArgs]] = None) -> FastedgeSecret
    func GetFastedgeSecret(ctx *Context, name string, id IDInput, state *FastedgeSecretState, opts ...ResourceOption) (*FastedgeSecret, error)
    public static FastedgeSecret Get(string name, Input<string> id, FastedgeSecretState? state, CustomResourceOptions? opts = null)
    public static FastedgeSecret get(String name, Output<String> id, FastedgeSecretState state, CustomResourceOptions options)
    resources:  _:    type: gcore:FastedgeSecret    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppCount double
    The number of applications that use this secret.
    Comment string
    A description or comment about the secret.
    FastedgeSecretId double
    The unique identifier of the secret.
    Name string
    The unique name of the secret.
    SecretSlots List<FastedgeSecretSecretSlot>
    A list of secret slots associated with this secret.
    AppCount float64
    The number of applications that use this secret.
    Comment string
    A description or comment about the secret.
    FastedgeSecretId float64
    The unique identifier of the secret.
    Name string
    The unique name of the secret.
    SecretSlots []FastedgeSecretSecretSlotArgs
    A list of secret slots associated with this secret.
    appCount Double
    The number of applications that use this secret.
    comment String
    A description or comment about the secret.
    fastedgeSecretId Double
    The unique identifier of the secret.
    name String
    The unique name of the secret.
    secretSlots List<FastedgeSecretSecretSlot>
    A list of secret slots associated with this secret.
    appCount number
    The number of applications that use this secret.
    comment string
    A description or comment about the secret.
    fastedgeSecretId number
    The unique identifier of the secret.
    name string
    The unique name of the secret.
    secretSlots FastedgeSecretSecretSlot[]
    A list of secret slots associated with this secret.
    app_count float
    The number of applications that use this secret.
    comment str
    A description or comment about the secret.
    fastedge_secret_id float
    The unique identifier of the secret.
    name str
    The unique name of the secret.
    secret_slots Sequence[FastedgeSecretSecretSlotArgs]
    A list of secret slots associated with this secret.
    appCount Number
    The number of applications that use this secret.
    comment String
    A description or comment about the secret.
    fastedgeSecretId Number
    The unique identifier of the secret.
    name String
    The unique name of the secret.
    secretSlots List<Property Map>
    A list of secret slots associated with this secret.

    Supporting Types

    FastedgeSecretSecretSlot, FastedgeSecretSecretSlotArgs

    Slot double
    Unix timestamp (seconds since epoch) indicating when this secret version becomes active. Use for time-based secret rotation.
    Checksum string
    SHA-256 hash of the decrypted value for integrity verification (auto-generated)
    Value string
    The plaintext secret value. Will be encrypted with AES-256-GCM before storage.
    Slot float64
    Unix timestamp (seconds since epoch) indicating when this secret version becomes active. Use for time-based secret rotation.
    Checksum string
    SHA-256 hash of the decrypted value for integrity verification (auto-generated)
    Value string
    The plaintext secret value. Will be encrypted with AES-256-GCM before storage.
    slot Double
    Unix timestamp (seconds since epoch) indicating when this secret version becomes active. Use for time-based secret rotation.
    checksum String
    SHA-256 hash of the decrypted value for integrity verification (auto-generated)
    value String
    The plaintext secret value. Will be encrypted with AES-256-GCM before storage.
    slot number
    Unix timestamp (seconds since epoch) indicating when this secret version becomes active. Use for time-based secret rotation.
    checksum string
    SHA-256 hash of the decrypted value for integrity verification (auto-generated)
    value string
    The plaintext secret value. Will be encrypted with AES-256-GCM before storage.
    slot float
    Unix timestamp (seconds since epoch) indicating when this secret version becomes active. Use for time-based secret rotation.
    checksum str
    SHA-256 hash of the decrypted value for integrity verification (auto-generated)
    value str
    The plaintext secret value. Will be encrypted with AES-256-GCM before storage.
    slot Number
    Unix timestamp (seconds since epoch) indicating when this secret version becomes active. Use for time-based secret rotation.
    checksum String
    SHA-256 hash of the decrypted value for integrity verification (auto-generated)
    value String
    The plaintext secret value. Will be encrypted with AES-256-GCM before storage.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import gcore:index/fastedgeSecret:FastedgeSecret example '<secret_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    Viewing docs for gcore 2.0.0-alpha.2
    published on Tuesday, Mar 24, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.