oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

oci.Waas.AddressList

Explore with Pulumi AI

This resource provides the Address List resource in Oracle Cloud Infrastructure Web Application Acceleration and Security service.

Creates an address list in a set compartment and allows it to be used in a WAAS policy and referenced by access rules. Addresses can be IP addresses and CIDR notations.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAddressList = new Oci.Waas.AddressList("testAddressList", new()
    {
        Addresses = @var.Address_list_addresses,
        CompartmentId = @var.Compartment_id,
        DisplayName = @var.Address_list_display_name,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Waas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Waas.NewAddressList(ctx, "testAddressList", &Waas.AddressListArgs{
			Addresses:     pulumi.Any(_var.Address_list_addresses),
			CompartmentId: pulumi.Any(_var.Compartment_id),
			DisplayName:   pulumi.Any(_var.Address_list_display_name),
			DefinedTags: pulumi.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			FreeformTags: pulumi.AnyMap{
				"Department": pulumi.Any("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Waas.AddressList;
import com.pulumi.oci.Waas.AddressListArgs;
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 testAddressList = new AddressList("testAddressList", AddressListArgs.builder()        
            .addresses(var_.address_list_addresses())
            .compartmentId(var_.compartment_id())
            .displayName(var_.address_list_display_name())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_address_list = oci.waas.AddressList("testAddressList",
    addresses=var["address_list_addresses"],
    compartment_id=var["compartment_id"],
    display_name=var["address_list_display_name"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAddressList = new oci.waas.AddressList("testAddressList", {
    addresses: _var.address_list_addresses,
    compartmentId: _var.compartment_id,
    displayName: _var.address_list_display_name,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
});
resources:
  testAddressList:
    type: oci:Waas:AddressList
    properties:
      #Required
      addresses: ${var.address_list_addresses}
      compartmentId: ${var.compartment_id}
      displayName: ${var.address_list_display_name}
      #Optional
      definedTags:
        Operations.CostCenter: '42'
      freeformTags:
        Department: Finance

Create AddressList Resource

new AddressList(name: string, args: AddressListArgs, opts?: CustomResourceOptions);
@overload
def AddressList(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                addresses: Optional[Sequence[str]] = None,
                compartment_id: Optional[str] = None,
                defined_tags: Optional[Mapping[str, Any]] = None,
                display_name: Optional[str] = None,
                freeform_tags: Optional[Mapping[str, Any]] = None)
@overload
def AddressList(resource_name: str,
                args: AddressListArgs,
                opts: Optional[ResourceOptions] = None)
func NewAddressList(ctx *Context, name string, args AddressListArgs, opts ...ResourceOption) (*AddressList, error)
public AddressList(string name, AddressListArgs args, CustomResourceOptions? opts = null)
public AddressList(String name, AddressListArgs args)
public AddressList(String name, AddressListArgs args, CustomResourceOptions options)
type: oci:Waas:AddressList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AddressListArgs
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 AddressListArgs
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 AddressListArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AddressListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AddressListArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AddressList Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AddressList resource accepts the following input properties:

Addresses List<string>

(Updatable) A list of IP addresses or CIDR notations.

CompartmentId string

(Updatable) The OCID of the compartment in which to create the address list.

DisplayName string

(Updatable) A user-friendly name for the address list.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Addresses []string

(Updatable) A list of IP addresses or CIDR notations.

CompartmentId string

(Updatable) The OCID of the compartment in which to create the address list.

DisplayName string

(Updatable) A user-friendly name for the address list.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

addresses List<String>

(Updatable) A list of IP addresses or CIDR notations.

compartmentId String

(Updatable) The OCID of the compartment in which to create the address list.

displayName String

(Updatable) A user-friendly name for the address list.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

addresses string[]

(Updatable) A list of IP addresses or CIDR notations.

compartmentId string

(Updatable) The OCID of the compartment in which to create the address list.

displayName string

(Updatable) A user-friendly name for the address list.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

addresses Sequence[str]

(Updatable) A list of IP addresses or CIDR notations.

compartment_id str

(Updatable) The OCID of the compartment in which to create the address list.

display_name str

(Updatable) A user-friendly name for the address list.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

addresses List<String>

(Updatable) A list of IP addresses or CIDR notations.

compartmentId String

(Updatable) The OCID of the compartment in which to create the address list.

displayName String

(Updatable) A user-friendly name for the address list.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Outputs

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

AddressCount double

The total number of unique IP addresses in the address list.

Id string

The provider-assigned unique ID for this managed resource.

State string

The current lifecycle state of the address list.

TimeCreated string

The date and time the address list was created, expressed in RFC 3339 timestamp format.

AddressCount float64

The total number of unique IP addresses in the address list.

Id string

The provider-assigned unique ID for this managed resource.

State string

The current lifecycle state of the address list.

TimeCreated string

The date and time the address list was created, expressed in RFC 3339 timestamp format.

addressCount Double

The total number of unique IP addresses in the address list.

id String

The provider-assigned unique ID for this managed resource.

state String

The current lifecycle state of the address list.

timeCreated String

The date and time the address list was created, expressed in RFC 3339 timestamp format.

addressCount number

The total number of unique IP addresses in the address list.

id string

The provider-assigned unique ID for this managed resource.

state string

The current lifecycle state of the address list.

timeCreated string

The date and time the address list was created, expressed in RFC 3339 timestamp format.

address_count float

The total number of unique IP addresses in the address list.

id str

The provider-assigned unique ID for this managed resource.

state str

The current lifecycle state of the address list.

time_created str

The date and time the address list was created, expressed in RFC 3339 timestamp format.

addressCount Number

The total number of unique IP addresses in the address list.

id String

The provider-assigned unique ID for this managed resource.

state String

The current lifecycle state of the address list.

timeCreated String

The date and time the address list was created, expressed in RFC 3339 timestamp format.

Look up Existing AddressList Resource

Get an existing AddressList 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?: AddressListState, opts?: CustomResourceOptions): AddressList
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address_count: Optional[float] = None,
        addresses: Optional[Sequence[str]] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> AddressList
func GetAddressList(ctx *Context, name string, id IDInput, state *AddressListState, opts ...ResourceOption) (*AddressList, error)
public static AddressList Get(string name, Input<string> id, AddressListState? state, CustomResourceOptions? opts = null)
public static AddressList get(String name, Output<String> id, AddressListState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
AddressCount double

The total number of unique IP addresses in the address list.

Addresses List<string>

(Updatable) A list of IP addresses or CIDR notations.

CompartmentId string

(Updatable) The OCID of the compartment in which to create the address list.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

(Updatable) A user-friendly name for the address list.

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

State string

The current lifecycle state of the address list.

TimeCreated string

The date and time the address list was created, expressed in RFC 3339 timestamp format.

AddressCount float64

The total number of unique IP addresses in the address list.

Addresses []string

(Updatable) A list of IP addresses or CIDR notations.

CompartmentId string

(Updatable) The OCID of the compartment in which to create the address list.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

(Updatable) A user-friendly name for the address list.

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

State string

The current lifecycle state of the address list.

TimeCreated string

The date and time the address list was created, expressed in RFC 3339 timestamp format.

addressCount Double

The total number of unique IP addresses in the address list.

addresses List<String>

(Updatable) A list of IP addresses or CIDR notations.

compartmentId String

(Updatable) The OCID of the compartment in which to create the address list.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

(Updatable) A user-friendly name for the address list.

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state String

The current lifecycle state of the address list.

timeCreated String

The date and time the address list was created, expressed in RFC 3339 timestamp format.

addressCount number

The total number of unique IP addresses in the address list.

addresses string[]

(Updatable) A list of IP addresses or CIDR notations.

compartmentId string

(Updatable) The OCID of the compartment in which to create the address list.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

(Updatable) A user-friendly name for the address list.

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state string

The current lifecycle state of the address list.

timeCreated string

The date and time the address list was created, expressed in RFC 3339 timestamp format.

address_count float

The total number of unique IP addresses in the address list.

addresses Sequence[str]

(Updatable) A list of IP addresses or CIDR notations.

compartment_id str

(Updatable) The OCID of the compartment in which to create the address list.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

(Updatable) A user-friendly name for the address list.

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state str

The current lifecycle state of the address list.

time_created str

The date and time the address list was created, expressed in RFC 3339 timestamp format.

addressCount Number

The total number of unique IP addresses in the address list.

addresses List<String>

(Updatable) A list of IP addresses or CIDR notations.

compartmentId String

(Updatable) The OCID of the compartment in which to create the address list.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

(Updatable) A user-friendly name for the address list.

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

state String

The current lifecycle state of the address list.

timeCreated String

The date and time the address list was created, expressed in RFC 3339 timestamp format.

Import

AddressLists can be imported using the id, e.g.

 $ pulumi import oci:Waas/addressList:AddressList test_address_list "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.