1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. DefaultSecurityList
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.DefaultSecurityList

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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 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:

    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)
    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:

    Supporting Types

    DefaultSecurityListEgressSecurityRule, DefaultSecurityListEgressSecurityRuleArgs

    DefaultSecurityListEgressSecurityRuleIcmpOptions, DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs

    Type int
    Code int
    Type int
    Code int
    type Integer
    code Integer
    type number
    code number
    type int
    code int
    type Number
    code Number

    DefaultSecurityListEgressSecurityRuleTcpOptions, DefaultSecurityListEgressSecurityRuleTcpOptionsArgs

    DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRange, DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs

    Max int
    Min int
    Max int
    Min int
    max Integer
    min Integer
    max number
    min number
    max int
    min int
    max Number
    min Number

    DefaultSecurityListEgressSecurityRuleUdpOptions, DefaultSecurityListEgressSecurityRuleUdpOptionsArgs

    DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRange, DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs

    Max int
    Min int
    Max int
    Min int
    max Integer
    min Integer
    max number
    min number
    max int
    min int
    max Number
    min Number

    DefaultSecurityListIngressSecurityRule, DefaultSecurityListIngressSecurityRuleArgs

    DefaultSecurityListIngressSecurityRuleIcmpOptions, DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs

    Type int
    Code int
    Type int
    Code int
    type Integer
    code Integer
    type number
    code number
    type int
    code int
    type Number
    code Number

    DefaultSecurityListIngressSecurityRuleTcpOptions, DefaultSecurityListIngressSecurityRuleTcpOptionsArgs

    DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRange, DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs

    Max int
    Min int
    Max int
    Min int
    max Integer
    min Integer
    max number
    min number
    max int
    min int
    max Number
    min Number

    DefaultSecurityListIngressSecurityRuleUdpOptions, DefaultSecurityListIngressSecurityRuleUdpOptionsArgs

    DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRange, DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs

    Max int
    Min int
    Max int
    Min int
    max Integer
    min Integer
    max number
    min number
    max int
    min int
    max Number
    min Number

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi