1. Packages
  2. Aiven
  3. API Docs
  4. getAzureVpcPeeringConnection
Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi

aiven.getAzureVpcPeeringConnection

Explore with Pulumi AI

aiven logo
Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi

    Gets information about about an Azure VPC peering connection.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const azureToAivenPeering = aiven.getAzureVpcPeeringConnection({
        vpcId: exampleVpc.id,
        azureSubscriptionId: "00000000-0000-0000-0000-000000000000",
        peerResourceGroup: "example-resource-group",
        vnetName: "example-vnet",
        peerAzureAppId: "00000000-0000-0000-0000-000000000000",
        peerAzureTenantId: "00000000-0000-0000-0000-000000000000",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    azure_to_aiven_peering = aiven.get_azure_vpc_peering_connection(vpc_id=example_vpc["id"],
        azure_subscription_id="00000000-0000-0000-0000-000000000000",
        peer_resource_group="example-resource-group",
        vnet_name="example-vnet",
        peer_azure_app_id="00000000-0000-0000-0000-000000000000",
        peer_azure_tenant_id="00000000-0000-0000-0000-000000000000")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupAzureVpcPeeringConnection(ctx, &aiven.LookupAzureVpcPeeringConnectionArgs{
    			VpcId:               exampleVpc.Id,
    			AzureSubscriptionId: "00000000-0000-0000-0000-000000000000",
    			PeerResourceGroup:   "example-resource-group",
    			VnetName:            "example-vnet",
    			PeerAzureAppId:      "00000000-0000-0000-0000-000000000000",
    			PeerAzureTenantId:   "00000000-0000-0000-0000-000000000000",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var azureToAivenPeering = Aiven.GetAzureVpcPeeringConnection.Invoke(new()
        {
            VpcId = exampleVpc.Id,
            AzureSubscriptionId = "00000000-0000-0000-0000-000000000000",
            PeerResourceGroup = "example-resource-group",
            VnetName = "example-vnet",
            PeerAzureAppId = "00000000-0000-0000-0000-000000000000",
            PeerAzureTenantId = "00000000-0000-0000-0000-000000000000",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetAzureVpcPeeringConnectionArgs;
    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 azureToAivenPeering = AivenFunctions.getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs.builder()
                .vpcId(exampleVpc.id())
                .azureSubscriptionId("00000000-0000-0000-0000-000000000000")
                .peerResourceGroup("example-resource-group")
                .vnetName("example-vnet")
                .peerAzureAppId("00000000-0000-0000-0000-000000000000")
                .peerAzureTenantId("00000000-0000-0000-0000-000000000000")
                .build());
    
        }
    }
    
    variables:
      azureToAivenPeering:
        fn::invoke:
          Function: aiven:getAzureVpcPeeringConnection
          Arguments:
            vpcId: ${exampleVpc.id}
            azureSubscriptionId: 00000000-0000-0000-0000-000000000000
            peerResourceGroup: example-resource-group
            vnetName: example-vnet
            peerAzureAppId: 00000000-0000-0000-0000-000000000000
            peerAzureTenantId: 00000000-0000-0000-0000-000000000000
    

    Using getAzureVpcPeeringConnection

    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 getAzureVpcPeeringConnection(args: GetAzureVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAzureVpcPeeringConnectionResult>
    function getAzureVpcPeeringConnectionOutput(args: GetAzureVpcPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetAzureVpcPeeringConnectionResult>
    def get_azure_vpc_peering_connection(azure_subscription_id: Optional[str] = None,
                                         peer_azure_app_id: Optional[str] = None,
                                         peer_azure_tenant_id: Optional[str] = None,
                                         peer_resource_group: Optional[str] = None,
                                         vnet_name: Optional[str] = None,
                                         vpc_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetAzureVpcPeeringConnectionResult
    def get_azure_vpc_peering_connection_output(azure_subscription_id: Optional[pulumi.Input[str]] = None,
                                         peer_azure_app_id: Optional[pulumi.Input[str]] = None,
                                         peer_azure_tenant_id: Optional[pulumi.Input[str]] = None,
                                         peer_resource_group: Optional[pulumi.Input[str]] = None,
                                         vnet_name: Optional[pulumi.Input[str]] = None,
                                         vpc_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetAzureVpcPeeringConnectionResult]
    func LookupAzureVpcPeeringConnection(ctx *Context, args *LookupAzureVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAzureVpcPeeringConnectionResult, error)
    func LookupAzureVpcPeeringConnectionOutput(ctx *Context, args *LookupAzureVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAzureVpcPeeringConnectionResultOutput

    > Note: This function is named LookupAzureVpcPeeringConnection in the Go SDK.

    public static class GetAzureVpcPeeringConnection 
    {
        public static Task<GetAzureVpcPeeringConnectionResult> InvokeAsync(GetAzureVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetAzureVpcPeeringConnectionResult> Invoke(GetAzureVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAzureVpcPeeringConnectionResult> getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aiven:index/getAzureVpcPeeringConnection:getAzureVpcPeeringConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    PeerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    PeerAzureTenantId string
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    VnetName string
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    VpcId string
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    PeerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    PeerAzureTenantId string
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    VnetName string
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    VpcId string
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureAppId String
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureTenantId String
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    vnetName String
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpcId String
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azureSubscriptionId string
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureTenantId string
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peerResourceGroup string
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    vnetName string
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpcId string
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azure_subscription_id str
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    peer_azure_app_id str
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peer_azure_tenant_id str
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peer_resource_group str
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    vnet_name str
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpc_id str
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureAppId String
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureTenantId String
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    vnetName String
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpcId String
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.

    getAzureVpcPeeringConnection Result

    The following output properties are available:

    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    PeerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    PeerAzureTenantId string
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    PeeringConnectionId string
    The ID of the cloud provider for the peering connection.
    State string
    State of the peering connection
    StateInfo Dictionary<string, object>
    State-specific help or error information.
    VnetName string
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    VpcId string
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    PeerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    PeerAzureTenantId string
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    PeeringConnectionId string
    The ID of the cloud provider for the peering connection.
    State string
    State of the peering connection
    StateInfo map[string]interface{}
    State-specific help or error information.
    VnetName string
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    VpcId string
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    peerAzureAppId String
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureTenantId String
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    peeringConnectionId String
    The ID of the cloud provider for the peering connection.
    state String
    State of the peering connection
    stateInfo Map<String,Object>
    State-specific help or error information.
    vnetName String
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpcId String
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azureSubscriptionId string
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    peerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureTenantId string
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peerResourceGroup string
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    peeringConnectionId string
    The ID of the cloud provider for the peering connection.
    state string
    State of the peering connection
    stateInfo {[key: string]: any}
    State-specific help or error information.
    vnetName string
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpcId string
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azure_subscription_id str
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    peer_azure_app_id str
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peer_azure_tenant_id str
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peer_resource_group str
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    peering_connection_id str
    The ID of the cloud provider for the peering connection.
    state str
    State of the peering connection
    state_info Mapping[str, Any]
    State-specific help or error information.
    vnet_name str
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpc_id str
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    peerAzureAppId String
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
    peerAzureTenantId String
    The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
    peeringConnectionId String
    The ID of the cloud provider for the peering connection.
    state String
    State of the peering connection
    stateInfo Map<Any>
    State-specific help or error information.
    vnetName String
    The name of the Azure VNet. Changing this property forces recreation of the resource.
    vpcId String
    The ID of the Aiven VPC. Changing this property forces recreation of the resource.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.18.0 published on Thursday, Jun 27, 2024 by Pulumi