1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. FwPolicyV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.FwPolicyV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPC firewall policy you can get at documentation portal

    Manages a v2 firewall policy resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const rule1 = new opentelekomcloud.FwRuleV2("rule1", {
        description: "drop TELNET traffic",
        action: "deny",
        protocol: "tcp",
        destinationPort: "23",
        enabled: true,
    });
    const rule2 = new opentelekomcloud.FwRuleV2("rule2", {
        description: "drop NTP traffic",
        action: "deny",
        protocol: "udp",
        destinationPort: "123",
        enabled: false,
    });
    const policy1 = new opentelekomcloud.FwPolicyV2("policy1", {rules: [
        rule1.fwRuleV2Id,
        rule2.fwRuleV2Id,
    ]});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    rule1 = opentelekomcloud.FwRuleV2("rule1",
        description="drop TELNET traffic",
        action="deny",
        protocol="tcp",
        destination_port="23",
        enabled=True)
    rule2 = opentelekomcloud.FwRuleV2("rule2",
        description="drop NTP traffic",
        action="deny",
        protocol="udp",
        destination_port="123",
        enabled=False)
    policy1 = opentelekomcloud.FwPolicyV2("policy1", rules=[
        rule1.fw_rule_v2_id,
        rule2.fw_rule_v2_id,
    ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		rule1, err := opentelekomcloud.NewFwRuleV2(ctx, "rule1", &opentelekomcloud.FwRuleV2Args{
    			Description:     pulumi.String("drop TELNET traffic"),
    			Action:          pulumi.String("deny"),
    			Protocol:        pulumi.String("tcp"),
    			DestinationPort: pulumi.String("23"),
    			Enabled:         pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		rule2, err := opentelekomcloud.NewFwRuleV2(ctx, "rule2", &opentelekomcloud.FwRuleV2Args{
    			Description:     pulumi.String("drop NTP traffic"),
    			Action:          pulumi.String("deny"),
    			Protocol:        pulumi.String("udp"),
    			DestinationPort: pulumi.String("123"),
    			Enabled:         pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewFwPolicyV2(ctx, "policy1", &opentelekomcloud.FwPolicyV2Args{
    			Rules: pulumi.StringArray{
    				rule1.FwRuleV2Id,
    				rule2.FwRuleV2Id,
    			},
    		})
    		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 rule1 = new Opentelekomcloud.FwRuleV2("rule1", new()
        {
            Description = "drop TELNET traffic",
            Action = "deny",
            Protocol = "tcp",
            DestinationPort = "23",
            Enabled = true,
        });
    
        var rule2 = new Opentelekomcloud.FwRuleV2("rule2", new()
        {
            Description = "drop NTP traffic",
            Action = "deny",
            Protocol = "udp",
            DestinationPort = "123",
            Enabled = false,
        });
    
        var policy1 = new Opentelekomcloud.FwPolicyV2("policy1", new()
        {
            Rules = new[]
            {
                rule1.FwRuleV2Id,
                rule2.FwRuleV2Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.FwRuleV2;
    import com.pulumi.opentelekomcloud.FwRuleV2Args;
    import com.pulumi.opentelekomcloud.FwPolicyV2;
    import com.pulumi.opentelekomcloud.FwPolicyV2Args;
    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) {
            var rule1 = new FwRuleV2("rule1", FwRuleV2Args.builder()
                .description("drop TELNET traffic")
                .action("deny")
                .protocol("tcp")
                .destinationPort("23")
                .enabled("true")
                .build());
    
            var rule2 = new FwRuleV2("rule2", FwRuleV2Args.builder()
                .description("drop NTP traffic")
                .action("deny")
                .protocol("udp")
                .destinationPort("123")
                .enabled("false")
                .build());
    
            var policy1 = new FwPolicyV2("policy1", FwPolicyV2Args.builder()
                .rules(            
                    rule1.fwRuleV2Id(),
                    rule2.fwRuleV2Id())
                .build());
    
        }
    }
    
    resources:
      rule1:
        type: opentelekomcloud:FwRuleV2
        properties:
          description: drop TELNET traffic
          action: deny
          protocol: tcp
          destinationPort: '23'
          enabled: 'true'
      rule2:
        type: opentelekomcloud:FwRuleV2
        properties:
          description: drop NTP traffic
          action: deny
          protocol: udp
          destinationPort: '123'
          enabled: 'false'
      policy1:
        type: opentelekomcloud:FwPolicyV2
        properties:
          rules:
            - ${rule1.fwRuleV2Id}
            - ${rule2.fwRuleV2Id}
    

    Create FwPolicyV2 Resource

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

    Constructor syntax

    new FwPolicyV2(name: string, args?: FwPolicyV2Args, opts?: CustomResourceOptions);
    @overload
    def FwPolicyV2(resource_name: str,
                   args: Optional[FwPolicyV2Args] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def FwPolicyV2(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   audited: Optional[bool] = None,
                   description: Optional[str] = None,
                   fw_policy_v2_id: Optional[str] = None,
                   name: Optional[str] = None,
                   region: Optional[str] = None,
                   rules: Optional[Sequence[str]] = None,
                   shared: Optional[bool] = None,
                   tenant_id: Optional[str] = None,
                   timeouts: Optional[FwPolicyV2TimeoutsArgs] = None,
                   value_specs: Optional[Mapping[str, str]] = None)
    func NewFwPolicyV2(ctx *Context, name string, args *FwPolicyV2Args, opts ...ResourceOption) (*FwPolicyV2, error)
    public FwPolicyV2(string name, FwPolicyV2Args? args = null, CustomResourceOptions? opts = null)
    public FwPolicyV2(String name, FwPolicyV2Args args)
    public FwPolicyV2(String name, FwPolicyV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:FwPolicyV2
    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 FwPolicyV2Args
    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 FwPolicyV2Args
    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 FwPolicyV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FwPolicyV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FwPolicyV2Args
    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 fwPolicyV2Resource = new Opentelekomcloud.FwPolicyV2("fwPolicyV2Resource", new()
    {
        Audited = false,
        Description = "string",
        FwPolicyV2Id = "string",
        Name = "string",
        Region = "string",
        Rules = new[]
        {
            "string",
        },
        Shared = false,
        TenantId = "string",
        Timeouts = new Opentelekomcloud.Inputs.FwPolicyV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        ValueSpecs = 
        {
            { "string", "string" },
        },
    });
    
    example, err := opentelekomcloud.NewFwPolicyV2(ctx, "fwPolicyV2Resource", &opentelekomcloud.FwPolicyV2Args{
    	Audited:      pulumi.Bool(false),
    	Description:  pulumi.String("string"),
    	FwPolicyV2Id: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	Rules: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Shared:   pulumi.Bool(false),
    	TenantId: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.FwPolicyV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	ValueSpecs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var fwPolicyV2Resource = new FwPolicyV2("fwPolicyV2Resource", FwPolicyV2Args.builder()
        .audited(false)
        .description("string")
        .fwPolicyV2Id("string")
        .name("string")
        .region("string")
        .rules("string")
        .shared(false)
        .tenantId("string")
        .timeouts(FwPolicyV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .valueSpecs(Map.of("string", "string"))
        .build());
    
    fw_policy_v2_resource = opentelekomcloud.FwPolicyV2("fwPolicyV2Resource",
        audited=False,
        description="string",
        fw_policy_v2_id="string",
        name="string",
        region="string",
        rules=["string"],
        shared=False,
        tenant_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        value_specs={
            "string": "string",
        })
    
    const fwPolicyV2Resource = new opentelekomcloud.FwPolicyV2("fwPolicyV2Resource", {
        audited: false,
        description: "string",
        fwPolicyV2Id: "string",
        name: "string",
        region: "string",
        rules: ["string"],
        shared: false,
        tenantId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        valueSpecs: {
            string: "string",
        },
    });
    
    type: opentelekomcloud:FwPolicyV2
    properties:
        audited: false
        description: string
        fwPolicyV2Id: string
        name: string
        region: string
        rules:
            - string
        shared: false
        tenantId: string
        timeouts:
            create: string
            delete: string
        valueSpecs:
            string: string
    

    FwPolicyV2 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 FwPolicyV2 resource accepts the following input properties:

    Audited bool
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    Description string
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    FwPolicyV2Id string
    Name string
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    Region string
    Rules List<string>
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    Shared bool
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    TenantId string
    Timeouts FwPolicyV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    Audited bool
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    Description string
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    FwPolicyV2Id string
    Name string
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    Region string
    Rules []string
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    Shared bool
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    TenantId string
    Timeouts FwPolicyV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional options.
    audited Boolean
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description String
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fwPolicyV2Id String
    name String
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region String
    rules List<String>
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared Boolean
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenantId String
    timeouts FwPolicyV2Timeouts
    valueSpecs Map<String,String>
    Map of additional options.
    audited boolean
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description string
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fwPolicyV2Id string
    name string
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region string
    rules string[]
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared boolean
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenantId string
    timeouts FwPolicyV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional options.
    audited bool
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description str
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fw_policy_v2_id str
    name str
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region str
    rules Sequence[str]
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared bool
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenant_id str
    timeouts FwPolicyV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional options.
    audited Boolean
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description String
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fwPolicyV2Id String
    name String
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region String
    rules List<String>
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared Boolean
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenantId String
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional options.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FwPolicyV2 Resource

    Get an existing FwPolicyV2 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?: FwPolicyV2State, opts?: CustomResourceOptions): FwPolicyV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            audited: Optional[bool] = None,
            description: Optional[str] = None,
            fw_policy_v2_id: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            rules: Optional[Sequence[str]] = None,
            shared: Optional[bool] = None,
            tenant_id: Optional[str] = None,
            timeouts: Optional[FwPolicyV2TimeoutsArgs] = None,
            value_specs: Optional[Mapping[str, str]] = None) -> FwPolicyV2
    func GetFwPolicyV2(ctx *Context, name string, id IDInput, state *FwPolicyV2State, opts ...ResourceOption) (*FwPolicyV2, error)
    public static FwPolicyV2 Get(string name, Input<string> id, FwPolicyV2State? state, CustomResourceOptions? opts = null)
    public static FwPolicyV2 get(String name, Output<String> id, FwPolicyV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:FwPolicyV2    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Audited bool
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    Description string
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    FwPolicyV2Id string
    Name string
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    Region string
    Rules List<string>
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    Shared bool
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    TenantId string
    Timeouts FwPolicyV2Timeouts
    ValueSpecs Dictionary<string, string>
    Map of additional options.
    Audited bool
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    Description string
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    FwPolicyV2Id string
    Name string
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    Region string
    Rules []string
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    Shared bool
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    TenantId string
    Timeouts FwPolicyV2TimeoutsArgs
    ValueSpecs map[string]string
    Map of additional options.
    audited Boolean
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description String
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fwPolicyV2Id String
    name String
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region String
    rules List<String>
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared Boolean
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenantId String
    timeouts FwPolicyV2Timeouts
    valueSpecs Map<String,String>
    Map of additional options.
    audited boolean
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description string
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fwPolicyV2Id string
    name string
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region string
    rules string[]
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared boolean
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenantId string
    timeouts FwPolicyV2Timeouts
    valueSpecs {[key: string]: string}
    Map of additional options.
    audited bool
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description str
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fw_policy_v2_id str
    name str
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region str
    rules Sequence[str]
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared bool
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenant_id str
    timeouts FwPolicyV2TimeoutsArgs
    value_specs Mapping[str, str]
    Map of additional options.
    audited Boolean
    Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the audited status of an existing firewall policy.
    description String
    A description for the firewall policy. Changing this updates the description of an existing firewall policy.
    fwPolicyV2Id String
    name String
    A name for the firewall policy. Changing this updates the name of an existing firewall policy.
    region String
    rules List<String>
    An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.
    shared Boolean
    Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the shared status of an existing firewall policy. Only administrative users can specify if the policy should be shared.
    tenantId String
    timeouts Property Map
    valueSpecs Map<String>
    Map of additional options.

    Supporting Types

    FwPolicyV2Timeouts, FwPolicyV2TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Firewall Policies can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/fwPolicyV2:FwPolicyV2 policy_1 07f422e6-c596-474b-8b94-fe2c12506ce0
    

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud