Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi
harness.platform.getGitopsGnupg
Explore with Pulumi AI
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:
- Account
Id string - Account Identifier for the GnuPG Key.
- Agent
Id string - Agent identifier for the GnuPG Key.
- Identifier string
- Identifier for the GnuPG Key.
- Org
Id string - Organization Identifier for the GnuPG Key.
- Project
Id string - Project Identifier for the GnuPG Key.
- Requests
List<Get
Gitops Gnupg Request> - GnuPGPublicKey is a representation of a GnuPG public key
- Account
Id string - Account Identifier for the GnuPG Key.
- Agent
Id string - Agent identifier for the GnuPG Key.
- Identifier string
- Identifier for the GnuPG Key.
- Org
Id string - Organization Identifier for the GnuPG Key.
- Project
Id string - Project Identifier for the GnuPG Key.
- Requests
[]Get
Gitops Gnupg Request - GnuPGPublicKey is a representation of a GnuPG public key
- account
Id String - Account Identifier for the GnuPG Key.
- agent
Id String - Agent identifier for the GnuPG Key.
- identifier String
- Identifier for the GnuPG Key.
- org
Id String - Organization Identifier for the GnuPG Key.
- project
Id String - Project Identifier for the GnuPG Key.
- requests
List<Get
Gitops Gnupg Request> - GnuPGPublicKey is a representation of a GnuPG public key
- account
Id string - Account Identifier for the GnuPG Key.
- agent
Id string - Agent identifier for the GnuPG Key.
- identifier string
- Identifier for the GnuPG Key.
- org
Id string - Organization Identifier for the GnuPG Key.
- project
Id string - Project Identifier for the GnuPG Key.
- requests
Get
Gitops Gnupg Request[] - 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[Get
Gitops Gnupg Request] - GnuPGPublicKey is a representation of a GnuPG public key
- account
Id String - Account Identifier for the GnuPG Key.
- agent
Id String - Agent identifier for the GnuPG Key.
- identifier String
- Identifier for the GnuPG Key.
- org
Id String - Organization Identifier for the GnuPG Key.
- project
Id 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:
- Account
Id string - Account Identifier for the GnuPG Key.
- Agent
Id 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<Get
Gitops Gnupg Request> - GnuPGPublicKey is a representation of a GnuPG public key
- Org
Id string - Organization Identifier for the GnuPG Key.
- Project
Id string - Project Identifier for the GnuPG Key.
- Account
Id string - Account Identifier for the GnuPG Key.
- Agent
Id 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
[]Get
Gitops Gnupg Request - GnuPGPublicKey is a representation of a GnuPG public key
- Org
Id string - Organization Identifier for the GnuPG Key.
- Project
Id string - Project Identifier for the GnuPG Key.
- account
Id String - Account Identifier for the GnuPG Key.
- agent
Id 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<Get
Gitops Gnupg Request> - GnuPGPublicKey is a representation of a GnuPG public key
- org
Id String - Organization Identifier for the GnuPG Key.
- project
Id String - Project Identifier for the GnuPG Key.
- account
Id string - Account Identifier for the GnuPG Key.
- agent
Id 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
Get
Gitops Gnupg Request[] - GnuPGPublicKey is a representation of a GnuPG public key
- org
Id string - Organization Identifier for the GnuPG Key.
- project
Id 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[Get
Gitops Gnupg Request] - 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.
- account
Id String - Account Identifier for the GnuPG Key.
- agent
Id 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
- org
Id String - Organization Identifier for the GnuPG Key.
- project
Id String - Project Identifier for the GnuPG Key.
Supporting Types
GetGitopsGnupgRequest
- Publickeys
List<Get
Gitops Gnupg Request Publickey> - Public key details.
- Upsert bool
- Indicates if the GnuPG Key should be inserted if not present or updated if present.
- Publickeys
[]Get
Gitops Gnupg Request Publickey - Public key details.
- Upsert bool
- Indicates if the GnuPG Key should be inserted if not present or updated if present.
- publickeys
List<Get
Gitops Gnupg Request Publickey> - Public key details.
- upsert Boolean
- Indicates if the GnuPG Key should be inserted if not present or updated if present.
- publickeys
Get
Gitops Gnupg Request Publickey[] - Public key details.
- upsert boolean
- Indicates if the GnuPG Key should be inserted if not present or updated if present.
- publickeys
Sequence[Get
Gitops Gnupg Request Publickey] - 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
- Key
Data string - KeyData holds the raw key data, in base64 encoded format.
- Key
Id 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
- Sub
Type 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
- Key
Data string - KeyData holds the raw key data, in base64 encoded format.
- Key
Id 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
- Sub
Type 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
- key
Data String - KeyData holds the raw key data, in base64 encoded format.
- key
Id 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
- sub
Type 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
- key
Data string - KeyData holds the raw key data, in base64 encoded format.
- key
Id 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
- sub
Type 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
- key
Data String - KeyData holds the raw key data, in base64 encoded format.
- key
Id 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
- sub
Type 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.