Volcengine v0.0.24 published on Tuesday, Jun 25, 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
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 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
})
}
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());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.direct_connect.gateway_routes(ids=[
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****",
])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.direct_connect.GatewayRoutes({
ids: [
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****",
],
});
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) GatewayRoutesResultOutput
public 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:direct_connect:GatewayRoutes
arguments:
# arguments dictionary
The following arguments are supported:
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids List<string>
- A list of IDs.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - File name where to save data source results.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids []string
- A list of IDs.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - File name where to save data source results.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - File name where to save data source results.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
- destination
Cidr stringBlock - The cidr block.
- direct
Connect stringGateway Id - The id of direct connect gateway.
- ids string[]
- A list of IDs.
- next
Hop stringId - The id of next hop.
- next
Hop stringType - The type of next hop.
- output
File string - File name where to save data source results.
- route
Type 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.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - File name where to save data source results.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
GatewayRoutes Result
The following output properties are available:
- Direct
Connect List<GatewayGateway Routes Routes Direct Connect Gateway Route> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids List<string>
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - Route
Type string - The type of route.
- Direct
Connect []GatewayGateway Routes Routes Direct Connect Gateway Route - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids []string
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - Route
Type string - The type of route.
- direct
Connect List<GatewayGateway Routes Routes Direct Connect Gateway Route> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - route
Type String - The type of route.
- direct
Connect GatewayGateway Routes Routes Direct Connect Gateway Route[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- destination
Cidr stringBlock - The cidr block.
- direct
Connect stringGateway Id - The id of direct connect gateway.
- ids string[]
- next
Hop stringId - The id of next hop.
- next
Hop stringType - The type of next hop.
- output
File string - route
Type 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.
- direct
Connect List<Property Map>Gateway Routes - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - route
Type String - The type of route.
Supporting Types
GatewayRoutesDirectConnectGatewayRoute
- Account
Id string - The id of account.
- Creation
Time string - The create time.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Direct
Connect stringGateway Route Id - The id of direct connect gateway route.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- Status string
- The status info.
- Account
Id string - The id of account.
- Creation
Time string - The create time.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Direct
Connect stringGateway Route Id - The id of direct connect gateway route.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- Status string
- The status info.
- account
Id String - The id of account.
- creation
Time String - The create time.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- direct
Connect StringGateway Route Id - The id of direct connect gateway route.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
- status String
- The status info.
- account
Id string - The id of account.
- creation
Time string - The create time.
- destination
Cidr stringBlock - The cidr block.
- direct
Connect stringGateway Id - The id of direct connect gateway.
- direct
Connect stringGateway Route Id - The id of direct connect gateway route.
- next
Hop stringId - The id of next hop.
- next
Hop stringType - The type of next hop.
- route
Type 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.
- account
Id String - The id of account.
- creation
Time String - The create time.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- direct
Connect StringGateway Route Id - The id of direct connect gateway route.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- route
Type 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
volcengine
Terraform Provider.