1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getCfwVpcFwSwitches
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getCfwVpcFwSwitches

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of cfw vpc_fw_switches

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getCfwVpcFwSwitches({
        vpcInsId: "cfwg-c8c2de41",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_cfw_vpc_fw_switches(vpc_ins_id="cfwg-c8c2de41")
    
    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.GetCfwVpcFwSwitches(ctx, &tencentcloud.GetCfwVpcFwSwitchesArgs{
    			VpcInsId: "cfwg-c8c2de41",
    		}, 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.GetCfwVpcFwSwitches.Invoke(new()
        {
            VpcInsId = "cfwg-c8c2de41",
        });
    
    });
    
    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.GetCfwVpcFwSwitchesArgs;
    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.getCfwVpcFwSwitches(GetCfwVpcFwSwitchesArgs.builder()
                .vpcInsId("cfwg-c8c2de41")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getCfwVpcFwSwitches
          arguments:
            vpcInsId: cfwg-c8c2de41
    

    Using getCfwVpcFwSwitches

    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 getCfwVpcFwSwitches(args: GetCfwVpcFwSwitchesArgs, opts?: InvokeOptions): Promise<GetCfwVpcFwSwitchesResult>
    function getCfwVpcFwSwitchesOutput(args: GetCfwVpcFwSwitchesOutputArgs, opts?: InvokeOptions): Output<GetCfwVpcFwSwitchesResult>
    def get_cfw_vpc_fw_switches(id: Optional[str] = None,
                                result_output_file: Optional[str] = None,
                                vpc_ins_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCfwVpcFwSwitchesResult
    def get_cfw_vpc_fw_switches_output(id: Optional[pulumi.Input[str]] = None,
                                result_output_file: Optional[pulumi.Input[str]] = None,
                                vpc_ins_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCfwVpcFwSwitchesResult]
    func GetCfwVpcFwSwitches(ctx *Context, args *GetCfwVpcFwSwitchesArgs, opts ...InvokeOption) (*GetCfwVpcFwSwitchesResult, error)
    func GetCfwVpcFwSwitchesOutput(ctx *Context, args *GetCfwVpcFwSwitchesOutputArgs, opts ...InvokeOption) GetCfwVpcFwSwitchesResultOutput

    > Note: This function is named GetCfwVpcFwSwitches in the Go SDK.

    public static class GetCfwVpcFwSwitches 
    {
        public static Task<GetCfwVpcFwSwitchesResult> InvokeAsync(GetCfwVpcFwSwitchesArgs args, InvokeOptions? opts = null)
        public static Output<GetCfwVpcFwSwitchesResult> Invoke(GetCfwVpcFwSwitchesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCfwVpcFwSwitchesResult> getCfwVpcFwSwitches(GetCfwVpcFwSwitchesArgs args, InvokeOptions options)
    public static Output<GetCfwVpcFwSwitchesResult> getCfwVpcFwSwitches(GetCfwVpcFwSwitchesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCfwVpcFwSwitches:getCfwVpcFwSwitches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VpcInsId string
    Firewall instance id.
    Id string
    ResultOutputFile string
    Used to save results.
    VpcInsId string
    Firewall instance id.
    Id string
    ResultOutputFile string
    Used to save results.
    vpcInsId String
    Firewall instance id.
    id String
    resultOutputFile String
    Used to save results.
    vpcInsId string
    Firewall instance id.
    id string
    resultOutputFile string
    Used to save results.
    vpc_ins_id str
    Firewall instance id.
    id str
    result_output_file str
    Used to save results.
    vpcInsId String
    Firewall instance id.
    id String
    resultOutputFile String
    Used to save results.

    getCfwVpcFwSwitches Result

    The following output properties are available:

    Supporting Types

    GetCfwVpcFwSwitchesSwitchList

    Enable double
    Switch status 0: off, 1: on.
    Status double
    Switch status 0: normal, 1: switching.
    SwitchId string
    Firewall switch ID.
    SwitchMode double
    switch mode.
    SwitchName string
    Firewall switch name.
    Enable float64
    Switch status 0: off, 1: on.
    Status float64
    Switch status 0: normal, 1: switching.
    SwitchId string
    Firewall switch ID.
    SwitchMode float64
    switch mode.
    SwitchName string
    Firewall switch name.
    enable Double
    Switch status 0: off, 1: on.
    status Double
    Switch status 0: normal, 1: switching.
    switchId String
    Firewall switch ID.
    switchMode Double
    switch mode.
    switchName String
    Firewall switch name.
    enable number
    Switch status 0: off, 1: on.
    status number
    Switch status 0: normal, 1: switching.
    switchId string
    Firewall switch ID.
    switchMode number
    switch mode.
    switchName string
    Firewall switch name.
    enable float
    Switch status 0: off, 1: on.
    status float
    Switch status 0: normal, 1: switching.
    switch_id str
    Firewall switch ID.
    switch_mode float
    switch mode.
    switch_name str
    Firewall switch name.
    enable Number
    Switch status 0: off, 1: on.
    status Number
    Switch status 0: normal, 1: switching.
    switchId String
    Firewall switch ID.
    switchMode Number
    switch mode.
    switchName String
    Firewall switch name.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack