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:
- Hvn
Link string The
self_link
of the HashiCorp Virtual Network (HVN).- Hvn
Route stringId The ID of the HVN route.
- Hvn
Link string The
self_link
of the HashiCorp Virtual Network (HVN).- Hvn
Route stringId The ID of the HVN route.
- hvn
Link String The
self_link
of the HashiCorp Virtual Network (HVN).- hvn
Route StringId The ID of the HVN route.
- hvn
Link string The
self_link
of the HashiCorp Virtual Network (HVN).- hvn
Route stringId The ID of the HVN route.
- hvn_
link str The
self_link
of the HashiCorp Virtual Network (HVN).- hvn_
route_ strid The ID of the HVN route.
- hvn
Link String The
self_link
of the HashiCorp Virtual Network (HVN).- hvn
Route StringId The ID of the HVN route.
getHvnRoute Result
The following output properties are available:
- Created
At string The time that the HVN route was created.
- Destination
Cidr string The destination CIDR of the HVN route.
- Hvn
Link string The
self_link
of the HashiCorp Virtual Network (HVN).- Hvn
Route stringId The ID of the HVN route.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string A unique URL identifying the HVN route.
- State string
The state of the HVN route.
- Target
Link string A unique URL identifying the target of the HVN route.
- Created
At string The time that the HVN route was created.
- Destination
Cidr string The destination CIDR of the HVN route.
- Hvn
Link string The
self_link
of the HashiCorp Virtual Network (HVN).- Hvn
Route stringId The ID of the HVN route.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string A unique URL identifying the HVN route.
- State string
The state of the HVN route.
- Target
Link string A unique URL identifying the target of the HVN route.
- created
At String The time that the HVN route was created.
- destination
Cidr String The destination CIDR of the HVN route.
- hvn
Link String The
self_link
of the HashiCorp Virtual Network (HVN).- hvn
Route StringId The ID of the HVN route.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String A unique URL identifying the HVN route.
- state String
The state of the HVN route.
- target
Link String A unique URL identifying the target of the HVN route.
- created
At string The time that the HVN route was created.
- destination
Cidr string The destination CIDR of the HVN route.
- hvn
Link string The
self_link
of the HashiCorp Virtual Network (HVN).- hvn
Route stringId The ID of the HVN route.
- id string
The provider-assigned unique ID for this managed resource.
- self
Link string A unique URL identifying the HVN route.
- state string
The state of the HVN route.
- target
Link 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_ strid 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.
- created
At String The time that the HVN route was created.
- destination
Cidr String The destination CIDR of the HVN route.
- hvn
Link String The
self_link
of the HashiCorp Virtual Network (HVN).- hvn
Route StringId The ID of the HVN route.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String A unique URL identifying the HVN route.
- state String
The state of the HVN route.
- target
Link 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.