1. Packages
  2. ArgoCD
  3. API Docs
  4. GpgKey
Viewing docs for Argo CD v1.1.1
published on Saturday, Mar 21, 2026 by Three141
argocd logo
Viewing docs for Argo CD v1.1.1
published on Saturday, Mar 21, 2026 by Three141

    Manages GPG keys within ArgoCD.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as argocd from "@three14/pulumi-argocd";
    
    const _this = new argocd.GpgKey("this", {publicKey: `-----BEGIN PGP PUBLIC KEY BLOCK-----
    
    mQINBGSJdlcBEACnza+KvWLyKWUHJPhgs//HRL0EEmA/EcFKioBlrgPNYf/O7hNg
    KT3NDaNrD26pr+bOb4mfaqNNS9no8b9EP3C7Co3Wf2d4xpJ5/hlpIm3V652S5daZ
    I7ylVT8QOrhaqEnHH2hEcOfDaqjrYfrx3qiI8v7DmV6jfGi1tDUUgfJwiOyZk4q1
    jiPo5k4+XNp9mCtUAGyidLFcUqQ9XbHKgBwgAoxtIKNSbdPCGhsjgTHHhzswMH/Z
    DhhtcraqrfOhoP9lI4/zyCS+B9OfUy7BS/1SqWKIgdsjFIR+zHIOI69lh77+ZAVE
    MVYJBdFke5/g/tTPaQGuBqaIJ3d/Mi/ZlbTsoBcq5qam73uh7fcgBV5la6NeuNcR
    tvKMVl4DlnkJS8LBtElLEeHEylTCdNltrUFwshDKDBtq6ilTKCK14R6g4lkn8VcE
    9xx7Mhdh77tp66FRZ6ge1E8EUEFwEeFhp240KRyaA5U1/kAarn8083zZ7d4+QObp
    L4KMqgrwLaxyPLgu0J/f946qLewV7XsbZRXE1jQa9Z7W5TEoJwjcC79DXe1wChc6
    cBfCtluDsnklwvldpKTEZU0q/hKE6Zt7NjLUyExV+5guoHllxoVxx7sh+jtKm/J+
    5gh+B3xOTDxRV2XYIx1TM6U1iLxAqchzFec8dfkuTbs/5f++PrddvZfiUQARAQAB
    tD1BcmdvQ0QgVGVycmFmb3JtIFByb3ZpZGVyIDxmYWtldXNlckB1c2Vycy5ub3Jl
    cGx5LmdpdGh1Yi5jb20+iQJOBBMBCgA4FiEEvK9bNlncXDhFAk6kmtkpVUAdOI0F
    AmSJdlcCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQmtkpVUAdOI2FdA//
    YuFYsX6SUVgI4l68ZHE34jLTWU5R2ujB6luErcguAlLyDtrD3melva3V/ETc69/1
    5o7Ayn3a7uz5lCEvUSLsCN+V2o3EjrA81pt8Zs+Z9WYeZE5F5DnKzq81PObdASB7
    Po2X0qLqqKIhpQxc/E7m26xmePCf82H36gtvPiEVmVA5yduk1lLG3aZtNIRCa4VK
    gmDjR8Se+OZeAw7JQCOeJB9/Y8oQ8nVkj1SWNIICaUwIXHtrj7r1z6XTDAEkGeBg
    HXW8IEhZDE1Nq3vQtZvgwftEoPT/Ff+8DwvL1JUov2ObQDolallzKaiiVfGZhPJZ
    4PMtEPEmSL9QWJAG5jiBVC3BdVZtXBNkC1HqTCXwZc/wzp5O9MmMXmCrUFr4FfHu
    IZ560MNpp/SrtUrOahLmvuG0B+Ze96e2nm5ap5wkCDaQouOIqM7Lj+FGq64cu2B/
    oSsl7joBZQUYXv8meNOQssm6jArRLG2oFoiEdRqzd2/RjvvJliLN9OCNvV43f38h
    8Ep8RDi9RiHhSKvwrvDD9x/JRm6zQUetjrctmjdIYp8k129LrD0Qr9ULXfphZdrv
    xga7/lyQLmukLu7Mxwp+ss2bY/wjT8mlT5P55kBpXXyYILhLsUESCHG6D8/Ov+vv
    OoZS+BSfe/0vc1aTfDKxj5wAx27a6z5o25X27feEl3U=
    =kqkH
    -----END PGP PUBLIC KEY BLOCK-----
    `});
    
    import pulumi
    import pulumi_argocd as argocd
    
    this = argocd.GpgKey("this", public_key="""-----BEGIN PGP PUBLIC KEY BLOCK-----
    
    mQINBGSJdlcBEACnza+KvWLyKWUHJPhgs//HRL0EEmA/EcFKioBlrgPNYf/O7hNg
    KT3NDaNrD26pr+bOb4mfaqNNS9no8b9EP3C7Co3Wf2d4xpJ5/hlpIm3V652S5daZ
    I7ylVT8QOr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oPT/Ff+8DwvL1JUov2ObQDolallzKaiiVfGZhPJZ
    4PMtEPEmSL9QWJAG5jiBVC3BdVZtXBNkC1HqTCXwZc/wzp5O9MmMXmCrUFr4FfHu
    IZ560MNpp/SrtUrOahLmvuG0B+Ze96e2nm5ap5wkCDaQouOIqM7Lj+FGq64cu2B/
    oSsl7joBZQUYXv8meNOQssm6jArRLG2oFoiEdRqzd2/RjvvJliLN9OCNvV43f38h
    8Ep8RDi9RiHhSKvwrvDD9x/JRm6zQUetjrctmjdIYp8k129LrD0Qr9ULXfphZdrv
    xga7/lyQLmukLu7Mxwp+ss2bY/wjT8mlT5P55kBpXXyYILhLsUESCHG6D8/Ov+vv
    OoZS+BSfe/0vc1aTfDKxj5wAx27a6z5o25X27feEl3U=
    =kqkH
    -----END PGP PUBLIC KEY BLOCK-----
    """)
    
    package main
    
    import (
    	"github.com/Three141/pulumi-argocd/sdk/go/argocd"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := argocd.NewGpgKey(ctx, "this", &argocd.GpgKeyArgs{
    			PublicKey: pulumi.String(`-----BEGIN PGP PUBLIC KEY BLOCK-----
    
    mQINBGSJdlcBEACnza+KvWLyKWUHJPhgs//HRL0EEmA/EcFKioBlrgPNYf/O7hNg
    KT3NDaNrD26pr+bOb4mfaqNNS9no8b9EP3C7Co3Wf2d4xpJ5/hlpIm3V652S5daZ
    I7ylVT8QOrhaqEnHH2hEcOfDaqjrYfrx3qiI8v7DmV6jfGi1tDUUgfJwiOyZk4q1
    jiPo5k4+XNp9mCtUAGyidLFcUqQ9XbHKgBwgAoxtIKNSbdPCGhsjgTHHhzswMH/Z
    DhhtcraqrfOhoP9lI4/zyCS+B9OfUy7BS/1SqWKIgdsjFIR+zHIOI69lh77+ZAVE
    MVYJBdFke5/g/tTPaQGuBqaIJ3d/Mi/ZlbTsoBcq5qam73uh7fcgBV5la6NeuNcR
    tvKMVl4D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etjrctmjdIYp8k129LrD0Qr9ULXfphZdrv
    xga7/lyQLmukLu7Mxwp+ss2bY/wjT8mlT5P55kBpXXyYILhLsUESCHG6D8/Ov+vv
    OoZS+BSfe/0vc1aTfDKxj5wAx27a6z5o25X27feEl3U=
    =kqkH
    -----END PGP PUBLIC KEY BLOCK-----
    `),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Argocd = Three14.Argocd;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Argocd.GpgKey("this", new()
        {
            PublicKey = @"-----BEGIN PGP PUBLIC KEY BLOCK-----
    
    mQINBGSJdlcBEACnza+KvWLyKWUHJPhgs//HRL0EEmA/EcFKioBlrgPNYf/O7hNg
    KT3NDaNrD26pr+bOb4mfaqNNS9no8b9EP3C7Co3Wf2d4xpJ5/hlpIm3V652S5daZ
    I7ylVT8QOrhaqEnHH2hEcOfDaqjrYfrx3qiI8v7DmV6jfGi1tDUUgfJwiOyZk4q1
    jiPo5k4+XNp9mCtUAGyidLFcUqQ9XbHKgBwgAoxtIKNSbdPCGhsjgTHHhzswMH/Z
    DhhtcraqrfOhoP9lI4/zyCS+B9OfUy7BS/1SqWKIgdsjFIR+zHIOI69lh77+ZAVE
    MVYJBdFke5/g/tTPaQGuBqaIJ3d/Mi/ZlbTsoBcq5qam73uh7fcgBV5la6NeuNcR
    tvKMVl4DlnkJS8LBtElLEeHEylTCdNltrUFwshDKDBtq6ilTKCK14R6g4lkn8VcE
    9xx7Mhdh77tp66FRZ6ge1E8EUEFwEeFhp240KRyaA5U1/kAarn8083zZ7d4+QObp
    L4KMqgrwLaxyPLgu0J/f946qLewV7XsbZRXE1jQa9Z7W5TEoJwjcC79DXe1wChc6
    cBfCtluDsnklwvldpKTEZU0q/hKE6Zt7NjLUyExV+5guoHllxoVxx7sh+jtKm/J+
    5gh+B3xOTDxRV2XYIx1TM6U1iLxAqchzFec8dfkuTbs/5f++PrddvZfiUQARAQAB
    tD1BcmdvQ0QgVGVycmFmb3JtIFByb3ZpZGVyIDxmYWtldXNlckB1c2Vycy5ub3Jl
    cGx5LmdpdGh1Yi5jb20+iQJOBBMBCgA4FiEEvK9bNlncXDhFAk6kmtkpVUAdOI0F
    AmSJdlcCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQmtkpVUAdOI2FdA//
    YuFYsX6SUVgI4l68ZHE34jLTWU5R2ujB6luErcguAlLyDtrD3melva3V/ETc69/1
    5o7Ayn3a7uz5lCEvUSLsCN+V2o3EjrA81pt8Zs+Z9WYeZE5F5DnKzq81PObdASB7
    Po2X0qLqqKIhpQxc/E7m26xmePCf82H36gtvPiEVmVA5yduk1lLG3aZtNIRCa4VK
    gmDjR8Se+OZeAw7JQCOeJB9/Y8oQ8nVkj1SWNIICaUwIXHtrj7r1z6XTDAEkGeBg
    HXW8IEhZDE1Nq3vQtZvgwftEoPT/Ff+8DwvL1JUov2ObQDolallzKaiiVfGZhPJZ
    4PMtEPEmSL9QWJAG5jiBVC3BdVZtXBNkC1HqTCXwZc/wzp5O9MmMXmCrUFr4FfHu
    IZ560MNpp/SrtUrOahLmvuG0B+Ze96e2nm5ap5wkCDaQouOIqM7Lj+FGq64cu2B/
    oSsl7joBZQUYXv8meNOQssm6jArRLG2oFoiEdRqzd2/RjvvJliLN9OCNvV43f38h
    8Ep8RDi9RiHhSKvwrvDD9x/JRm6zQUetjrctmjdIYp8k129LrD0Qr9ULXfphZdrv
    xga7/lyQLmukLu7Mxwp+ss2bY/wjT8mlT5P55kBpXXyYILhLsUESCHG6D8/Ov+vv
    OoZS+BSfe/0vc1aTfDKxj5wAx27a6z5o25X27feEl3U=
    =kqkH
    -----END PGP PUBLIC KEY BLOCK-----
    ",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.argocd.GpgKey;
    import com.pulumi.argocd.GpgKeyArgs;
    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) {
            var this_ = new GpgKey("this", GpgKeyArgs.builder()
                .publicKey("""
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    
    mQINBGSJdlcBEACnza+KvWLyKWUHJPhgs//HRL0EEmA/EcFKioBlrgPNYf/O7hNg
    KT3NDaNrD26pr+bOb4mfaqNNS9no8b9EP3C7Co3Wf2d4xpJ5/hlpIm3V652S5daZ
    I7ylVT8QOrhaqEnHH2hEcOfDaqjrYfrx3qiI8v7DmV6jfGi1tDUUgfJwiOyZk4q1
    jiPo5k4+XNp9mCtUAGyidLFcUqQ9XbHKgBwgAoxtIKNSbdPCGhsjgTHHhzswMH/Z
    DhhtcraqrfOhoP9lI4/zyCS+B9OfUy7BS/1SqWKIgdsjFIR+zHIOI69lh77+ZAVE
    MVYJBdFke5/g/tTPaQGuBqaIJ3d/Mi/ZlbTsoBcq5qam73uh7fcgBV5la6NeuNcR
    tvKMVl4DlnkJS8LBtElLEeHEylTCdNltrUFwshDKDBtq6ilTKCK14R6g4lkn8VcE
    9xx7Mhdh77tp66FRZ6ge1E8EUEFwEeFhp240KRyaA5U1/kAarn8083zZ7d4+QObp
    L4KMqgrwLaxyPLgu0J/f946qLewV7XsbZRXE1jQa9Z7W5TEoJwjcC79DXe1wChc6
    cBfCtluDsnklwvldpKTEZU0q/hKE6Zt7NjLUyExV+5guoHllxoVxx7sh+jtKm/J+
    5gh+B3xOTDxRV2XYIx1TM6U1iLxAqchzFec8dfkuTbs/5f++PrddvZfiUQARAQAB
    tD1BcmdvQ0QgVGVycmFmb3JtIFByb3ZpZGVyIDxmYWtldXNlckB1c2Vycy5ub3Jl
    cGx5LmdpdGh1Yi5jb20+iQJOBBMBCgA4FiEEvK9bNlncXDhFAk6kmtkpVUAdOI0F
    AmSJdlcCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQmtkpVUAdOI2FdA//
    YuFYsX6SUVgI4l68ZHE34jLTWU5R2ujB6luErcguAlLyDtrD3melva3V/ETc69/1
    5o7Ayn3a7uz5lCEvUSLsCN+V2o3EjrA81pt8Zs+Z9WYeZE5F5DnKzq81PObdASB7
    Po2X0qLqqKIhpQxc/E7m26xmePCf82H36gtvPiEVmVA5yduk1lLG3aZtNIRCa4VK
    gmDjR8Se+OZeAw7JQCOeJB9/Y8oQ8nVkj1SWNIICaUwIXHtrj7r1z6XTDAEkGeBg
    HXW8IEhZDE1Nq3vQtZvgwftEoPT/Ff+8DwvL1JUov2ObQDolallzKaiiVfGZhPJZ
    4PMtEPEmSL9QWJAG5jiBVC3BdVZtXBNkC1HqTCXwZc/wzp5O9MmMXmCrUFr4FfHu
    IZ560MNpp/SrtUrOahLmvuG0B+Ze96e2nm5ap5wkCDaQouOIqM7Lj+FGq64cu2B/
    oSsl7joBZQUYXv8meNOQssm6jArRLG2oFoiEdRqzd2/RjvvJliLN9OCNvV43f38h
    8Ep8RDi9RiHhSKvwrvDD9x/JRm6zQUetjrctmjdIYp8k129LrD0Qr9ULXfphZdrv
    xga7/lyQLmukLu7Mxwp+ss2bY/wjT8mlT5P55kBpXXyYILhLsUESCHG6D8/Ov+vv
    OoZS+BSfe/0vc1aTfDKxj5wAx27a6z5o25X27feEl3U=
    =kqkH
    -----END PGP PUBLIC KEY BLOCK-----
                """)
                .build());
    
        }
    }
    
    resources:
      this:
        type: argocd:GpgKey
        properties:
          publicKey: |
            -----BEGIN PGP PUBLIC KEY BLOCK-----
    
            mQINBGSJdlcBEACnza+KvWLyKWUHJPhgs//HRL0EEmA/EcFKioBlrgPNYf/O7hNg
            KT3NDaNrD26pr+bOb4mfaqNNS9no8b9EP3C7Co3Wf2d4xpJ5/hlpIm3V652S5daZ
            I7ylVT8QOrhaqEnHH2hEcOfDaqjrYfrx3qiI8v7DmV6jfGi1tDUUgfJwiOyZk4q1
            jiPo5k4+XNp9mCtUAGyidLFcUqQ9XbHKgBwgAoxtIKNSbdPCGhsjgTHHhzswMH/Z
            DhhtcraqrfOhoP9lI4/zyCS+B9OfUy7BS/1SqWKIgdsjFIR+zHIOI69lh77+ZAVE
            MVYJBdFke5/g/tTPaQGuBqaIJ3d/Mi/ZlbTsoBcq5qam73uh7fcgBV5la6NeuNcR
            tvKMVl4DlnkJS8LBtElLEeHEylTCdNltrUFwshDKDBtq6ilTKCK14R6g4lkn8VcE
            9xx7Mhdh77tp66FRZ6ge1E8EUEFwEeFhp240KRyaA5U1/kAarn8083zZ7d4+QObp
            L4KMqgrwLaxyPLgu0J/f946qLewV7XsbZRXE1jQa9Z7W5TEoJwjcC79DXe1wChc6
            cBfCtluDsnklwvldpKTEZU0q/hKE6Zt7NjLUyExV+5guoHllxoVxx7sh+jtKm/J+
            5gh+B3xOTDxRV2XYIx1TM6U1iLxAqchzFec8dfkuTbs/5f++PrddvZfiUQARAQAB
            tD1BcmdvQ0QgVGVycmFmb3JtIFByb3ZpZGVyIDxmYWtldXNlckB1c2Vycy5ub3Jl
            cGx5LmdpdGh1Yi5jb20+iQJOBBMBCgA4FiEEvK9bNlncXDhFAk6kmtkpVUAdOI0F
            AmSJdlcCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQmtkpVUAdOI2FdA//
            YuFYsX6SUVgI4l68ZHE34jLTWU5R2ujB6luErcguAlLyDtrD3melva3V/ETc69/1
            5o7Ayn3a7uz5lCEvUSLsCN+V2o3EjrA81pt8Zs+Z9WYeZE5F5DnKzq81PObdASB7
            Po2X0qLqqKIhpQxc/E7m26xmePCf82H36gtvPiEVmVA5yduk1lLG3aZtNIRCa4VK
            gmDjR8Se+OZeAw7JQCOeJB9/Y8oQ8nVkj1SWNIICaUwIXHtrj7r1z6XTDAEkGeBg
            HXW8IEhZDE1Nq3vQtZvgwftEoPT/Ff+8DwvL1JUov2ObQDolallzKaiiVfGZhPJZ
            4PMtEPEmSL9QWJAG5jiBVC3BdVZtXBNkC1HqTCXwZc/wzp5O9MmMXmCrUFr4FfHu
            IZ560MNpp/SrtUrOahLmvuG0B+Ze96e2nm5ap5wkCDaQouOIqM7Lj+FGq64cu2B/
            oSsl7joBZQUYXv8meNOQssm6jArRLG2oFoiEdRqzd2/RjvvJliLN9OCNvV43f38h
            8Ep8RDi9RiHhSKvwrvDD9x/JRm6zQUetjrctmjdIYp8k129LrD0Qr9ULXfphZdrv
            xga7/lyQLmukLu7Mxwp+ss2bY/wjT8mlT5P55kBpXXyYILhLsUESCHG6D8/Ov+vv
            OoZS+BSfe/0vc1aTfDKxj5wAx27a6z5o25X27feEl3U=
            =kqkH
            -----END PGP PUBLIC KEY BLOCK-----
    

    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: GpgKeyArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def GpgKey(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               public_key: Optional[str] = None)
    func NewGpgKey(ctx *Context, name string, args GpgKeyArgs, opts ...ResourceOption) (*GpgKey, error)
    public GpgKey(string name, GpgKeyArgs args, CustomResourceOptions? opts = null)
    public GpgKey(String name, GpgKeyArgs args)
    public GpgKey(String name, GpgKeyArgs args, CustomResourceOptions options)
    
    type: argocd:GpgKey
    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 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 Argocd.GpgKey("gpgKeyResource", new()
    {
        PublicKey = "string",
    });
    
    example, err := argocd.NewGpgKey(ctx, "gpgKeyResource", &argocd.GpgKeyArgs{
    	PublicKey: pulumi.String("string"),
    })
    
    var gpgKeyResource = new GpgKey("gpgKeyResource", GpgKeyArgs.builder()
        .publicKey("string")
        .build());
    
    gpg_key_resource = argocd.GpgKey("gpgKeyResource", public_key="string")
    
    const gpgKeyResource = new argocd.GpgKey("gpgKeyResource", {publicKey: "string"});
    
    type: argocd:GpgKey
    properties:
        publicKey: string
    

    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:

    PublicKey string
    Raw key data of the GPG key to create
    PublicKey string
    Raw key data of the GPG key to create
    publicKey String
    Raw key data of the GPG key to create
    publicKey string
    Raw key data of the GPG key to create
    public_key str
    Raw key data of the GPG key to create
    publicKey String
    Raw key data of the GPG key to create

    Outputs

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

    Fingerprint string
    Fingerprint is the fingerprint of the key
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    SubType string
    SubType holds the key's sub type (e.g. rsa4096)
    Trust string
    Trust holds the level of trust assigned to this key
    Fingerprint string
    Fingerprint is the fingerprint of the key
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    SubType string
    SubType holds the key's sub type (e.g. rsa4096)
    Trust string
    Trust holds the level of trust assigned to this key
    fingerprint String
    Fingerprint is the fingerprint of the key
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Owner holds the owner identification, e.g. a name and e-mail address
    subType String
    SubType holds the key's sub type (e.g. rsa4096)
    trust String
    Trust holds the level of trust assigned to this key
    fingerprint string
    Fingerprint is the fingerprint of the key
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    subType string
    SubType holds the key's sub type (e.g. rsa4096)
    trust string
    Trust holds the level of trust assigned to this key
    fingerprint str
    Fingerprint is the fingerprint of the key
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    Owner holds the owner identification, e.g. a name and e-mail address
    sub_type str
    SubType holds the key's sub type (e.g. rsa4096)
    trust str
    Trust holds the level of trust assigned to this key
    fingerprint String
    Fingerprint is the fingerprint of the key
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Owner holds the owner identification, e.g. a name and e-mail address
    subType String
    SubType holds the key's sub type (e.g. rsa4096)
    trust String
    Trust holds the level of trust assigned to this 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,
            fingerprint: Optional[str] = None,
            owner: Optional[str] = None,
            public_key: Optional[str] = None,
            sub_type: Optional[str] = None,
            trust: Optional[str] = None) -> GpgKey
    func 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: argocd:GpgKey    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:
    Fingerprint string
    Fingerprint is the fingerprint of the key
    Owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    PublicKey string
    Raw key data of the GPG key to create
    SubType string
    SubType holds the key's sub type (e.g. rsa4096)
    Trust string
    Trust holds the level of trust assigned to this key
    Fingerprint string
    Fingerprint is the fingerprint of the key
    Owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    PublicKey string
    Raw key data of the GPG key to create
    SubType string
    SubType holds the key's sub type (e.g. rsa4096)
    Trust string
    Trust holds the level of trust assigned to this key
    fingerprint String
    Fingerprint is the fingerprint of the key
    owner String
    Owner holds the owner identification, e.g. a name and e-mail address
    publicKey String
    Raw key data of the GPG key to create
    subType String
    SubType holds the key's sub type (e.g. rsa4096)
    trust String
    Trust holds the level of trust assigned to this key
    fingerprint string
    Fingerprint is the fingerprint of the key
    owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    publicKey string
    Raw key data of the GPG key to create
    subType string
    SubType holds the key's sub type (e.g. rsa4096)
    trust string
    Trust holds the level of trust assigned to this key
    fingerprint str
    Fingerprint is the fingerprint of the key
    owner str
    Owner holds the owner identification, e.g. a name and e-mail address
    public_key str
    Raw key data of the GPG key to create
    sub_type str
    SubType holds the key's sub type (e.g. rsa4096)
    trust str
    Trust holds the level of trust assigned to this key
    fingerprint String
    Fingerprint is the fingerprint of the key
    owner String
    Owner holds the owner identification, e.g. a name and e-mail address
    publicKey String
    Raw key data of the GPG key to create
    subType String
    SubType holds the key's sub type (e.g. rsa4096)
    trust String
    Trust holds the level of trust assigned to this key

    Import

    The pulumi import command can be used, for example:

    GPG Keys can be imported using the key ID.

    $ pulumi import argocd:index/gpgKey:GpgKey this 9AD92955401D388D
    

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

    Package Details

    Repository
    argocd Three141/pulumi-argocd
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the argocd Terraform Provider.
    argocd logo
    Viewing docs for Argo CD v1.1.1
    published on Saturday, Mar 21, 2026 by Three141
      Try Pulumi Cloud free. Your team will thank you.