HCP

v0.1.11 published on Monday, Jul 25, 2022 by Grapl Security

getHvnPeeringConnection

The HVN peering connection data source provides information about an existing peering connection between HVNs.

Example Usage

using Pulumi;
using Hcp = Pulumi.Hcp;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Hcp.GetHvnPeeringConnection.InvokeAsync(new Hcp.GetHvnPeeringConnectionArgs
        {
            PeeringId = @var.Peering_id,
            Hvn1 = @var.Hvn_1,
            Hvn2 = @var.Hvn_2,
        }));
    }

}
package main

import (
	"github.com/grapl-security/pulumi-hcp/sdk/go/hcp"
	"github.com/pulumi/pulumi-hcp/sdk/go/hcp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hcp.LookupHvnPeeringConnection(ctx, &GetHvnPeeringConnectionArgs{
			PeeringId: _var.Peering_id,
			Hvn1:      _var.Hvn_1,
			Hvn2:      _var.Hvn_2,
		}, 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.hcp.HcpFunctions;
import com.pulumi.hcp.inputs.GetHvnPeeringConnectionArgs;
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 test = HcpFunctions.getHvnPeeringConnection(GetHvnPeeringConnectionArgs.builder()
            .peeringId(var_.peering_id())
            .hvn1(var_.hvn_1())
            .hvn2(var_.hvn_2())
            .build());

    }
}
import pulumi
import pulumi_hcp as hcp

test = hcp.get_hvn_peering_connection(peering_id=var["peering_id"],
    hvn1=var["hvn_1"],
    hvn2=var["hvn_2"])
import * as pulumi from "@pulumi/pulumi";
import * as hcp from "@pulumi/hcp";

const test = hcp.getHvnPeeringConnection({
    peeringId: _var.peering_id,
    hvn1: _var.hvn_1,
    hvn2: _var.hvn_2,
});
variables:
  test:
    Fn::Invoke:
      Function: hcp:getHvnPeeringConnection
      Arguments:
        peeringId: ${var.peering_id}
        hvn1: ${var.hvn_1}
        hvn2: ${var.hvn_2}

Using getHvnPeeringConnection

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 getHvnPeeringConnection(args: GetHvnPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetHvnPeeringConnectionResult>
function getHvnPeeringConnectionOutput(args: GetHvnPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetHvnPeeringConnectionResult>
def get_hvn_peering_connection(hvn1: Optional[str] = None,
                               hvn2: Optional[str] = None,
                               peering_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetHvnPeeringConnectionResult
def get_hvn_peering_connection_output(hvn1: Optional[pulumi.Input[str]] = None,
                               hvn2: Optional[pulumi.Input[str]] = None,
                               peering_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetHvnPeeringConnectionResult]
func LookupHvnPeeringConnection(ctx *Context, args *LookupHvnPeeringConnectionArgs, opts ...InvokeOption) (*LookupHvnPeeringConnectionResult, error)
func LookupHvnPeeringConnectionOutput(ctx *Context, args *LookupHvnPeeringConnectionOutputArgs, opts ...InvokeOption) LookupHvnPeeringConnectionResultOutput

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

public static class GetHvnPeeringConnection 
{
    public static Task<GetHvnPeeringConnectionResult> InvokeAsync(GetHvnPeeringConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetHvnPeeringConnectionResult> Invoke(GetHvnPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHvnPeeringConnectionResult> getHvnPeeringConnection(GetHvnPeeringConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: hcp:index/getHvnPeeringConnection:getHvnPeeringConnection
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Hvn1 string
Hvn2 string
PeeringId string
Hvn1 string
Hvn2 string
PeeringId string
hvn1 String
hvn2 String
peeringId String
hvn1 string
hvn2 string
peeringId string
hvn1 str
hvn2 str
peering_id str
hvn1 String
hvn2 String
peeringId String

getHvnPeeringConnection Result

The following output properties are available:

CreatedAt string
ExpiresAt string
Hvn1 string
Hvn2 string
Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string
PeeringId string
ProjectId string
SelfLink string
State string
CreatedAt string
ExpiresAt string
Hvn1 string
Hvn2 string
Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string
PeeringId string
ProjectId string
SelfLink string
State string
createdAt String
expiresAt String
hvn1 String
hvn2 String
id String

The provider-assigned unique ID for this managed resource.

organizationId String
peeringId String
projectId String
selfLink String
state String
createdAt string
expiresAt string
hvn1 string
hvn2 string
id string

The provider-assigned unique ID for this managed resource.

organizationId string
peeringId string
projectId string
selfLink string
state string
created_at str
expires_at str
hvn1 str
hvn2 str
id str

The provider-assigned unique ID for this managed resource.

organization_id str
peering_id str
project_id str
self_link str
state str
createdAt String
expiresAt String
hvn1 String
hvn2 String
id String

The provider-assigned unique ID for this managed resource.

organizationId String
peeringId String
projectId String
selfLink String
state String

Package Details

Repository
https://github.com/grapl-security/pulumi-hcp
License
Apache-2.0
Notes

This Pulumi package is based on the hcp Terraform Provider.