published on Thursday, Aug 20, 2026 by jschady
published on Thursday, Aug 20, 2026 by jschady
A GPGKey object on Files.com is used to securely store both the private and public keys associated with a GPG (GNU Privacy Guard) encryption key pair. This object enables the encryption and decryption of data using GPG, allowing you to protect sensitive information.
The private key is kept confidential and is used for decrypting data or signing messages to prove authenticity, while the public key is used to encrypt messages that only the owner of the private key can decrypt.
By storing both keys together in a GPGKey object, Files.com makes it easier to understand encryption operations, ensuring secure and efficient handling of encrypted data within the platform.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as filescom from "pulumi-filescom";
const exampleGpgKey = filescom.getGpgKey({
id: 1,
});
import pulumi
import pulumi_filescom as filescom
example_gpg_key = filescom.get_gpg_key(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.GetGpgKey(ctx, &filescom.LookupGpgKeyArgs{
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 exampleGpgKey = Filescom.GetGpgKey.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.GetGpgKeyArgs;
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 exampleGpgKey = FilescomFunctions.getGpgKey(GetGpgKeyArgs.builder()
.id(1)
.build());
}
}
variables:
exampleGpgKey:
fn::invoke:
function: filescom:getGpgKey
arguments:
id: 1
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
data "filescom_getgpgkey" "exampleGpgKey" {
id = 1
}
Using getGpgKey
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 getGpgKey(args: GetGpgKeyArgs, opts?: InvokeOptions): Promise<GetGpgKeyResult>
function getGpgKeyOutput(args: GetGpgKeyOutputArgs, opts?: InvokeOutputOptions): Output<GetGpgKeyResult>def get_gpg_key(id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetGpgKeyResult
def get_gpg_key_output(id: pulumi.Input[Optional[int]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetGpgKeyResult]func LookupGpgKey(ctx *Context, args *LookupGpgKeyArgs, opts ...InvokeOption) (*LookupGpgKeyResult, error)
func LookupGpgKeyOutput(ctx *Context, args *LookupGpgKeyOutputArgs, opts ...InvokeOption) LookupGpgKeyResultOutput> Note: This function is named LookupGpgKey in the Go SDK.
public static class GetGpgKey
{
public static Task<GetGpgKeyResult> InvokeAsync(GetGpgKeyArgs args, InvokeOptions? opts = null)
public static Output<GetGpgKeyResult> Invoke(GetGpgKeyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetGpgKeyResult> Invoke(GetGpgKeyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetGpgKeyResult> getGpgKey(GetGpgKeyArgs args, InvokeOptions options)
public static Output<GetGpgKeyResult> getGpgKey(GetGpgKeyArgs args, InvokeOptions options)
public static Output<GetGpgKeyResult> getGpgKey(GetGpgKeyArgs args, InvokeOutputOptions options)
fn::invoke:
function: filescom:index/getGpgKey:getGpgKey
arguments:
# arguments dictionarydata "filescom_get_gpg_key" "name" {
# arguments
}The following arguments are supported:
- Id int
- GPG key ID.
- Id int
- GPG key ID.
- id number
- GPG key ID.
- id Integer
- GPG key ID.
- id number
- GPG key ID.
- id int
- GPG key ID.
- id Number
- GPG key ID.
getGpgKey Result
The following output properties are available:
- Expires
At string - GPG key expiration date.
- Generated
Private stringKey - GPG private key.
- Generated
Public stringKey - GPG public key
- Id int
- GPG key ID.
- Name string
- GPG key name.
- Partner
Id int - Partner ID who owns this GPG Key, if applicable.
- Partner
Name string - Name of the Partner who owns this GPG Key, if applicable.
- Private
Key stringMd5 - MD5 hash of the GPG private key.
- Private
Key stringPassword Md5 - GPG private key password. Only required for password protected keys.
- Public
Key stringMd5 - MD5 hash of the GPG public key
- User
Id int - User ID who owns this GPG Key, if applicable.
- Workspace
Id int - Workspace ID (0 for default workspace).
- Expires
At string - GPG key expiration date.
- Generated
Private stringKey - GPG private key.
- Generated
Public stringKey - GPG public key
- Id int
- GPG key ID.
- Name string
- GPG key name.
- Partner
Id int - Partner ID who owns this GPG Key, if applicable.
- Partner
Name string - Name of the Partner who owns this GPG Key, if applicable.
- Private
Key stringMd5 - MD5 hash of the GPG private key.
- Private
Key stringPassword Md5 - GPG private key password. Only required for password protected keys.
- Public
Key stringMd5 - MD5 hash of the GPG public key
- User
Id int - User ID who owns this GPG Key, if applicable.
- Workspace
Id int - Workspace ID (0 for default workspace).
- expires_
at string - GPG key expiration date.
- generated_
private_ stringkey - GPG private key.
- generated_
public_ stringkey - GPG public key
- id number
- GPG key ID.
- name string
- GPG key name.
- partner_
id number - Partner ID who owns this GPG Key, if applicable.
- partner_
name string - Name of the Partner who owns this GPG Key, if applicable.
- private_
key_ stringmd5 - MD5 hash of the GPG private key.
- private_
key_ stringpassword_ md5 - GPG private key password. Only required for password protected keys.
- public_
key_ stringmd5 - MD5 hash of the GPG public key
- user_
id number - User ID who owns this GPG Key, if applicable.
- workspace_
id number - Workspace ID (0 for default workspace).
- expires
At String - GPG key expiration date.
- generated
Private StringKey - GPG private key.
- generated
Public StringKey - GPG public key
- id Integer
- GPG key ID.
- name String
- GPG key name.
- partner
Id Integer - Partner ID who owns this GPG Key, if applicable.
- partner
Name String - Name of the Partner who owns this GPG Key, if applicable.
- private
Key StringMd5 - MD5 hash of the GPG private key.
- private
Key StringPassword Md5 - GPG private key password. Only required for password protected keys.
- public
Key StringMd5 - MD5 hash of the GPG public key
- user
Id Integer - User ID who owns this GPG Key, if applicable.
- workspace
Id Integer - Workspace ID (0 for default workspace).
- expires
At string - GPG key expiration date.
- generated
Private stringKey - GPG private key.
- generated
Public stringKey - GPG public key
- id number
- GPG key ID.
- name string
- GPG key name.
- partner
Id number - Partner ID who owns this GPG Key, if applicable.
- partner
Name string - Name of the Partner who owns this GPG Key, if applicable.
- private
Key stringMd5 - MD5 hash of the GPG private key.
- private
Key stringPassword Md5 - GPG private key password. Only required for password protected keys.
- public
Key stringMd5 - MD5 hash of the GPG public key
- user
Id number - User ID who owns this GPG Key, if applicable.
- workspace
Id number - Workspace ID (0 for default workspace).
- expires_
at str - GPG key expiration date.
- generated_
private_ strkey - GPG private key.
- generated_
public_ strkey - GPG public key
- id int
- GPG key ID.
- name str
- GPG key name.
- partner_
id int - Partner ID who owns this GPG Key, if applicable.
- partner_
name str - Name of the Partner who owns this GPG Key, if applicable.
- private_
key_ strmd5 - MD5 hash of the GPG private key.
- private_
key_ strpassword_ md5 - GPG private key password. Only required for password protected keys.
- public_
key_ strmd5 - MD5 hash of the GPG public key
- user_
id int - User ID who owns this GPG Key, if applicable.
- workspace_
id int - Workspace ID (0 for default workspace).
- expires
At String - GPG key expiration date.
- generated
Private StringKey - GPG private key.
- generated
Public StringKey - GPG public key
- id Number
- GPG key ID.
- name String
- GPG key name.
- partner
Id Number - Partner ID who owns this GPG Key, if applicable.
- partner
Name String - Name of the Partner who owns this GPG Key, if applicable.
- private
Key StringMd5 - MD5 hash of the GPG private key.
- private
Key StringPassword Md5 - GPG private key password. Only required for password protected keys.
- public
Key StringMd5 - MD5 hash of the GPG public key
- user
Id Number - User ID who owns this GPG Key, if applicable.
- workspace
Id Number - Workspace ID (0 for default workspace).
Package Details
- Repository
- filescom jschady/pulumi-filescom
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
filescomTerraform Provider.
published on Thursday, Aug 20, 2026 by jschady