tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getCfwNatFwSwitches
Start a Neo task
Explain and create a tencentcloud.getCfwNatFwSwitches resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of cfw nat_fw_switches
Example Usage
Query Nat instance’switch by instance id
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCfwNatFwSwitches({
natInsId: "cfwnat-18d2ba18",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cfw_nat_fw_switches(nat_ins_id="cfwnat-18d2ba18")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetCfwNatFwSwitches(ctx, &tencentcloud.GetCfwNatFwSwitchesArgs{
NatInsId: pulumi.StringRef("cfwnat-18d2ba18"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetCfwNatFwSwitches.Invoke(new()
{
NatInsId = "cfwnat-18d2ba18",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCfwNatFwSwitchesArgs;
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 example = TencentcloudFunctions.getCfwNatFwSwitches(GetCfwNatFwSwitchesArgs.builder()
.natInsId("cfwnat-18d2ba18")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCfwNatFwSwitches
arguments:
natInsId: cfwnat-18d2ba18
Or filter by switch status
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getCfwNatFwSwitches({
natInsId: "cfwnat-18d2ba18",
status: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_cfw_nat_fw_switches(nat_ins_id="cfwnat-18d2ba18",
status=1)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetCfwNatFwSwitches(ctx, &tencentcloud.GetCfwNatFwSwitchesArgs{
NatInsId: pulumi.StringRef("cfwnat-18d2ba18"),
Status: pulumi.Float64Ref(1),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetCfwNatFwSwitches.Invoke(new()
{
NatInsId = "cfwnat-18d2ba18",
Status = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetCfwNatFwSwitchesArgs;
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 example = TencentcloudFunctions.getCfwNatFwSwitches(GetCfwNatFwSwitchesArgs.builder()
.natInsId("cfwnat-18d2ba18")
.status(1)
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getCfwNatFwSwitches
arguments:
natInsId: cfwnat-18d2ba18
status: 1
Using getCfwNatFwSwitches
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 getCfwNatFwSwitches(args: GetCfwNatFwSwitchesArgs, opts?: InvokeOptions): Promise<GetCfwNatFwSwitchesResult>
function getCfwNatFwSwitchesOutput(args: GetCfwNatFwSwitchesOutputArgs, opts?: InvokeOptions): Output<GetCfwNatFwSwitchesResult>def get_cfw_nat_fw_switches(id: Optional[str] = None,
nat_ins_id: Optional[str] = None,
result_output_file: Optional[str] = None,
status: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCfwNatFwSwitchesResult
def get_cfw_nat_fw_switches_output(id: Optional[pulumi.Input[str]] = None,
nat_ins_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCfwNatFwSwitchesResult]func GetCfwNatFwSwitches(ctx *Context, args *GetCfwNatFwSwitchesArgs, opts ...InvokeOption) (*GetCfwNatFwSwitchesResult, error)
func GetCfwNatFwSwitchesOutput(ctx *Context, args *GetCfwNatFwSwitchesOutputArgs, opts ...InvokeOption) GetCfwNatFwSwitchesResultOutput> Note: This function is named GetCfwNatFwSwitches in the Go SDK.
public static class GetCfwNatFwSwitches
{
public static Task<GetCfwNatFwSwitchesResult> InvokeAsync(GetCfwNatFwSwitchesArgs args, InvokeOptions? opts = null)
public static Output<GetCfwNatFwSwitchesResult> Invoke(GetCfwNatFwSwitchesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCfwNatFwSwitchesResult> getCfwNatFwSwitches(GetCfwNatFwSwitchesArgs args, InvokeOptions options)
public static Output<GetCfwNatFwSwitchesResult> getCfwNatFwSwitches(GetCfwNatFwSwitchesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getCfwNatFwSwitches:getCfwNatFwSwitches
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- ID.
- Nat
Ins stringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- Result
Output stringFile - Used to save results.
- Status double
- Switch status, 1 open; 0 close.
- Id string
- ID.
- Nat
Ins stringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- Result
Output stringFile - Used to save results.
- Status float64
- Switch status, 1 open; 0 close.
- id String
- ID.
- nat
Ins StringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- result
Output StringFile - Used to save results.
- status Double
- Switch status, 1 open; 0 close.
- id string
- ID.
- nat
Ins stringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- result
Output stringFile - Used to save results.
- status number
- Switch status, 1 open; 0 close.
- id str
- ID.
- nat_
ins_ strid - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- result_
output_ strfile - Used to save results.
- status float
- Switch status, 1 open; 0 close.
- id String
- ID.
- nat
Ins StringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- result
Output StringFile - Used to save results.
- status Number
- Switch status, 1 open; 0 close.
getCfwNatFwSwitches Result
The following output properties are available:
- Datas
List<Get
Cfw Nat Fw Switches Data> - NAT border firewall switch list data.
- Id string
- ID.
- Nat
Ins stringId - NAT firewall instance Id.
- Result
Output stringFile - Status double
- Switch status.
- Datas
[]Get
Cfw Nat Fw Switches Data - NAT border firewall switch list data.
- Id string
- ID.
- Nat
Ins stringId - NAT firewall instance Id.
- Result
Output stringFile - Status float64
- Switch status.
- datas
List<Get
Cfw Nat Fw Switches Data> - NAT border firewall switch list data.
- id String
- ID.
- nat
Ins StringId - NAT firewall instance Id.
- result
Output StringFile - status Double
- Switch status.
- datas
Get
Cfw Nat Fw Switches Data[] - NAT border firewall switch list data.
- id string
- ID.
- nat
Ins stringId - NAT firewall instance Id.
- result
Output stringFile - status number
- Switch status.
- datas
Sequence[Get
Cfw Nat Fw Switches Data] - NAT border firewall switch list data.
- id str
- ID.
- nat_
ins_ strid - NAT firewall instance Id.
- result_
output_ strfile - status float
- Switch status.
- datas List<Property Map>
- NAT border firewall switch list data.
- id String
- ID.
- nat
Ins StringId - NAT firewall instance Id.
- result
Output StringFile - status Number
- Switch status.
Supporting Types
GetCfwNatFwSwitchesData
- Abnormal double
- Whether the switch is abnormal, 0: normal, 1: abnormal.
- Cvm
Num double - Cvm Num.
- Enable double
- Effective status.
- Id double
- ID.
- Nat
Id string - NAT gatway Id.
- Nat
Ins stringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- Nat
Ins stringName - NAT firewall instance name.
- Nat
Name string - NAT gatway name.
- Region string
- Region.
- Route
Id string - Route Id.
- Route
Name string - Route Name.
- Status double
- Switch status, 1 open; 0 close.
- Subnet
Cidr string - IPv4 CIDR.
- Subnet
Id string - Subnet Id.
- Subnet
Name string - Subnet Name.
- Vpc
Id string - Vpc Id.
- Vpc
Name string - Vpc Name.
- Abnormal float64
- Whether the switch is abnormal, 0: normal, 1: abnormal.
- Cvm
Num float64 - Cvm Num.
- Enable float64
- Effective status.
- Id float64
- ID.
- Nat
Id string - NAT gatway Id.
- Nat
Ins stringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- Nat
Ins stringName - NAT firewall instance name.
- Nat
Name string - NAT gatway name.
- Region string
- Region.
- Route
Id string - Route Id.
- Route
Name string - Route Name.
- Status float64
- Switch status, 1 open; 0 close.
- Subnet
Cidr string - IPv4 CIDR.
- Subnet
Id string - Subnet Id.
- Subnet
Name string - Subnet Name.
- Vpc
Id string - Vpc Id.
- Vpc
Name string - Vpc Name.
- abnormal Double
- Whether the switch is abnormal, 0: normal, 1: abnormal.
- cvm
Num Double - Cvm Num.
- enable Double
- Effective status.
- id Double
- ID.
- nat
Id String - NAT gatway Id.
- nat
Ins StringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- nat
Ins StringName - NAT firewall instance name.
- nat
Name String - NAT gatway name.
- region String
- Region.
- route
Id String - Route Id.
- route
Name String - Route Name.
- status Double
- Switch status, 1 open; 0 close.
- subnet
Cidr String - IPv4 CIDR.
- subnet
Id String - Subnet Id.
- subnet
Name String - Subnet Name.
- vpc
Id String - Vpc Id.
- vpc
Name String - Vpc Name.
- abnormal number
- Whether the switch is abnormal, 0: normal, 1: abnormal.
- cvm
Num number - Cvm Num.
- enable number
- Effective status.
- id number
- ID.
- nat
Id string - NAT gatway Id.
- nat
Ins stringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- nat
Ins stringName - NAT firewall instance name.
- nat
Name string - NAT gatway name.
- region string
- Region.
- route
Id string - Route Id.
- route
Name string - Route Name.
- status number
- Switch status, 1 open; 0 close.
- subnet
Cidr string - IPv4 CIDR.
- subnet
Id string - Subnet Id.
- subnet
Name string - Subnet Name.
- vpc
Id string - Vpc Id.
- vpc
Name string - Vpc Name.
- abnormal float
- Whether the switch is abnormal, 0: normal, 1: abnormal.
- cvm_
num float - Cvm Num.
- enable float
- Effective status.
- id float
- ID.
- nat_
id str - NAT gatway Id.
- nat_
ins_ strid - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- nat_
ins_ strname - NAT firewall instance name.
- nat_
name str - NAT gatway name.
- region str
- Region.
- route_
id str - Route Id.
- route_
name str - Route Name.
- status float
- Switch status, 1 open; 0 close.
- subnet_
cidr str - IPv4 CIDR.
- subnet_
id str - Subnet Id.
- subnet_
name str - Subnet Name.
- vpc_
id str - Vpc Id.
- vpc_
name str - Vpc Name.
- abnormal Number
- Whether the switch is abnormal, 0: normal, 1: abnormal.
- cvm
Num Number - Cvm Num.
- enable Number
- Effective status.
- id Number
- ID.
- nat
Id String - NAT gatway Id.
- nat
Ins StringId - Filter the NAT firewall instance to which the NAT firewall subnet switch belongs.
- nat
Ins StringName - NAT firewall instance name.
- nat
Name String - NAT gatway name.
- region String
- Region.
- route
Id String - Route Id.
- route
Name String - Route Name.
- status Number
- Switch status, 1 open; 0 close.
- subnet
Cidr String - IPv4 CIDR.
- subnet
Id String - Subnet Id.
- subnet
Name String - Subnet Name.
- vpc
Id String - Vpc Id.
- vpc
Name String - Vpc Name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
