1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DefaultSecurityList
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Core.DefaultSecurityList

Explore with Pulumi AI

Create DefaultSecurityList Resource

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

Constructor syntax

new DefaultSecurityList(name: string, args: DefaultSecurityListArgs, opts?: CustomResourceOptions);
@overload
def DefaultSecurityList(resource_name: str,
                        args: DefaultSecurityListArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def DefaultSecurityList(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        manage_default_resource_id: Optional[str] = None,
                        compartment_id: Optional[str] = None,
                        defined_tags: Optional[Mapping[str, str]] = None,
                        display_name: Optional[str] = None,
                        egress_security_rules: Optional[Sequence[_core.DefaultSecurityListEgressSecurityRuleArgs]] = None,
                        freeform_tags: Optional[Mapping[str, str]] = None,
                        ingress_security_rules: Optional[Sequence[_core.DefaultSecurityListIngressSecurityRuleArgs]] = None)
func NewDefaultSecurityList(ctx *Context, name string, args DefaultSecurityListArgs, opts ...ResourceOption) (*DefaultSecurityList, error)
public DefaultSecurityList(string name, DefaultSecurityListArgs args, CustomResourceOptions? opts = null)
public DefaultSecurityList(String name, DefaultSecurityListArgs args)
public DefaultSecurityList(String name, DefaultSecurityListArgs args, CustomResourceOptions options)
type: oci:Core:DefaultSecurityList
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DefaultSecurityListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DefaultSecurityListArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DefaultSecurityListArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DefaultSecurityListArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DefaultSecurityListArgs
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 defaultSecurityListResource = new Oci.Core.DefaultSecurityList("defaultSecurityListResource", new()
{
    ManageDefaultResourceId = "string",
    CompartmentId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    DisplayName = "string",
    EgressSecurityRules = new[]
    {
        new Oci.Core.Inputs.DefaultSecurityListEgressSecurityRuleArgs
        {
            Destination = "string",
            Protocol = "string",
            Description = "string",
            DestinationType = "string",
            IcmpOptions = new Oci.Core.Inputs.DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs
            {
                Type = 0,
                Code = 0,
            },
            Stateless = false,
            TcpOptions = new Oci.Core.Inputs.DefaultSecurityListEgressSecurityRuleTcpOptionsArgs
            {
                Max = 0,
                Min = 0,
                SourcePortRange = new Oci.Core.Inputs.DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs
                {
                    Max = 0,
                    Min = 0,
                },
            },
            UdpOptions = new Oci.Core.Inputs.DefaultSecurityListEgressSecurityRuleUdpOptionsArgs
            {
                Max = 0,
                Min = 0,
                SourcePortRange = new Oci.Core.Inputs.DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs
                {
                    Max = 0,
                    Min = 0,
                },
            },
        },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
    IngressSecurityRules = new[]
    {
        new Oci.Core.Inputs.DefaultSecurityListIngressSecurityRuleArgs
        {
            Protocol = "string",
            Source = "string",
            Description = "string",
            IcmpOptions = new Oci.Core.Inputs.DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs
            {
                Type = 0,
                Code = 0,
            },
            SourceType = "string",
            Stateless = false,
            TcpOptions = new Oci.Core.Inputs.DefaultSecurityListIngressSecurityRuleTcpOptionsArgs
            {
                Max = 0,
                Min = 0,
                SourcePortRange = new Oci.Core.Inputs.DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs
                {
                    Max = 0,
                    Min = 0,
                },
            },
            UdpOptions = new Oci.Core.Inputs.DefaultSecurityListIngressSecurityRuleUdpOptionsArgs
            {
                Max = 0,
                Min = 0,
                SourcePortRange = new Oci.Core.Inputs.DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs
                {
                    Max = 0,
                    Min = 0,
                },
            },
        },
    },
});
Copy
example, err := core.NewDefaultSecurityList(ctx, "defaultSecurityListResource", &core.DefaultSecurityListArgs{
	ManageDefaultResourceId: pulumi.String("string"),
	CompartmentId:           pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DisplayName: pulumi.String("string"),
	EgressSecurityRules: core.DefaultSecurityListEgressSecurityRuleArray{
		&core.DefaultSecurityListEgressSecurityRuleArgs{
			Destination:     pulumi.String("string"),
			Protocol:        pulumi.String("string"),
			Description:     pulumi.String("string"),
			DestinationType: pulumi.String("string"),
			IcmpOptions: &core.DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs{
				Type: pulumi.Int(0),
				Code: pulumi.Int(0),
			},
			Stateless: pulumi.Bool(false),
			TcpOptions: &core.DefaultSecurityListEgressSecurityRuleTcpOptionsArgs{
				Max: pulumi.Int(0),
				Min: pulumi.Int(0),
				SourcePortRange: &core.DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs{
					Max: pulumi.Int(0),
					Min: pulumi.Int(0),
				},
			},
			UdpOptions: &core.DefaultSecurityListEgressSecurityRuleUdpOptionsArgs{
				Max: pulumi.Int(0),
				Min: pulumi.Int(0),
				SourcePortRange: &core.DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs{
					Max: pulumi.Int(0),
					Min: pulumi.Int(0),
				},
			},
		},
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IngressSecurityRules: core.DefaultSecurityListIngressSecurityRuleArray{
		&core.DefaultSecurityListIngressSecurityRuleArgs{
			Protocol:    pulumi.String("string"),
			Source:      pulumi.String("string"),
			Description: pulumi.String("string"),
			IcmpOptions: &core.DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs{
				Type: pulumi.Int(0),
				Code: pulumi.Int(0),
			},
			SourceType: pulumi.String("string"),
			Stateless:  pulumi.Bool(false),
			TcpOptions: &core.DefaultSecurityListIngressSecurityRuleTcpOptionsArgs{
				Max: pulumi.Int(0),
				Min: pulumi.Int(0),
				SourcePortRange: &core.DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs{
					Max: pulumi.Int(0),
					Min: pulumi.Int(0),
				},
			},
			UdpOptions: &core.DefaultSecurityListIngressSecurityRuleUdpOptionsArgs{
				Max: pulumi.Int(0),
				Min: pulumi.Int(0),
				SourcePortRange: &core.DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs{
					Max: pulumi.Int(0),
					Min: pulumi.Int(0),
				},
			},
		},
	},
})
Copy
var defaultSecurityListResource = new DefaultSecurityList("defaultSecurityListResource", DefaultSecurityListArgs.builder()
    .manageDefaultResourceId("string")
    .compartmentId("string")
    .definedTags(Map.of("string", "string"))
    .displayName("string")
    .egressSecurityRules(DefaultSecurityListEgressSecurityRuleArgs.builder()
        .destination("string")
        .protocol("string")
        .description("string")
        .destinationType("string")
        .icmpOptions(DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs.builder()
            .type(0)
            .code(0)
            .build())
        .stateless(false)
        .tcpOptions(DefaultSecurityListEgressSecurityRuleTcpOptionsArgs.builder()
            .max(0)
            .min(0)
            .sourcePortRange(DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs.builder()
                .max(0)
                .min(0)
                .build())
            .build())
        .udpOptions(DefaultSecurityListEgressSecurityRuleUdpOptionsArgs.builder()
            .max(0)
            .min(0)
            .sourcePortRange(DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs.builder()
                .max(0)
                .min(0)
                .build())
            .build())
        .build())
    .freeformTags(Map.of("string", "string"))
    .ingressSecurityRules(DefaultSecurityListIngressSecurityRuleArgs.builder()
        .protocol("string")
        .source("string")
        .description("string")
        .icmpOptions(DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs.builder()
            .type(0)
            .code(0)
            .build())
        .sourceType("string")
        .stateless(false)
        .tcpOptions(DefaultSecurityListIngressSecurityRuleTcpOptionsArgs.builder()
            .max(0)
            .min(0)
            .sourcePortRange(DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs.builder()
                .max(0)
                .min(0)
                .build())
            .build())
        .udpOptions(DefaultSecurityListIngressSecurityRuleUdpOptionsArgs.builder()
            .max(0)
            .min(0)
            .sourcePortRange(DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs.builder()
                .max(0)
                .min(0)
                .build())
            .build())
        .build())
    .build());
Copy
default_security_list_resource = oci.core.DefaultSecurityList("defaultSecurityListResource",
    manage_default_resource_id="string",
    compartment_id="string",
    defined_tags={
        "string": "string",
    },
    display_name="string",
    egress_security_rules=[{
        "destination": "string",
        "protocol": "string",
        "description": "string",
        "destination_type": "string",
        "icmp_options": {
            "type": 0,
            "code": 0,
        },
        "stateless": False,
        "tcp_options": {
            "max": 0,
            "min": 0,
            "source_port_range": {
                "max": 0,
                "min": 0,
            },
        },
        "udp_options": {
            "max": 0,
            "min": 0,
            "source_port_range": {
                "max": 0,
                "min": 0,
            },
        },
    }],
    freeform_tags={
        "string": "string",
    },
    ingress_security_rules=[{
        "protocol": "string",
        "source": "string",
        "description": "string",
        "icmp_options": {
            "type": 0,
            "code": 0,
        },
        "source_type": "string",
        "stateless": False,
        "tcp_options": {
            "max": 0,
            "min": 0,
            "source_port_range": {
                "max": 0,
                "min": 0,
            },
        },
        "udp_options": {
            "max": 0,
            "min": 0,
            "source_port_range": {
                "max": 0,
                "min": 0,
            },
        },
    }])
Copy
const defaultSecurityListResource = new oci.core.DefaultSecurityList("defaultSecurityListResource", {
    manageDefaultResourceId: "string",
    compartmentId: "string",
    definedTags: {
        string: "string",
    },
    displayName: "string",
    egressSecurityRules: [{
        destination: "string",
        protocol: "string",
        description: "string",
        destinationType: "string",
        icmpOptions: {
            type: 0,
            code: 0,
        },
        stateless: false,
        tcpOptions: {
            max: 0,
            min: 0,
            sourcePortRange: {
                max: 0,
                min: 0,
            },
        },
        udpOptions: {
            max: 0,
            min: 0,
            sourcePortRange: {
                max: 0,
                min: 0,
            },
        },
    }],
    freeformTags: {
        string: "string",
    },
    ingressSecurityRules: [{
        protocol: "string",
        source: "string",
        description: "string",
        icmpOptions: {
            type: 0,
            code: 0,
        },
        sourceType: "string",
        stateless: false,
        tcpOptions: {
            max: 0,
            min: 0,
            sourcePortRange: {
                max: 0,
                min: 0,
            },
        },
        udpOptions: {
            max: 0,
            min: 0,
            sourcePortRange: {
                max: 0,
                min: 0,
            },
        },
    }],
});
Copy
type: oci:Core:DefaultSecurityList
properties:
    compartmentId: string
    definedTags:
        string: string
    displayName: string
    egressSecurityRules:
        - description: string
          destination: string
          destinationType: string
          icmpOptions:
            code: 0
            type: 0
          protocol: string
          stateless: false
          tcpOptions:
            max: 0
            min: 0
            sourcePortRange:
                max: 0
                min: 0
          udpOptions:
            max: 0
            min: 0
            sourcePortRange:
                max: 0
                min: 0
    freeformTags:
        string: string
    ingressSecurityRules:
        - description: string
          icmpOptions:
            code: 0
            type: 0
          protocol: string
          source: string
          sourceType: string
          stateless: false
          tcpOptions:
            max: 0
            min: 0
            sourcePortRange:
                max: 0
                min: 0
          udpOptions:
            max: 0
            min: 0
            sourcePortRange:
                max: 0
                min: 0
    manageDefaultResourceId: string
Copy

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

ManageDefaultResourceId
This property is required.
Changes to this property will trigger replacement.
string
CompartmentId string
DefinedTags Dictionary<string, string>
DisplayName string
EgressSecurityRules List<DefaultSecurityListEgressSecurityRule>
FreeformTags Dictionary<string, string>
IngressSecurityRules List<DefaultSecurityListIngressSecurityRule>
ManageDefaultResourceId
This property is required.
Changes to this property will trigger replacement.
string
CompartmentId string
DefinedTags map[string]string
DisplayName string
EgressSecurityRules []DefaultSecurityListEgressSecurityRuleArgs
FreeformTags map[string]string
IngressSecurityRules []DefaultSecurityListIngressSecurityRuleArgs
manageDefaultResourceId
This property is required.
Changes to this property will trigger replacement.
String
compartmentId String
definedTags Map<String,String>
displayName String
egressSecurityRules List<DefaultSecurityListEgressSecurityRule>
freeformTags Map<String,String>
ingressSecurityRules List<DefaultSecurityListIngressSecurityRule>
manageDefaultResourceId
This property is required.
Changes to this property will trigger replacement.
string
compartmentId string
definedTags {[key: string]: string}
displayName string
egressSecurityRules DefaultSecurityListEgressSecurityRule[]
freeformTags {[key: string]: string}
ingressSecurityRules DefaultSecurityListIngressSecurityRule[]
manageDefaultResourceId
This property is required.
Changes to this property will trigger replacement.
String
compartmentId String
definedTags Map<String>
displayName String
egressSecurityRules List<Property Map>
freeformTags Map<String>
ingressSecurityRules List<Property Map>

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
State string
TimeCreated string
Id string
The provider-assigned unique ID for this managed resource.
State string
TimeCreated string
id String
The provider-assigned unique ID for this managed resource.
state String
timeCreated String
id string
The provider-assigned unique ID for this managed resource.
state string
timeCreated string
id str
The provider-assigned unique ID for this managed resource.
state str
time_created str
id String
The provider-assigned unique ID for this managed resource.
state String
timeCreated String

Look up Existing DefaultSecurityList Resource

Get an existing DefaultSecurityList 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?: DefaultSecurityListState, opts?: CustomResourceOptions): DefaultSecurityList
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        egress_security_rules: Optional[Sequence[_core.DefaultSecurityListEgressSecurityRuleArgs]] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        ingress_security_rules: Optional[Sequence[_core.DefaultSecurityListIngressSecurityRuleArgs]] = None,
        manage_default_resource_id: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> DefaultSecurityList
func GetDefaultSecurityList(ctx *Context, name string, id IDInput, state *DefaultSecurityListState, opts ...ResourceOption) (*DefaultSecurityList, error)
public static DefaultSecurityList Get(string name, Input<string> id, DefaultSecurityListState? state, CustomResourceOptions? opts = null)
public static DefaultSecurityList get(String name, Output<String> id, DefaultSecurityListState state, CustomResourceOptions options)
resources:  _:    type: oci:Core:DefaultSecurityList    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CompartmentId string
DefinedTags Dictionary<string, string>
DisplayName string
EgressSecurityRules List<DefaultSecurityListEgressSecurityRule>
FreeformTags Dictionary<string, string>
IngressSecurityRules List<DefaultSecurityListIngressSecurityRule>
ManageDefaultResourceId Changes to this property will trigger replacement. string
State string
TimeCreated string
compartmentId string
definedTags {[key: string]: string}
displayName string
egressSecurityRules DefaultSecurityListEgressSecurityRule[]
freeformTags {[key: string]: string}
ingressSecurityRules DefaultSecurityListIngressSecurityRule[]
manageDefaultResourceId Changes to this property will trigger replacement. string
state string
timeCreated string
compartmentId String
definedTags Map<String>
displayName String
egressSecurityRules List<Property Map>
freeformTags Map<String>
ingressSecurityRules List<Property Map>
manageDefaultResourceId Changes to this property will trigger replacement. String
state String
timeCreated String

Supporting Types

DefaultSecurityListEgressSecurityRule
, DefaultSecurityListEgressSecurityRuleArgs

destination This property is required. String
protocol This property is required. String
description String
destinationType String
icmpOptions Property Map
stateless Boolean
tcpOptions Property Map
udpOptions Property Map

DefaultSecurityListEgressSecurityRuleIcmpOptions
, DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs

Type This property is required. int
Code int
Type This property is required. int
Code int
type This property is required. Integer
code Integer
type This property is required. number
code number
type This property is required. int
code int
type This property is required. Number
code Number

DefaultSecurityListEgressSecurityRuleTcpOptions
, DefaultSecurityListEgressSecurityRuleTcpOptionsArgs

DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRange
, DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs

Max This property is required. int
Min This property is required. int
Max This property is required. int
Min This property is required. int
max This property is required. Integer
min This property is required. Integer
max This property is required. number
min This property is required. number
max This property is required. int
min This property is required. int
max This property is required. Number
min This property is required. Number

DefaultSecurityListEgressSecurityRuleUdpOptions
, DefaultSecurityListEgressSecurityRuleUdpOptionsArgs

DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRange
, DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs

Max This property is required. int
Min This property is required. int
Max This property is required. int
Min This property is required. int
max This property is required. Integer
min This property is required. Integer
max This property is required. number
min This property is required. number
max This property is required. int
min This property is required. int
max This property is required. Number
min This property is required. Number

DefaultSecurityListIngressSecurityRule
, DefaultSecurityListIngressSecurityRuleArgs

protocol This property is required. String
source This property is required. String
description String
icmpOptions Property Map
sourceType String
stateless Boolean
tcpOptions Property Map
udpOptions Property Map

DefaultSecurityListIngressSecurityRuleIcmpOptions
, DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs

Type This property is required. int
Code int
Type This property is required. int
Code int
type This property is required. Integer
code Integer
type This property is required. number
code number
type This property is required. int
code int
type This property is required. Number
code Number

DefaultSecurityListIngressSecurityRuleTcpOptions
, DefaultSecurityListIngressSecurityRuleTcpOptionsArgs

DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRange
, DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs

Max This property is required. int
Min This property is required. int
Max This property is required. int
Min This property is required. int
max This property is required. Integer
min This property is required. Integer
max This property is required. number
min This property is required. number
max This property is required. int
min This property is required. int
max This property is required. Number
min This property is required. Number

DefaultSecurityListIngressSecurityRuleUdpOptions
, DefaultSecurityListIngressSecurityRuleUdpOptionsArgs

DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRange
, DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs

Max This property is required. int
Min This property is required. int
Max This property is required. int
Min This property is required. int
max This property is required. Integer
min This property is required. Integer
max This property is required. number
min This property is required. number
max This property is required. int
min This property is required. int
max This property is required. Number
min This property is required. Number

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.