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 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:
- Manage
Default stringResource Id - Compartment
Id string - Dictionary<string, string>
- Display
Name string - Egress
Security List<DefaultRules Security List Egress Security Rule> - Dictionary<string, string>
- Ingress
Security List<DefaultRules Security List Ingress Security Rule>
- Manage
Default stringResource Id - Compartment
Id string - map[string]string
- Display
Name string - Egress
Security []DefaultRules Security List Egress Security Rule Args - map[string]string
- Ingress
Security []DefaultRules Security List Ingress Security Rule Args
- manage
Default StringResource Id - compartment
Id String - Map<String,String>
- display
Name String - egress
Security List<DefaultRules Security List Egress Security Rule> - Map<String,String>
- ingress
Security List<DefaultRules Security List Ingress Security Rule>
- manage
Default stringResource Id - compartment
Id string - {[key: string]: string}
- display
Name string - egress
Security DefaultRules Security List Egress Security Rule[] - {[key: string]: string}
- ingress
Security DefaultRules Security List Ingress Security Rule[]
- manage
Default StringResource Id - compartment
Id String - Map<String>
- display
Name String - egress
Security List<Property Map>Rules - Map<String>
- ingress
Security 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
- Time
Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- Time
Created string
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- time
Created String
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- time
Created 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
- time
Created 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.
- Compartment
Id string - Dictionary<string, string>
- Display
Name string - Egress
Security List<DefaultRules Security List Egress Security Rule> - Dictionary<string, string>
- Ingress
Security List<DefaultRules Security List Ingress Security Rule> - Manage
Default stringResource Id - State string
- Time
Created string
- Compartment
Id string - map[string]string
- Display
Name string - Egress
Security []DefaultRules Security List Egress Security Rule Args - map[string]string
- Ingress
Security []DefaultRules Security List Ingress Security Rule Args - Manage
Default stringResource Id - State string
- Time
Created string
- compartment
Id String - Map<String,String>
- display
Name String - egress
Security List<DefaultRules Security List Egress Security Rule> - Map<String,String>
- ingress
Security List<DefaultRules Security List Ingress Security Rule> - manage
Default StringResource Id - state String
- time
Created String
- compartment
Id string - {[key: string]: string}
- display
Name string - egress
Security DefaultRules Security List Egress Security Rule[] - {[key: string]: string}
- ingress
Security DefaultRules Security List Ingress Security Rule[] - manage
Default stringResource Id - state string
- time
Created string
- compartment_
id str - Mapping[str, str]
- display_
name str - egress_
security_ Sequence[core.rules Default Security List Egress Security Rule Args] - Mapping[str, str]
- ingress_
security_ Sequence[core.rules Default Security List Ingress Security Rule Args] - manage_
default_ strresource_ id - state str
- time_
created str
- compartment
Id String - Map<String>
- display
Name String - egress
Security List<Property Map>Rules - Map<String>
- ingress
Security List<Property Map>Rules - manage
Default StringResource Id - state String
- time
Created String
Supporting Types
DefaultSecurityListEgressSecurityRule, DefaultSecurityListEgressSecurityRuleArgs
- destination String
- protocol String
- description String
- destination
Type String - icmp
Options Property Map - stateless Boolean
- tcp
Options Property Map - udp
Options Property Map
DefaultSecurityListEgressSecurityRuleIcmpOptions, DefaultSecurityListEgressSecurityRuleIcmpOptionsArgs
DefaultSecurityListEgressSecurityRuleTcpOptions, DefaultSecurityListEgressSecurityRuleTcpOptionsArgs
- max Number
- min Number
- source
Port Property MapRange
DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRange, DefaultSecurityListEgressSecurityRuleTcpOptionsSourcePortRangeArgs
DefaultSecurityListEgressSecurityRuleUdpOptions, DefaultSecurityListEgressSecurityRuleUdpOptionsArgs
- max Number
- min Number
- source
Port Property MapRange
DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRange, DefaultSecurityListEgressSecurityRuleUdpOptionsSourcePortRangeArgs
DefaultSecurityListIngressSecurityRule, DefaultSecurityListIngressSecurityRuleArgs
- protocol String
- source String
- description String
- icmp
Options Property Map - source
Type String - stateless Boolean
- tcp
Options Property Map - udp
Options Property Map
DefaultSecurityListIngressSecurityRuleIcmpOptions, DefaultSecurityListIngressSecurityRuleIcmpOptionsArgs
DefaultSecurityListIngressSecurityRuleTcpOptions, DefaultSecurityListIngressSecurityRuleTcpOptionsArgs
- max Number
- min Number
- source
Port Property MapRange
DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRange, DefaultSecurityListIngressSecurityRuleTcpOptionsSourcePortRangeArgs
DefaultSecurityListIngressSecurityRuleUdpOptions, DefaultSecurityListIngressSecurityRuleUdpOptionsArgs
- max Number
- min Number
- source
Port Property MapRange
DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRange, DefaultSecurityListIngressSecurityRuleUdpOptionsSourcePortRangeArgs
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.