1. Packages
  2. HCP
  3. API Docs
  4. getAzurePeeringConnection
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security

hcp.getAzurePeeringConnection

Explore with Pulumi AI

hcp logo
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:

    HvnLink string
    The self_link of the HashiCorp Virtual Network (HVN).
    PeeringId string
    The ID of the peering connection.
    WaitForActiveState bool
    HvnLink string
    The self_link of the HashiCorp Virtual Network (HVN).
    PeeringId string
    The ID of the peering connection.
    WaitForActiveState bool
    hvnLink String
    The self_link of the HashiCorp Virtual Network (HVN).
    peeringId String
    The ID of the peering connection.
    waitForActiveState Boolean
    hvnLink string
    The self_link of the HashiCorp Virtual Network (HVN).
    peeringId string
    The ID of the peering connection.
    waitForActiveState boolean
    hvn_link str
    The self_link of the HashiCorp Virtual Network (HVN).
    peering_id str
    The ID of the peering connection.
    wait_for_active_state bool
    hvnLink String
    The self_link of the HashiCorp Virtual Network (HVN).
    peeringId String
    The ID of the peering connection.
    waitForActiveState Boolean

    getAzurePeeringConnection Result

    The following output properties are available:

    ApplicationId string
    The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
    AzurePeeringId string
    The peering connection ID used by Azure.
    CreatedAt string
    The time that the peering connection was created.
    ExpiresAt string
    The time after which the peering connection will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.
    HvnLink string
    The self_link of the HashiCorp Virtual Network (HVN).
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
    PeerResourceGroupName string
    The resource group name of the peer VNet in Azure.
    PeerSubscriptionId string
    The subscription ID of the peer VNet in Azure.
    PeerTenantId string
    The tenant ID of the peer VNet in Azure.
    PeerVnetName string
    The name of the peer VNet in Azure.
    PeerVnetRegion string
    The region of the peer VNet in Azure.
    PeeringId string
    The ID of the peering connection.
    ProjectId string
    The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
    SelfLink string
    A unique URL identifying the peering connection
    State string
    The state of the Azure peering connection.
    WaitForActiveState bool
    ApplicationId string
    The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
    AzurePeeringId string
    The peering connection ID used by Azure.
    CreatedAt string
    The time that the peering connection was created.
    ExpiresAt string
    The time after which the peering connection will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.
    HvnLink string
    The self_link of the HashiCorp Virtual Network (HVN).
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
    PeerResourceGroupName string
    The resource group name of the peer VNet in Azure.
    PeerSubscriptionId string
    The subscription ID of the peer VNet in Azure.
    PeerTenantId string
    The tenant ID of the peer VNet in Azure.
    PeerVnetName string
    The name of the peer VNet in Azure.
    PeerVnetRegion string
    The region of the peer VNet in Azure.
    PeeringId string
    The ID of the peering connection.
    ProjectId string
    The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
    SelfLink string
    A unique URL identifying the peering connection
    State string
    The state of the Azure peering connection.
    WaitForActiveState bool
    applicationId String
    The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
    azurePeeringId String
    The peering connection ID used by Azure.
    createdAt String
    The time that the peering connection was created.
    expiresAt String
    The time after which the peering connection will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.
    hvnLink String
    The self_link of the HashiCorp Virtual Network (HVN).
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
    peerResourceGroupName String
    The resource group name of the peer VNet in Azure.
    peerSubscriptionId String
    The subscription ID of the peer VNet in Azure.
    peerTenantId String
    The tenant ID of the peer VNet in Azure.
    peerVnetName String
    The name of the peer VNet in Azure.
    peerVnetRegion String
    The region of the peer VNet in Azure.
    peeringId String
    The ID of the peering connection.
    projectId String
    The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
    selfLink String
    A unique URL identifying the peering connection
    state String
    The state of the Azure peering connection.
    waitForActiveState Boolean
    applicationId string
    The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
    azurePeeringId string
    The peering connection ID used by Azure.
    createdAt string
    The time that the peering connection was created.
    expiresAt string
    The time after which the peering connection will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.
    hvnLink string
    The self_link of the HashiCorp Virtual Network (HVN).
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
    peerResourceGroupName string
    The resource group name of the peer VNet in Azure.
    peerSubscriptionId string
    The subscription ID of the peer VNet in Azure.
    peerTenantId string
    The tenant ID of the peer VNet in Azure.
    peerVnetName string
    The name of the peer VNet in Azure.
    peerVnetRegion string
    The region of the peer VNet in Azure.
    peeringId string
    The ID of the peering connection.
    projectId string
    The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
    selfLink string
    A unique URL identifying the peering connection
    state string
    The state of the Azure peering connection.
    waitForActiveState boolean
    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_id str
    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 or ACTIVE 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_group_name str
    The resource group name of the peer VNet in Azure.
    peer_subscription_id str
    The subscription ID of the peer VNet in Azure.
    peer_tenant_id str
    The tenant ID of the peer VNet in Azure.
    peer_vnet_name str
    The name of the peer VNet in Azure.
    peer_vnet_region str
    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_active_state bool
    applicationId String
    The ID of the Azure application whose credentials are used to peer the HCP HVN's underlying VNet with the customer VNet.
    azurePeeringId String
    The peering connection ID used by Azure.
    createdAt String
    The time that the peering connection was created.
    expiresAt String
    The time after which the peering connection will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.
    hvnLink String
    The self_link of the HashiCorp Virtual Network (HVN).
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    The ID of the HCP organization where the peering connection is located. Always matches the HVN's organization.
    peerResourceGroupName String
    The resource group name of the peer VNet in Azure.
    peerSubscriptionId String
    The subscription ID of the peer VNet in Azure.
    peerTenantId String
    The tenant ID of the peer VNet in Azure.
    peerVnetName String
    The name of the peer VNet in Azure.
    peerVnetRegion String
    The region of the peer VNet in Azure.
    peeringId String
    The ID of the peering connection.
    projectId String
    The ID of the HCP project where the peering connection is located. Always matches the HVN's project.
    selfLink String
    A unique URL identifying the peering connection
    state String
    The state of the Azure peering connection.
    waitForActiveState Boolean

    Package Details

    Repository
    hcp grapl-security/pulumi-hcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcp Terraform Provider.
    hcp logo
    HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security