HCP

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

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
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.