Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.direct_connect.BgpPeers
Explore with Pulumi AI
Use this data source to query detailed information of direct connect bgp peers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.direct_connect.BgpPeers({
    ids: ["bgp-171w6pn39ruo04d1w33iq****"],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.direct_connect.bgp_peers(ids=["bgp-171w6pn39ruo04d1w33iq****"])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/direct_connect"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := direct_connect.BgpPeers(ctx, &direct_connect.BgpPeersArgs{
			Ids: []string{
				"bgp-171w6pn39ruo04d1w33iq****",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var foo = Volcengine.Direct_connect.BgpPeers.Invoke(new()
    {
        Ids = new[]
        {
            "bgp-171w6pn39ruo04d1w33iq****",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.direct_connect.Direct_connectFunctions;
import com.pulumi.volcengine.direct_connect.inputs.BgpPeersArgs;
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 foo = Direct_connectFunctions.BgpPeers(BgpPeersArgs.builder()
            .ids("bgp-171w6pn39ruo04d1w33iq****")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: volcengine:direct_connect:BgpPeers
      Arguments:
        ids:
          - bgp-171w6pn39ruo04d1w33iq****
Using BgpPeers
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 bgpPeers(args: BgpPeersArgs, opts?: InvokeOptions): Promise<BgpPeersResult>
function bgpPeersOutput(args: BgpPeersOutputArgs, opts?: InvokeOptions): Output<BgpPeersResult>def bgp_peers(bgp_peer_name: Optional[str] = None,
              direct_connect_gateway_id: Optional[str] = None,
              ids: Optional[Sequence[str]] = None,
              name_regex: Optional[str] = None,
              output_file: Optional[str] = None,
              remote_asn: Optional[int] = None,
              virtual_interface_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> BgpPeersResult
def bgp_peers_output(bgp_peer_name: Optional[pulumi.Input[str]] = None,
              direct_connect_gateway_id: Optional[pulumi.Input[str]] = None,
              ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              name_regex: Optional[pulumi.Input[str]] = None,
              output_file: Optional[pulumi.Input[str]] = None,
              remote_asn: Optional[pulumi.Input[int]] = None,
              virtual_interface_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[BgpPeersResult]func BgpPeers(ctx *Context, args *BgpPeersArgs, opts ...InvokeOption) (*BgpPeersResult, error)
func BgpPeersOutput(ctx *Context, args *BgpPeersOutputArgs, opts ...InvokeOption) BgpPeersResultOutputpublic static class BgpPeers 
{
    public static Task<BgpPeersResult> InvokeAsync(BgpPeersArgs args, InvokeOptions? opts = null)
    public static Output<BgpPeersResult> Invoke(BgpPeersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<BgpPeersResult> bgpPeers(BgpPeersArgs args, InvokeOptions options)
public static Output<BgpPeersResult> bgpPeers(BgpPeersArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:direct_connect:BgpPeers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BgpPeer stringName 
- The name of bgp peer.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- Ids List<string>
- A list of IDs.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- RemoteAsn int
- The remote asn of bgp peer.
- VirtualInterface stringId 
- The id of virtual interface.
- BgpPeer stringName 
- The name of bgp peer.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- Ids []string
- A list of IDs.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- RemoteAsn int
- The remote asn of bgp peer.
- VirtualInterface stringId 
- The id of virtual interface.
- bgpPeer StringName 
- The name of bgp peer.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- remoteAsn Integer
- The remote asn of bgp peer.
- virtualInterface StringId 
- The id of virtual interface.
- bgpPeer stringName 
- The name of bgp peer.
- directConnect stringGateway Id 
- The id of direct connect gateway.
- ids string[]
- A list of IDs.
- nameRegex string
- A Name Regex of Resource.
- outputFile string
- File name where to save data source results.
- remoteAsn number
- The remote asn of bgp peer.
- virtualInterface stringId 
- The id of virtual interface.
- bgp_peer_ strname 
- The name of bgp peer.
- direct_connect_ strgateway_ id 
- The id of direct connect gateway.
- ids Sequence[str]
- A list of IDs.
- name_regex str
- A Name Regex of Resource.
- output_file str
- File name where to save data source results.
- remote_asn int
- The remote asn of bgp peer.
- virtual_interface_ strid 
- The id of virtual interface.
- bgpPeer StringName 
- The name of bgp peer.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- remoteAsn Number
- The remote asn of bgp peer.
- virtualInterface StringId 
- The id of virtual interface.
BgpPeers Result
The following output properties are available:
- BgpPeers List<BgpPeers Bgp Peer> 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- BgpPeer stringName 
- The name of bgp peer.
- DirectConnect stringGateway Id 
- Ids List<string>
- NameRegex string
- OutputFile string
- RemoteAsn int
- The remote asn of bgp peer.
- VirtualInterface stringId 
- The id of virtual interface.
- BgpPeers []BgpPeers Bgp Peer 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- BgpPeer stringName 
- The name of bgp peer.
- DirectConnect stringGateway Id 
- Ids []string
- NameRegex string
- OutputFile string
- RemoteAsn int
- The remote asn of bgp peer.
- VirtualInterface stringId 
- The id of virtual interface.
- bgpPeers List<BgpPeers Bgp Peer> 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of query.
- bgpPeer StringName 
- The name of bgp peer.
- directConnect StringGateway Id 
- ids List<String>
- nameRegex String
- outputFile String
- remoteAsn Integer
- The remote asn of bgp peer.
- virtualInterface StringId 
- The id of virtual interface.
- bgpPeers BgpPeers Bgp Peer[] 
- The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of query.
- bgpPeer stringName 
- The name of bgp peer.
- directConnect stringGateway Id 
- ids string[]
- nameRegex string
- outputFile string
- remoteAsn number
- The remote asn of bgp peer.
- virtualInterface stringId 
- The id of virtual interface.
- bgp_peers Sequence[BgpPeers Bgp Peer] 
- The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_count int
- The total count of query.
- bgp_peer_ strname 
- The name of bgp peer.
- direct_connect_ strgateway_ id 
- ids Sequence[str]
- name_regex str
- output_file str
- remote_asn int
- The remote asn of bgp peer.
- virtual_interface_ strid 
- The id of virtual interface.
- bgpPeers List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Number
- The total count of query.
- bgpPeer StringName 
- The name of bgp peer.
- directConnect StringGateway Id 
- ids List<String>
- nameRegex String
- outputFile String
- remoteAsn Number
- The remote asn of bgp peer.
- virtualInterface StringId 
- The id of virtual interface.
Supporting Types
BgpPeersBgpPeer   
- AccountId string
- The id of account.
- AuthKey string
- The key of auth.
- BgpPeer stringId 
- The id of bgp peer.
- BgpPeer stringName 
- The name of bgp peer.
- CreationTime string
- The create time of bgp peer.
- Description string
- The Description of bgp peer.
- LocalAsn int
- The local asn of bgp peer.
- RemoteAsn int
- The remote asn of bgp peer.
- SessionStatus string
- The session status of bgp peer.
- Status string
- The status of bgp peer.
- UpdateTime string
- The update time of bgp peer.
- VirtualInterface stringId 
- The id of virtual interface.
- AccountId string
- The id of account.
- AuthKey string
- The key of auth.
- BgpPeer stringId 
- The id of bgp peer.
- BgpPeer stringName 
- The name of bgp peer.
- CreationTime string
- The create time of bgp peer.
- Description string
- The Description of bgp peer.
- LocalAsn int
- The local asn of bgp peer.
- RemoteAsn int
- The remote asn of bgp peer.
- SessionStatus string
- The session status of bgp peer.
- Status string
- The status of bgp peer.
- UpdateTime string
- The update time of bgp peer.
- VirtualInterface stringId 
- The id of virtual interface.
- accountId String
- The id of account.
- authKey String
- The key of auth.
- bgpPeer StringId 
- The id of bgp peer.
- bgpPeer StringName 
- The name of bgp peer.
- creationTime String
- The create time of bgp peer.
- description String
- The Description of bgp peer.
- localAsn Integer
- The local asn of bgp peer.
- remoteAsn Integer
- The remote asn of bgp peer.
- sessionStatus String
- The session status of bgp peer.
- status String
- The status of bgp peer.
- updateTime String
- The update time of bgp peer.
- virtualInterface StringId 
- The id of virtual interface.
- accountId string
- The id of account.
- authKey string
- The key of auth.
- bgpPeer stringId 
- The id of bgp peer.
- bgpPeer stringName 
- The name of bgp peer.
- creationTime string
- The create time of bgp peer.
- description string
- The Description of bgp peer.
- localAsn number
- The local asn of bgp peer.
- remoteAsn number
- The remote asn of bgp peer.
- sessionStatus string
- The session status of bgp peer.
- status string
- The status of bgp peer.
- updateTime string
- The update time of bgp peer.
- virtualInterface stringId 
- The id of virtual interface.
- account_id str
- The id of account.
- auth_key str
- The key of auth.
- bgp_peer_ strid 
- The id of bgp peer.
- bgp_peer_ strname 
- The name of bgp peer.
- creation_time str
- The create time of bgp peer.
- description str
- The Description of bgp peer.
- local_asn int
- The local asn of bgp peer.
- remote_asn int
- The remote asn of bgp peer.
- session_status str
- The session status of bgp peer.
- status str
- The status of bgp peer.
- update_time str
- The update time of bgp peer.
- virtual_interface_ strid 
- The id of virtual interface.
- accountId String
- The id of account.
- authKey String
- The key of auth.
- bgpPeer StringId 
- The id of bgp peer.
- bgpPeer StringName 
- The name of bgp peer.
- creationTime String
- The create time of bgp peer.
- description String
- The Description of bgp peer.
- localAsn Number
- The local asn of bgp peer.
- remoteAsn Number
- The remote asn of bgp peer.
- sessionStatus String
- The session status of bgp peer.
- status String
- The status of bgp peer.
- updateTime String
- The update time of bgp peer.
- virtualInterface StringId 
- The id of virtual interface.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.