alicloud_vpc_bgp_peers

This data source provides the Vpc Bgp Peers of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_vpc_bgp_peers" "ids" {
  ids = ["example_value-1", "example_value-2"]
}
output "vpc_bgp_peer_id_1" {
  value = data.alicloud_vpc_bgp_peers.ids.peers.0.id
}

data "alicloud_vpc_bgp_peers" "bgpGroupId" {
  bgp_group_id = "example_value"
}
output "vpc_bgp_peer_id_2" {
  value = data.alicloud_vpc_bgp_peers.bgpGroupId.peers.0.id
}

data "alicloud_vpc_bgp_peers" "routerId" {
  router_id = "example_value"
}
output "vpc_bgp_peer_id_3" {
  value = data.alicloud_vpc_bgp_peers.routerId.peers.0.id
}

data "alicloud_vpc_bgp_peers" "status" {
  status = "Available"
}
output "vpc_bgp_peer_id_4" {
  value = data.alicloud_vpc_bgp_peers.status.peers.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: