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

fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs

Explore with Pulumi AI

Configuration method to edit custom TLV entries.

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectSwitchcontrollerLldpprofile = new fortimanager.ObjectSwitchcontrollerLldpprofile("trnameObjectSwitchcontrollerLldpprofile", {});
const trnameObjectSwitchcontrollerLldpprofileCustomtlvs = new fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs("trnameObjectSwitchcontrollerLldpprofileCustomtlvs", {
    lldpProfile: trnameObjectSwitchcontrollerLldpprofile.name,
    informationString: "400",
}, {
    dependsOn: [trnameObjectSwitchcontrollerLldpprofile],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_switchcontroller_lldpprofile = fortimanager.ObjectSwitchcontrollerLldpprofile("trnameObjectSwitchcontrollerLldpprofile")
trname_object_switchcontroller_lldpprofile_customtlvs = fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs("trnameObjectSwitchcontrollerLldpprofileCustomtlvs",
    lldp_profile=trname_object_switchcontroller_lldpprofile.name,
    information_string="400",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_switchcontroller_lldpprofile]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectSwitchcontrollerLldpprofile, err := fortimanager.NewObjectSwitchcontrollerLldpprofile(ctx, "trnameObjectSwitchcontrollerLldpprofile", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectSwitchcontrollerLldpprofileCustomtlvs(ctx, "trnameObjectSwitchcontrollerLldpprofileCustomtlvs", &fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvsArgs{
			LldpProfile:       trnameObjectSwitchcontrollerLldpprofile.Name,
			InformationString: pulumi.String("400"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectSwitchcontrollerLldpprofile,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectSwitchcontrollerLldpprofile = new Fortimanager.ObjectSwitchcontrollerLldpprofile("trnameObjectSwitchcontrollerLldpprofile");

    var trnameObjectSwitchcontrollerLldpprofileCustomtlvs = new Fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs("trnameObjectSwitchcontrollerLldpprofileCustomtlvs", new()
    {
        LldpProfile = trnameObjectSwitchcontrollerLldpprofile.Name,
        InformationString = "400",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectSwitchcontrollerLldpprofile,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectSwitchcontrollerLldpprofile;
import com.pulumi.fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs;
import com.pulumi.fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvsArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var trnameObjectSwitchcontrollerLldpprofile = new ObjectSwitchcontrollerLldpprofile("trnameObjectSwitchcontrollerLldpprofile");

        var trnameObjectSwitchcontrollerLldpprofileCustomtlvs = new ObjectSwitchcontrollerLldpprofileCustomtlvs("trnameObjectSwitchcontrollerLldpprofileCustomtlvs", ObjectSwitchcontrollerLldpprofileCustomtlvsArgs.builder()
            .lldpProfile(trnameObjectSwitchcontrollerLldpprofile.name())
            .informationString(400)
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectSwitchcontrollerLldpprofile)
                .build());

    }
}
Copy
resources:
  trnameObjectSwitchcontrollerLldpprofileCustomtlvs:
    type: fortimanager:ObjectSwitchcontrollerLldpprofileCustomtlvs
    properties:
      lldpProfile: ${trnameObjectSwitchcontrollerLldpprofile.name}
      informationString: 400
    options:
      dependsOn:
        - ${trnameObjectSwitchcontrollerLldpprofile}
  trnameObjectSwitchcontrollerLldpprofile:
    type: fortimanager:ObjectSwitchcontrollerLldpprofile
Copy

Create ObjectSwitchcontrollerLldpprofileCustomtlvs Resource

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

Constructor syntax

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

@overload
def ObjectSwitchcontrollerLldpprofileCustomtlvs(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                lldp_profile: Optional[str] = None,
                                                adom: Optional[str] = None,
                                                information_string: Optional[str] = None,
                                                name: Optional[str] = None,
                                                object_switchcontroller_lldpprofile_customtlvs_id: Optional[str] = None,
                                                oui: Optional[str] = None,
                                                scopetype: Optional[str] = None,
                                                subtype: Optional[float] = None)
func NewObjectSwitchcontrollerLldpprofileCustomtlvs(ctx *Context, name string, args ObjectSwitchcontrollerLldpprofileCustomtlvsArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerLldpprofileCustomtlvs, error)
public ObjectSwitchcontrollerLldpprofileCustomtlvs(string name, ObjectSwitchcontrollerLldpprofileCustomtlvsArgs args, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerLldpprofileCustomtlvs(String name, ObjectSwitchcontrollerLldpprofileCustomtlvsArgs args)
public ObjectSwitchcontrollerLldpprofileCustomtlvs(String name, ObjectSwitchcontrollerLldpprofileCustomtlvsArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerLldpprofileCustomtlvs
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. ObjectSwitchcontrollerLldpprofileCustomtlvsArgs
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. ObjectSwitchcontrollerLldpprofileCustomtlvsArgs
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. ObjectSwitchcontrollerLldpprofileCustomtlvsArgs
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. ObjectSwitchcontrollerLldpprofileCustomtlvsArgs
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. ObjectSwitchcontrollerLldpprofileCustomtlvsArgs
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 objectSwitchcontrollerLldpprofileCustomtlvsResource = new Fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs("objectSwitchcontrollerLldpprofileCustomtlvsResource", new()
{
    LldpProfile = "string",
    Adom = "string",
    InformationString = "string",
    Name = "string",
    ObjectSwitchcontrollerLldpprofileCustomtlvsId = "string",
    Oui = "string",
    Scopetype = "string",
    Subtype = 0,
});
Copy
example, err := fortimanager.NewObjectSwitchcontrollerLldpprofileCustomtlvs(ctx, "objectSwitchcontrollerLldpprofileCustomtlvsResource", &fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvsArgs{
LldpProfile: pulumi.String("string"),
Adom: pulumi.String("string"),
InformationString: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectSwitchcontrollerLldpprofileCustomtlvsId: pulumi.String("string"),
Oui: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Subtype: pulumi.Float64(0),
})
Copy
var objectSwitchcontrollerLldpprofileCustomtlvsResource = new ObjectSwitchcontrollerLldpprofileCustomtlvs("objectSwitchcontrollerLldpprofileCustomtlvsResource", ObjectSwitchcontrollerLldpprofileCustomtlvsArgs.builder()
    .lldpProfile("string")
    .adom("string")
    .informationString("string")
    .name("string")
    .objectSwitchcontrollerLldpprofileCustomtlvsId("string")
    .oui("string")
    .scopetype("string")
    .subtype(0)
    .build());
Copy
object_switchcontroller_lldpprofile_customtlvs_resource = fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs("objectSwitchcontrollerLldpprofileCustomtlvsResource",
    lldp_profile="string",
    adom="string",
    information_string="string",
    name="string",
    object_switchcontroller_lldpprofile_customtlvs_id="string",
    oui="string",
    scopetype="string",
    subtype=0)
Copy
const objectSwitchcontrollerLldpprofileCustomtlvsResource = new fortimanager.ObjectSwitchcontrollerLldpprofileCustomtlvs("objectSwitchcontrollerLldpprofileCustomtlvsResource", {
    lldpProfile: "string",
    adom: "string",
    informationString: "string",
    name: "string",
    objectSwitchcontrollerLldpprofileCustomtlvsId: "string",
    oui: "string",
    scopetype: "string",
    subtype: 0,
});
Copy
type: fortimanager:ObjectSwitchcontrollerLldpprofileCustomtlvs
properties:
    adom: string
    informationString: string
    lldpProfile: string
    name: string
    objectSwitchcontrollerLldpprofileCustomtlvsId: string
    oui: string
    scopetype: string
    subtype: 0
Copy

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

LldpProfile This property is required. string
Lldp Profile.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
InformationString string
Organizationally defined information string (0 - 507 hexadecimal bytes).
Name string
TLV name (not sent).
ObjectSwitchcontrollerLldpprofileCustomtlvsId string
an identifier for the resource with format {{name}}.
Oui string
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
Subtype double
Organizationally defined subtype (0 - 255).
LldpProfile This property is required. string
Lldp Profile.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
InformationString string
Organizationally defined information string (0 - 507 hexadecimal bytes).
Name string
TLV name (not sent).
ObjectSwitchcontrollerLldpprofileCustomtlvsId string
an identifier for the resource with format {{name}}.
Oui string
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
Subtype float64
Organizationally defined subtype (0 - 255).
lldpProfile This property is required. String
Lldp Profile.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
informationString String
Organizationally defined information string (0 - 507 hexadecimal bytes).
name String
TLV name (not sent).
objectSwitchcontrollerLldpprofileCustomtlvsId String
an identifier for the resource with format {{name}}.
oui String
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype Double
Organizationally defined subtype (0 - 255).
lldpProfile This property is required. string
Lldp Profile.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
informationString string
Organizationally defined information string (0 - 507 hexadecimal bytes).
name string
TLV name (not sent).
objectSwitchcontrollerLldpprofileCustomtlvsId string
an identifier for the resource with format {{name}}.
oui string
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype number
Organizationally defined subtype (0 - 255).
lldp_profile This property is required. str
Lldp Profile.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
information_string str
Organizationally defined information string (0 - 507 hexadecimal bytes).
name str
TLV name (not sent).
object_switchcontroller_lldpprofile_customtlvs_id str
an identifier for the resource with format {{name}}.
oui str
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype float
Organizationally defined subtype (0 - 255).
lldpProfile This property is required. String
Lldp Profile.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
informationString String
Organizationally defined information string (0 - 507 hexadecimal bytes).
name String
TLV name (not sent).
objectSwitchcontrollerLldpprofileCustomtlvsId String
an identifier for the resource with format {{name}}.
oui String
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype Number
Organizationally defined subtype (0 - 255).

Outputs

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

Get an existing ObjectSwitchcontrollerLldpprofileCustomtlvs 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?: ObjectSwitchcontrollerLldpprofileCustomtlvsState, opts?: CustomResourceOptions): ObjectSwitchcontrollerLldpprofileCustomtlvs
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        information_string: Optional[str] = None,
        lldp_profile: Optional[str] = None,
        name: Optional[str] = None,
        object_switchcontroller_lldpprofile_customtlvs_id: Optional[str] = None,
        oui: Optional[str] = None,
        scopetype: Optional[str] = None,
        subtype: Optional[float] = None) -> ObjectSwitchcontrollerLldpprofileCustomtlvs
func GetObjectSwitchcontrollerLldpprofileCustomtlvs(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerLldpprofileCustomtlvsState, opts ...ResourceOption) (*ObjectSwitchcontrollerLldpprofileCustomtlvs, error)
public static ObjectSwitchcontrollerLldpprofileCustomtlvs Get(string name, Input<string> id, ObjectSwitchcontrollerLldpprofileCustomtlvsState? state, CustomResourceOptions? opts = null)
public static ObjectSwitchcontrollerLldpprofileCustomtlvs get(String name, Output<String> id, ObjectSwitchcontrollerLldpprofileCustomtlvsState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSwitchcontrollerLldpprofileCustomtlvs    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.
InformationString string
Organizationally defined information string (0 - 507 hexadecimal bytes).
LldpProfile string
Lldp Profile.
Name string
TLV name (not sent).
ObjectSwitchcontrollerLldpprofileCustomtlvsId string
an identifier for the resource with format {{name}}.
Oui string
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
Subtype double
Organizationally defined subtype (0 - 255).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
InformationString string
Organizationally defined information string (0 - 507 hexadecimal bytes).
LldpProfile string
Lldp Profile.
Name string
TLV name (not sent).
ObjectSwitchcontrollerLldpprofileCustomtlvsId string
an identifier for the resource with format {{name}}.
Oui string
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
Subtype float64
Organizationally defined subtype (0 - 255).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
informationString String
Organizationally defined information string (0 - 507 hexadecimal bytes).
lldpProfile String
Lldp Profile.
name String
TLV name (not sent).
objectSwitchcontrollerLldpprofileCustomtlvsId String
an identifier for the resource with format {{name}}.
oui String
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype Double
Organizationally defined subtype (0 - 255).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
informationString string
Organizationally defined information string (0 - 507 hexadecimal bytes).
lldpProfile string
Lldp Profile.
name string
TLV name (not sent).
objectSwitchcontrollerLldpprofileCustomtlvsId string
an identifier for the resource with format {{name}}.
oui string
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype number
Organizationally defined subtype (0 - 255).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
information_string str
Organizationally defined information string (0 - 507 hexadecimal bytes).
lldp_profile str
Lldp Profile.
name str
TLV name (not sent).
object_switchcontroller_lldpprofile_customtlvs_id str
an identifier for the resource with format {{name}}.
oui str
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype float
Organizationally defined subtype (0 - 255).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
informationString String
Organizationally defined information string (0 - 507 hexadecimal bytes).
lldpProfile String
Lldp Profile.
name String
TLV name (not sent).
objectSwitchcontrollerLldpprofileCustomtlvsId String
an identifier for the resource with format {{name}}.
oui String
Organizationally unique identifier (OUI), a 3-byte hexadecimal number, for this TLV.
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.
subtype Number
Organizationally defined subtype (0 - 255).

Import

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

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectSwitchcontrollerLldpprofileCustomtlvs:ObjectSwitchcontrollerLldpprofileCustomtlvs 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.