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

fortimanager.ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient

Explore with Pulumi AI

Configure FortiSwitch DHCP snooping static clients.

This resource is a sub resource for variable dhcp_snooping_static_client of resource fortimanager.ObjectSwitchcontrollerManagedswitch. Conflict and overwrite may occur if use both of them.

Create ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient Resource

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

Constructor syntax

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

@overload
def ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(resource_name: str,
                                                                opts: Optional[ResourceOptions] = None,
                                                                managed_switch: Optional[str] = None,
                                                                adom: Optional[str] = None,
                                                                ip: Optional[str] = None,
                                                                mac: Optional[str] = None,
                                                                name: Optional[str] = None,
                                                                object_switchcontroller_managedswitch_dhcpsnoopingstaticclient_id: Optional[str] = None,
                                                                port: Optional[str] = None,
                                                                scopetype: Optional[str] = None,
                                                                vlan: Optional[str] = None)
func NewObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(ctx *Context, name string, args ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient, error)
public ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(string name, ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs args, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(String name, ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs args)
public ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(String name, ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient
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. ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs
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. ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs
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. ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs
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. ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs
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. ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs
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 objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource = new Fortimanager.ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient("objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource", new()
{
    ManagedSwitch = "string",
    Adom = "string",
    Ip = "string",
    Mac = "string",
    Name = "string",
    ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId = "string",
    Port = "string",
    Scopetype = "string",
    Vlan = "string",
});
Copy
example, err := fortimanager.NewObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(ctx, "objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource", &fortimanager.ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs{
ManagedSwitch: pulumi.String("string"),
Adom: pulumi.String("string"),
Ip: pulumi.String("string"),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId: pulumi.String("string"),
Port: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Vlan: pulumi.String("string"),
})
Copy
var objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource = new ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient("objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource", ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientArgs.builder()
    .managedSwitch("string")
    .adom("string")
    .ip("string")
    .mac("string")
    .name("string")
    .objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId("string")
    .port("string")
    .scopetype("string")
    .vlan("string")
    .build());
Copy
object_switchcontroller_managedswitch_dhcpsnoopingstaticclient_resource = fortimanager.ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient("objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource",
    managed_switch="string",
    adom="string",
    ip="string",
    mac="string",
    name="string",
    object_switchcontroller_managedswitch_dhcpsnoopingstaticclient_id="string",
    port="string",
    scopetype="string",
    vlan="string")
Copy
const objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource = new fortimanager.ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient("objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientResource", {
    managedSwitch: "string",
    adom: "string",
    ip: "string",
    mac: "string",
    name: "string",
    objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId: "string",
    port: "string",
    scopetype: "string",
    vlan: "string",
});
Copy
type: fortimanager:ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient
properties:
    adom: string
    ip: string
    mac: string
    managedSwitch: string
    name: string
    objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId: string
    port: string
    scopetype: string
    vlan: string
Copy

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

ManagedSwitch This property is required. string
Managed Switch.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Ip string
Client static IP address.
Mac string
Client MAC address.
Name string
Client name.
ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId string
an identifier for the resource with format {{name}}.
Port string
Interface name.
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.
Vlan string
VLAN name.
ManagedSwitch This property is required. string
Managed Switch.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Ip string
Client static IP address.
Mac string
Client MAC address.
Name string
Client name.
ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId string
an identifier for the resource with format {{name}}.
Port string
Interface name.
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.
Vlan string
VLAN name.
managedSwitch This property is required. String
Managed Switch.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip String
Client static IP address.
mac String
Client MAC address.
name String
Client name.
objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId String
an identifier for the resource with format {{name}}.
port String
Interface name.
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.
vlan String
VLAN name.
managedSwitch This property is required. string
Managed Switch.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip string
Client static IP address.
mac string
Client MAC address.
name string
Client name.
objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId string
an identifier for the resource with format {{name}}.
port string
Interface name.
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.
vlan string
VLAN name.
managed_switch This property is required. str
Managed Switch.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip str
Client static IP address.
mac str
Client MAC address.
name str
Client name.
object_switchcontroller_managedswitch_dhcpsnoopingstaticclient_id str
an identifier for the resource with format {{name}}.
port str
Interface name.
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.
vlan str
VLAN name.
managedSwitch This property is required. String
Managed Switch.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip String
Client static IP address.
mac String
Client MAC address.
name String
Client name.
objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId String
an identifier for the resource with format {{name}}.
port String
Interface name.
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.
vlan String
VLAN name.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient 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 ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient Resource

Get an existing ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient 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?: ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientState, opts?: CustomResourceOptions): ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        ip: Optional[str] = None,
        mac: Optional[str] = None,
        managed_switch: Optional[str] = None,
        name: Optional[str] = None,
        object_switchcontroller_managedswitch_dhcpsnoopingstaticclient_id: Optional[str] = None,
        port: Optional[str] = None,
        scopetype: Optional[str] = None,
        vlan: Optional[str] = None) -> ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient
func GetObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientState, opts ...ResourceOption) (*ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient, error)
public static ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient Get(string name, Input<string> id, ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientState? state, CustomResourceOptions? opts = null)
public static ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient get(String name, Output<String> id, ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Ip string
Client static IP address.
Mac string
Client MAC address.
ManagedSwitch string
Managed Switch.
Name string
Client name.
ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId string
an identifier for the resource with format {{name}}.
Port string
Interface name.
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.
Vlan string
VLAN name.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Ip string
Client static IP address.
Mac string
Client MAC address.
ManagedSwitch string
Managed Switch.
Name string
Client name.
ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId string
an identifier for the resource with format {{name}}.
Port string
Interface name.
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.
Vlan string
VLAN name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip String
Client static IP address.
mac String
Client MAC address.
managedSwitch String
Managed Switch.
name String
Client name.
objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId String
an identifier for the resource with format {{name}}.
port String
Interface name.
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.
vlan String
VLAN name.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip string
Client static IP address.
mac string
Client MAC address.
managedSwitch string
Managed Switch.
name string
Client name.
objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId string
an identifier for the resource with format {{name}}.
port string
Interface name.
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.
vlan string
VLAN name.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip str
Client static IP address.
mac str
Client MAC address.
managed_switch str
Managed Switch.
name str
Client name.
object_switchcontroller_managedswitch_dhcpsnoopingstaticclient_id str
an identifier for the resource with format {{name}}.
port str
Interface name.
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.
vlan str
VLAN name.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
ip String
Client static IP address.
mac String
Client MAC address.
managedSwitch String
Managed Switch.
name String
Client name.
objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclientId String
an identifier for the resource with format {{name}}.
port String
Interface name.
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.
vlan String
VLAN name.

Import

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

Set import_options = [“managed_switch=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient:ObjectSwitchcontrollerManagedswitchDhcpsnoopingstaticclient labelname {{name}}
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.