1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getGitopsGnupg
Harness v0.1.1 published on Friday, Jul 12, 2024 by Pulumi

harness.platform.getGitopsGnupg

Explore with Pulumi AI

harness logo
Harness v0.1.1 published on Friday, Jul 12, 2024 by Pulumi

    Data source for fetching a Harness GitOps GPG public key.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = harness.platform.getGitopsGnupg({
        accountId: "account_id",
        agentId: "agent_id",
        identifier: "identifier",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_gitops_gnupg(account_id="account_id",
        agent_id="agent_id",
        identifier="identifier")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.GetGitopsGnupg(ctx, &platform.GetGitopsGnupgArgs{
    			AccountId:  "account_id",
    			AgentId:    "agent_id",
    			Identifier: "identifier",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Harness.Platform.GetGitopsGnupg.Invoke(new()
        {
            AccountId = "account_id",
            AgentId = "agent_id",
            Identifier = "identifier",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.PlatformFunctions;
    import com.pulumi.harness.platform.inputs.GetGitopsGnupgArgs;
    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) {
            final var example = PlatformFunctions.getGitopsGnupg(GetGitopsGnupgArgs.builder()
                .accountId("account_id")
                .agentId("agent_id")
                .identifier("identifier")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getGitopsGnupg
          Arguments:
            accountId: account_id
            agentId: agent_id
            identifier: identifier
    

    Using getGitopsGnupg

    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 getGitopsGnupg(args: GetGitopsGnupgArgs, opts?: InvokeOptions): Promise<GetGitopsGnupgResult>
    function getGitopsGnupgOutput(args: GetGitopsGnupgOutputArgs, opts?: InvokeOptions): Output<GetGitopsGnupgResult>
    def get_gitops_gnupg(account_id: Optional[str] = None,
                         agent_id: Optional[str] = None,
                         identifier: Optional[str] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         requests: Optional[Sequence[GetGitopsGnupgRequest]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGitopsGnupgResult
    def get_gitops_gnupg_output(account_id: Optional[pulumi.Input[str]] = None,
                         agent_id: Optional[pulumi.Input[str]] = None,
                         identifier: Optional[pulumi.Input[str]] = None,
                         org_id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         requests: Optional[pulumi.Input[Sequence[pulumi.Input[GetGitopsGnupgRequestArgs]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetGitopsGnupgResult]
    func GetGitopsGnupg(ctx *Context, args *GetGitopsGnupgArgs, opts ...InvokeOption) (*GetGitopsGnupgResult, error)
    func GetGitopsGnupgOutput(ctx *Context, args *GetGitopsGnupgOutputArgs, opts ...InvokeOption) GetGitopsGnupgResultOutput

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

    public static class GetGitopsGnupg 
    {
        public static Task<GetGitopsGnupgResult> InvokeAsync(GetGitopsGnupgArgs args, InvokeOptions? opts = null)
        public static Output<GetGitopsGnupgResult> Invoke(GetGitopsGnupgInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGitopsGnupgResult> getGitopsGnupg(GetGitopsGnupgArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getGitopsGnupg:getGitopsGnupg
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account Identifier for the GnuPG Key.
    AgentId string
    Agent identifier for the GnuPG Key.
    Identifier string
    Identifier for the GnuPG Key.
    OrgId string
    Organization Identifier for the GnuPG Key.
    ProjectId string
    Project Identifier for the GnuPG Key.
    Requests List<GetGitopsGnupgRequest>
    GnuPGPublicKey is a representation of a GnuPG public key
    AccountId string
    Account Identifier for the GnuPG Key.
    AgentId string
    Agent identifier for the GnuPG Key.
    Identifier string
    Identifier for the GnuPG Key.
    OrgId string
    Organization Identifier for the GnuPG Key.
    ProjectId string
    Project Identifier for the GnuPG Key.
    Requests []GetGitopsGnupgRequest
    GnuPGPublicKey is a representation of a GnuPG public key
    accountId String
    Account Identifier for the GnuPG Key.
    agentId String
    Agent identifier for the GnuPG Key.
    identifier String
    Identifier for the GnuPG Key.
    orgId String
    Organization Identifier for the GnuPG Key.
    projectId String
    Project Identifier for the GnuPG Key.
    requests List<GetGitopsGnupgRequest>
    GnuPGPublicKey is a representation of a GnuPG public key
    accountId string
    Account Identifier for the GnuPG Key.
    agentId string
    Agent identifier for the GnuPG Key.
    identifier string
    Identifier for the GnuPG Key.
    orgId string
    Organization Identifier for the GnuPG Key.
    projectId string
    Project Identifier for the GnuPG Key.
    requests GetGitopsGnupgRequest[]
    GnuPGPublicKey is a representation of a GnuPG public key
    account_id str
    Account Identifier for the GnuPG Key.
    agent_id str
    Agent identifier for the GnuPG Key.
    identifier str
    Identifier for the GnuPG Key.
    org_id str
    Organization Identifier for the GnuPG Key.
    project_id str
    Project Identifier for the GnuPG Key.
    requests Sequence[GetGitopsGnupgRequest]
    GnuPGPublicKey is a representation of a GnuPG public key
    accountId String
    Account Identifier for the GnuPG Key.
    agentId String
    Agent identifier for the GnuPG Key.
    identifier String
    Identifier for the GnuPG Key.
    orgId String
    Organization Identifier for the GnuPG Key.
    projectId String
    Project Identifier for the GnuPG Key.
    requests List<Property Map>
    GnuPGPublicKey is a representation of a GnuPG public key

    getGitopsGnupg Result

    The following output properties are available:

    AccountId string
    Account Identifier for the GnuPG Key.
    AgentId string
    Agent identifier for the GnuPG Key.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier for the GnuPG Key.
    Requests List<GetGitopsGnupgRequest>
    GnuPGPublicKey is a representation of a GnuPG public key
    OrgId string
    Organization Identifier for the GnuPG Key.
    ProjectId string
    Project Identifier for the GnuPG Key.
    AccountId string
    Account Identifier for the GnuPG Key.
    AgentId string
    Agent identifier for the GnuPG Key.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier for the GnuPG Key.
    Requests []GetGitopsGnupgRequest
    GnuPGPublicKey is a representation of a GnuPG public key
    OrgId string
    Organization Identifier for the GnuPG Key.
    ProjectId string
    Project Identifier for the GnuPG Key.
    accountId String
    Account Identifier for the GnuPG Key.
    agentId String
    Agent identifier for the GnuPG Key.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier for the GnuPG Key.
    requests List<GetGitopsGnupgRequest>
    GnuPGPublicKey is a representation of a GnuPG public key
    orgId String
    Organization Identifier for the GnuPG Key.
    projectId String
    Project Identifier for the GnuPG Key.
    accountId string
    Account Identifier for the GnuPG Key.
    agentId string
    Agent identifier for the GnuPG Key.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier for the GnuPG Key.
    requests GetGitopsGnupgRequest[]
    GnuPGPublicKey is a representation of a GnuPG public key
    orgId string
    Organization Identifier for the GnuPG Key.
    projectId string
    Project Identifier for the GnuPG Key.
    account_id str
    Account Identifier for the GnuPG Key.
    agent_id str
    Agent identifier for the GnuPG Key.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier for the GnuPG Key.
    requests Sequence[GetGitopsGnupgRequest]
    GnuPGPublicKey is a representation of a GnuPG public key
    org_id str
    Organization Identifier for the GnuPG Key.
    project_id str
    Project Identifier for the GnuPG Key.
    accountId String
    Account Identifier for the GnuPG Key.
    agentId String
    Agent identifier for the GnuPG Key.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier for the GnuPG Key.
    requests List<Property Map>
    GnuPGPublicKey is a representation of a GnuPG public key
    orgId String
    Organization Identifier for the GnuPG Key.
    projectId String
    Project Identifier for the GnuPG Key.

    Supporting Types

    GetGitopsGnupgRequest

    Publickeys List<GetGitopsGnupgRequestPublickey>
    Public key details.
    Upsert bool
    Indicates if the GnuPG Key should be inserted if not present or updated if present.
    Publickeys []GetGitopsGnupgRequestPublickey
    Public key details.
    Upsert bool
    Indicates if the GnuPG Key should be inserted if not present or updated if present.
    publickeys List<GetGitopsGnupgRequestPublickey>
    Public key details.
    upsert Boolean
    Indicates if the GnuPG Key should be inserted if not present or updated if present.
    publickeys GetGitopsGnupgRequestPublickey[]
    Public key details.
    upsert boolean
    Indicates if the GnuPG Key should be inserted if not present or updated if present.
    publickeys Sequence[GetGitopsGnupgRequestPublickey]
    Public key details.
    upsert bool
    Indicates if the GnuPG Key should be inserted if not present or updated if present.
    publickeys List<Property Map>
    Public key details.
    upsert Boolean
    Indicates if the GnuPG Key should be inserted if not present or updated if present.

    GetGitopsGnupgRequestPublickey

    Fingerprint string
    Fingerprint is the fingerprint of the key
    KeyData string
    KeyData holds the raw key data, in base64 encoded format.
    KeyId string
    KeyID specifies the key ID, in hexadecimal string format.
    Owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    SubType string
    SubType holds the key's sub type
    Trust string
    Trust holds the level of trust assigned to this key
    Fingerprint string
    Fingerprint is the fingerprint of the key
    KeyData string
    KeyData holds the raw key data, in base64 encoded format.
    KeyId string
    KeyID specifies the key ID, in hexadecimal string format.
    Owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    SubType string
    SubType holds the key's sub type
    Trust string
    Trust holds the level of trust assigned to this key
    fingerprint String
    Fingerprint is the fingerprint of the key
    keyData String
    KeyData holds the raw key data, in base64 encoded format.
    keyId String
    KeyID specifies the key ID, in hexadecimal string format.
    owner String
    Owner holds the owner identification, e.g. a name and e-mail address
    subType String
    SubType holds the key's sub type
    trust String
    Trust holds the level of trust assigned to this key
    fingerprint string
    Fingerprint is the fingerprint of the key
    keyData string
    KeyData holds the raw key data, in base64 encoded format.
    keyId string
    KeyID specifies the key ID, in hexadecimal string format.
    owner string
    Owner holds the owner identification, e.g. a name and e-mail address
    subType string
    SubType holds the key's sub type
    trust string
    Trust holds the level of trust assigned to this key
    fingerprint str
    Fingerprint is the fingerprint of the key
    key_data str
    KeyData holds the raw key data, in base64 encoded format.
    key_id str
    KeyID specifies the key ID, in hexadecimal string format.
    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
    trust str
    Trust holds the level of trust assigned to this key
    fingerprint String
    Fingerprint is the fingerprint of the key
    keyData String
    KeyData holds the raw key data, in base64 encoded format.
    keyId String
    KeyID specifies the key ID, in hexadecimal string format.
    owner String
    Owner holds the owner identification, e.g. a name and e-mail address
    subType String
    SubType holds the key's sub type
    trust String
    Trust holds the level of trust assigned to this key

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.1.1 published on Friday, Jul 12, 2024 by Pulumi