Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of direct connect gateways
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.direct_connect.getGateways({
directConnectGatewayName: "tf-test",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.direct_connect.get_gateways(direct_connect_gateway_name="tf-test")
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.GetGateways(ctx, &direct_connect.GetGatewaysArgs{
DirectConnectGatewayName: pulumi.StringRef("tf-test"),
}, 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.GetGateways.Invoke(new()
{
DirectConnectGatewayName = "tf-test",
});
});
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.GetGatewaysArgs;
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.getGateways(GetGatewaysArgs.builder()
.directConnectGatewayName("tf-test")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:direct_connect:getGateways
Arguments:
directConnectGatewayName: tf-test
Using getGateways
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 getGateways(args: GetGatewaysArgs, opts?: InvokeOptions): Promise<GetGatewaysResult>
function getGatewaysOutput(args: GetGatewaysOutputArgs, opts?: InvokeOptions): Output<GetGatewaysResult>def get_gateways(cen_id: Optional[str] = None,
direct_connect_gateway_name: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
tag_filters: Optional[Sequence[GetGatewaysTagFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewaysResult
def get_gateways_output(cen_id: Optional[pulumi.Input[str]] = None,
direct_connect_gateway_name: 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,
tag_filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetGatewaysTagFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewaysResult]func GetGateways(ctx *Context, args *GetGatewaysArgs, opts ...InvokeOption) (*GetGatewaysResult, error)
func GetGatewaysOutput(ctx *Context, args *GetGatewaysOutputArgs, opts ...InvokeOption) GetGatewaysResultOutput> Note: This function is named GetGateways in the Go SDK.
public static class GetGateways
{
public static Task<GetGatewaysResult> InvokeAsync(GetGatewaysArgs args, InvokeOptions? opts = null)
public static Output<GetGatewaysResult> Invoke(GetGatewaysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewaysResult> getGateways(GetGatewaysArgs args, InvokeOptions options)
public static Output<GetGatewaysResult> getGateways(GetGatewaysArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:direct_connect/getGateways:getGateways
arguments:
# arguments dictionaryThe following arguments are supported:
- Cen
Id string - The CEN ID which direct connect gateway belongs.
- Direct
Connect stringGateway Name - The direst connect gateway name.
- Ids List<string>
- A list of IDs.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Tag
Filters List<GetGateways Tag Filter> - The filter tag of direct connect.
- Cen
Id string - The CEN ID which direct connect gateway belongs.
- Direct
Connect stringGateway Name - The direst connect gateway name.
- Ids []string
- A list of IDs.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Tag
Filters []GetGateways Tag Filter - The filter tag of direct connect.
- cen
Id String - The CEN ID which direct connect gateway belongs.
- direct
Connect StringGateway Name - The direst connect gateway name.
- ids List<String>
- A list of IDs.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- tag
Filters List<GetGateways Tag Filter> - The filter tag of direct connect.
- cen
Id string - The CEN ID which direct connect gateway belongs.
- direct
Connect stringGateway Name - The direst connect gateway name.
- ids string[]
- A list of IDs.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- tag
Filters GetGateways Tag Filter[] - The filter tag of direct connect.
- cen_
id str - The CEN ID which direct connect gateway belongs.
- direct_
connect_ strgateway_ name - The direst connect gateway name.
- 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.
- tag_
filters Sequence[GetGateways Tag Filter] - The filter tag of direct connect.
- cen
Id String - The CEN ID which direct connect gateway belongs.
- direct
Connect StringGateway Name - The direst connect gateway name.
- ids List<String>
- A list of IDs.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- tag
Filters List<Property Map> - The filter tag of direct connect.
getGateways Result
The following output properties are available:
- Direct
Connect List<GetGateways Gateways Direct Connect Gateway> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Cen
Id string - The cen ID.
- Direct
Connect stringGateway Name - The direct connect gateway name.
- Ids List<string>
- Name
Regex string - Output
File string - Tag
Filters List<GetGateways Tag Filter>
- Direct
Connect []GetGateways Gateways Direct Connect Gateway - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Cen
Id string - The cen ID.
- Direct
Connect stringGateway Name - The direct connect gateway name.
- Ids []string
- Name
Regex string - Output
File string - Tag
Filters []GetGateways Tag Filter
- direct
Connect List<GetGateways Gateways Direct Connect Gateway> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- cen
Id String - The cen ID.
- direct
Connect StringGateway Name - The direct connect gateway name.
- ids List<String>
- name
Regex String - output
File String - tag
Filters List<GetGateways Tag Filter>
- direct
Connect GetGateways Gateways Direct Connect Gateway[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- cen
Id string - The cen ID.
- direct
Connect stringGateway Name - The direct connect gateway name.
- ids string[]
- name
Regex string - output
File string - tag
Filters GetGateways Tag Filter[]
- direct_
connect_ Sequence[Getgateways Gateways Direct Connect Gateway] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- cen_
id str - The cen ID.
- direct_
connect_ strgateway_ name - The direct connect gateway name.
- ids Sequence[str]
- name_
regex str - output_
file str - tag_
filters Sequence[GetGateways Tag Filter]
- direct
Connect List<Property Map>Gateways - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- cen
Id String - The cen ID.
- direct
Connect StringGateway Name - The direct connect gateway name.
- ids List<String>
- name
Regex String - output
File String - tag
Filters List<Property Map>
Supporting Types
GetGatewaysDirectConnectGateway
- Account
Id string - The account ID that direct connect gateway belongs.
- Associate
Cens List<GetGateways Direct Connect Gateway Associate Cen> - The CEN information associated with the direct connect gateway.
- Business
Status string - The business status of direct connect gateway.
- Creation
Time string - The creation time of direct connect gateway.
- Deleted
Time string - The expected resource force collection time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- Description string
- The description of direct connect gateway.
- Direct
Connect stringGateway Id - The direct connect gateway ID.
- Direct
Connect stringGateway Name - The direst connect gateway name.
- Lock
Reason string - The reason of the direct connect gateway locked.
- Overdue
Time string - The resource freeze time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- Status string
- The status of direct connect gateway.
-
List<Get
Gateways Direct Connect Gateway Tag> - The tags that direct connect gateway added.
- Update
Time string - The update time of direct connect gateway.
- Account
Id string - The account ID that direct connect gateway belongs.
- Associate
Cens []GetGateways Direct Connect Gateway Associate Cen - The CEN information associated with the direct connect gateway.
- Business
Status string - The business status of direct connect gateway.
- Creation
Time string - The creation time of direct connect gateway.
- Deleted
Time string - The expected resource force collection time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- Description string
- The description of direct connect gateway.
- Direct
Connect stringGateway Id - The direct connect gateway ID.
- Direct
Connect stringGateway Name - The direst connect gateway name.
- Lock
Reason string - The reason of the direct connect gateway locked.
- Overdue
Time string - The resource freeze time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- Status string
- The status of direct connect gateway.
-
[]Get
Gateways Direct Connect Gateway Tag - The tags that direct connect gateway added.
- Update
Time string - The update time of direct connect gateway.
- account
Id String - The account ID that direct connect gateway belongs.
- associate
Cens List<GetGateways Direct Connect Gateway Associate Cen> - The CEN information associated with the direct connect gateway.
- business
Status String - The business status of direct connect gateway.
- creation
Time String - The creation time of direct connect gateway.
- deleted
Time String - The expected resource force collection time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- description String
- The description of direct connect gateway.
- direct
Connect StringGateway Id - The direct connect gateway ID.
- direct
Connect StringGateway Name - The direst connect gateway name.
- lock
Reason String - The reason of the direct connect gateway locked.
- overdue
Time String - The resource freeze time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- status String
- The status of direct connect gateway.
-
List<Get
Gateways Direct Connect Gateway Tag> - The tags that direct connect gateway added.
- update
Time String - The update time of direct connect gateway.
- account
Id string - The account ID that direct connect gateway belongs.
- associate
Cens GetGateways Direct Connect Gateway Associate Cen[] - The CEN information associated with the direct connect gateway.
- business
Status string - The business status of direct connect gateway.
- creation
Time string - The creation time of direct connect gateway.
- deleted
Time string - The expected resource force collection time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- description string
- The description of direct connect gateway.
- direct
Connect stringGateway Id - The direct connect gateway ID.
- direct
Connect stringGateway Name - The direst connect gateway name.
- lock
Reason string - The reason of the direct connect gateway locked.
- overdue
Time string - The resource freeze time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- status string
- The status of direct connect gateway.
-
Get
Gateways Direct Connect Gateway Tag[] - The tags that direct connect gateway added.
- update
Time string - The update time of direct connect gateway.
- account_
id str - The account ID that direct connect gateway belongs.
- associate_
cens Sequence[GetGateways Direct Connect Gateway Associate Cen] - The CEN information associated with the direct connect gateway.
- business_
status str - The business status of direct connect gateway.
- creation_
time str - The creation time of direct connect gateway.
- deleted_
time str - The expected resource force collection time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- description str
- The description of direct connect gateway.
- direct_
connect_ strgateway_ id - The direct connect gateway ID.
- direct_
connect_ strgateway_ name - The direst connect gateway name.
- lock_
reason str - The reason of the direct connect gateway locked.
- overdue_
time str - The resource freeze time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- status str
- The status of direct connect gateway.
-
Sequence[Get
Gateways Direct Connect Gateway Tag] - The tags that direct connect gateway added.
- update_
time str - The update time of direct connect gateway.
- account
Id String - The account ID that direct connect gateway belongs.
- associate
Cens List<Property Map> - The CEN information associated with the direct connect gateway.
- business
Status String - The business status of direct connect gateway.
- creation
Time String - The creation time of direct connect gateway.
- deleted
Time String - The expected resource force collection time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- description String
- The description of direct connect gateway.
- direct
Connect StringGateway Id - The direct connect gateway ID.
- direct
Connect StringGateway Name - The direst connect gateway name.
- lock
Reason String - The reason of the direct connect gateway locked.
- overdue
Time String - The resource freeze time. Only when the resource is frozen due to arrears, this parameter will have a return value, otherwise it will return a null value.
- status String
- The status of direct connect gateway.
- List<Property Map>
- The tags that direct connect gateway added.
- update
Time String - The update time of direct connect gateway.
GetGatewaysDirectConnectGatewayAssociateCen
- Cen
Id string - The CEN ID which direct connect gateway belongs.
- Cen
Owner stringId - The CEN owner's ID.
- Cen
Status string - The CEN status.
- Cen
Id string - The CEN ID which direct connect gateway belongs.
- Cen
Owner stringId - The CEN owner's ID.
- Cen
Status string - The CEN status.
- cen
Id String - The CEN ID which direct connect gateway belongs.
- cen
Owner StringId - The CEN owner's ID.
- cen
Status String - The CEN status.
- cen
Id string - The CEN ID which direct connect gateway belongs.
- cen
Owner stringId - The CEN owner's ID.
- cen
Status string - The CEN status.
- cen_
id str - The CEN ID which direct connect gateway belongs.
- cen_
owner_ strid - The CEN owner's ID.
- cen_
status str - The CEN status.
- cen
Id String - The CEN ID which direct connect gateway belongs.
- cen
Owner StringId - The CEN owner's ID.
- cen
Status String - The CEN status.
GetGatewaysDirectConnectGatewayTag
GetGatewaysTagFilter
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
