opentelekomcloud.CfwAclRuleV1
Explore with Pulumi AI
Up-to-date reference of API arguments for CFW ACL rule you can get at documentation portal
Manages a CFW ACL rule resource 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 rule1 = new opentelekomcloud.CfwAclRuleV1("rule1", {
objectId: objectId,
type: 0,
sequence: {
top: 1,
},
addressType: 0,
actionType: 0,
status: 1,
longConnectEnable: 0,
direction: 0,
source: {
type: 0,
address: "1.1.1.1",
},
destination: {
type: 0,
address: "2.2.2.2",
},
service: {
type: 0,
protocol: -1,
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
object_id = config.require_object("objectId")
rule1 = opentelekomcloud.CfwAclRuleV1("rule1",
object_id=object_id,
type=0,
sequence={
"top": 1,
},
address_type=0,
action_type=0,
status=1,
long_connect_enable=0,
direction=0,
source={
"type": 0,
"address": "1.1.1.1",
},
destination={
"type": 0,
"address": "2.2.2.2",
},
service={
"type": 0,
"protocol": -1,
})
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.NewCfwAclRuleV1(ctx, "rule1", &opentelekomcloud.CfwAclRuleV1Args{
ObjectId: pulumi.Any(objectId),
Type: pulumi.Float64(0),
Sequence: &opentelekomcloud.CfwAclRuleV1SequenceArgs{
Top: pulumi.Float64(1),
},
AddressType: pulumi.Float64(0),
ActionType: pulumi.Float64(0),
Status: pulumi.Float64(1),
LongConnectEnable: pulumi.Float64(0),
Direction: pulumi.Float64(0),
Source: &opentelekomcloud.CfwAclRuleV1SourceArgs{
Type: pulumi.Float64(0),
Address: pulumi.String("1.1.1.1"),
},
Destination: &opentelekomcloud.CfwAclRuleV1DestinationArgs{
Type: pulumi.Float64(0),
Address: pulumi.String("2.2.2.2"),
},
Service: &opentelekomcloud.CfwAclRuleV1ServiceArgs{
Type: pulumi.Float64(0),
Protocol: pulumi.Float64(-1),
},
})
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 rule1 = new Opentelekomcloud.CfwAclRuleV1("rule1", new()
{
ObjectId = objectId,
Type = 0,
Sequence = new Opentelekomcloud.Inputs.CfwAclRuleV1SequenceArgs
{
Top = 1,
},
AddressType = 0,
ActionType = 0,
Status = 1,
LongConnectEnable = 0,
Direction = 0,
Source = new Opentelekomcloud.Inputs.CfwAclRuleV1SourceArgs
{
Type = 0,
Address = "1.1.1.1",
},
Destination = new Opentelekomcloud.Inputs.CfwAclRuleV1DestinationArgs
{
Type = 0,
Address = "2.2.2.2",
},
Service = new Opentelekomcloud.Inputs.CfwAclRuleV1ServiceArgs
{
Type = 0,
Protocol = -1,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CfwAclRuleV1;
import com.pulumi.opentelekomcloud.CfwAclRuleV1Args;
import com.pulumi.opentelekomcloud.inputs.CfwAclRuleV1SequenceArgs;
import com.pulumi.opentelekomcloud.inputs.CfwAclRuleV1SourceArgs;
import com.pulumi.opentelekomcloud.inputs.CfwAclRuleV1DestinationArgs;
import com.pulumi.opentelekomcloud.inputs.CfwAclRuleV1ServiceArgs;
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 rule1 = new CfwAclRuleV1("rule1", CfwAclRuleV1Args.builder()
.objectId(objectId)
.type(0)
.sequence(CfwAclRuleV1SequenceArgs.builder()
.top(1)
.build())
.addressType(0)
.actionType(0)
.status(1)
.longConnectEnable(0)
.direction(0)
.source(CfwAclRuleV1SourceArgs.builder()
.type(0)
.address("1.1.1.1")
.build())
.destination(CfwAclRuleV1DestinationArgs.builder()
.type(0)
.address("2.2.2.2")
.build())
.service(CfwAclRuleV1ServiceArgs.builder()
.type(0)
.protocol(-1)
.build())
.build());
}
}
configuration:
objectId:
type: dynamic
resources:
rule1:
type: opentelekomcloud:CfwAclRuleV1
properties:
objectId: ${objectId}
type: 0
sequence:
top: 1
addressType: 0
actionType: 0
status: 1
longConnectEnable: 0
direction: 0
source:
type: 0
address: 1.1.1.1
destination:
type: 0
address: 2.2.2.2
service:
type: 0
protocol: -1
Notes
But due to some attributes missing from the API response, it’s required to ignore changes as below:
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
rule1:
type: opentelekomcloud:CfwAclRuleV1
properties:
lifecycle:
ignoreChanges:
- applications
- applicationsJsonString
- applicationsJsonString
- destination.predefinedGroups
- sequence
- service.predefinedGroups
- source.predefinedGroups
Create CfwAclRuleV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwAclRuleV1(name: string, args: CfwAclRuleV1Args, opts?: CustomResourceOptions);
@overload
def CfwAclRuleV1(resource_name: str,
args: CfwAclRuleV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CfwAclRuleV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
service: Optional[CfwAclRuleV1ServiceArgs] = None,
address_type: Optional[float] = None,
type: Optional[float] = None,
status: Optional[float] = None,
source: Optional[CfwAclRuleV1SourceArgs] = None,
destination: Optional[CfwAclRuleV1DestinationArgs] = None,
action_type: Optional[float] = None,
long_connect_enable: Optional[float] = None,
sequence: Optional[CfwAclRuleV1SequenceArgs] = None,
object_id: Optional[str] = None,
name: Optional[str] = None,
long_connect_time_second: Optional[float] = None,
long_connect_time_minute: Optional[float] = None,
long_connect_time: Optional[float] = None,
long_connect_time_hour: Optional[float] = None,
direction: Optional[float] = None,
description: Optional[str] = None,
applications_json_string: Optional[str] = None,
timeouts: Optional[CfwAclRuleV1TimeoutsArgs] = None,
applications: Optional[Sequence[str]] = None)
func NewCfwAclRuleV1(ctx *Context, name string, args CfwAclRuleV1Args, opts ...ResourceOption) (*CfwAclRuleV1, error)
public CfwAclRuleV1(string name, CfwAclRuleV1Args args, CustomResourceOptions? opts = null)
public CfwAclRuleV1(String name, CfwAclRuleV1Args args)
public CfwAclRuleV1(String name, CfwAclRuleV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CfwAclRuleV1
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 CfwAclRuleV1Args
- 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 CfwAclRuleV1Args
- 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 CfwAclRuleV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwAclRuleV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwAclRuleV1Args
- 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 cfwAclRuleV1Resource = new Opentelekomcloud.CfwAclRuleV1("cfwAclRuleV1Resource", new()
{
Service = new Opentelekomcloud.Inputs.CfwAclRuleV1ServiceArgs
{
Type = 0,
CustomServices = new[]
{
new Opentelekomcloud.Inputs.CfwAclRuleV1ServiceCustomServiceArgs
{
Description = "string",
DestPort = "string",
Name = "string",
Protocol = 0,
SourcePort = "string",
},
},
DestPort = "string",
PredefinedGroups = new[]
{
"string",
},
Protocol = 0,
Protocols = new[]
{
0,
},
ServiceGroupNames = new[]
{
new Opentelekomcloud.Inputs.CfwAclRuleV1ServiceServiceGroupNameArgs
{
Name = "string",
Protocols = new[]
{
0,
},
ServiceSetType = 0,
SetId = "string",
},
},
ServiceGroups = new[]
{
"string",
},
ServiceSetId = "string",
ServiceSetName = "string",
ServiceSetType = 0,
SourcePort = "string",
},
AddressType = 0,
Type = 0,
Status = 0,
Source = new Opentelekomcloud.Inputs.CfwAclRuleV1SourceArgs
{
Type = 0,
DomainAddressName = "string",
AddressSetId = "string",
AddressSetName = "string",
AddressSetType = 0,
AddressType = 0,
Address = "string",
DomainSetId = "string",
DomainSetName = "string",
IpAddresses = new[]
{
"string",
},
PredefinedGroups = new[]
{
"string",
},
RegionListJson = "string",
RegionLists = new[]
{
new Opentelekomcloud.Inputs.CfwAclRuleV1SourceRegionListArgs
{
RegionId = "string",
RegionType = 0,
},
},
AddressGroups = new[]
{
"string",
},
},
Destination = new Opentelekomcloud.Inputs.CfwAclRuleV1DestinationArgs
{
Type = 0,
DomainAddressName = "string",
AddressSetId = "string",
AddressSetName = "string",
AddressSetType = 0,
AddressType = 0,
Address = "string",
DomainSetId = "string",
DomainSetName = "string",
IpAddresses = new[]
{
"string",
},
PredefinedGroups = new[]
{
"string",
},
RegionListJson = "string",
RegionLists = new[]
{
new Opentelekomcloud.Inputs.CfwAclRuleV1DestinationRegionListArgs
{
RegionId = "string",
RegionType = 0,
},
},
AddressGroups = new[]
{
"string",
},
},
ActionType = 0,
LongConnectEnable = 0,
Sequence = new Opentelekomcloud.Inputs.CfwAclRuleV1SequenceArgs
{
Bottom = 0,
DestRuleId = "string",
Top = 0,
},
ObjectId = "string",
Name = "string",
LongConnectTimeSecond = 0,
LongConnectTimeMinute = 0,
LongConnectTime = 0,
LongConnectTimeHour = 0,
Direction = 0,
Description = "string",
ApplicationsJsonString = "string",
Timeouts = new Opentelekomcloud.Inputs.CfwAclRuleV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Applications = new[]
{
"string",
},
});
example, err := opentelekomcloud.NewCfwAclRuleV1(ctx, "cfwAclRuleV1Resource", &opentelekomcloud.CfwAclRuleV1Args{
Service: &opentelekomcloud.CfwAclRuleV1ServiceArgs{
Type: pulumi.Float64(0),
CustomServices: opentelekomcloud.CfwAclRuleV1ServiceCustomServiceArray{
&opentelekomcloud.CfwAclRuleV1ServiceCustomServiceArgs{
Description: pulumi.String("string"),
DestPort: pulumi.String("string"),
Name: pulumi.String("string"),
Protocol: pulumi.Float64(0),
SourcePort: pulumi.String("string"),
},
},
DestPort: pulumi.String("string"),
PredefinedGroups: pulumi.StringArray{
pulumi.String("string"),
},
Protocol: pulumi.Float64(0),
Protocols: pulumi.Float64Array{
pulumi.Float64(0),
},
ServiceGroupNames: opentelekomcloud.CfwAclRuleV1ServiceServiceGroupNameArray{
&opentelekomcloud.CfwAclRuleV1ServiceServiceGroupNameArgs{
Name: pulumi.String("string"),
Protocols: pulumi.Float64Array{
pulumi.Float64(0),
},
ServiceSetType: pulumi.Float64(0),
SetId: pulumi.String("string"),
},
},
ServiceGroups: pulumi.StringArray{
pulumi.String("string"),
},
ServiceSetId: pulumi.String("string"),
ServiceSetName: pulumi.String("string"),
ServiceSetType: pulumi.Float64(0),
SourcePort: pulumi.String("string"),
},
AddressType: pulumi.Float64(0),
Type: pulumi.Float64(0),
Status: pulumi.Float64(0),
Source: &opentelekomcloud.CfwAclRuleV1SourceArgs{
Type: pulumi.Float64(0),
DomainAddressName: pulumi.String("string"),
AddressSetId: pulumi.String("string"),
AddressSetName: pulumi.String("string"),
AddressSetType: pulumi.Float64(0),
AddressType: pulumi.Float64(0),
Address: pulumi.String("string"),
DomainSetId: pulumi.String("string"),
DomainSetName: pulumi.String("string"),
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
PredefinedGroups: pulumi.StringArray{
pulumi.String("string"),
},
RegionListJson: pulumi.String("string"),
RegionLists: opentelekomcloud.CfwAclRuleV1SourceRegionListArray{
&opentelekomcloud.CfwAclRuleV1SourceRegionListArgs{
RegionId: pulumi.String("string"),
RegionType: pulumi.Float64(0),
},
},
AddressGroups: pulumi.StringArray{
pulumi.String("string"),
},
},
Destination: &opentelekomcloud.CfwAclRuleV1DestinationArgs{
Type: pulumi.Float64(0),
DomainAddressName: pulumi.String("string"),
AddressSetId: pulumi.String("string"),
AddressSetName: pulumi.String("string"),
AddressSetType: pulumi.Float64(0),
AddressType: pulumi.Float64(0),
Address: pulumi.String("string"),
DomainSetId: pulumi.String("string"),
DomainSetName: pulumi.String("string"),
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
PredefinedGroups: pulumi.StringArray{
pulumi.String("string"),
},
RegionListJson: pulumi.String("string"),
RegionLists: opentelekomcloud.CfwAclRuleV1DestinationRegionListArray{
&opentelekomcloud.CfwAclRuleV1DestinationRegionListArgs{
RegionId: pulumi.String("string"),
RegionType: pulumi.Float64(0),
},
},
AddressGroups: pulumi.StringArray{
pulumi.String("string"),
},
},
ActionType: pulumi.Float64(0),
LongConnectEnable: pulumi.Float64(0),
Sequence: &opentelekomcloud.CfwAclRuleV1SequenceArgs{
Bottom: pulumi.Float64(0),
DestRuleId: pulumi.String("string"),
Top: pulumi.Float64(0),
},
ObjectId: pulumi.String("string"),
Name: pulumi.String("string"),
LongConnectTimeSecond: pulumi.Float64(0),
LongConnectTimeMinute: pulumi.Float64(0),
LongConnectTime: pulumi.Float64(0),
LongConnectTimeHour: pulumi.Float64(0),
Direction: pulumi.Float64(0),
Description: pulumi.String("string"),
ApplicationsJsonString: pulumi.String("string"),
Timeouts: &opentelekomcloud.CfwAclRuleV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Applications: pulumi.StringArray{
pulumi.String("string"),
},
})
var cfwAclRuleV1Resource = new CfwAclRuleV1("cfwAclRuleV1Resource", CfwAclRuleV1Args.builder()
.service(CfwAclRuleV1ServiceArgs.builder()
.type(0)
.customServices(CfwAclRuleV1ServiceCustomServiceArgs.builder()
.description("string")
.destPort("string")
.name("string")
.protocol(0)
.sourcePort("string")
.build())
.destPort("string")
.predefinedGroups("string")
.protocol(0)
.protocols(0)
.serviceGroupNames(CfwAclRuleV1ServiceServiceGroupNameArgs.builder()
.name("string")
.protocols(0)
.serviceSetType(0)
.setId("string")
.build())
.serviceGroups("string")
.serviceSetId("string")
.serviceSetName("string")
.serviceSetType(0)
.sourcePort("string")
.build())
.addressType(0)
.type(0)
.status(0)
.source(CfwAclRuleV1SourceArgs.builder()
.type(0)
.domainAddressName("string")
.addressSetId("string")
.addressSetName("string")
.addressSetType(0)
.addressType(0)
.address("string")
.domainSetId("string")
.domainSetName("string")
.ipAddresses("string")
.predefinedGroups("string")
.regionListJson("string")
.regionLists(CfwAclRuleV1SourceRegionListArgs.builder()
.regionId("string")
.regionType(0)
.build())
.addressGroups("string")
.build())
.destination(CfwAclRuleV1DestinationArgs.builder()
.type(0)
.domainAddressName("string")
.addressSetId("string")
.addressSetName("string")
.addressSetType(0)
.addressType(0)
.address("string")
.domainSetId("string")
.domainSetName("string")
.ipAddresses("string")
.predefinedGroups("string")
.regionListJson("string")
.regionLists(CfwAclRuleV1DestinationRegionListArgs.builder()
.regionId("string")
.regionType(0)
.build())
.addressGroups("string")
.build())
.actionType(0)
.longConnectEnable(0)
.sequence(CfwAclRuleV1SequenceArgs.builder()
.bottom(0)
.destRuleId("string")
.top(0)
.build())
.objectId("string")
.name("string")
.longConnectTimeSecond(0)
.longConnectTimeMinute(0)
.longConnectTime(0)
.longConnectTimeHour(0)
.direction(0)
.description("string")
.applicationsJsonString("string")
.timeouts(CfwAclRuleV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.applications("string")
.build());
cfw_acl_rule_v1_resource = opentelekomcloud.CfwAclRuleV1("cfwAclRuleV1Resource",
service={
"type": 0,
"custom_services": [{
"description": "string",
"dest_port": "string",
"name": "string",
"protocol": 0,
"source_port": "string",
}],
"dest_port": "string",
"predefined_groups": ["string"],
"protocol": 0,
"protocols": [0],
"service_group_names": [{
"name": "string",
"protocols": [0],
"service_set_type": 0,
"set_id": "string",
}],
"service_groups": ["string"],
"service_set_id": "string",
"service_set_name": "string",
"service_set_type": 0,
"source_port": "string",
},
address_type=0,
type=0,
status=0,
source={
"type": 0,
"domain_address_name": "string",
"address_set_id": "string",
"address_set_name": "string",
"address_set_type": 0,
"address_type": 0,
"address": "string",
"domain_set_id": "string",
"domain_set_name": "string",
"ip_addresses": ["string"],
"predefined_groups": ["string"],
"region_list_json": "string",
"region_lists": [{
"region_id": "string",
"region_type": 0,
}],
"address_groups": ["string"],
},
destination={
"type": 0,
"domain_address_name": "string",
"address_set_id": "string",
"address_set_name": "string",
"address_set_type": 0,
"address_type": 0,
"address": "string",
"domain_set_id": "string",
"domain_set_name": "string",
"ip_addresses": ["string"],
"predefined_groups": ["string"],
"region_list_json": "string",
"region_lists": [{
"region_id": "string",
"region_type": 0,
}],
"address_groups": ["string"],
},
action_type=0,
long_connect_enable=0,
sequence={
"bottom": 0,
"dest_rule_id": "string",
"top": 0,
},
object_id="string",
name="string",
long_connect_time_second=0,
long_connect_time_minute=0,
long_connect_time=0,
long_connect_time_hour=0,
direction=0,
description="string",
applications_json_string="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
applications=["string"])
const cfwAclRuleV1Resource = new opentelekomcloud.CfwAclRuleV1("cfwAclRuleV1Resource", {
service: {
type: 0,
customServices: [{
description: "string",
destPort: "string",
name: "string",
protocol: 0,
sourcePort: "string",
}],
destPort: "string",
predefinedGroups: ["string"],
protocol: 0,
protocols: [0],
serviceGroupNames: [{
name: "string",
protocols: [0],
serviceSetType: 0,
setId: "string",
}],
serviceGroups: ["string"],
serviceSetId: "string",
serviceSetName: "string",
serviceSetType: 0,
sourcePort: "string",
},
addressType: 0,
type: 0,
status: 0,
source: {
type: 0,
domainAddressName: "string",
addressSetId: "string",
addressSetName: "string",
addressSetType: 0,
addressType: 0,
address: "string",
domainSetId: "string",
domainSetName: "string",
ipAddresses: ["string"],
predefinedGroups: ["string"],
regionListJson: "string",
regionLists: [{
regionId: "string",
regionType: 0,
}],
addressGroups: ["string"],
},
destination: {
type: 0,
domainAddressName: "string",
addressSetId: "string",
addressSetName: "string",
addressSetType: 0,
addressType: 0,
address: "string",
domainSetId: "string",
domainSetName: "string",
ipAddresses: ["string"],
predefinedGroups: ["string"],
regionListJson: "string",
regionLists: [{
regionId: "string",
regionType: 0,
}],
addressGroups: ["string"],
},
actionType: 0,
longConnectEnable: 0,
sequence: {
bottom: 0,
destRuleId: "string",
top: 0,
},
objectId: "string",
name: "string",
longConnectTimeSecond: 0,
longConnectTimeMinute: 0,
longConnectTime: 0,
longConnectTimeHour: 0,
direction: 0,
description: "string",
applicationsJsonString: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
applications: ["string"],
});
type: opentelekomcloud:CfwAclRuleV1
properties:
actionType: 0
addressType: 0
applications:
- string
applicationsJsonString: string
description: string
destination:
address: string
addressGroups:
- string
addressSetId: string
addressSetName: string
addressSetType: 0
addressType: 0
domainAddressName: string
domainSetId: string
domainSetName: string
ipAddresses:
- string
predefinedGroups:
- string
regionListJson: string
regionLists:
- regionId: string
regionType: 0
type: 0
direction: 0
longConnectEnable: 0
longConnectTime: 0
longConnectTimeHour: 0
longConnectTimeMinute: 0
longConnectTimeSecond: 0
name: string
objectId: string
sequence:
bottom: 0
destRuleId: string
top: 0
service:
customServices:
- description: string
destPort: string
name: string
protocol: 0
sourcePort: string
destPort: string
predefinedGroups:
- string
protocol: 0
protocols:
- 0
serviceGroupNames:
- name: string
protocols:
- 0
serviceSetType: 0
setId: string
serviceGroups:
- string
serviceSetId: string
serviceSetName: string
serviceSetType: 0
sourcePort: string
type: 0
source:
address: string
addressGroups:
- string
addressSetId: string
addressSetName: string
addressSetType: 0
addressType: 0
domainAddressName: string
domainSetId: string
domainSetName: string
ipAddresses:
- string
predefinedGroups:
- string
regionListJson: string
regionLists:
- regionId: string
regionType: 0
type: 0
status: 0
timeouts:
create: string
delete: string
update: string
type: 0
CfwAclRuleV1 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 CfwAclRuleV1 resource accepts the following input properties:
- Action
Type double - Specifies the rule action:
0
(permit),1
(deny). - Address
Type double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Destination
Cfw
Acl Rule V1Destination - Specifies the destination address Data Transport Object. The destination structure is documented below.
- Long
Connect doubleEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - Object
Id string - 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.
- Sequence
Cfw
Acl Rule V1Sequence - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- Service
Cfw
Acl Rule V1Service Specifies the service object. The service structure is documented below.
The
sequence
block supports:- Source
Cfw
Acl Rule V1Source - Specifies the source address Data Transport Object. The source structure is documented below.
- Status double
- Specifies the rule status:
0
(disabled),1
(enabled). - Type double
- Specifies the service input type:
0
(manual),1
(automatic). - Applications List<string>
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - Applications
Json stringString - Specifies the JSON string converted from the
applications
field in the application list. - Description string
- Specifies the description of the rule.
- Direction double
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - Long
Connect doubleTime - Specifies the persistent connection duration.
- Long
Connect doubleTime Hour - Specifies the persistent connection duration (hour).
- Long
Connect doubleTime Minute - Specifies the persistent connection duration (minute).
- Long
Connect doubleTime Second - Specifies the persistent connection duration (second).
- Name string
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- Timeouts
Cfw
Acl Rule V1Timeouts
- Action
Type float64 - Specifies the rule action:
0
(permit),1
(deny). - Address
Type float64 - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Destination
Cfw
Acl Rule V1Destination Args - Specifies the destination address Data Transport Object. The destination structure is documented below.
- Long
Connect float64Enable - Specifies whether to support persistent connections:
0
(no),1
(yes). - Object
Id string - 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.
- Sequence
Cfw
Acl Rule V1Sequence Args - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- Service
Cfw
Acl Rule V1Service Args Specifies the service object. The service structure is documented below.
The
sequence
block supports:- Source
Cfw
Acl Rule V1Source Args - Specifies the source address Data Transport Object. The source structure is documented below.
- Status float64
- Specifies the rule status:
0
(disabled),1
(enabled). - Type float64
- Specifies the service input type:
0
(manual),1
(automatic). - Applications []string
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - Applications
Json stringString - Specifies the JSON string converted from the
applications
field in the application list. - Description string
- Specifies the description of the rule.
- Direction float64
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - Long
Connect float64Time - Specifies the persistent connection duration.
- Long
Connect float64Time Hour - Specifies the persistent connection duration (hour).
- Long
Connect float64Time Minute - Specifies the persistent connection duration (minute).
- Long
Connect float64Time Second - Specifies the persistent connection duration (second).
- Name string
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- Timeouts
Cfw
Acl Rule V1Timeouts Args
- action
Type Double - Specifies the rule action:
0
(permit),1
(deny). - address
Type Double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - destination
Cfw
Acl Rule V1Destination - Specifies the destination address Data Transport Object. The destination structure is documented below.
- long
Connect DoubleEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - object
Id String - 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.
- sequence
Cfw
Acl Rule V1Sequence - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service
Cfw
Acl Rule V1Service Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source
Cfw
Acl Rule V1Source - Specifies the source address Data Transport Object. The source structure is documented below.
- status Double
- Specifies the rule status:
0
(disabled),1
(enabled). - type Double
- Specifies the service input type:
0
(manual),1
(automatic). - applications List<String>
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications
Json StringString - Specifies the JSON string converted from the
applications
field in the application list. - description String
- Specifies the description of the rule.
- direction Double
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - long
Connect DoubleTime - Specifies the persistent connection duration.
- long
Connect DoubleTime Hour - Specifies the persistent connection duration (hour).
- long
Connect DoubleTime Minute - Specifies the persistent connection duration (minute).
- long
Connect DoubleTime Second - Specifies the persistent connection duration (second).
- name String
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- timeouts
Cfw
Acl Rule V1Timeouts
- action
Type number - Specifies the rule action:
0
(permit),1
(deny). - address
Type number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - destination
Cfw
Acl Rule V1Destination - Specifies the destination address Data Transport Object. The destination structure is documented below.
- long
Connect numberEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - object
Id string - 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.
- sequence
Cfw
Acl Rule V1Sequence - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service
Cfw
Acl Rule V1Service Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source
Cfw
Acl Rule V1Source - Specifies the source address Data Transport Object. The source structure is documented below.
- status number
- Specifies the rule status:
0
(disabled),1
(enabled). - type number
- Specifies the service input type:
0
(manual),1
(automatic). - applications string[]
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications
Json stringString - Specifies the JSON string converted from the
applications
field in the application list. - description string
- Specifies the description of the rule.
- direction number
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - long
Connect numberTime - Specifies the persistent connection duration.
- long
Connect numberTime Hour - Specifies the persistent connection duration (hour).
- long
Connect numberTime Minute - Specifies the persistent connection duration (minute).
- long
Connect numberTime Second - Specifies the persistent connection duration (second).
- name string
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- timeouts
Cfw
Acl Rule V1Timeouts
- action_
type float - Specifies the rule action:
0
(permit),1
(deny). - address_
type float - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - destination
Cfw
Acl Rule V1Destination Args - Specifies the destination address Data Transport Object. The destination structure is documented below.
- long_
connect_ floatenable - Specifies whether to support persistent connections:
0
(no),1
(yes). - object_
id str - 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.
- sequence
Cfw
Acl Rule V1Sequence Args - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service
Cfw
Acl Rule V1Service Args Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source
Cfw
Acl Rule V1Source Args - Specifies the source address Data Transport Object. The source structure is documented below.
- status float
- Specifies the rule status:
0
(disabled),1
(enabled). - type float
- Specifies the service input type:
0
(manual),1
(automatic). - applications Sequence[str]
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications_
json_ strstring - Specifies the JSON string converted from the
applications
field in the application list. - description str
- Specifies the description of the rule.
- direction float
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - long_
connect_ floattime - Specifies the persistent connection duration.
- long_
connect_ floattime_ hour - Specifies the persistent connection duration (hour).
- long_
connect_ floattime_ minute - Specifies the persistent connection duration (minute).
- long_
connect_ floattime_ second - Specifies the persistent connection duration (second).
- name str
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- timeouts
Cfw
Acl Rule V1Timeouts Args
- action
Type Number - Specifies the rule action:
0
(permit),1
(deny). - address
Type Number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - destination Property Map
- Specifies the destination address Data Transport Object. The destination structure is documented below.
- long
Connect NumberEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - object
Id String - 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.
- sequence Property Map
- Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service Property Map
Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source Property Map
- Specifies the source address Data Transport Object. The source structure is documented below.
- status Number
- Specifies the rule status:
0
(disabled),1
(enabled). - type Number
- Specifies the service input type:
0
(manual),1
(automatic). - applications List<String>
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications
Json StringString - Specifies the JSON string converted from the
applications
field in the application list. - description String
- Specifies the description of the rule.
- direction Number
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - long
Connect NumberTime - Specifies the persistent connection duration.
- long
Connect NumberTime Hour - Specifies the persistent connection duration (hour).
- long
Connect NumberTime Minute - Specifies the persistent connection duration (minute).
- long
Connect NumberTime Second - Specifies the persistent connection duration (second).
- name String
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwAclRuleV1 resource produces the following output properties:
- Created
Date string - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Open stringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- Created
Date string - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Open stringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- created
Date String - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Open StringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- created
Date string - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Open stringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- created_
date str - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
open_ strtime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- created
Date String - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Open StringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
Look up Existing CfwAclRuleV1 Resource
Get an existing CfwAclRuleV1 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?: CfwAclRuleV1State, opts?: CustomResourceOptions): CfwAclRuleV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_type: Optional[float] = None,
address_type: Optional[float] = None,
applications: Optional[Sequence[str]] = None,
applications_json_string: Optional[str] = None,
created_date: Optional[str] = None,
description: Optional[str] = None,
destination: Optional[CfwAclRuleV1DestinationArgs] = None,
direction: Optional[float] = None,
last_open_time: Optional[str] = None,
long_connect_enable: Optional[float] = None,
long_connect_time: Optional[float] = None,
long_connect_time_hour: Optional[float] = None,
long_connect_time_minute: Optional[float] = None,
long_connect_time_second: Optional[float] = None,
name: Optional[str] = None,
object_id: Optional[str] = None,
sequence: Optional[CfwAclRuleV1SequenceArgs] = None,
service: Optional[CfwAclRuleV1ServiceArgs] = None,
source: Optional[CfwAclRuleV1SourceArgs] = None,
status: Optional[float] = None,
timeouts: Optional[CfwAclRuleV1TimeoutsArgs] = None,
type: Optional[float] = None) -> CfwAclRuleV1
func GetCfwAclRuleV1(ctx *Context, name string, id IDInput, state *CfwAclRuleV1State, opts ...ResourceOption) (*CfwAclRuleV1, error)
public static CfwAclRuleV1 Get(string name, Input<string> id, CfwAclRuleV1State? state, CustomResourceOptions? opts = null)
public static CfwAclRuleV1 get(String name, Output<String> id, CfwAclRuleV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CfwAclRuleV1 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.
- Action
Type double - Specifies the rule action:
0
(permit),1
(deny). - Address
Type double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Applications List<string>
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - Applications
Json stringString - Specifies the JSON string converted from the
applications
field in the application list. - Created
Date string - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- Description string
- Specifies the description of the rule.
- Destination
Cfw
Acl Rule V1Destination - Specifies the destination address Data Transport Object. The destination structure is documented below.
- Direction double
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - Last
Open stringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- Long
Connect doubleEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - Long
Connect doubleTime - Specifies the persistent connection duration.
- Long
Connect doubleTime Hour - Specifies the persistent connection duration (hour).
- Long
Connect doubleTime Minute - Specifies the persistent connection duration (minute).
- Long
Connect doubleTime Second - Specifies the persistent connection duration (second).
- Name string
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- Object
Id string - 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.
- Sequence
Cfw
Acl Rule V1Sequence - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- Service
Cfw
Acl Rule V1Service Specifies the service object. The service structure is documented below.
The
sequence
block supports:- Source
Cfw
Acl Rule V1Source - Specifies the source address Data Transport Object. The source structure is documented below.
- Status double
- Specifies the rule status:
0
(disabled),1
(enabled). - Timeouts
Cfw
Acl Rule V1Timeouts - Type double
- Specifies the service input type:
0
(manual),1
(automatic).
- Action
Type float64 - Specifies the rule action:
0
(permit),1
(deny). - Address
Type float64 - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Applications []string
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - Applications
Json stringString - Specifies the JSON string converted from the
applications
field in the application list. - Created
Date string - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- Description string
- Specifies the description of the rule.
- Destination
Cfw
Acl Rule V1Destination Args - Specifies the destination address Data Transport Object. The destination structure is documented below.
- Direction float64
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - Last
Open stringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- Long
Connect float64Enable - Specifies whether to support persistent connections:
0
(no),1
(yes). - Long
Connect float64Time - Specifies the persistent connection duration.
- Long
Connect float64Time Hour - Specifies the persistent connection duration (hour).
- Long
Connect float64Time Minute - Specifies the persistent connection duration (minute).
- Long
Connect float64Time Second - Specifies the persistent connection duration (second).
- Name string
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- Object
Id string - 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.
- Sequence
Cfw
Acl Rule V1Sequence Args - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- Service
Cfw
Acl Rule V1Service Args Specifies the service object. The service structure is documented below.
The
sequence
block supports:- Source
Cfw
Acl Rule V1Source Args - Specifies the source address Data Transport Object. The source structure is documented below.
- Status float64
- Specifies the rule status:
0
(disabled),1
(enabled). - Timeouts
Cfw
Acl Rule V1Timeouts Args - Type float64
- Specifies the service input type:
0
(manual),1
(automatic).
- action
Type Double - Specifies the rule action:
0
(permit),1
(deny). - address
Type Double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - applications List<String>
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications
Json StringString - Specifies the JSON string converted from the
applications
field in the application list. - created
Date String - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- description String
- Specifies the description of the rule.
- destination
Cfw
Acl Rule V1Destination - Specifies the destination address Data Transport Object. The destination structure is documented below.
- direction Double
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - last
Open StringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- long
Connect DoubleEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - long
Connect DoubleTime - Specifies the persistent connection duration.
- long
Connect DoubleTime Hour - Specifies the persistent connection duration (hour).
- long
Connect DoubleTime Minute - Specifies the persistent connection duration (minute).
- long
Connect DoubleTime Second - Specifies the persistent connection duration (second).
- name String
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- object
Id String - 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.
- sequence
Cfw
Acl Rule V1Sequence - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service
Cfw
Acl Rule V1Service Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source
Cfw
Acl Rule V1Source - Specifies the source address Data Transport Object. The source structure is documented below.
- status Double
- Specifies the rule status:
0
(disabled),1
(enabled). - timeouts
Cfw
Acl Rule V1Timeouts - type Double
- Specifies the service input type:
0
(manual),1
(automatic).
- action
Type number - Specifies the rule action:
0
(permit),1
(deny). - address
Type number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - applications string[]
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications
Json stringString - Specifies the JSON string converted from the
applications
field in the application list. - created
Date string - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- description string
- Specifies the description of the rule.
- destination
Cfw
Acl Rule V1Destination - Specifies the destination address Data Transport Object. The destination structure is documented below.
- direction number
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - last
Open stringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- long
Connect numberEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - long
Connect numberTime - Specifies the persistent connection duration.
- long
Connect numberTime Hour - Specifies the persistent connection duration (hour).
- long
Connect numberTime Minute - Specifies the persistent connection duration (minute).
- long
Connect numberTime Second - Specifies the persistent connection duration (second).
- name string
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- object
Id string - 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.
- sequence
Cfw
Acl Rule V1Sequence - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service
Cfw
Acl Rule V1Service Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source
Cfw
Acl Rule V1Source - Specifies the source address Data Transport Object. The source structure is documented below.
- status number
- Specifies the rule status:
0
(disabled),1
(enabled). - timeouts
Cfw
Acl Rule V1Timeouts - type number
- Specifies the service input type:
0
(manual),1
(automatic).
- action_
type float - Specifies the rule action:
0
(permit),1
(deny). - address_
type float - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - applications Sequence[str]
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications_
json_ strstring - Specifies the JSON string converted from the
applications
field in the application list. - created_
date str - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- description str
- Specifies the description of the rule.
- destination
Cfw
Acl Rule V1Destination Args - Specifies the destination address Data Transport Object. The destination structure is documented below.
- direction float
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - last_
open_ strtime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- long_
connect_ floatenable - Specifies whether to support persistent connections:
0
(no),1
(yes). - long_
connect_ floattime - Specifies the persistent connection duration.
- long_
connect_ floattime_ hour - Specifies the persistent connection duration (hour).
- long_
connect_ floattime_ minute - Specifies the persistent connection duration (minute).
- long_
connect_ floattime_ second - Specifies the persistent connection duration (second).
- name str
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- object_
id str - 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.
- sequence
Cfw
Acl Rule V1Sequence Args - Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service
Cfw
Acl Rule V1Service Args Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source
Cfw
Acl Rule V1Source Args - Specifies the source address Data Transport Object. The source structure is documented below.
- status float
- Specifies the rule status:
0
(disabled),1
(enabled). - timeouts
Cfw
Acl Rule V1Timeouts Args - type float
- Specifies the service input type:
0
(manual),1
(automatic).
- action
Type Number - Specifies the rule action:
0
(permit),1
(deny). - address
Type Number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - applications List<String>
- Specifies the rule application list . Allowed list values:
HTTP
,HTTPS
,TLS1
,DNS
,SSH
,MYSQL
,SMTP
,RDP
,RDPS
,VNC
,POP3
,IMAP4
,SMTPS
,POP3S
,FTPS
,ANY
, orBGP
. - applications
Json StringString - Specifies the JSON string converted from the
applications
field in the application list. - created
Date String - Indicates the Rule creation time in YYYY-MM-DD hh:mm:ss format.
- description String
- Specifies the description of the rule.
- destination Property Map
- Specifies the destination address Data Transport Object. The destination structure is documented below.
- direction Number
- Specifies the Direction:
0
(inbound) or1
(outbound). This parameter is mandatory whentype
is set to0
(Internet rule) or2
(NAT rule). - last
Open StringTime - Indicates the Last time when the rule was enabled in YYYY-MM-DD hh:mm:ss format.
- long
Connect NumberEnable - Specifies whether to support persistent connections:
0
(no),1
(yes). - long
Connect NumberTime - Specifies the persistent connection duration.
- long
Connect NumberTime Hour - Specifies the persistent connection duration (hour).
- long
Connect NumberTime Minute - Specifies the persistent connection duration (minute).
- long
Connect NumberTime Second - Specifies the persistent connection duration (second).
- name String
- Specifies the CFW ACL rule name. The CFW ACL rule name of the same type is unique in the same firewall instance.
- object
Id String - 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.
- sequence Property Map
- Specifies the request body for changing the rule sequence. The sequence structure is documented below.
- service Property Map
Specifies the service object. The service structure is documented below.
The
sequence
block supports:- source Property Map
- Specifies the source address Data Transport Object. The source structure is documented below.
- status Number
- Specifies the rule status:
0
(disabled),1
(enabled). - timeouts Property Map
- type Number
- Specifies the service input type:
0
(manual),1
(automatic).
Supporting Types
CfwAclRuleV1Destination, CfwAclRuleV1DestinationArgs
- Type double
- Specifies the service input type:
0
(manual),1
(automatic). - Address string
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- Address
Groups List<string> Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- Address
Set stringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set stringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set doubleType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Address
Type double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Domain
Address stringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- Domain
Set stringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Domain
Set stringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Ip
Addresses List<string> - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- Predefined
Groups List<string> - Specifies the pre-defined service group ID list.
- Region
List stringJson - Specifies the JSON value of the rule region list.
- Region
Lists List<CfwAcl Rule V1Destination Region List> - Specifies the rule region list.
- Type float64
- Specifies the service input type:
0
(manual),1
(automatic). - Address string
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- Address
Groups []string Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- Address
Set stringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set stringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set float64Type - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Address
Type float64 - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Domain
Address stringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- Domain
Set stringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Domain
Set stringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Ip
Addresses []string - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- Predefined
Groups []string - Specifies the pre-defined service group ID list.
- Region
List stringJson - Specifies the JSON value of the rule region list.
- Region
Lists []CfwAcl Rule V1Destination Region List - Specifies the rule region list.
- type Double
- Specifies the service input type:
0
(manual),1
(automatic). - address String
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address
Groups List<String> Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address
Set StringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set StringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set DoubleType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type Double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain
Address StringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain
Set StringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain
Set StringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip
Addresses List<String> - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined
Groups List<String> - Specifies the pre-defined service group ID list.
- region
List StringJson - Specifies the JSON value of the rule region list.
- region
Lists List<CfwAcl Rule V1Destination Region List> - Specifies the rule region list.
- type number
- Specifies the service input type:
0
(manual),1
(automatic). - address string
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address
Groups string[] Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address
Set stringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set stringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set numberType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain
Address stringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain
Set stringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain
Set stringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip
Addresses string[] - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined
Groups string[] - Specifies the pre-defined service group ID list.
- region
List stringJson - Specifies the JSON value of the rule region list.
- region
Lists CfwAcl Rule V1Destination Region List[] - Specifies the rule region list.
- type float
- Specifies the service input type:
0
(manual),1
(automatic). - address str
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address_
groups Sequence[str] Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address_
set_ strid - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address_
set_ strname - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address_
set_ floattype - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address_
type float - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain_
address_ strname - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain_
set_ strid - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain_
set_ strname - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip_
addresses Sequence[str] - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined_
groups Sequence[str] - Specifies the pre-defined service group ID list.
- region_
list_ strjson - Specifies the JSON value of the rule region list.
- region_
lists Sequence[CfwAcl Rule V1Destination Region List] - Specifies the rule region list.
- type Number
- Specifies the service input type:
0
(manual),1
(automatic). - address String
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address
Groups List<String> Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address
Set StringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set StringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set NumberType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type Number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain
Address StringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain
Set StringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain
Set StringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip
Addresses List<String> - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined
Groups List<String> - Specifies the pre-defined service group ID list.
- region
List StringJson - Specifies the JSON value of the rule region list.
- region
Lists List<Property Map> - Specifies the rule region list.
CfwAclRuleV1DestinationRegionList, CfwAclRuleV1DestinationRegionListArgs
- Region
Id string - Specifies the region ID.
- Region
Type double - Specifies the region type:
0
(country),1
(province), and2
(continent).
- Region
Id string - Specifies the region ID.
- Region
Type float64 - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region
Id String - Specifies the region ID.
- region
Type Double - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region
Id string - Specifies the region ID.
- region
Type number - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region_
id str - Specifies the region ID.
- region_
type float - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region
Id String - Specifies the region ID.
- region
Type Number - Specifies the region type:
0
(country),1
(province), and2
(continent).
CfwAclRuleV1Sequence, CfwAclRuleV1SequenceArgs
- Bottom double
Specifies whether to pin to bottom:
0
(no),1
(yes).The
source
anddestination
block supports:- Dest
Rule stringId - Specifies the ID of the target rule.
- Top double
- Specifies whether to pin on top:
0
(no),1
(yes).
- Bottom float64
Specifies whether to pin to bottom:
0
(no),1
(yes).The
source
anddestination
block supports:- Dest
Rule stringId - Specifies the ID of the target rule.
- Top float64
- Specifies whether to pin on top:
0
(no),1
(yes).
- bottom Double
Specifies whether to pin to bottom:
0
(no),1
(yes).The
source
anddestination
block supports:- dest
Rule StringId - Specifies the ID of the target rule.
- top Double
- Specifies whether to pin on top:
0
(no),1
(yes).
- bottom number
Specifies whether to pin to bottom:
0
(no),1
(yes).The
source
anddestination
block supports:- dest
Rule stringId - Specifies the ID of the target rule.
- top number
- Specifies whether to pin on top:
0
(no),1
(yes).
- bottom float
Specifies whether to pin to bottom:
0
(no),1
(yes).The
source
anddestination
block supports:- dest_
rule_ strid - Specifies the ID of the target rule.
- top float
- Specifies whether to pin on top:
0
(no),1
(yes).
- bottom Number
Specifies whether to pin to bottom:
0
(no),1
(yes).The
source
anddestination
block supports:- dest
Rule StringId - Specifies the ID of the target rule.
- top Number
- Specifies whether to pin on top:
0
(no),1
(yes).
CfwAclRuleV1Service, CfwAclRuleV1ServiceArgs
- Type double
- Specifies the service input type:
0
(manual),1
(automatic). - Custom
Services List<CfwAcl Rule V1Service Custom Service> - Specifies the custom service.
- Dest
Port string - Specifies the destination port.
- Predefined
Groups List<string> - Specifies the pre-defined service group ID list.
- Protocol double
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - Protocols List<double>
- Specifies the protocol list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - Service
Group List<CfwNames Acl Rule V1Service Service Group Name> - Specifies the service group name list.
- Service
Groups List<string> - Specifies the service group ID list.
- Service
Set stringId - Specifies the Service group ID. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- Service
Set stringName - Specifies the Service group name. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- Service
Set doubleType - Specifies the service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - Source
Port string - Specifies the source port.
- Type float64
- Specifies the service input type:
0
(manual),1
(automatic). - Custom
Services []CfwAcl Rule V1Service Custom Service - Specifies the custom service.
- Dest
Port string - Specifies the destination port.
- Predefined
Groups []string - Specifies the pre-defined service group ID list.
- Protocol float64
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - Protocols []float64
- Specifies the protocol list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - Service
Group []CfwNames Acl Rule V1Service Service Group Name - Specifies the service group name list.
- Service
Groups []string - Specifies the service group ID list.
- Service
Set stringId - Specifies the Service group ID. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- Service
Set stringName - Specifies the Service group name. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- Service
Set float64Type - Specifies the service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - Source
Port string - Specifies the source port.
- type Double
- Specifies the service input type:
0
(manual),1
(automatic). - custom
Services List<CfwAcl Rule V1Service Custom Service> - Specifies the custom service.
- dest
Port String - Specifies the destination port.
- predefined
Groups List<String> - Specifies the pre-defined service group ID list.
- protocol Double
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - protocols List<Double>
- Specifies the protocol list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - service
Group List<CfwNames Acl Rule V1Service Service Group Name> - Specifies the service group name list.
- service
Groups List<String> - Specifies the service group ID list.
- service
Set StringId - Specifies the Service group ID. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service
Set StringName - Specifies the Service group name. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service
Set DoubleType - Specifies the service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - source
Port String - Specifies the source port.
- type number
- Specifies the service input type:
0
(manual),1
(automatic). - custom
Services CfwAcl Rule V1Service Custom Service[] - Specifies the custom service.
- dest
Port string - Specifies the destination port.
- predefined
Groups string[] - Specifies the pre-defined service group ID list.
- protocol number
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - protocols number[]
- Specifies the protocol list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - service
Group CfwNames Acl Rule V1Service Service Group Name[] - Specifies the service group name list.
- service
Groups string[] - Specifies the service group ID list.
- service
Set stringId - Specifies the Service group ID. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service
Set stringName - Specifies the Service group name. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service
Set numberType - Specifies the service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - source
Port string - Specifies the source port.
- type float
- Specifies the service input type:
0
(manual),1
(automatic). - custom_
services Sequence[CfwAcl Rule V1Service Custom Service] - Specifies the custom service.
- dest_
port str - Specifies the destination port.
- predefined_
groups Sequence[str] - Specifies the pre-defined service group ID list.
- protocol float
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - protocols Sequence[float]
- Specifies the protocol list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - service_
group_ Sequence[Cfwnames Acl Rule V1Service Service Group Name] - Specifies the service group name list.
- service_
groups Sequence[str] - Specifies the service group ID list.
- service_
set_ strid - Specifies the Service group ID. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service_
set_ strname - Specifies the Service group name. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service_
set_ floattype - Specifies the service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - source_
port str - Specifies the source port.
- type Number
- Specifies the service input type:
0
(manual),1
(automatic). - custom
Services List<Property Map> - Specifies the custom service.
- dest
Port String - Specifies the destination port.
- predefined
Groups List<String> - Specifies the pre-defined service group ID list.
- protocol Number
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - protocols List<Number>
- Specifies the protocol list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank when type is set to 0 (manual). - service
Group List<Property Map>Names - Specifies the service group name list.
- service
Groups List<String> - Specifies the service group ID list.
- service
Set StringId - Specifies the Service group ID. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service
Set StringName - Specifies the Service group name. This parameter cannot be left blank when type is set to 1 (associated IP address group).
- service
Set NumberType - Specifies the service group type:
0
(user-defined service group),1
(common web service),2
(common remote login and ping), or3
(common database). - source
Port String - Specifies the source port.
CfwAclRuleV1ServiceCustomService, CfwAclRuleV1ServiceCustomServiceArgs
- Description string
- Specifies the service member description.
- Dest
Port string - Specifies the destination port.
- Name string
- Specifies the service member name.
- Protocol double
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank whentype
is set to 0 (manual) inservice
block. - Source
Port string - Specifies the source port.
- Description string
- Specifies the service member description.
- Dest
Port string - Specifies the destination port.
- Name string
- Specifies the service member name.
- Protocol float64
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank whentype
is set to 0 (manual) inservice
block. - Source
Port string - Specifies the source port.
- description String
- Specifies the service member description.
- dest
Port String - Specifies the destination port.
- name String
- Specifies the service member name.
- protocol Double
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank whentype
is set to 0 (manual) inservice
block. - source
Port String - Specifies the source port.
- description string
- Specifies the service member description.
- dest
Port string - Specifies the destination port.
- name string
- Specifies the service member name.
- protocol number
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank whentype
is set to 0 (manual) inservice
block. - source
Port string - Specifies the source port.
- description str
- Specifies the service member description.
- dest_
port str - Specifies the destination port.
- name str
- Specifies the service member name.
- protocol float
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank whentype
is set to 0 (manual) inservice
block. - source_
port str - Specifies the source port.
- description String
- Specifies the service member description.
- dest
Port String - Specifies the destination port.
- name String
- Specifies the service member name.
- protocol Number
- Specifies the protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). It cannot be left blank whentype
is set to 0 (manual) inservice
block. - source
Port String - Specifies the source port.
CfwAclRuleV1ServiceServiceGroupName, CfwAclRuleV1ServiceServiceGroupNameArgs
- Name string
- Specifies the service group name.
- Protocols List<double>
- Specifies the protocols list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). - Service
Set doubleType - Specifies the service group type:
0
(user-defined service group),1
(predefined service group). - Set
Id string - Specifies the service group ID.
- Name string
- Specifies the service group name.
- Protocols []float64
- Specifies the protocols list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). - Service
Set float64Type - Specifies the service group type:
0
(user-defined service group),1
(predefined service group). - Set
Id string - Specifies the service group ID.
- name String
- Specifies the service group name.
- protocols List<Double>
- Specifies the protocols list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). - service
Set DoubleType - Specifies the service group type:
0
(user-defined service group),1
(predefined service group). - set
Id String - Specifies the service group ID.
- name string
- Specifies the service group name.
- protocols number[]
- Specifies the protocols list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). - service
Set numberType - Specifies the service group type:
0
(user-defined service group),1
(predefined service group). - set
Id string - Specifies the service group ID.
- name str
- Specifies the service group name.
- protocols Sequence[float]
- Specifies the protocols list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). - service_
set_ floattype - Specifies the service group type:
0
(user-defined service group),1
(predefined service group). - set_
id str - Specifies the service group ID.
- name String
- Specifies the service group name.
- protocols List<Number>
- Specifies the protocols list. Permitted list values:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or-1
(any). - service
Set NumberType - Specifies the service group type:
0
(user-defined service group),1
(predefined service group). - set
Id String - Specifies the service group ID.
CfwAclRuleV1Source, CfwAclRuleV1SourceArgs
- Type double
- Specifies the service input type:
0
(manual),1
(automatic). - Address string
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- Address
Groups List<string> Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- Address
Set stringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set stringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set doubleType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Address
Type double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Domain
Address stringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- Domain
Set stringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Domain
Set stringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Ip
Addresses List<string> - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- Predefined
Groups List<string> - Specifies the pre-defined service group ID list.
- Region
List stringJson - Specifies the JSON value of the rule region list.
- Region
Lists List<CfwAcl Rule V1Source Region List> - Specifies the rule region list.
- Type float64
- Specifies the service input type:
0
(manual),1
(automatic). - Address string
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- Address
Groups []string Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- Address
Set stringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set stringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- Address
Set float64Type - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - Address
Type float64 - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - Domain
Address stringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- Domain
Set stringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Domain
Set stringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- Ip
Addresses []string - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- Predefined
Groups []string - Specifies the pre-defined service group ID list.
- Region
List stringJson - Specifies the JSON value of the rule region list.
- Region
Lists []CfwAcl Rule V1Source Region List - Specifies the rule region list.
- type Double
- Specifies the service input type:
0
(manual),1
(automatic). - address String
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address
Groups List<String> Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address
Set StringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set StringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set DoubleType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type Double - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain
Address StringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain
Set StringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain
Set StringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip
Addresses List<String> - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined
Groups List<String> - Specifies the pre-defined service group ID list.
- region
List StringJson - Specifies the JSON value of the rule region list.
- region
Lists List<CfwAcl Rule V1Source Region List> - Specifies the rule region list.
- type number
- Specifies the service input type:
0
(manual),1
(automatic). - address string
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address
Groups string[] Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address
Set stringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set stringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set numberType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain
Address stringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain
Set stringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain
Set stringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip
Addresses string[] - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined
Groups string[] - Specifies the pre-defined service group ID list.
- region
List stringJson - Specifies the JSON value of the rule region list.
- region
Lists CfwAcl Rule V1Source Region List[] - Specifies the rule region list.
- type float
- Specifies the service input type:
0
(manual),1
(automatic). - address str
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address_
groups Sequence[str] Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address_
set_ strid - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address_
set_ strname - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address_
set_ floattype - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address_
type float - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain_
address_ strname - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain_
set_ strid - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain_
set_ strname - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip_
addresses Sequence[str] - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined_
groups Sequence[str] - Specifies the pre-defined service group ID list.
- region_
list_ strjson - Specifies the JSON value of the rule region list.
- region_
lists Sequence[CfwAcl Rule V1Source Region List] - Specifies the rule region list.
- type Number
- Specifies the service input type:
0
(manual),1
(automatic). - address String
- Specifies the IP address information. It cannot be left blank if type is set to 0.
- address
Groups List<String> Specifies the Address group ID list. This parameter cannot be left blank when type is set to 5 (multiple objects).
The
service
block supports:- address
Set StringId - Specifies the ID of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set StringName - Specifies the name of an associated IP address group. This parameter cannot be left blank when type is set to 1.
- address
Set NumberType - Specifies the Address group type. It cannot be left blank when type is set to 1 (associated IP address group). It value can be
0
(user-defined address group),1
(WAF back-to-source IP address group),2
(DDoS back-to-source IP address group), or3
(NAT64 address group). - address
Type Number - Specifies theInternet protocol type of an address:
0
(IPv4),1
(IPv6). If type is 0, this parameter cannot be left blank. - domain
Address StringName - Specifies the name of a domain name address. This parameter is valid when type is set to 2 (domain name) or 7 (application domain name group).
- domain
Set StringId - Specifies the domain group ID. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- domain
Set StringName - Specifies the domain group name. The value cannot be left blank when type is set to 4 (domain name group) or 7 (domain name group - application).
- ip
Addresses List<String> - Specifies the IP address list. This parameter cannot be left blank when type is set to 5 (multiple objects).
- predefined
Groups List<String> - Specifies the pre-defined service group ID list.
- region
List StringJson - Specifies the JSON value of the rule region list.
- region
Lists List<Property Map> - Specifies the rule region list.
CfwAclRuleV1SourceRegionList, CfwAclRuleV1SourceRegionListArgs
- Region
Id string - Specifies the region ID.
- Region
Type double - Specifies the region type:
0
(country),1
(province), and2
(continent).
- Region
Id string - Specifies the region ID.
- Region
Type float64 - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region
Id String - Specifies the region ID.
- region
Type Double - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region
Id string - Specifies the region ID.
- region
Type number - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region_
id str - Specifies the region ID.
- region_
type float - Specifies the region type:
0
(country),1
(province), and2
(continent).
- region
Id String - Specifies the region ID.
- region
Type Number - Specifies the region type:
0
(country),1
(province), and2
(continent).
CfwAclRuleV1Timeouts, CfwAclRuleV1TimeoutsArgs
Import
CFW ACL V1 Rule can be imported using the CFW Firewall protection object ID, object_id
and rule name name
, e.g.
$ pulumi import opentelekomcloud:index/cfwAclRuleV1:CfwAclRuleV1 rule_1 b4cd6aeb0b7445d3bf271457c6941544in09/name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.