1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CfwIpsProtectionV1
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud

opentelekomcloud.CfwIpsProtectionV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for CFW IPS protection you can get at documentation portal

    Configure IPS protection associated with CFW firewall within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const objectId = config.requireObject("objectId");
    const protect1 = new opentelekomcloud.CfwIpsProtectionV1("protect1", {
        objectId: objectId,
        ipsType: 2,
        featureStatus: 1,
        mode: 0,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    object_id = config.require_object("objectId")
    protect1 = opentelekomcloud.CfwIpsProtectionV1("protect1",
        object_id=object_id,
        ips_type=2,
        feature_status=1,
        mode=0)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		objectId := cfg.RequireObject("objectId")
    		_, err := opentelekomcloud.NewCfwIpsProtectionV1(ctx, "protect1", &opentelekomcloud.CfwIpsProtectionV1Args{
    			ObjectId:      pulumi.Any(objectId),
    			IpsType:       pulumi.Float64(2),
    			FeatureStatus: pulumi.Float64(1),
    			Mode:          pulumi.Float64(0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var objectId = config.RequireObject<dynamic>("objectId");
        var protect1 = new Opentelekomcloud.CfwIpsProtectionV1("protect1", new()
        {
            ObjectId = objectId,
            IpsType = 2,
            FeatureStatus = 1,
            Mode = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CfwIpsProtectionV1;
    import com.pulumi.opentelekomcloud.CfwIpsProtectionV1Args;
    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 config = ctx.config();
            final var objectId = config.get("objectId");
            var protect1 = new CfwIpsProtectionV1("protect1", CfwIpsProtectionV1Args.builder()
                .objectId(objectId)
                .ipsType(2)
                .featureStatus(1)
                .mode(0)
                .build());
    
        }
    }
    
    configuration:
      objectId:
        type: dynamic
    resources:
      protect1:
        type: opentelekomcloud:CfwIpsProtectionV1
        properties:
          objectId: ${objectId}
          ipsType: 2
          featureStatus: 1
          mode: 0
    

    Create CfwIpsProtectionV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CfwIpsProtectionV1(name: string, args: CfwIpsProtectionV1Args, opts?: CustomResourceOptions);
    @overload
    def CfwIpsProtectionV1(resource_name: str,
                           args: CfwIpsProtectionV1Args,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CfwIpsProtectionV1(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           feature_status: Optional[float] = None,
                           mode: Optional[float] = None,
                           object_id: Optional[str] = None,
                           cfw_ips_protection_v1_id: Optional[str] = None,
                           ips_type: Optional[float] = None,
                           timeouts: Optional[CfwIpsProtectionV1TimeoutsArgs] = None)
    func NewCfwIpsProtectionV1(ctx *Context, name string, args CfwIpsProtectionV1Args, opts ...ResourceOption) (*CfwIpsProtectionV1, error)
    public CfwIpsProtectionV1(string name, CfwIpsProtectionV1Args args, CustomResourceOptions? opts = null)
    public CfwIpsProtectionV1(String name, CfwIpsProtectionV1Args args)
    public CfwIpsProtectionV1(String name, CfwIpsProtectionV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CfwIpsProtectionV1
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CfwIpsProtectionV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CfwIpsProtectionV1Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CfwIpsProtectionV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CfwIpsProtectionV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CfwIpsProtectionV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var cfwIpsProtectionV1Resource = new Opentelekomcloud.CfwIpsProtectionV1("cfwIpsProtectionV1Resource", new()
    {
        FeatureStatus = 0,
        Mode = 0,
        ObjectId = "string",
        CfwIpsProtectionV1Id = "string",
        IpsType = 0,
        Timeouts = new Opentelekomcloud.Inputs.CfwIpsProtectionV1TimeoutsArgs
        {
            Create = "string",
        },
    });
    
    example, err := opentelekomcloud.NewCfwIpsProtectionV1(ctx, "cfwIpsProtectionV1Resource", &opentelekomcloud.CfwIpsProtectionV1Args{
    	FeatureStatus:        pulumi.Float64(0),
    	Mode:                 pulumi.Float64(0),
    	ObjectId:             pulumi.String("string"),
    	CfwIpsProtectionV1Id: pulumi.String("string"),
    	IpsType:              pulumi.Float64(0),
    	Timeouts: &opentelekomcloud.CfwIpsProtectionV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    })
    
    var cfwIpsProtectionV1Resource = new CfwIpsProtectionV1("cfwIpsProtectionV1Resource", CfwIpsProtectionV1Args.builder()
        .featureStatus(0.0)
        .mode(0.0)
        .objectId("string")
        .cfwIpsProtectionV1Id("string")
        .ipsType(0.0)
        .timeouts(CfwIpsProtectionV1TimeoutsArgs.builder()
            .create("string")
            .build())
        .build());
    
    cfw_ips_protection_v1_resource = opentelekomcloud.CfwIpsProtectionV1("cfwIpsProtectionV1Resource",
        feature_status=0,
        mode=0,
        object_id="string",
        cfw_ips_protection_v1_id="string",
        ips_type=0,
        timeouts={
            "create": "string",
        })
    
    const cfwIpsProtectionV1Resource = new opentelekomcloud.CfwIpsProtectionV1("cfwIpsProtectionV1Resource", {
        featureStatus: 0,
        mode: 0,
        objectId: "string",
        cfwIpsProtectionV1Id: "string",
        ipsType: 0,
        timeouts: {
            create: "string",
        },
    });
    
    type: opentelekomcloud:CfwIpsProtectionV1
    properties:
        cfwIpsProtectionV1Id: string
        featureStatus: 0
        ipsType: 0
        mode: 0
        objectId: string
        timeouts:
            create: string
    

    CfwIpsProtectionV1 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CfwIpsProtectionV1 resource accepts the following input properties:

    FeatureStatus double
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    Mode double
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    ObjectId string
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    CfwIpsProtectionV1Id string
    IpsType double
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    Timeouts CfwIpsProtectionV1Timeouts
    FeatureStatus float64
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    Mode float64
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    ObjectId string
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    CfwIpsProtectionV1Id string
    IpsType float64
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    Timeouts CfwIpsProtectionV1TimeoutsArgs
    featureStatus Double
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    mode Double
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    objectId String
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    cfwIpsProtectionV1Id String
    ipsType Double
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    timeouts CfwIpsProtectionV1Timeouts
    featureStatus number
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    mode number
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    objectId string
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    cfwIpsProtectionV1Id string
    ipsType number
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    timeouts CfwIpsProtectionV1Timeouts
    feature_status float
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    mode float
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    object_id str
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    cfw_ips_protection_v1_id str
    ips_type float
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    timeouts CfwIpsProtectionV1TimeoutsArgs
    featureStatus Number
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    mode Number
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    objectId String
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    cfwIpsProtectionV1Id String
    ipsType Number
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CfwIpsProtectionV1 resource produces the following output properties:

    BasicDefenseStatus double
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    Id string
    The provider-assigned unique ID for this managed resource.
    IpsProtectionModeId string
    Indicates the IPS protection mode ID.
    IpsSwitchId string
    Indicates the IPS switch ID.
    BasicDefenseStatus float64
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    Id string
    The provider-assigned unique ID for this managed resource.
    IpsProtectionModeId string
    Indicates the IPS protection mode ID.
    IpsSwitchId string
    Indicates the IPS switch ID.
    basicDefenseStatus Double
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    id String
    The provider-assigned unique ID for this managed resource.
    ipsProtectionModeId String
    Indicates the IPS protection mode ID.
    ipsSwitchId String
    Indicates the IPS switch ID.
    basicDefenseStatus number
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    id string
    The provider-assigned unique ID for this managed resource.
    ipsProtectionModeId string
    Indicates the IPS protection mode ID.
    ipsSwitchId string
    Indicates the IPS switch ID.
    basic_defense_status float
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    id str
    The provider-assigned unique ID for this managed resource.
    ips_protection_mode_id str
    Indicates the IPS protection mode ID.
    ips_switch_id str
    Indicates the IPS switch ID.
    basicDefenseStatus Number
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    id String
    The provider-assigned unique ID for this managed resource.
    ipsProtectionModeId String
    Indicates the IPS protection mode ID.
    ipsSwitchId String
    Indicates the IPS switch ID.

    Look up Existing CfwIpsProtectionV1 Resource

    Get an existing CfwIpsProtectionV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CfwIpsProtectionV1State, opts?: CustomResourceOptions): CfwIpsProtectionV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            basic_defense_status: Optional[float] = None,
            cfw_ips_protection_v1_id: Optional[str] = None,
            feature_status: Optional[float] = None,
            ips_protection_mode_id: Optional[str] = None,
            ips_switch_id: Optional[str] = None,
            ips_type: Optional[float] = None,
            mode: Optional[float] = None,
            object_id: Optional[str] = None,
            timeouts: Optional[CfwIpsProtectionV1TimeoutsArgs] = None) -> CfwIpsProtectionV1
    func GetCfwIpsProtectionV1(ctx *Context, name string, id IDInput, state *CfwIpsProtectionV1State, opts ...ResourceOption) (*CfwIpsProtectionV1, error)
    public static CfwIpsProtectionV1 Get(string name, Input<string> id, CfwIpsProtectionV1State? state, CustomResourceOptions? opts = null)
    public static CfwIpsProtectionV1 get(String name, Output<String> id, CfwIpsProtectionV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CfwIpsProtectionV1    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BasicDefenseStatus double
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    CfwIpsProtectionV1Id string
    FeatureStatus double
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    IpsProtectionModeId string
    Indicates the IPS protection mode ID.
    IpsSwitchId string
    Indicates the IPS switch ID.
    IpsType double
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    Mode double
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    ObjectId string
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    Timeouts CfwIpsProtectionV1Timeouts
    BasicDefenseStatus float64
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    CfwIpsProtectionV1Id string
    FeatureStatus float64
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    IpsProtectionModeId string
    Indicates the IPS protection mode ID.
    IpsSwitchId string
    Indicates the IPS switch ID.
    IpsType float64
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    Mode float64
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    ObjectId string
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    Timeouts CfwIpsProtectionV1TimeoutsArgs
    basicDefenseStatus Double
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    cfwIpsProtectionV1Id String
    featureStatus Double
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    ipsProtectionModeId String
    Indicates the IPS protection mode ID.
    ipsSwitchId String
    Indicates the IPS switch ID.
    ipsType Double
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    mode Double
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    objectId String
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    timeouts CfwIpsProtectionV1Timeouts
    basicDefenseStatus number
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    cfwIpsProtectionV1Id string
    featureStatus number
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    ipsProtectionModeId string
    Indicates the IPS protection mode ID.
    ipsSwitchId string
    Indicates the IPS switch ID.
    ipsType number
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    mode number
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    objectId string
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    timeouts CfwIpsProtectionV1Timeouts
    basic_defense_status float
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    cfw_ips_protection_v1_id str
    feature_status float
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    ips_protection_mode_id str
    Indicates the IPS protection mode ID.
    ips_switch_id str
    Indicates the IPS switch ID.
    ips_type float
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    mode float
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    object_id str
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    timeouts CfwIpsProtectionV1TimeoutsArgs
    basicDefenseStatus Number
    Indicates the basic defense status: 0 (disabled), 1 (enabled).
    cfwIpsProtectionV1Id String
    featureStatus Number
    Specifies the desired IPS virtual patching status: 0 (disabled), 1 (enabled).
    ipsProtectionModeId String
    Indicates the IPS protection mode ID.
    ipsSwitchId String
    Indicates the IPS switch ID.
    ipsType Number
    Specifies the IPS patch type. Its value can only be 2 (virtual patch). Default: 2.
    mode Number
    Specifies the IPS protection mode: 0 (observation mode), 1 (strict mode), 2 (medium mode), or 3 (loose mode).
    objectId String
    Specifies the protected object ID, which is used to distinguish between Internet border protection and VPC border protection after a cloud firewall is created. If the value of type is 0, the protected object ID belongs to the Internet border. If the value of type is 1, the protected object ID belongs to the VPC border.
    timeouts Property Map

    Supporting Types

    CfwIpsProtectionV1Timeouts, CfwIpsProtectionV1TimeoutsArgs

    Create string
    Create string
    create String
    create string
    create str
    create String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud