1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. expressconnect
  5. getVbrPconnAssociations
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.expressconnect.getVbrPconnAssociations

Explore with Pulumi AI

This data source provides Express Connect Vbr Pconn Association available to the user.

NOTE: Available in 1.196.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.expressconnect.getVbrPconnAssociations({
    ids: ["example_id"],
    vbrId: defaultAlicloudExpressConnectVbrPconnAssociation.vbrId,
});
export const alicloudExpressConnectVbrPconnAssociationExampleId = _default.then(_default => _default.associations?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.expressconnect.get_vbr_pconn_associations(ids=["example_id"],
    vbr_id=default_alicloud_express_connect_vbr_pconn_association["vbrId"])
pulumi.export("alicloudExpressConnectVbrPconnAssociationExampleId", default.associations[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := expressconnect.GetVbrPconnAssociations(ctx, &expressconnect.GetVbrPconnAssociationsArgs{
			Ids: []string{
				"example_id",
			},
			VbrId: pulumi.StringRef(defaultAlicloudExpressConnectVbrPconnAssociation.VbrId),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("alicloudExpressConnectVbrPconnAssociationExampleId", _default.Associations[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.ExpressConnect.GetVbrPconnAssociations.Invoke(new()
    {
        Ids = new[]
        {
            "example_id",
        },
        VbrId = defaultAlicloudExpressConnectVbrPconnAssociation.VbrId,
    });

    return new Dictionary<string, object?>
    {
        ["alicloudExpressConnectVbrPconnAssociationExampleId"] = @default.Apply(@default => @default.Apply(getVbrPconnAssociationsResult => getVbrPconnAssociationsResult.Associations[0]?.Id)),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
import com.pulumi.alicloud.expressconnect.inputs.GetVbrPconnAssociationsArgs;
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 default = ExpressconnectFunctions.getVbrPconnAssociations(GetVbrPconnAssociationsArgs.builder()
            .ids("example_id")
            .vbrId(defaultAlicloudExpressConnectVbrPconnAssociation.vbrId())
            .build());

        ctx.export("alicloudExpressConnectVbrPconnAssociationExampleId", default_.associations()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:expressconnect:getVbrPconnAssociations
      arguments:
        ids:
          - example_id
        vbrId: ${defaultAlicloudExpressConnectVbrPconnAssociation.vbrId}
outputs:
  alicloudExpressConnectVbrPconnAssociationExampleId: ${default.associations[0].id}
Copy

Using getVbrPconnAssociations

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 getVbrPconnAssociations(args: GetVbrPconnAssociationsArgs, opts?: InvokeOptions): Promise<GetVbrPconnAssociationsResult>
function getVbrPconnAssociationsOutput(args: GetVbrPconnAssociationsOutputArgs, opts?: InvokeOptions): Output<GetVbrPconnAssociationsResult>
Copy
def get_vbr_pconn_associations(ids: Optional[Sequence[str]] = None,
                               output_file: Optional[str] = None,
                               page_number: Optional[int] = None,
                               page_size: Optional[int] = None,
                               vbr_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetVbrPconnAssociationsResult
def get_vbr_pconn_associations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                               output_file: Optional[pulumi.Input[str]] = None,
                               page_number: Optional[pulumi.Input[int]] = None,
                               page_size: Optional[pulumi.Input[int]] = None,
                               vbr_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetVbrPconnAssociationsResult]
Copy
func GetVbrPconnAssociations(ctx *Context, args *GetVbrPconnAssociationsArgs, opts ...InvokeOption) (*GetVbrPconnAssociationsResult, error)
func GetVbrPconnAssociationsOutput(ctx *Context, args *GetVbrPconnAssociationsOutputArgs, opts ...InvokeOption) GetVbrPconnAssociationsResultOutput
Copy

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

public static class GetVbrPconnAssociations 
{
    public static Task<GetVbrPconnAssociationsResult> InvokeAsync(GetVbrPconnAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetVbrPconnAssociationsResult> Invoke(GetVbrPconnAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVbrPconnAssociationsResult> getVbrPconnAssociations(GetVbrPconnAssociationsArgs args, InvokeOptions options)
public static Output<GetVbrPconnAssociationsResult> getVbrPconnAssociations(GetVbrPconnAssociationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of Vbr Pconn Association IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
VbrId Changes to this property will trigger replacement. string
The ID of the VBR instance.
Ids []string
A list of Vbr Pconn Association IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
VbrId Changes to this property will trigger replacement. string
The ID of the VBR instance.
ids List<String>
A list of Vbr Pconn Association IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Integer
pageSize Integer
vbrId Changes to this property will trigger replacement. String
The ID of the VBR instance.
ids string[]
A list of Vbr Pconn Association IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
pageNumber number
pageSize number
vbrId Changes to this property will trigger replacement. string
The ID of the VBR instance.
ids Sequence[str]
A list of Vbr Pconn Association IDs.
output_file str
File name where to save data source results (after running pulumi preview).
page_number int
page_size int
vbr_id Changes to this property will trigger replacement. str
The ID of the VBR instance.
ids List<String>
A list of Vbr Pconn Association IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Number
pageSize Number
vbrId Changes to this property will trigger replacement. String
The ID of the VBR instance.

getVbrPconnAssociations Result

The following output properties are available:

Associations List<Pulumi.AliCloud.ExpressConnect.Outputs.GetVbrPconnAssociationsAssociation>
A list of Vbr Pconn Association Entries. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
OutputFile string
PageNumber int
PageSize int
VbrId string
The ID of the VBR instance.
Associations []GetVbrPconnAssociationsAssociation
A list of Vbr Pconn Association Entries. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
OutputFile string
PageNumber int
PageSize int
VbrId string
The ID of the VBR instance.
associations List<GetVbrPconnAssociationsAssociation>
A list of Vbr Pconn Association Entries. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
outputFile String
pageNumber Integer
pageSize Integer
vbrId String
The ID of the VBR instance.
associations GetVbrPconnAssociationsAssociation[]
A list of Vbr Pconn Association Entries. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
outputFile string
pageNumber number
pageSize number
vbrId string
The ID of the VBR instance.
associations Sequence[GetVbrPconnAssociationsAssociation]
A list of Vbr Pconn Association Entries. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
output_file str
page_number int
page_size int
vbr_id str
The ID of the VBR instance.
associations List<Property Map>
A list of Vbr Pconn Association Entries. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
outputFile String
pageNumber Number
pageSize Number
vbrId String
The ID of the VBR instance.

Supporting Types

GetVbrPconnAssociationsAssociation

CircuitCode This property is required. string
The circuit code provided by the operator for the physical connection.
EnableIpv6 This property is required. bool
Whether IPv6 is enabled.
Id This property is required. string
The ID of the Vbr Pconn Association.
LocalGatewayIp This property is required. string
The Alibaba cloud IP address of the VBR instance.
LocalIpv6GatewayIp This property is required. string
The IPv6 address on the Alibaba Cloud side of the VBR instance.
PeerGatewayIp This property is required. string
The client IP address of the VBR instance.
PeerIpv6GatewayIp This property is required. string
The IPv6 address of the client side of the VBR instance.
PeeringIpv6SubnetMask This property is required. string
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.
PeeringSubnetMask This property is required. string
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.
PhysicalConnectionId This property is required. string
The ID of the leased line instance.
Status This property is required. string
The status of the resource
VbrId This property is required. string
The ID of the VBR instance.
VlanId This property is required. int
VLAN ID of the VBR.
CircuitCode This property is required. string
The circuit code provided by the operator for the physical connection.
EnableIpv6 This property is required. bool
Whether IPv6 is enabled.
Id This property is required. string
The ID of the Vbr Pconn Association.
LocalGatewayIp This property is required. string
The Alibaba cloud IP address of the VBR instance.
LocalIpv6GatewayIp This property is required. string
The IPv6 address on the Alibaba Cloud side of the VBR instance.
PeerGatewayIp This property is required. string
The client IP address of the VBR instance.
PeerIpv6GatewayIp This property is required. string
The IPv6 address of the client side of the VBR instance.
PeeringIpv6SubnetMask This property is required. string
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.
PeeringSubnetMask This property is required. string
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.
PhysicalConnectionId This property is required. string
The ID of the leased line instance.
Status This property is required. string
The status of the resource
VbrId This property is required. string
The ID of the VBR instance.
VlanId This property is required. int
VLAN ID of the VBR.
circuitCode This property is required. String
The circuit code provided by the operator for the physical connection.
enableIpv6 This property is required. Boolean
Whether IPv6 is enabled.
id This property is required. String
The ID of the Vbr Pconn Association.
localGatewayIp This property is required. String
The Alibaba cloud IP address of the VBR instance.
localIpv6GatewayIp This property is required. String
The IPv6 address on the Alibaba Cloud side of the VBR instance.
peerGatewayIp This property is required. String
The client IP address of the VBR instance.
peerIpv6GatewayIp This property is required. String
The IPv6 address of the client side of the VBR instance.
peeringIpv6SubnetMask This property is required. String
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.
peeringSubnetMask This property is required. String
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.
physicalConnectionId This property is required. String
The ID of the leased line instance.
status This property is required. String
The status of the resource
vbrId This property is required. String
The ID of the VBR instance.
vlanId This property is required. Integer
VLAN ID of the VBR.
circuitCode This property is required. string
The circuit code provided by the operator for the physical connection.
enableIpv6 This property is required. boolean
Whether IPv6 is enabled.
id This property is required. string
The ID of the Vbr Pconn Association.
localGatewayIp This property is required. string
The Alibaba cloud IP address of the VBR instance.
localIpv6GatewayIp This property is required. string
The IPv6 address on the Alibaba Cloud side of the VBR instance.
peerGatewayIp This property is required. string
The client IP address of the VBR instance.
peerIpv6GatewayIp This property is required. string
The IPv6 address of the client side of the VBR instance.
peeringIpv6SubnetMask This property is required. string
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.
peeringSubnetMask This property is required. string
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.
physicalConnectionId This property is required. string
The ID of the leased line instance.
status This property is required. string
The status of the resource
vbrId This property is required. string
The ID of the VBR instance.
vlanId This property is required. number
VLAN ID of the VBR.
circuit_code This property is required. str
The circuit code provided by the operator for the physical connection.
enable_ipv6 This property is required. bool
Whether IPv6 is enabled.
id This property is required. str
The ID of the Vbr Pconn Association.
local_gateway_ip This property is required. str
The Alibaba cloud IP address of the VBR instance.
local_ipv6_gateway_ip This property is required. str
The IPv6 address on the Alibaba Cloud side of the VBR instance.
peer_gateway_ip This property is required. str
The client IP address of the VBR instance.
peer_ipv6_gateway_ip This property is required. str
The IPv6 address of the client side of the VBR instance.
peering_ipv6_subnet_mask This property is required. str
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.
peering_subnet_mask This property is required. str
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.
physical_connection_id This property is required. str
The ID of the leased line instance.
status This property is required. str
The status of the resource
vbr_id This property is required. str
The ID of the VBR instance.
vlan_id This property is required. int
VLAN ID of the VBR.
circuitCode This property is required. String
The circuit code provided by the operator for the physical connection.
enableIpv6 This property is required. Boolean
Whether IPv6 is enabled.
id This property is required. String
The ID of the Vbr Pconn Association.
localGatewayIp This property is required. String
The Alibaba cloud IP address of the VBR instance.
localIpv6GatewayIp This property is required. String
The IPv6 address on the Alibaba Cloud side of the VBR instance.
peerGatewayIp This property is required. String
The client IP address of the VBR instance.
peerIpv6GatewayIp This property is required. String
The IPv6 address of the client side of the VBR instance.
peeringIpv6SubnetMask This property is required. String
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.Two IPv6 addresses must be in the same subnet.
peeringSubnetMask This property is required. String
The subnet mask of the Alibaba Cloud side and the client side of the VBR instance.The two IP addresses must be in the same subnet.
physicalConnectionId This property is required. String
The ID of the leased line instance.
status This property is required. String
The status of the resource
vbrId This property is required. String
The ID of the VBR instance.
vlanId This property is required. Number
VLAN ID of the VBR.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.