oci.Core.DefaultSecurityList
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[DefaultSecurityListEgressSecurityRuleArgs]] = None,
                        freeform_tags: Optional[Mapping[str, str]] = None,
                        ingress_security_rules: Optional[Sequence[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 string
- The unique name of the resource.
- args DefaultSecurityListArgs
- 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 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 string
- The unique name of the resource.
- args DefaultSecurityListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefaultSecurityListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
                },
            },
        },
    },
});
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),
				},
			},
		},
	},
})
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());
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,
            },
        },
    }])
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,
            },
        },
    }],
});
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
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:
- ManageDefault stringResource Id 
- CompartmentId string
- Dictionary<string, string>
- DisplayName string
- EgressSecurity List<DefaultRules Security List Egress Security Rule> 
- Dictionary<string, string>
- IngressSecurity List<DefaultRules Security List Ingress Security Rule> 
- ManageDefault stringResource Id 
- CompartmentId string
- map[string]string
- DisplayName string
- EgressSecurity []DefaultRules Security List Egress Security Rule Args 
- map[string]string
- IngressSecurity []DefaultRules Security List Ingress Security Rule Args 
- manageDefault StringResource Id 
- compartmentId String
- Map<String,String>
- displayName String
- egressSecurity List<DefaultRules Security List Egress Security Rule> 
- Map<String,String>
- ingressSecurity List<DefaultRules Security List Ingress Security Rule> 
- manageDefault stringResource Id 
- compartmentId string
- {[key: string]: string}
- displayName string
- egressSecurity DefaultRules Security List Egress Security Rule[] 
- {[key: string]: string}
- ingressSecurity DefaultRules Security List Ingress Security Rule[] 
- manage_default_ strresource_ id 
- compartment_id str
- Mapping[str, str]
- display_name str
- egress_security_ Sequence[Defaultrules Security List Egress Security Rule Args] 
- Mapping[str, str]
- ingress_security_ Sequence[Defaultrules Security List Ingress Security Rule Args] 
- manageDefault StringResource Id 
- compartmentId String
- Map<String>
- displayName String
- egressSecurity List<Property Map>Rules 
- Map<String>
- ingressSecurity List<Property Map>Rules 
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[DefaultSecurityListEgressSecurityRuleArgs]] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        ingress_security_rules: Optional[Sequence[DefaultSecurityListIngressSecurityRuleArgs]] = None,
        manage_default_resource_id: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> DefaultSecurityListfunc 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
- 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.
- CompartmentId string
- Dictionary<string, string>
- DisplayName string
- EgressSecurity List<DefaultRules Security List Egress Security Rule> 
- Dictionary<string, string>
- IngressSecurity List<DefaultRules Security List Ingress Security Rule> 
- ManageDefault stringResource Id 
- State string
- TimeCreated string
- CompartmentId string
- map[string]string
- DisplayName string
- EgressSecurity []DefaultRules Security List Egress Security Rule Args 
- map[string]string
- IngressSecurity []DefaultRules Security List Ingress Security Rule Args 
- ManageDefault stringResource Id 
- State string
- TimeCreated string
- compartmentId String
- Map<String,String>
- displayName String
- egressSecurity List<DefaultRules Security List Egress Security Rule> 
- Map<String,String>
- ingressSecurity List<DefaultRules Security List Ingress Security Rule> 
- manageDefault StringResource Id 
- state String
- timeCreated String
- compartmentId string
- {[key: string]: string}
- displayName string
- egressSecurity DefaultRules Security List Egress Security Rule[] 
- {[key: string]: string}
- ingressSecurity DefaultRules Security List Ingress Security Rule[] 
- manageDefault stringResource Id 
- state string
- timeCreated string
- compartment_id str
- Mapping[str, str]
- display_name str
- egress_security_ Sequence[Defaultrules Security List Egress Security Rule Args] 
- Mapping[str, str]
- ingress_security_ Sequence[Defaultrules Security List Ingress Security Rule Args] 
- manage_default_ strresource_ id 
- state str
- time_created str
- compartmentId String
- Map<String>
- displayName String
- egressSecurity List<Property Map>Rules 
- Map<String>
- ingressSecurity List<Property Map>Rules 
- manageDefault StringResource Id 
- state String
- timeCreated String
Supporting Types
DefaultSecurityListEgressSecurityRule, DefaultSecurityListEgressSecurityRuleArgs            
- destination String
- protocol String
- description String
- destinationType String
- icmpOptions Property Map
- stateless Boolean
- tcpOptions Property Map
- udpOptions Property Map
DefaultSecurityListEgressSecurityRuleIcmpOptions, DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs                
DefaultSecurityListEgressSecurityRuleTcpOptions, DefaultSecurityListEgressSecurityRuleTcpOptionsArgs                
- max Number
- min Number
- sourcePort Property MapRange 
DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRange, DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs                      
DefaultSecurityListEgressSecurityRuleUdpOptions, DefaultSecurityListEgressSecurityRuleUdpOptionsArgs                
- max Number
- min Number
- sourcePort Property MapRange 
DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRange, DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs                      
DefaultSecurityListIngressSecurityRule, DefaultSecurityListIngressSecurityRuleArgs            
- protocol String
- source String
- description String
- icmpOptions Property Map
- sourceType String
- stateless Boolean
- tcpOptions Property Map
- udpOptions Property Map
DefaultSecurityListIngressSecurityRuleIcmpOptions, DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs                
DefaultSecurityListIngressSecurityRuleTcpOptions, DefaultSecurityListIngressSecurityRuleTcpOptionsArgs                
- max Number
- min Number
- sourcePort Property MapRange 
DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRange, DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs                      
DefaultSecurityListIngressSecurityRuleUdpOptions, DefaultSecurityListIngressSecurityRuleUdpOptionsArgs                
- max Number
- min Number
- sourcePort Property MapRange 
DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRange, DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs                      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
