HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
hcp.getAzurePeeringConnection
Explore with Pulumi AI
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
Note: This data source is currently in public beta.
The Azure peering connection data source provides information about a peering connection between an HVN and a peer Azure VNet.
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.GetAzurePeeringConnectionArgs;
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 test = HcpFunctions.getAzurePeeringConnection(GetAzurePeeringConnectionArgs.builder()
.hvnId(var_.hvn_id())
.peeringId(var_.peering_id())
.waitForActiveState(true)
.build());
}
}
Coming soon!
Coming soon!
variables:
test:
Fn::Invoke:
Function: hcp:getAzurePeeringConnection
Arguments:
hvnId: ${var.hvn_id}
peeringId: ${var.peering_id}
waitForActiveState: true
Using getAzurePeeringConnection
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 getAzurePeeringConnection(args: GetAzurePeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAzurePeeringConnectionResult>
function getAzurePeeringConnectionOutput(args: GetAzurePeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetAzurePeeringConnectionResult>
def get_azure_peering_connection(hvn_link: Optional[str] = None,
peering_id: Optional[str] = None,
wait_for_active_state: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetAzurePeeringConnectionResult
def get_azure_peering_connection_output(hvn_link: Optional[pulumi.Input[str]] = None,
peering_id: Optional[pulumi.Input[str]] = None,
wait_for_active_state: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAzurePeeringConnectionResult]
func LookupAzurePeeringConnection(ctx *Context, args *LookupAzurePeeringConnectionArgs, opts ...InvokeOption) (*LookupAzurePeeringConnectionResult, error)
func LookupAzurePeeringConnectionOutput(ctx *Context, args *LookupAzurePeeringConnectionOutputArgs, opts ...InvokeOption) LookupAzurePeeringConnectionResultOutput
> Note: This function is named LookupAzurePeeringConnection
in the Go SDK.
public static class GetAzurePeeringConnection
{
public static Task<GetAzurePeeringConnectionResult> InvokeAsync(GetAzurePeeringConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetAzurePeeringConnectionResult> Invoke(GetAzurePeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAzurePeeringConnectionResult> getAzurePeeringConnection(GetAzurePeeringConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: hcp:index/getAzurePeeringConnection:getAzurePeeringConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - Peering
Id string - The ID of the peering connection.
- Wait
For boolActive State
- Hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - Peering
Id string - The ID of the peering connection.
- Wait
For boolActive State
- hvn
Link String - The
self_link
of the HashiCorp Virtual Network (HVN). - peering
Id String - The ID of the peering connection.
- wait
For BooleanActive State
- hvn
Link string - The
self_link
of the HashiCorp Virtual Network (HVN). - peering
Id string - The ID of the peering connection.
- wait
For booleanActive State
- hvn_
link str - The
self_link
of the HashiCorp Virtual Network (HVN). - peering_
id str - The ID of the peering connection.
- wait_
for_ boolactive_ state
- hvn
Link String - The
self_link
of the HashiCorp Virtual Network (HVN). - peering
Id String - The ID of the peering connection.
- wait
For BooleanActive State
getAzurePeeringConnection Result
The following output properties are available:
- Application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- Azure
Peering stringId - The peering connection ID used by Azure.
- Created
At string - The time that the peering connection was created.
- Expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - Hvn
Link string - The
self_link
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 peering connection is located. Always matches the HVN's organization.
- Peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- Peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- Peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- Peer
Vnet stringName - The name of the peer VNet in Azure.
- Peer
Vnet stringRegion - The region of the peer VNet in Azure.
- Peering
Id string - The ID of the peering connection.
- Project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- Self
Link string - A unique URL identifying the peering connection
- State string
- The state of the Azure peering connection.
- Wait
For boolActive State
- Application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- Azure
Peering stringId - The peering connection ID used by Azure.
- Created
At string - The time that the peering connection was created.
- Expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - Hvn
Link string - The
self_link
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 peering connection is located. Always matches the HVN's organization.
- Peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- Peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- Peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- Peer
Vnet stringName - The name of the peer VNet in Azure.
- Peer
Vnet stringRegion - The region of the peer VNet in Azure.
- Peering
Id string - The ID of the peering connection.
- Project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- Self
Link string - A unique URL identifying the peering connection
- State string
- The state of the Azure peering connection.
- Wait
For boolActive State
- application
Id String - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering StringId - The peering connection ID used by Azure.
- created
At String - The time that the peering connection was created.
- expires
At String - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn
Link String - The
self_link
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 peering connection is located. Always matches the HVN's organization.
- peer
Resource StringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription StringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant StringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet StringName - The name of the peer VNet in Azure.
- peer
Vnet StringRegion - The region of the peer VNet in Azure.
- peering
Id String - The ID of the peering connection.
- project
Id String - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link String - A unique URL identifying the peering connection
- state String
- The state of the Azure peering connection.
- wait
For BooleanActive State
- application
Id string - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering stringId - The peering connection ID used by Azure.
- created
At string - The time that the peering connection was created.
- expires
At string - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn
Link string - The
self_link
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 peering connection is located. Always matches the HVN's organization.
- peer
Resource stringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription stringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant stringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet stringName - The name of the peer VNet in Azure.
- peer
Vnet stringRegion - The region of the peer VNet in Azure.
- peering
Id string - The ID of the peering connection.
- project
Id string - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link string - A unique URL identifying the peering connection
- state string
- The state of the Azure peering connection.
- wait
For booleanActive State
- application_
id str - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure_
peering_ strid - The peering connection ID used by Azure.
- created_
at str - The time that the peering connection was created.
- expires_
at str - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn_
link str - The
self_link
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 peering connection is located. Always matches the HVN's organization.
- peer_
resource_ strgroup_ name - The resource group name of the peer VNet in Azure.
- peer_
subscription_ strid - The subscription ID of the peer VNet in Azure.
- peer_
tenant_ strid - The tenant ID of the peer VNet in Azure.
- peer_
vnet_ strname - The name of the peer VNet in Azure.
- peer_
vnet_ strregion - The region of the peer VNet in Azure.
- peering_
id str - The ID of the peering connection.
- project_
id str - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self_
link str - A unique URL identifying the peering connection
- state str
- The state of the Azure peering connection.
- wait_
for_ boolactive_ state
- application
Id String - The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
- azure
Peering StringId - The peering connection ID used by Azure.
- created
At String - The time that the peering connection was created.
- expires
At String - The time after which the peering connection will be considered expired if it hasn't transitioned into
ACCEPTED
orACTIVE
state. - hvn
Link String - The
self_link
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 peering connection is located. Always matches the HVN's organization.
- peer
Resource StringGroup Name - The resource group name of the peer VNet in Azure.
- peer
Subscription StringId - The subscription ID of the peer VNet in Azure.
- peer
Tenant StringId - The tenant ID of the peer VNet in Azure.
- peer
Vnet StringName - The name of the peer VNet in Azure.
- peer
Vnet StringRegion - The region of the peer VNet in Azure.
- peering
Id String - The ID of the peering connection.
- project
Id String - The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
- self
Link String - A unique URL identifying the peering connection
- state String
- The state of the Azure peering connection.
- wait
For BooleanActive State
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