Class Firewall
Provides a DigitalOcean Cloud Firewall resource. This can be used to create, modify, and delete Firewalls.
Inherited Members
Namespace: Pulumi.DigitalOcean
Assembly: Pulumi.DigitalOcean.dll
Syntax
public class Firewall : CustomResource
Constructors
View SourceFirewall(String, FirewallArgs, CustomResourceOptions)
Create a Firewall resource with the given unique name, arguments, and options.
Declaration
public Firewall(string name, FirewallArgs args = null, 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 SourceCreatedAt
A time value given in ISO8601 combined date and time format that represents when the Firewall was created.
Declaration
public Output<string> CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DropletIds
The list of the IDs of the Droplets assigned to the Firewall.
Declaration
public Output<ImmutableArray<int>> DropletIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.Int32>> |
InboundRules
The inbound access rule block for the Firewall.
The inbound_rule block is documented below.
Declaration
public Output<ImmutableArray<FirewallInboundRule>> InboundRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FirewallInboundRule>> |
Name
The Firewall name
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OutboundRules
The outbound access rule block for the Firewall.
The outbound_rule block is documented below.
Declaration
public Output<ImmutableArray<FirewallOutboundRule>> OutboundRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FirewallOutboundRule>> |
PendingChanges
An list of object containing the fields, "droplet_id", "removing", and "status". It is provided to detail exactly which Droplets are having their security policies updated. When empty, all changes have been successfully applied.
Declaration
public Output<ImmutableArray<FirewallPendingChange>> PendingChanges { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FirewallPendingChange>> |
Status
A status string indicating the current state of the Firewall. This can be "waiting", "succeeded", or "failed".
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
The names of the Tags assigned to the Firewall.
Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(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 |