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 = new filescom.GpgKey("example_gpg_key", {
userId: 1,
partnerId: 1,
name: "key name",
workspaceId: 0,
generateExpiresAt: "2025-06-19 12:00:00",
generateKeypair: false,
generateFullName: "John Doe",
generateEmail: "jdoe@example.com",
});
import pulumi
import pulumi_filescom as filescom
example_gpg_key = filescom.GpgKey("example_gpg_key",
user_id=1,
partner_id=1,
name="key name",
workspace_id=0,
generate_expires_at="2025-06-19 12:00:00",
generate_keypair=False,
generate_full_name="John Doe",
generate_email="jdoe@example.com")
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.NewGpgKey(ctx, "example_gpg_key", &filescom.GpgKeyArgs{
UserId: pulumi.Int(1),
PartnerId: pulumi.Int(1),
Name: pulumi.String("key name"),
WorkspaceId: pulumi.Int(0),
GenerateExpiresAt: pulumi.String("2025-06-19 12:00:00"),
GenerateKeypair: pulumi.Bool(false),
GenerateFullName: pulumi.String("John Doe"),
GenerateEmail: pulumi.String("jdoe@example.com"),
})
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 = new Filescom.GpgKey("example_gpg_key", new()
{
UserId = 1,
PartnerId = 1,
Name = "key name",
WorkspaceId = 0,
GenerateExpiresAt = "2025-06-19 12:00:00",
GenerateKeypair = false,
GenerateFullName = "John Doe",
GenerateEmail = "jdoe@example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.filescom.GpgKey;
import com.pulumi.filescom.GpgKeyArgs;
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) {
var exampleGpgKey = new GpgKey("exampleGpgKey", GpgKeyArgs.builder()
.userId(1)
.partnerId(1)
.name("key name")
.workspaceId(0)
.generateExpiresAt("2025-06-19 12:00:00")
.generateKeypair(false)
.generateFullName("John Doe")
.generateEmail("jdoe@example.com")
.build());
}
}
resources:
exampleGpgKey:
type: filescom:GpgKey
name: example_gpg_key
properties:
userId: 1
partnerId: 1
name: key name
workspaceId: 0
generateExpiresAt: 2025-06-19 12:00:00
generateKeypair: false
generateFullName: John Doe
generateEmail: jdoe@example.com
pulumi {
required_providers {
filescom = {
source = "pulumi/filescom"
}
}
}
resource "filescom_gpgkey" "example_gpg_key" {
user_id = 1
partner_id = 1
name = "key name"
workspace_id = 0
generate_expires_at = "2025-06-19 12:00:00"
generate_keypair = false
generate_full_name = "John Doe"
generate_email = "jdoe@example.com"
}
Create GpgKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GpgKey(name: string, args?: GpgKeyArgs, opts?: CustomResourceOptions);@overload
def GpgKey(resource_name: str,
args: Optional[GpgKeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def GpgKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
generate_email: Optional[str] = None,
generate_expires_at: Optional[str] = None,
generate_full_name: Optional[str] = None,
generate_keypair: Optional[bool] = None,
name: Optional[str] = None,
partner_id: Optional[int] = None,
private_key: Optional[str] = None,
private_key_password: Optional[str] = None,
public_key: Optional[str] = None,
user_id: Optional[int] = None,
workspace_id: Optional[int] = None)func NewGpgKey(ctx *Context, name string, args *GpgKeyArgs, opts ...ResourceOption) (*GpgKey, error)public GpgKey(string name, GpgKeyArgs? args = null, CustomResourceOptions? opts = null)
public GpgKey(String name, GpgKeyArgs args)
public GpgKey(String name, GpgKeyArgs args, CustomResourceOptions options)
type: filescom:GpgKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "filescom_gpg_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args GpgKeyArgs
- 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 GpgKeyArgs
- 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 GpgKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GpgKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GpgKeyArgs
- 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 gpgKeyResource = new Filescom.GpgKey("gpgKeyResource", new()
{
GenerateEmail = "string",
GenerateExpiresAt = "string",
GenerateFullName = "string",
GenerateKeypair = false,
Name = "string",
PartnerId = 0,
PrivateKey = "string",
PrivateKeyPassword = "string",
PublicKey = "string",
UserId = 0,
WorkspaceId = 0,
});
example, err := filescom.NewGpgKey(ctx, "gpgKeyResource", &filescom.GpgKeyArgs{
GenerateEmail: pulumi.String("string"),
GenerateExpiresAt: pulumi.String("string"),
GenerateFullName: pulumi.String("string"),
GenerateKeypair: pulumi.Bool(false),
Name: pulumi.String("string"),
PartnerId: pulumi.Int(0),
PrivateKey: pulumi.String("string"),
PrivateKeyPassword: pulumi.String("string"),
PublicKey: pulumi.String("string"),
UserId: pulumi.Int(0),
WorkspaceId: pulumi.Int(0),
})
resource "filescom_gpg_key" "gpgKeyResource" {
lifecycle {
create_before_destroy = true
}
generate_email = "string"
generate_expires_at = "string"
generate_full_name = "string"
generate_keypair = false
name = "string"
partner_id = 0
private_key = "string"
private_key_password = "string"
public_key = "string"
user_id = 0
workspace_id = 0
}
var gpgKeyResource = new GpgKey("gpgKeyResource", GpgKeyArgs.builder()
.generateEmail("string")
.generateExpiresAt("string")
.generateFullName("string")
.generateKeypair(false)
.name("string")
.partnerId(0)
.privateKey("string")
.privateKeyPassword("string")
.publicKey("string")
.userId(0)
.workspaceId(0)
.build());
gpg_key_resource = filescom.GpgKey("gpgKeyResource",
generate_email="string",
generate_expires_at="string",
generate_full_name="string",
generate_keypair=False,
name="string",
partner_id=0,
private_key="string",
private_key_password="string",
public_key="string",
user_id=0,
workspace_id=0)
const gpgKeyResource = new filescom.GpgKey("gpgKeyResource", {
generateEmail: "string",
generateExpiresAt: "string",
generateFullName: "string",
generateKeypair: false,
name: "string",
partnerId: 0,
privateKey: "string",
privateKeyPassword: "string",
publicKey: "string",
userId: 0,
workspaceId: 0,
});
type: filescom:GpgKey
properties:
generateEmail: string
generateExpiresAt: string
generateFullName: string
generateKeypair: false
name: string
partnerId: 0
privateKey: string
privateKeyPassword: string
publicKey: string
userId: 0
workspaceId: 0
GpgKey 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 GpgKey resource accepts the following input properties:
- Generate
Email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Expires stringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Full stringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - Name string
- GPG key name.
- Partner
Id int - Partner ID who owns this GPG Key, if applicable.
- Private
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- Private
Key stringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- Public
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
- Generate
Email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Expires stringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Full stringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - Name string
- GPG key name.
- Partner
Id int - Partner ID who owns this GPG Key, if applicable.
- Private
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- Private
Key stringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- Public
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
- generate_
email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
expires_ stringat - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
full_ stringname - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - name string
- GPG key name.
- partner_
id number - Partner ID who owns this GPG Key, if applicable.
- private_
key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private_
key_ stringpassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- public_
key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
- generate
Email String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Expires StringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Full StringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Keypair Boolean - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - name String
- GPG key name.
- partner
Id Integer - Partner ID who owns this GPG Key, if applicable.
- private
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private
Key StringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- public
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
- generate
Email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Expires stringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Full stringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Keypair boolean - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - name string
- GPG key name.
- partner
Id number - Partner ID who owns this GPG Key, if applicable.
- private
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private
Key stringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- public
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
- generate_
email str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
expires_ strat - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
full_ strname - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - name str
- GPG key name.
- partner_
id int - Partner ID who owns this GPG Key, if applicable.
- private_
key str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private_
key_ strpassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- public_
key str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
- generate
Email String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Expires StringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Full StringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Keypair Boolean - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - name String
- GPG key name.
- partner
Id Number - Partner ID who owns this GPG Key, if applicable.
- private
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private
Key StringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- public
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. 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).
Outputs
All input properties are implicitly available as output properties. Additionally, the GpgKey resource produces the following output properties:
- Expires
At string - GPG key expiration date.
- Generated
Private stringKey - GPG private key.
- Generated
Public stringKey - GPG public key
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- Expires
At string - GPG key expiration date.
- Generated
Private stringKey - GPG private key.
- Generated
Public stringKey - GPG public key
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- expires_
at string - GPG key expiration date.
- generated_
private_ stringkey - GPG private key.
- generated_
public_ stringkey - GPG public key
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- expires
At String - GPG key expiration date.
- generated
Private StringKey - GPG private key.
- generated
Public StringKey - GPG public key
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- expires
At string - GPG key expiration date.
- generated
Private stringKey - GPG private key.
- generated
Public stringKey - GPG public key
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- expires_
at str - GPG key expiration date.
- generated_
private_ strkey - GPG private key.
- generated_
public_ strkey - GPG public key
- id str
- The provider-assigned unique ID for this managed resource.
- 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
- expires
At String - GPG key expiration date.
- generated
Private StringKey - GPG private key.
- generated
Public StringKey - GPG public key
- id String
- The provider-assigned unique ID for this managed resource.
- 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
Look up Existing GpgKey Resource
Get an existing GpgKey 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?: GpgKeyState, opts?: CustomResourceOptions): GpgKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
expires_at: Optional[str] = None,
generate_email: Optional[str] = None,
generate_expires_at: Optional[str] = None,
generate_full_name: Optional[str] = None,
generate_keypair: Optional[bool] = None,
generated_private_key: Optional[str] = None,
generated_public_key: Optional[str] = None,
name: Optional[str] = None,
partner_id: Optional[int] = None,
partner_name: Optional[str] = None,
private_key: Optional[str] = None,
private_key_md5: Optional[str] = None,
private_key_password: Optional[str] = None,
private_key_password_md5: Optional[str] = None,
public_key: Optional[str] = None,
public_key_md5: Optional[str] = None,
user_id: Optional[int] = None,
workspace_id: Optional[int] = None) -> GpgKeyfunc GetGpgKey(ctx *Context, name string, id IDInput, state *GpgKeyState, opts ...ResourceOption) (*GpgKey, error)public static GpgKey Get(string name, Input<string> id, GpgKeyState? state, CustomResourceOptions? opts = null)public static GpgKey get(String name, Output<String> id, GpgKeyState state, CustomResourceOptions options)resources: _: type: filescom:GpgKey get: id: ${id}import {
to = filescom_gpg_key.example
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.
- Expires
At string - GPG key expiration date.
- Generate
Email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Expires stringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Full stringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - Generated
Private stringKey - GPG private key.
- Generated
Public stringKey - GPG public key
- 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 string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- Private
Key stringMd5 - MD5 hash of the GPG private key.
- Private
Key stringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- Private
Key stringPassword Md5 - GPG private key password. Only required for password protected keys.
- Public
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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.
- Generate
Email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Expires stringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Full stringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - Generate
Keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - Generated
Private stringKey - GPG private key.
- Generated
Public stringKey - GPG public key
- 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 string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- Private
Key stringMd5 - MD5 hash of the GPG private key.
- Private
Key stringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- Private
Key stringPassword Md5 - GPG private key password. Only required for password protected keys.
- Public
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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.
- generate_
email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
expires_ stringat - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
full_ stringname - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - generated_
private_ stringkey - GPG private key.
- generated_
public_ stringkey - GPG public key
- 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 string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private_
key_ stringmd5 - MD5 hash of the GPG private key.
- private_
key_ stringpassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- private_
key_ stringpassword_ md5 - GPG private key password. Only required for password protected keys.
- public_
key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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.
- generate
Email String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Expires StringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Full StringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Keypair Boolean - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - generated
Private StringKey - GPG private key.
- generated
Public StringKey - GPG public key
- 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 String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private
Key StringMd5 - MD5 hash of the GPG private key.
- private
Key StringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- private
Key StringPassword Md5 - GPG private key password. Only required for password protected keys.
- public
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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.
- generate
Email string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Expires stringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Full stringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Keypair boolean - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - generated
Private stringKey - GPG private key.
- generated
Public stringKey - GPG public key
- 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 string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private
Key stringMd5 - MD5 hash of the GPG private key.
- private
Key stringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- private
Key stringPassword Md5 - GPG private key password. Only required for password protected keys.
- public
Key string - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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.
- generate_
email str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
expires_ strat - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
full_ strname - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate_
keypair bool - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - generated_
private_ strkey - GPG private key.
- generated_
public_ strkey - GPG public key
- 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 str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private_
key_ strmd5 - MD5 hash of the GPG private key.
- private_
key_ strpassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- private_
key_ strpassword_ md5 - GPG private key password. Only required for password protected keys.
- public_
key str - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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.
- generate
Email String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Email address of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Expires StringAt - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Expiration date of the key. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Full StringName - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Full name of the key owner. Used for the generation of the key. Will be ignored if
generateKeypairis false. - generate
Keypair Boolean - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
If true, generate a new GPG key pair. Can not be used with
publicKey/privateKey - generated
Private StringKey - GPG private key.
- generated
Public StringKey - GPG public key
- 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 String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key
- private
Key StringMd5 - MD5 hash of the GPG private key.
- private
Key StringPassword - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG private key password
- private
Key StringPassword Md5 - GPG private key password. Only required for password protected keys.
- public
Key String - NOTE: This field is write-only and its value will not be updated in state as part of read operations. The GPG public key
- 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).
Import
The pulumi import command can be used, for example:
Gpg Keys can be imported by specifying the id.
$ pulumi import filescom:index/gpgKey:GpgKey example_gpg_key 1
To learn more about importing existing cloud resources, see Importing resources.
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