Show / Hide Table of Contents

Class Firewall

Manages a v1 firewall resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var rule1 = new OpenStack.Firewall.Rule("rule1", new OpenStack.Firewall.RuleArgs
    {
        Action = "deny",
        Description = "drop TELNET traffic",
        DestinationPort = "23",
        Enabled = "true",
        Protocol = "tcp",
    });
    var rule2 = new OpenStack.Firewall.Rule("rule2", new OpenStack.Firewall.RuleArgs
    {
        Action = "deny",
        Description = "drop NTP traffic",
        DestinationPort = "123",
        Enabled = "false",
        Protocol = "udp",
    });
    var policy1 = new OpenStack.Firewall.Policy("policy1", new OpenStack.Firewall.PolicyArgs
    {
        Rules = 
        {
            rule1.Id,
            rule2.Id,
        },
    });
    var firewall1 = new OpenStack.Firewall.Firewall("firewall1", new OpenStack.Firewall.FirewallArgs
    {
        PolicyId = policy1.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Firewall
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Firewall
Assembly: Pulumi.OpenStack.dll
Syntax
public class Firewall : CustomResource

Constructors

View Source

Firewall(String, FirewallArgs, CustomResourceOptions)

Create a Firewall resource with the given unique name, arguments, and options.

Declaration
public Firewall(string name, FirewallArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

FirewallArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AdminStateUp

Administrative up/down status for the firewall (must be "true" or "false" if provided - defaults to "true"). Changing this updates the admin_state_up of an existing firewall.

Declaration
public Output<bool?> AdminStateUp { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

AssociatedRouters

Router(s) to associate this firewall instance with. Must be a list of strings. Changing this updates the associated routers of an existing firewall. Conflicts with no_routers.

Declaration
public Output<ImmutableArray<string>> AssociatedRouters { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Description

A description for the firewall. Changing this updates the description of an existing firewall.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A name for the firewall. Changing this updates the name of an existing firewall.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NoRouters

Should this firewall not be associated with any routers (must be "true" or "false" if provide - defaults to "false"). Conflicts with associated_routers.

Declaration
public Output<bool?> NoRouters { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

PolicyId

The policy resource id for the firewall. Changing this updates the policy_id of an existing firewall.

Declaration
public Output<string> PolicyId { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

The region in which to obtain the v1 networking client. A networking client is needed to create a firewall. If omitted, the region argument of the provider is used. Changing this creates a new firewall.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

TenantId

The owner of the floating IP. Required if admin wants to create a firewall for another tenant. Changing this creates a new firewall.

Declaration
public Output<string> TenantId { get; }
Property Value
Type Description
Output<System.String>
View Source

ValueSpecs

Map of additional options.

Declaration
public Output<ImmutableDictionary<string, object>> ValueSpecs { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, FirewallState, CustomResourceOptions)

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

Declaration
public static Firewall Get(string name, Input<string> id, FirewallState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

FirewallState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Firewall
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.