HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
hcp.getHvn
Explore with Pulumi AI
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
The HVN data source provides information about an existing HashiCorp Virtual Network.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Hcp = Pulumi.Hcp;
return await Deployment.RunAsync(() =>
{
var example = Hcp.GetHvn.Invoke(new()
{
HvnId = @var.Hvn_id,
});
});
package main
import (
"github.com/grapl-security/pulumi-hcp/sdk/go/hcp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hcp.LookupHvn(ctx, &GetHvnArgs{
HvnId: _var.Hvn_id,
}, 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.GetHvnArgs;
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.getHvn(GetHvnArgs.builder()
.hvnId(var_.hvn_id())
.build());
}
}
import pulumi
import pulumi_hcp as hcp
example = hcp.get_hvn(hvn_id=var["hvn_id"])
import * as pulumi from "@pulumi/pulumi";
import * as hcp from "@pulumi/hcp";
const example = hcp.getHvn({
hvnId: _var.hvn_id,
});
variables:
example:
Fn::Invoke:
Function: hcp:getHvn
Arguments:
hvnId: ${var.hvn_id}
Using getHvn
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 getHvn(args: GetHvnArgs, opts?: InvokeOptions): Promise<GetHvnResult>
function getHvnOutput(args: GetHvnOutputArgs, opts?: InvokeOptions): Output<GetHvnResult>
def get_hvn(hvn_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHvnResult
def get_hvn_output(hvn_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHvnResult]
func LookupHvn(ctx *Context, args *LookupHvnArgs, opts ...InvokeOption) (*LookupHvnResult, error)
func LookupHvnOutput(ctx *Context, args *LookupHvnOutputArgs, opts ...InvokeOption) LookupHvnResultOutput
> Note: This function is named LookupHvn
in the Go SDK.
public static class GetHvn
{
public static Task<GetHvnResult> InvokeAsync(GetHvnArgs args, InvokeOptions? opts = null)
public static Output<GetHvnResult> Invoke(GetHvnInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHvnResult> getHvn(GetHvnArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: hcp:index/getHvn:getHvn
arguments:
# arguments dictionary
The following arguments are supported:
- Hvn
Id string - The ID of the HashiCorp Virtual Network (HVN).
- Hvn
Id string - The ID of the HashiCorp Virtual Network (HVN).
- hvn
Id String - The ID of the HashiCorp Virtual Network (HVN).
- hvn
Id string - The ID of the HashiCorp Virtual Network (HVN).
- hvn_
id str - The ID of the HashiCorp Virtual Network (HVN).
- hvn
Id String - The ID of the HashiCorp Virtual Network (HVN).
getHvn Result
The following output properties are available:
- Cidr
Block string - The CIDR range of the HVN.
- Cloud
Provider string - The provider where the HVN is located.
- Created
At string - The time that the HVN was created.
- Hvn
Id string - The ID of the HashiCorp Virtual Network (HVN).
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The ID of the HCP organization where the HVN is located.
- Project
Id string - The ID of the HCP project where the HVN is located.
- Provider
Account stringId - The provider account ID where the HVN is located.
- Region string
- The region where the HVN is located.
- Self
Link string - A unique URL identifying the HVN.
- State string
- The state of the HVN route.
- Cidr
Block string - The CIDR range of the HVN.
- Cloud
Provider string - The provider where the HVN is located.
- Created
At string - The time that the HVN was created.
- Hvn
Id string - The ID of the HashiCorp Virtual Network (HVN).
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The ID of the HCP organization where the HVN is located.
- Project
Id string - The ID of the HCP project where the HVN is located.
- Provider
Account stringId - The provider account ID where the HVN is located.
- Region string
- The region where the HVN is located.
- Self
Link string - A unique URL identifying the HVN.
- State string
- The state of the HVN route.
- cidr
Block String - The CIDR range of the HVN.
- cloud
Provider String - The provider where the HVN is located.
- created
At String - The time that the HVN was created.
- hvn
Id String - The ID of the HashiCorp Virtual Network (HVN).
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The ID of the HCP organization where the HVN is located.
- project
Id String - The ID of the HCP project where the HVN is located.
- provider
Account StringId - The provider account ID where the HVN is located.
- region String
- The region where the HVN is located.
- self
Link String - A unique URL identifying the HVN.
- state String
- The state of the HVN route.
- cidr
Block string - The CIDR range of the HVN.
- cloud
Provider string - The provider where the HVN is located.
- created
At string - The time that the HVN was created.
- hvn
Id string - The ID of the HashiCorp Virtual Network (HVN).
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The ID of the HCP organization where the HVN is located.
- project
Id string - The ID of the HCP project where the HVN is located.
- provider
Account stringId - The provider account ID where the HVN is located.
- region string
- The region where the HVN is located.
- self
Link string - A unique URL identifying the HVN.
- state string
- The state of the HVN route.
- cidr_
block str - The CIDR range of the HVN.
- cloud_
provider str - The provider where the HVN is located.
- created_
at str - The time that the HVN was created.
- hvn_
id str - The ID of the HashiCorp Virtual Network (HVN).
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The ID of the HCP organization where the HVN is located.
- project_
id str - The ID of the HCP project where the HVN is located.
- provider_
account_ strid - The provider account ID where the HVN is located.
- region str
- The region where the HVN is located.
- self_
link str - A unique URL identifying the HVN.
- state str
- The state of the HVN route.
- cidr
Block String - The CIDR range of the HVN.
- cloud
Provider String - The provider where the HVN is located.
- created
At String - The time that the HVN was created.
- hvn
Id String - The ID of the HashiCorp Virtual Network (HVN).
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The ID of the HCP organization where the HVN is located.
- project
Id String - The ID of the HCP project where the HVN is located.
- provider
Account StringId - The provider account ID where the HVN is located.
- region String
- The region where the HVN is located.
- self
Link String - A unique URL identifying the HVN.
- state String
- The state 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.
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security