opentelekomcloud.CfwIpsProtectionV1
Explore with Pulumi AI
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:
- Feature
Status 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), or3
(loose mode). - Object
Id 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 is1
, the protected object ID belongs to the VPC border. - Cfw
Ips stringProtection V1Id - Ips
Type double - Specifies the IPS patch type. Its value can only be
2
(virtual patch). Default:2
. - Timeouts
Cfw
Ips Protection V1Timeouts
- Feature
Status 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), or3
(loose mode). - Object
Id 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 is1
, the protected object ID belongs to the VPC border. - Cfw
Ips stringProtection V1Id - Ips
Type float64 - Specifies the IPS patch type. Its value can only be
2
(virtual patch). Default:2
. - Timeouts
Cfw
Ips Protection V1Timeouts Args
- feature
Status 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), or3
(loose mode). - object
Id 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 is1
, the protected object ID belongs to the VPC border. - cfw
Ips StringProtection V1Id - ips
Type Double - Specifies the IPS patch type. Its value can only be
2
(virtual patch). Default:2
. - timeouts
Cfw
Ips Protection V1Timeouts
- feature
Status 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), or3
(loose mode). - object
Id 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 is1
, the protected object ID belongs to the VPC border. - cfw
Ips stringProtection V1Id - ips
Type number - Specifies the IPS patch type. Its value can only be
2
(virtual patch). Default:2
. - timeouts
Cfw
Ips Protection V1Timeouts
- 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), or3
(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 is1
, the protected object ID belongs to the VPC border. - cfw_
ips_ strprotection_ v1_ id - ips_
type float - Specifies the IPS patch type. Its value can only be
2
(virtual patch). Default:2
. - timeouts
Cfw
Ips Protection V1Timeouts Args
- feature
Status 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), or3
(loose mode). - object
Id 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 is1
, the protected object ID belongs to the VPC border. - cfw
Ips StringProtection V1Id - ips
Type 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:
- Basic
Defense doubleStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - Id string
- The provider-assigned unique ID for this managed resource.
- Ips
Protection stringMode Id - Indicates the IPS protection mode ID.
- Ips
Switch stringId - Indicates the IPS switch ID.
- Basic
Defense float64Status - Indicates the basic defense status:
0
(disabled),1
(enabled). - Id string
- The provider-assigned unique ID for this managed resource.
- Ips
Protection stringMode Id - Indicates the IPS protection mode ID.
- Ips
Switch stringId - Indicates the IPS switch ID.
- basic
Defense DoubleStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - id String
- The provider-assigned unique ID for this managed resource.
- ips
Protection StringMode Id - Indicates the IPS protection mode ID.
- ips
Switch StringId - Indicates the IPS switch ID.
- basic
Defense numberStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - id string
- The provider-assigned unique ID for this managed resource.
- ips
Protection stringMode Id - Indicates the IPS protection mode ID.
- ips
Switch stringId - Indicates the IPS switch ID.
- basic_
defense_ floatstatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - id str
- The provider-assigned unique ID for this managed resource.
- ips_
protection_ strmode_ id - Indicates the IPS protection mode ID.
- ips_
switch_ strid - Indicates the IPS switch ID.
- basic
Defense NumberStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - id String
- The provider-assigned unique ID for this managed resource.
- ips
Protection StringMode Id - Indicates the IPS protection mode ID.
- ips
Switch StringId - 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.
- Basic
Defense doubleStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - Cfw
Ips stringProtection V1Id - Feature
Status double - Specifies the desired IPS virtual patching status:
0
(disabled),1
(enabled). - Ips
Protection stringMode Id - Indicates the IPS protection mode ID.
- Ips
Switch stringId - Indicates the IPS switch ID.
- Ips
Type 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), or3
(loose mode). - Object
Id 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 is1
, the protected object ID belongs to the VPC border. - Timeouts
Cfw
Ips Protection V1Timeouts
- Basic
Defense float64Status - Indicates the basic defense status:
0
(disabled),1
(enabled). - Cfw
Ips stringProtection V1Id - Feature
Status float64 - Specifies the desired IPS virtual patching status:
0
(disabled),1
(enabled). - Ips
Protection stringMode Id - Indicates the IPS protection mode ID.
- Ips
Switch stringId - Indicates the IPS switch ID.
- Ips
Type 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), or3
(loose mode). - Object
Id 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 is1
, the protected object ID belongs to the VPC border. - Timeouts
Cfw
Ips Protection V1Timeouts Args
- basic
Defense DoubleStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - cfw
Ips StringProtection V1Id - feature
Status Double - Specifies the desired IPS virtual patching status:
0
(disabled),1
(enabled). - ips
Protection StringMode Id - Indicates the IPS protection mode ID.
- ips
Switch StringId - Indicates the IPS switch ID.
- ips
Type 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), or3
(loose mode). - object
Id 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 is1
, the protected object ID belongs to the VPC border. - timeouts
Cfw
Ips Protection V1Timeouts
- basic
Defense numberStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - cfw
Ips stringProtection V1Id - feature
Status number - Specifies the desired IPS virtual patching status:
0
(disabled),1
(enabled). - ips
Protection stringMode Id - Indicates the IPS protection mode ID.
- ips
Switch stringId - Indicates the IPS switch ID.
- ips
Type 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), or3
(loose mode). - object
Id 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 is1
, the protected object ID belongs to the VPC border. - timeouts
Cfw
Ips Protection V1Timeouts
- basic_
defense_ floatstatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - cfw_
ips_ strprotection_ v1_ id - feature_
status float - Specifies the desired IPS virtual patching status:
0
(disabled),1
(enabled). - ips_
protection_ strmode_ id - Indicates the IPS protection mode ID.
- ips_
switch_ strid - 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), or3
(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 is1
, the protected object ID belongs to the VPC border. - timeouts
Cfw
Ips Protection V1Timeouts Args
- basic
Defense NumberStatus - Indicates the basic defense status:
0
(disabled),1
(enabled). - cfw
Ips StringProtection V1Id - feature
Status Number - Specifies the desired IPS virtual patching status:
0
(disabled),1
(enabled). - ips
Protection StringMode Id - Indicates the IPS protection mode ID.
- ips
Switch StringId - Indicates the IPS switch ID.
- ips
Type 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), or3
(loose mode). - object
Id 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 is1
, 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.