hcp logo
HashiCorp Cloud Platform (HCP) v0.1.14, Dec 2 22

hcp.getHvnRoute

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

Example Usage

Coming soon!

Coming soon!

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.GetHvnRouteArgs;
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 = HcpFunctions.getHvnRoute(GetHvnRouteArgs.builder()
            .hvnLink(var_.hvn_link())
            .destinationCidr(var_.hvn_route_id())
            .build());

    }
}

Coming soon!

Coming soon!

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

The self_link of the HashiCorp Virtual Network (HVN).

HvnRouteId string

The ID of the HVN route.

HvnLink string

The self_link of the HashiCorp Virtual Network (HVN).

HvnRouteId string

The ID of the HVN route.

hvnLink String

The self_link of the HashiCorp Virtual Network (HVN).

hvnRouteId String

The ID of the HVN route.

hvnLink string

The self_link of the HashiCorp Virtual Network (HVN).

hvnRouteId string

The ID of the HVN route.

hvn_link str

The self_link of the HashiCorp Virtual Network (HVN).

hvn_route_id str

The ID of the HVN route.

hvnLink String

The self_link of the HashiCorp Virtual Network (HVN).

hvnRouteId String

The ID of the HVN route.

getHvnRoute Result

The following output properties are available:

CreatedAt string

The time that the HVN route was created.

DestinationCidr string

The destination CIDR of the HVN route.

HvnLink string

The self_link of the HashiCorp Virtual Network (HVN).

HvnRouteId string

The ID of the HVN route.

Id string

The provider-assigned unique ID for this managed resource.

SelfLink string

A unique URL identifying the HVN route.

State string

The state of the HVN route.

TargetLink string

A unique URL identifying the target of the HVN route.

CreatedAt string

The time that the HVN route was created.

DestinationCidr string

The destination CIDR of the HVN route.

HvnLink string

The self_link of the HashiCorp Virtual Network (HVN).

HvnRouteId string

The ID of the HVN route.

Id string

The provider-assigned unique ID for this managed resource.

SelfLink string

A unique URL identifying the HVN route.

State string

The state of the HVN route.

TargetLink string

A unique URL identifying the target of the HVN route.

createdAt String

The time that the HVN route was created.

destinationCidr String

The destination CIDR of the HVN route.

hvnLink String

The self_link of the HashiCorp Virtual Network (HVN).

hvnRouteId String

The ID of the HVN route.

id String

The provider-assigned unique ID for this managed resource.

selfLink String

A unique URL identifying the HVN route.

state String

The state of the HVN route.

targetLink String

A unique URL identifying the target of the HVN route.

createdAt string

The time that the HVN route was created.

destinationCidr string

The destination CIDR of the HVN route.

hvnLink string

The self_link of the HashiCorp Virtual Network (HVN).

hvnRouteId string

The ID of the HVN route.

id string

The provider-assigned unique ID for this managed resource.

selfLink string

A unique URL identifying the HVN route.

state string

The state of the HVN route.

targetLink string

A unique URL identifying the target of the HVN route.

created_at str

The time that the HVN route was created.

destination_cidr str

The destination CIDR of the HVN route.

hvn_link str

The self_link of the HashiCorp Virtual Network (HVN).

hvn_route_id str

The ID of the HVN route.

id str

The provider-assigned unique ID for this managed resource.

self_link str

A unique URL identifying the HVN route.

state str

The state of the HVN route.

target_link str

A unique URL identifying the target of the HVN route.

createdAt String

The time that the HVN route was created.

destinationCidr String

The destination CIDR of the HVN route.

hvnLink String

The self_link of the HashiCorp Virtual Network (HVN).

hvnRouteId String

The ID of the HVN route.

id String

The provider-assigned unique ID for this managed resource.

selfLink String

A unique URL identifying the HVN route.

state String

The state of the HVN route.

targetLink String

A unique URL identifying the target of the HVN route.

Package Details

Repository
hcp grapl-security/pulumi-hcp
License
Apache-2.0
Notes

This Pulumi package is based on the hcp Terraform Provider.