getFirewall

Get information on a DigitalOcean Firewall.

Example Usage

Get the firewall:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DigitaloceanFunctions;
import com.pulumi.digitalocean.inputs.GetFirewallArgs;
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 example = DigitaloceanFunctions.getFirewall(GetFirewallArgs.builder()
.firewallId("1df48973-6eef-4214-854f-fa7726e7e583")
.build());
ctx.export("exampleFirewallName", example.applyValue(getFirewallResult -> getFirewallResult.name()));
}
}

Return

A collection of values returned by getFirewall.

Parameters

argument

A collection of arguments for invoking getFirewall.


suspend fun getFirewall(dropletIds: List<Int>? = null, firewallId: String, inboundRules: List<GetFirewallInboundRule>? = null, outboundRules: List<GetFirewallOutboundRule>? = null, tags: List<String>? = null): GetFirewallResult

Return

A collection of values returned by getFirewall.

See also

Parameters

dropletIds

The list of the IDs of the Droplets assigned to the Firewall.

firewallId

The ID of the firewall to retrieve information about.

inboundRules
outboundRules
tags

The names of the Tags assigned to the Firewall.


suspend fun getFirewall(argument: suspend GetFirewallPlainArgsBuilder.() -> Unit): GetFirewallResult

Return

A collection of values returned by getFirewall.

See also

Parameters

argument

Builder for com.pulumi.digitalocean.kotlin.inputs.GetFirewallPlainArgs.