1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectSwitchcontrollerAclIngress
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectSwitchcontrollerAclIngress

Explore with Pulumi AI

Configure ingress ACL policies to be applied on managed FortiSwitch ports.

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • action: fortimanager.ObjectSwitchcontrollerAclIngressAction
  • classifier: fortimanager.ObjectSwitchcontrollerAclIngressClassifier

Create ObjectSwitchcontrollerAclIngress Resource

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

Constructor syntax

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

@overload
def ObjectSwitchcontrollerAclIngress(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     action: Optional[ObjectSwitchcontrollerAclIngressActionArgs] = None,
                                     adom: Optional[str] = None,
                                     classifier: Optional[ObjectSwitchcontrollerAclIngressClassifierArgs] = None,
                                     description: Optional[str] = None,
                                     fosid: Optional[float] = None,
                                     object_switchcontroller_acl_ingress_id: Optional[str] = None,
                                     scopetype: Optional[str] = None)
func NewObjectSwitchcontrollerAclIngress(ctx *Context, name string, args *ObjectSwitchcontrollerAclIngressArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerAclIngress, error)
public ObjectSwitchcontrollerAclIngress(string name, ObjectSwitchcontrollerAclIngressArgs? args = null, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerAclIngress(String name, ObjectSwitchcontrollerAclIngressArgs args)
public ObjectSwitchcontrollerAclIngress(String name, ObjectSwitchcontrollerAclIngressArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerAclIngress
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 ObjectSwitchcontrollerAclIngressArgs
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 ObjectSwitchcontrollerAclIngressArgs
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 ObjectSwitchcontrollerAclIngressArgs
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 ObjectSwitchcontrollerAclIngressArgs
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. ObjectSwitchcontrollerAclIngressArgs
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 objectSwitchcontrollerAclIngressResource = new Fortimanager.ObjectSwitchcontrollerAclIngress("objectSwitchcontrollerAclIngressResource", new()
{
    Action = new Fortimanager.Inputs.ObjectSwitchcontrollerAclIngressActionArgs
    {
        Count = "string",
        Drop = "string",
    },
    Adom = "string",
    Classifier = new Fortimanager.Inputs.ObjectSwitchcontrollerAclIngressClassifierArgs
    {
        DstIpPrefix = "string",
        DstMac = "string",
        SrcIpPrefix = "string",
        SrcMac = "string",
        Vlan = 0,
    },
    Description = "string",
    Fosid = 0,
    ObjectSwitchcontrollerAclIngressId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectSwitchcontrollerAclIngress(ctx, "objectSwitchcontrollerAclIngressResource", &fortimanager.ObjectSwitchcontrollerAclIngressArgs{
Action: &.ObjectSwitchcontrollerAclIngressActionTypeArgs{
Count: pulumi.String("string"),
Drop: pulumi.String("string"),
},
Adom: pulumi.String("string"),
Classifier: &.ObjectSwitchcontrollerAclIngressClassifierTypeArgs{
DstIpPrefix: pulumi.String("string"),
DstMac: pulumi.String("string"),
SrcIpPrefix: pulumi.String("string"),
SrcMac: pulumi.String("string"),
Vlan: pulumi.Float64(0),
},
Description: pulumi.String("string"),
Fosid: pulumi.Float64(0),
ObjectSwitchcontrollerAclIngressId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectSwitchcontrollerAclIngressResource = new ObjectSwitchcontrollerAclIngress("objectSwitchcontrollerAclIngressResource", ObjectSwitchcontrollerAclIngressArgs.builder()
    .action(ObjectSwitchcontrollerAclIngressActionArgs.builder()
        .count("string")
        .drop("string")
        .build())
    .adom("string")
    .classifier(ObjectSwitchcontrollerAclIngressClassifierArgs.builder()
        .dstIpPrefix("string")
        .dstMac("string")
        .srcIpPrefix("string")
        .srcMac("string")
        .vlan(0)
        .build())
    .description("string")
    .fosid(0)
    .objectSwitchcontrollerAclIngressId("string")
    .scopetype("string")
    .build());
Copy
object_switchcontroller_acl_ingress_resource = fortimanager.ObjectSwitchcontrollerAclIngress("objectSwitchcontrollerAclIngressResource",
    action={
        "count": "string",
        "drop": "string",
    },
    adom="string",
    classifier={
        "dst_ip_prefix": "string",
        "dst_mac": "string",
        "src_ip_prefix": "string",
        "src_mac": "string",
        "vlan": 0,
    },
    description="string",
    fosid=0,
    object_switchcontroller_acl_ingress_id="string",
    scopetype="string")
Copy
const objectSwitchcontrollerAclIngressResource = new fortimanager.ObjectSwitchcontrollerAclIngress("objectSwitchcontrollerAclIngressResource", {
    action: {
        count: "string",
        drop: "string",
    },
    adom: "string",
    classifier: {
        dstIpPrefix: "string",
        dstMac: "string",
        srcIpPrefix: "string",
        srcMac: "string",
        vlan: 0,
    },
    description: "string",
    fosid: 0,
    objectSwitchcontrollerAclIngressId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectSwitchcontrollerAclIngress
properties:
    action:
        count: string
        drop: string
    adom: string
    classifier:
        dstIpPrefix: string
        dstMac: string
        srcIpPrefix: string
        srcMac: string
        vlan: 0
    description: string
    fosid: 0
    objectSwitchcontrollerAclIngressId: string
    scopetype: string
Copy

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

Action ObjectSwitchcontrollerAclIngressAction
Action. The structure of action block is documented below.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Classifier ObjectSwitchcontrollerAclIngressClassifier
Classifier. The structure of classifier block is documented below.
Description string
Description for the ACL policy.
Fosid double
ACL ID.
ObjectSwitchcontrollerAclIngressId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Action ObjectSwitchcontrollerAclIngressActionTypeArgs
Action. The structure of action block is documented below.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Classifier ObjectSwitchcontrollerAclIngressClassifierTypeArgs
Classifier. The structure of classifier block is documented below.
Description string
Description for the ACL policy.
Fosid float64
ACL ID.
ObjectSwitchcontrollerAclIngressId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action ObjectSwitchcontrollerAclIngressAction
Action. The structure of action block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier ObjectSwitchcontrollerAclIngressClassifier
Classifier. The structure of classifier block is documented below.
description String
Description for the ACL policy.
fosid Double
ACL ID.
objectSwitchcontrollerAclIngressId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action ObjectSwitchcontrollerAclIngressAction
Action. The structure of action block is documented below.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier ObjectSwitchcontrollerAclIngressClassifier
Classifier. The structure of classifier block is documented below.
description string
Description for the ACL policy.
fosid number
ACL ID.
objectSwitchcontrollerAclIngressId string
an identifier for the resource with format {{fosid}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action ObjectSwitchcontrollerAclIngressActionArgs
Action. The structure of action block is documented below.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier ObjectSwitchcontrollerAclIngressClassifierArgs
Classifier. The structure of classifier block is documented below.
description str
Description for the ACL policy.
fosid float
ACL ID.
object_switchcontroller_acl_ingress_id str
an identifier for the resource with format {{fosid}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action Property Map
Action. The structure of action block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier Property Map
Classifier. The structure of classifier block is documented below.
description String
Description for the ACL policy.
fosid Number
ACL ID.
objectSwitchcontrollerAclIngressId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ObjectSwitchcontrollerAclIngress Resource

Get an existing ObjectSwitchcontrollerAclIngress 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?: ObjectSwitchcontrollerAclIngressState, opts?: CustomResourceOptions): ObjectSwitchcontrollerAclIngress
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[ObjectSwitchcontrollerAclIngressActionArgs] = None,
        adom: Optional[str] = None,
        classifier: Optional[ObjectSwitchcontrollerAclIngressClassifierArgs] = None,
        description: Optional[str] = None,
        fosid: Optional[float] = None,
        object_switchcontroller_acl_ingress_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectSwitchcontrollerAclIngress
func GetObjectSwitchcontrollerAclIngress(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerAclIngressState, opts ...ResourceOption) (*ObjectSwitchcontrollerAclIngress, error)
public static ObjectSwitchcontrollerAclIngress Get(string name, Input<string> id, ObjectSwitchcontrollerAclIngressState? state, CustomResourceOptions? opts = null)
public static ObjectSwitchcontrollerAclIngress get(String name, Output<String> id, ObjectSwitchcontrollerAclIngressState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSwitchcontrollerAclIngress    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:
Action ObjectSwitchcontrollerAclIngressAction
Action. The structure of action block is documented below.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Classifier ObjectSwitchcontrollerAclIngressClassifier
Classifier. The structure of classifier block is documented below.
Description string
Description for the ACL policy.
Fosid double
ACL ID.
ObjectSwitchcontrollerAclIngressId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Action ObjectSwitchcontrollerAclIngressActionTypeArgs
Action. The structure of action block is documented below.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Classifier ObjectSwitchcontrollerAclIngressClassifierTypeArgs
Classifier. The structure of classifier block is documented below.
Description string
Description for the ACL policy.
Fosid float64
ACL ID.
ObjectSwitchcontrollerAclIngressId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action ObjectSwitchcontrollerAclIngressAction
Action. The structure of action block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier ObjectSwitchcontrollerAclIngressClassifier
Classifier. The structure of classifier block is documented below.
description String
Description for the ACL policy.
fosid Double
ACL ID.
objectSwitchcontrollerAclIngressId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action ObjectSwitchcontrollerAclIngressAction
Action. The structure of action block is documented below.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier ObjectSwitchcontrollerAclIngressClassifier
Classifier. The structure of classifier block is documented below.
description string
Description for the ACL policy.
fosid number
ACL ID.
objectSwitchcontrollerAclIngressId string
an identifier for the resource with format {{fosid}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action ObjectSwitchcontrollerAclIngressActionArgs
Action. The structure of action block is documented below.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier ObjectSwitchcontrollerAclIngressClassifierArgs
Classifier. The structure of classifier block is documented below.
description str
Description for the ACL policy.
fosid float
ACL ID.
object_switchcontroller_acl_ingress_id str
an identifier for the resource with format {{fosid}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
action Property Map
Action. The structure of action block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
classifier Property Map
Classifier. The structure of classifier block is documented below.
description String
Description for the ACL policy.
fosid Number
ACL ID.
objectSwitchcontrollerAclIngressId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Supporting Types

ObjectSwitchcontrollerAclIngressAction
, ObjectSwitchcontrollerAclIngressActionArgs

Count string
Enable/disable count. Valid values: disable, enable.
Drop string
Enable/disable drop. Valid values: disable, enable.
Count string
Enable/disable count. Valid values: disable, enable.
Drop string
Enable/disable drop. Valid values: disable, enable.
count String
Enable/disable count. Valid values: disable, enable.
drop String
Enable/disable drop. Valid values: disable, enable.
count string
Enable/disable count. Valid values: disable, enable.
drop string
Enable/disable drop. Valid values: disable, enable.
count str
Enable/disable count. Valid values: disable, enable.
drop str
Enable/disable drop. Valid values: disable, enable.
count String
Enable/disable count. Valid values: disable, enable.
drop String
Enable/disable drop. Valid values: disable, enable.

ObjectSwitchcontrollerAclIngressClassifier
, ObjectSwitchcontrollerAclIngressClassifierArgs

DstIpPrefix string
Destination IP address to be matched.
DstMac string
Destination MAC address to be matched.
SrcIpPrefix string
Source IP address to be matched.
SrcMac string
Source MAC address to be matched.
Vlan double
VLAN ID to be matched.
DstIpPrefix string
Destination IP address to be matched.
DstMac string
Destination MAC address to be matched.
SrcIpPrefix string
Source IP address to be matched.
SrcMac string
Source MAC address to be matched.
Vlan float64
VLAN ID to be matched.
dstIpPrefix String
Destination IP address to be matched.
dstMac String
Destination MAC address to be matched.
srcIpPrefix String
Source IP address to be matched.
srcMac String
Source MAC address to be matched.
vlan Double
VLAN ID to be matched.
dstIpPrefix string
Destination IP address to be matched.
dstMac string
Destination MAC address to be matched.
srcIpPrefix string
Source IP address to be matched.
srcMac string
Source MAC address to be matched.
vlan number
VLAN ID to be matched.
dst_ip_prefix str
Destination IP address to be matched.
dst_mac str
Destination MAC address to be matched.
src_ip_prefix str
Source IP address to be matched.
src_mac str
Source MAC address to be matched.
vlan float
VLAN ID to be matched.
dstIpPrefix String
Destination IP address to be matched.
dstMac String
Destination MAC address to be matched.
srcIpPrefix String
Source IP address to be matched.
srcMac String
Source MAC address to be matched.
vlan Number
VLAN ID to be matched.

Import

ObjectSwitchController AclIngress can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectSwitchcontrollerAclIngress:ObjectSwitchcontrollerAclIngress labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.