1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. expressconnect
  5. getVbrPconnAssociations
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.expressconnect.getVbrPconnAssociations

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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);
    
    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)
    
    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
    	})
    }
    
    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)),
        };
    });
    
    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());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:expressconnect:getVbrPconnAssociations
          Arguments:
            ids:
              - example_id
            vbrId: ${defaultAlicloudExpressConnectVbrPconnAssociation.vbrId}
    outputs:
      alicloudExpressConnectVbrPconnAssociationExampleId: ${default.associations[0].id}
    

    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>
    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]
    func GetVbrPconnAssociations(ctx *Context, args *GetVbrPconnAssociationsArgs, opts ...InvokeOption) (*GetVbrPconnAssociationsResult, error)
    func GetVbrPconnAssociationsOutput(ctx *Context, args *GetVbrPconnAssociationsOutputArgs, opts ...InvokeOption) GetVbrPconnAssociationsResultOutput

    > 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)
    }
    public static CompletableFuture<GetVbrPconnAssociationsResult> getVbrPconnAssociations(GetVbrPconnAssociationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:expressconnect/getVbrPconnAssociations:getVbrPconnAssociations
      arguments:
        # arguments dictionary

    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 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 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 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 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 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 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 string
    The circuit code provided by the operator for the physical connection.
    EnableIpv6 bool
    Whether IPv6 is enabled.
    Id string
    The ID of the Vbr Pconn Association.
    LocalGatewayIp string
    The Alibaba cloud IP address of the VBR instance.
    LocalIpv6GatewayIp string
    The IPv6 address on the Alibaba Cloud side of the VBR instance.
    PeerGatewayIp string
    The client IP address of the VBR instance.
    PeerIpv6GatewayIp string
    The IPv6 address of the client side of the VBR instance.
    PeeringIpv6SubnetMask 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 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 string
    The ID of the leased line instance.
    Status string
    The status of the resource
    VbrId string
    The ID of the VBR instance.
    VlanId int
    VLAN ID of the VBR.
    CircuitCode string
    The circuit code provided by the operator for the physical connection.
    EnableIpv6 bool
    Whether IPv6 is enabled.
    Id string
    The ID of the Vbr Pconn Association.
    LocalGatewayIp string
    The Alibaba cloud IP address of the VBR instance.
    LocalIpv6GatewayIp string
    The IPv6 address on the Alibaba Cloud side of the VBR instance.
    PeerGatewayIp string
    The client IP address of the VBR instance.
    PeerIpv6GatewayIp string
    The IPv6 address of the client side of the VBR instance.
    PeeringIpv6SubnetMask 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 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 string
    The ID of the leased line instance.
    Status string
    The status of the resource
    VbrId string
    The ID of the VBR instance.
    VlanId int
    VLAN ID of the VBR.
    circuitCode String
    The circuit code provided by the operator for the physical connection.
    enableIpv6 Boolean
    Whether IPv6 is enabled.
    id String
    The ID of the Vbr Pconn Association.
    localGatewayIp String
    The Alibaba cloud IP address of the VBR instance.
    localIpv6GatewayIp String
    The IPv6 address on the Alibaba Cloud side of the VBR instance.
    peerGatewayIp String
    The client IP address of the VBR instance.
    peerIpv6GatewayIp String
    The IPv6 address of the client side of the VBR instance.
    peeringIpv6SubnetMask 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 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 String
    The ID of the leased line instance.
    status String
    The status of the resource
    vbrId String
    The ID of the VBR instance.
    vlanId Integer
    VLAN ID of the VBR.
    circuitCode string
    The circuit code provided by the operator for the physical connection.
    enableIpv6 boolean
    Whether IPv6 is enabled.
    id string
    The ID of the Vbr Pconn Association.
    localGatewayIp string
    The Alibaba cloud IP address of the VBR instance.
    localIpv6GatewayIp string
    The IPv6 address on the Alibaba Cloud side of the VBR instance.
    peerGatewayIp string
    The client IP address of the VBR instance.
    peerIpv6GatewayIp string
    The IPv6 address of the client side of the VBR instance.
    peeringIpv6SubnetMask 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 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 string
    The ID of the leased line instance.
    status string
    The status of the resource
    vbrId string
    The ID of the VBR instance.
    vlanId number
    VLAN ID of the VBR.
    circuit_code str
    The circuit code provided by the operator for the physical connection.
    enable_ipv6 bool
    Whether IPv6 is enabled.
    id str
    The ID of the Vbr Pconn Association.
    local_gateway_ip str
    The Alibaba cloud IP address of the VBR instance.
    local_ipv6_gateway_ip str
    The IPv6 address on the Alibaba Cloud side of the VBR instance.
    peer_gateway_ip str
    The client IP address of the VBR instance.
    peer_ipv6_gateway_ip str
    The IPv6 address of the client side of the VBR instance.
    peering_ipv6_subnet_mask 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 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 str
    The ID of the leased line instance.
    status str
    The status of the resource
    vbr_id str
    The ID of the VBR instance.
    vlan_id int
    VLAN ID of the VBR.
    circuitCode String
    The circuit code provided by the operator for the physical connection.
    enableIpv6 Boolean
    Whether IPv6 is enabled.
    id String
    The ID of the Vbr Pconn Association.
    localGatewayIp String
    The Alibaba cloud IP address of the VBR instance.
    localIpv6GatewayIp String
    The IPv6 address on the Alibaba Cloud side of the VBR instance.
    peerGatewayIp String
    The client IP address of the VBR instance.
    peerIpv6GatewayIp String
    The IPv6 address of the client side of the VBR instance.
    peeringIpv6SubnetMask 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 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 String
    The ID of the leased line instance.
    status String
    The status of the resource
    vbrId String
    The ID of the VBR instance.
    vlanId 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi