HCP

Community
Package contributed by a community member
v0.1.4 published on Friday, May 27, 2022 by Grapl Security

getHvnRoute

The HVN route data source provides information about an existing HVN route.

Example Usage

using Pulumi;
using Hcp = Pulumi.Hcp;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Hcp.GetHvnRoute.InvokeAsync(new Hcp.GetHvnRouteArgs
        {
            HvnLink = @var.Hvn_link,
            DestinationCidr = @var.Hvn_route_id,
        }));
    }

}
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.LookupHvnRoute(ctx, &GetHvnRouteArgs{
			HvnLink:         _var.Hvn_link,
			DestinationCidr: _var.Hvn_route_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(HcpFunctions.getHvnRoute(GetHvnRouteArgs.builder()
            .hvnLink(var_.hvn_link())
            .destinationCidr(var_.hvn_route_id())
            .build()));

    }
}
import pulumi
import pulumi_hcp as hcp

example = hcp.get_hvn_route(hvn_link=var["hvn_link"],
    destination_cidr=var["hvn_route_id"])
import * as pulumi from "@pulumi/pulumi";
import * as hcp from "@pulumi/hcp";

const example = hcp.getHvnRoute({
    hvnLink: _var.hvn_link,
    destinationCidr: _var.hvn_route_id,
});
variables:
  example:
    Fn::Invoke:
      Function: hcp:getHvnRoute
      Arguments:
        hvnLink: ${var.hvn_link}
        destinationCidr: ${var.hvn_route_id}

Using getHvnRoute

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 getHvnRoute(args: GetHvnRouteArgs, opts?: InvokeOptions): Promise<GetHvnRouteResult>
function getHvnRouteOutput(args: GetHvnRouteOutputArgs, opts?: InvokeOptions): Output<GetHvnRouteResult>
def get_hvn_route(hvn_link: Optional[str] = None,
                  hvn_route_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetHvnRouteResult
def get_hvn_route_output(hvn_link: Optional[pulumi.Input[str]] = None,
                  hvn_route_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetHvnRouteResult]
func LookupHvnRoute(ctx *Context, args *LookupHvnRouteArgs, opts ...InvokeOption) (*LookupHvnRouteResult, error)
func LookupHvnRouteOutput(ctx *Context, args *LookupHvnRouteOutputArgs, opts ...InvokeOption) LookupHvnRouteResultOutput

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

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

The following arguments are supported:

HvnLink string
HvnRouteId string
HvnLink string
HvnRouteId string
hvnLink String
hvnRouteId String
hvnLink string
hvnRouteId string
hvnLink String
hvnRouteId String

getHvnRoute Result

The following output properties are available:

CreatedAt string
DestinationCidr string
HvnLink string
HvnRouteId string
Id string

The provider-assigned unique ID for this managed resource.

SelfLink string
State string
TargetLink string
CreatedAt string
DestinationCidr string
HvnLink string
HvnRouteId string
Id string

The provider-assigned unique ID for this managed resource.

SelfLink string
State string
TargetLink string
createdAt String
destinationCidr String
hvnLink String
hvnRouteId String
id String

The provider-assigned unique ID for this managed resource.

selfLink String
state String
targetLink String
createdAt string
destinationCidr string
hvnLink string
hvnRouteId string
id string

The provider-assigned unique ID for this managed resource.

selfLink string
state string
targetLink string
created_at str
destination_cidr str
hvn_link str
hvn_route_id str
id str

The provider-assigned unique ID for this managed resource.

self_link str
state str
target_link str
createdAt String
destinationCidr String
hvnLink String
hvnRouteId String
id String

The provider-assigned unique ID for this managed resource.

selfLink String
state String
targetLink 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.