Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.direct_connect.GatewayRoutes
Explore with Pulumi AI
Use this data source to query detailed information of direct connect gateway routes
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.direct_connect.GatewayRoutes({
    ids: [
        "dcr-638ry33wmzggn3gd6gv****",
        "dcr-20d6tkadi2k8w65sqhgbj****",
    ],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.direct_connect.gateway_routes(ids=[
    "dcr-638ry33wmzggn3gd6gv****",
    "dcr-20d6tkadi2k8w65sqhgbj****",
])
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.GatewayRoutes(ctx, &direct_connect.GatewayRoutesArgs{
			Ids: []string{
				"dcr-638ry33wmzggn3gd6gv****",
				"dcr-20d6tkadi2k8w65sqhgbj****",
			},
		}, 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.GatewayRoutes.Invoke(new()
    {
        Ids = new[]
        {
            "dcr-638ry33wmzggn3gd6gv****",
            "dcr-20d6tkadi2k8w65sqhgbj****",
        },
    });
});
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.GatewayRoutesArgs;
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.GatewayRoutes(GatewayRoutesArgs.builder()
            .ids(            
                "dcr-638ry33wmzggn3gd6gv****",
                "dcr-20d6tkadi2k8w65sqhgbj****")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      Function: volcengine:direct_connect:GatewayRoutes
      Arguments:
        ids:
          - dcr-638ry33wmzggn3gd6gv****
          - dcr-20d6tkadi2k8w65sqhgbj****
Using GatewayRoutes
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 gatewayRoutes(args: GatewayRoutesArgs, opts?: InvokeOptions): Promise<GatewayRoutesResult>
function gatewayRoutesOutput(args: GatewayRoutesOutputArgs, opts?: InvokeOptions): Output<GatewayRoutesResult>def gateway_routes(destination_cidr_block: Optional[str] = None,
                   direct_connect_gateway_id: Optional[str] = None,
                   ids: Optional[Sequence[str]] = None,
                   next_hop_id: Optional[str] = None,
                   next_hop_type: Optional[str] = None,
                   output_file: Optional[str] = None,
                   route_type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GatewayRoutesResult
def gateway_routes_output(destination_cidr_block: Optional[pulumi.Input[str]] = None,
                   direct_connect_gateway_id: Optional[pulumi.Input[str]] = None,
                   ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   next_hop_id: Optional[pulumi.Input[str]] = None,
                   next_hop_type: Optional[pulumi.Input[str]] = None,
                   output_file: Optional[pulumi.Input[str]] = None,
                   route_type: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GatewayRoutesResult]func GatewayRoutes(ctx *Context, args *GatewayRoutesArgs, opts ...InvokeOption) (*GatewayRoutesResult, error)
func GatewayRoutesOutput(ctx *Context, args *GatewayRoutesOutputArgs, opts ...InvokeOption) GatewayRoutesResultOutputpublic static class GatewayRoutes 
{
    public static Task<GatewayRoutesResult> InvokeAsync(GatewayRoutesArgs args, InvokeOptions? opts = null)
    public static Output<GatewayRoutesResult> Invoke(GatewayRoutesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GatewayRoutesResult> gatewayRoutes(GatewayRoutesArgs args, InvokeOptions options)
public static Output<GatewayRoutesResult> gatewayRoutes(GatewayRoutesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:direct_connect:GatewayRoutes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DestinationCidr stringBlock 
- The cidr block.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- Ids List<string>
- A list of IDs.
- NextHop stringId 
- The id of next hop.
- NextHop stringType 
- The type of next hop.
- OutputFile string
- File name where to save data source results.
- RouteType string
- The type of route. The value can be BGP or CEN or Static.
- DestinationCidr stringBlock 
- The cidr block.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- Ids []string
- A list of IDs.
- NextHop stringId 
- The id of next hop.
- NextHop stringType 
- The type of next hop.
- OutputFile string
- File name where to save data source results.
- RouteType string
- The type of route. The value can be BGP or CEN or Static.
- destinationCidr StringBlock 
- The cidr block.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- nextHop StringId 
- The id of next hop.
- nextHop StringType 
- The type of next hop.
- outputFile String
- File name where to save data source results.
- routeType String
- The type of route. The value can be BGP or CEN or Static.
- destinationCidr stringBlock 
- The cidr block.
- directConnect stringGateway Id 
- The id of direct connect gateway.
- ids string[]
- A list of IDs.
- nextHop stringId 
- The id of next hop.
- nextHop stringType 
- The type of next hop.
- outputFile string
- File name where to save data source results.
- routeType string
- The type of route. The value can be BGP or CEN or Static.
- destination_cidr_ strblock 
- The cidr block.
- direct_connect_ strgateway_ id 
- The id of direct connect gateway.
- ids Sequence[str]
- A list of IDs.
- next_hop_ strid 
- The id of next hop.
- next_hop_ strtype 
- The type of next hop.
- output_file str
- File name where to save data source results.
- route_type str
- The type of route. The value can be BGP or CEN or Static.
- destinationCidr StringBlock 
- The cidr block.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- nextHop StringId 
- The id of next hop.
- nextHop StringType 
- The type of next hop.
- outputFile String
- File name where to save data source results.
- routeType String
- The type of route. The value can be BGP or CEN or Static.
GatewayRoutes Result
The following output properties are available:
- DirectConnect List<GatewayGateway Routes Routes Direct Connect Gateway Route> 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- DestinationCidr stringBlock 
- The cidr block.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- Ids List<string>
- NextHop stringId 
- The id of next hop.
- NextHop stringType 
- The type of next hop.
- OutputFile string
- RouteType string
- The type of route.
- DirectConnect []GatewayGateway Routes Routes Direct Connect Gateway Route 
- The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- TotalCount int
- The total count of query.
- DestinationCidr stringBlock 
- The cidr block.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- Ids []string
- NextHop stringId 
- The id of next hop.
- NextHop stringType 
- The type of next hop.
- OutputFile string
- RouteType string
- The type of route.
- directConnect List<GatewayGateway Routes Routes Direct Connect Gateway Route> 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Integer
- The total count of query.
- destinationCidr StringBlock 
- The cidr block.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- ids List<String>
- nextHop StringId 
- The id of next hop.
- nextHop StringType 
- The type of next hop.
- outputFile String
- routeType String
- The type of route.
- directConnect GatewayGateway Routes Routes Direct Connect Gateway Route[] 
- The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- totalCount number
- The total count of query.
- destinationCidr stringBlock 
- The cidr block.
- directConnect stringGateway Id 
- The id of direct connect gateway.
- ids string[]
- nextHop stringId 
- The id of next hop.
- nextHop stringType 
- The type of next hop.
- outputFile string
- routeType string
- The type of route.
- direct_connect_ Sequence[Gatewaygateway_ routes Routes Direct Connect Gateway Route] 
- The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_count int
- The total count of query.
- destination_cidr_ strblock 
- The cidr block.
- direct_connect_ strgateway_ id 
- The id of direct connect gateway.
- ids Sequence[str]
- next_hop_ strid 
- The id of next hop.
- next_hop_ strtype 
- The type of next hop.
- output_file str
- route_type str
- The type of route.
- directConnect List<Property Map>Gateway Routes 
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- totalCount Number
- The total count of query.
- destinationCidr StringBlock 
- The cidr block.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- ids List<String>
- nextHop StringId 
- The id of next hop.
- nextHop StringType 
- The type of next hop.
- outputFile String
- routeType String
- The type of route.
Supporting Types
GatewayRoutesDirectConnectGatewayRoute     
- AccountId string
- The id of account.
- CreationTime string
- The create time.
- DestinationCidr stringBlock 
- The cidr block.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- DirectConnect stringGateway Route Id 
- The id of direct connect gateway route.
- NextHop stringId 
- The id of next hop.
- NextHop stringType 
- The type of next hop.
- RouteType string
- The type of route. The value can be BGP or CEN or Static.
- Status string
- The status info.
- AccountId string
- The id of account.
- CreationTime string
- The create time.
- DestinationCidr stringBlock 
- The cidr block.
- DirectConnect stringGateway Id 
- The id of direct connect gateway.
- DirectConnect stringGateway Route Id 
- The id of direct connect gateway route.
- NextHop stringId 
- The id of next hop.
- NextHop stringType 
- The type of next hop.
- RouteType string
- The type of route. The value can be BGP or CEN or Static.
- Status string
- The status info.
- accountId String
- The id of account.
- creationTime String
- The create time.
- destinationCidr StringBlock 
- The cidr block.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- directConnect StringGateway Route Id 
- The id of direct connect gateway route.
- nextHop StringId 
- The id of next hop.
- nextHop StringType 
- The type of next hop.
- routeType String
- The type of route. The value can be BGP or CEN or Static.
- status String
- The status info.
- accountId string
- The id of account.
- creationTime string
- The create time.
- destinationCidr stringBlock 
- The cidr block.
- directConnect stringGateway Id 
- The id of direct connect gateway.
- directConnect stringGateway Route Id 
- The id of direct connect gateway route.
- nextHop stringId 
- The id of next hop.
- nextHop stringType 
- The type of next hop.
- routeType string
- The type of route. The value can be BGP or CEN or Static.
- status string
- The status info.
- account_id str
- The id of account.
- creation_time str
- The create time.
- destination_cidr_ strblock 
- The cidr block.
- direct_connect_ strgateway_ id 
- The id of direct connect gateway.
- direct_connect_ strgateway_ route_ id 
- The id of direct connect gateway route.
- next_hop_ strid 
- The id of next hop.
- next_hop_ strtype 
- The type of next hop.
- route_type str
- The type of route. The value can be BGP or CEN or Static.
- status str
- The status info.
- accountId String
- The id of account.
- creationTime String
- The create time.
- destinationCidr StringBlock 
- The cidr block.
- directConnect StringGateway Id 
- The id of direct connect gateway.
- directConnect StringGateway Route Id 
- The id of direct connect gateway route.
- nextHop StringId 
- The id of next hop.
- nextHop StringType 
- The type of next hop.
- routeType String
- The type of route. The value can be BGP or CEN or Static.
- status String
- The status info.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.