Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getGitopsGnupg
Explore with Pulumi AI
Data source for retrieving a GPG public key in the server’s configuration.
Example Usage
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 main
import (
"github.com/lbrlabs/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: pulumi.StringRef("identifier"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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());
}
}
import pulumi
import pulumi_harness as harness
example = harness.platform.get_gitops_gnupg(account_id="account_id",
agent_id="agent_id",
identifier="identifier")
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",
});
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<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. 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.
- Org
Id string - Organization Identifier for the GnuPG Key.
- Project
Id string - Project Identifier for the GnuPG Key.
- Requests
List<Lbrlabs.
Pulumi Package. Harness. Platform. Outputs. 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
Supporting Types
GetGitopsGnupgRequest
- Publickeys
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. 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
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.