1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. getSecret
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady
filescom logo
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady

    A Secret stores named, typed secret material for later use by features that reference the Secret by ID.

    Secret values are encrypted at rest and are write-only. API responses include metadata and configured value field names, but never include the stored secret values.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as filescom from "pulumi-filescom";
    
    const exampleSecret = filescom.getSecret({
        id: 1,
    });
    
    import pulumi
    import pulumi_filescom as filescom
    
    example_secret = filescom.get_secret(id=1)
    
    package main
    
    import (
    	"github.com/jschady/pulumi-filescom/sdk/go/filescom"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := filescom.GetSecret(ctx, &filescom.LookupSecretArgs{
    			Id: 1,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Filescom = Jschady.Filescom;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleSecret = Filescom.GetSecret.Invoke(new()
        {
            Id = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.filescom.FilescomFunctions;
    import com.pulumi.filescom.inputs.GetSecretArgs;
    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 exampleSecret = FilescomFunctions.getSecret(GetSecretArgs.builder()
                .id(1)
                .build());
    
        }
    }
    
    variables:
      exampleSecret:
        fn::invoke:
          function: filescom:getSecret
          arguments:
            id: 1
    
    pulumi {
      required_providers {
        filescom = {
          source = "pulumi/filescom"
        }
      }
    }
    
    data "filescom_getsecret" "exampleSecret" {
      id = 1
    }
    

    Using getSecret

    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 getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
    function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOutputOptions): Output<GetSecretResult>
    def get_secret(id: Optional[int] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSecretResult
    def get_secret_output(id: pulumi.Input[Optional[int]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetSecretResult]
    func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)
    func LookupSecretOutput(ctx *Context, args *LookupSecretOutputArgs, opts ...InvokeOption) LookupSecretResultOutput

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

    public static class GetSecret 
    {
        public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
        public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
    public static Output<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
    public static Output<GetSecretResult> getSecret(GetSecretArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: filescom:index/getSecret:getSecret
      arguments:
        # arguments dictionary
    data "filescom_get_secret" "name" {
        # arguments
    }

    The following arguments are supported:

    Id int
    Secret ID.
    Id int
    Secret ID.
    id number
    Secret ID.
    id Integer
    Secret ID.
    id number
    Secret ID.
    id int
    Secret ID.
    id Number
    Secret ID.

    getSecret Result

    The following output properties are available:

    CreatedAt string
    Secret create date/time.
    Description string
    Internal description for your reference.
    Id int
    Secret ID.
    Metadata object
    Non-secret metadata for the Secret type.
    Name string
    Secret name.
    SecretType string
    Secret type.
    UpdatedAt string
    Secret update date/time.
    ValueFieldNames List<string>
    Names of configured secret value fields. Secret values are never returned.
    WorkspaceId int
    Workspace ID. 0 means the default workspace.
    CreatedAt string
    Secret create date/time.
    Description string
    Internal description for your reference.
    Id int
    Secret ID.
    Metadata interface{}
    Non-secret metadata for the Secret type.
    Name string
    Secret name.
    SecretType string
    Secret type.
    UpdatedAt string
    Secret update date/time.
    ValueFieldNames []string
    Names of configured secret value fields. Secret values are never returned.
    WorkspaceId int
    Workspace ID. 0 means the default workspace.
    created_at string
    Secret create date/time.
    description string
    Internal description for your reference.
    id number
    Secret ID.
    metadata any
    Non-secret metadata for the Secret type.
    name string
    Secret name.
    secret_type string
    Secret type.
    updated_at string
    Secret update date/time.
    value_field_names list(string)
    Names of configured secret value fields. Secret values are never returned.
    workspace_id number
    Workspace ID. 0 means the default workspace.
    createdAt String
    Secret create date/time.
    description String
    Internal description for your reference.
    id Integer
    Secret ID.
    metadata Object
    Non-secret metadata for the Secret type.
    name String
    Secret name.
    secretType String
    Secret type.
    updatedAt String
    Secret update date/time.
    valueFieldNames List<String>
    Names of configured secret value fields. Secret values are never returned.
    workspaceId Integer
    Workspace ID. 0 means the default workspace.
    createdAt string
    Secret create date/time.
    description string
    Internal description for your reference.
    id number
    Secret ID.
    metadata any
    Non-secret metadata for the Secret type.
    name string
    Secret name.
    secretType string
    Secret type.
    updatedAt string
    Secret update date/time.
    valueFieldNames string[]
    Names of configured secret value fields. Secret values are never returned.
    workspaceId number
    Workspace ID. 0 means the default workspace.
    created_at str
    Secret create date/time.
    description str
    Internal description for your reference.
    id int
    Secret ID.
    metadata Any
    Non-secret metadata for the Secret type.
    name str
    Secret name.
    secret_type str
    Secret type.
    updated_at str
    Secret update date/time.
    value_field_names Sequence[str]
    Names of configured secret value fields. Secret values are never returned.
    workspace_id int
    Workspace ID. 0 means the default workspace.
    createdAt String
    Secret create date/time.
    description String
    Internal description for your reference.
    id Number
    Secret ID.
    metadata Any
    Non-secret metadata for the Secret type.
    name String
    Secret name.
    secretType String
    Secret type.
    updatedAt String
    Secret update date/time.
    valueFieldNames List<String>
    Names of configured secret value fields. Secret values are never returned.
    workspaceId Number
    Workspace ID. 0 means the default workspace.

    Package Details

    Repository
    filescom jschady/pulumi-filescom
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the filescom Terraform Provider.
    filescom logo
    Viewing docs for Files.com v0.1.1
    published on Thursday, Aug 20, 2026 by jschady

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial