HCP

Community
Package contributed by a community member
v0.1.11 published on Monday, Jul 25, 2022 by Grapl Security

getAzurePeeringConnection

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:

getAzurePeeringConnection Result

The following output properties are available:

ApplicationId string
AzurePeeringId string
CreatedAt string
ExpiresAt string
HvnLink string
Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string
PeerResourceGroupName string
PeerSubscriptionId string
PeerTenantId string
PeerVnetName string
PeerVnetRegion string
PeeringId string
ProjectId string
SelfLink string
State string
WaitForActiveState bool
ApplicationId string
AzurePeeringId string
CreatedAt string
ExpiresAt string
HvnLink string
Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string
PeerResourceGroupName string
PeerSubscriptionId string
PeerTenantId string
PeerVnetName string
PeerVnetRegion string
PeeringId string
ProjectId string
SelfLink string
State string
WaitForActiveState bool
applicationId String
azurePeeringId String
createdAt String
expiresAt String
hvnLink String
id String

The provider-assigned unique ID for this managed resource.

organizationId String
peerResourceGroupName String
peerSubscriptionId String
peerTenantId String
peerVnetName String
peerVnetRegion String
peeringId String
projectId String
selfLink String
state String
waitForActiveState Boolean
applicationId string
azurePeeringId string
createdAt string
expiresAt string
hvnLink string
id string

The provider-assigned unique ID for this managed resource.

organizationId string
peerResourceGroupName string
peerSubscriptionId string
peerTenantId string
peerVnetName string
peerVnetRegion string
peeringId string
projectId string
selfLink string
state string
waitForActiveState boolean
applicationId String
azurePeeringId String
createdAt String
expiresAt String
hvnLink String
id String

The provider-assigned unique ID for this managed resource.

organizationId String
peerResourceGroupName String
peerSubscriptionId String
peerTenantId String
peerVnetName String
peerVnetRegion String
peeringId String
projectId String
selfLink String
state String
waitForActiveState Boolean

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.