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

fortimanager.ObjectSwitchcontrollerPtpProfile

Explore with Pulumi AI

Global PTP profile.

Create ObjectSwitchcontrollerPtpProfile Resource

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

Constructor syntax

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

@overload
def ObjectSwitchcontrollerPtpProfile(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     adom: Optional[str] = None,
                                     description: Optional[str] = None,
                                     domain: Optional[float] = None,
                                     mode: Optional[str] = None,
                                     name: Optional[str] = None,
                                     object_switchcontroller_ptp_profile_id: Optional[str] = None,
                                     pdelay_req_interval: Optional[str] = None,
                                     ptp_profile: Optional[str] = None,
                                     scopetype: Optional[str] = None,
                                     transport: Optional[str] = None)
func NewObjectSwitchcontrollerPtpProfile(ctx *Context, name string, args *ObjectSwitchcontrollerPtpProfileArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerPtpProfile, error)
public ObjectSwitchcontrollerPtpProfile(string name, ObjectSwitchcontrollerPtpProfileArgs? args = null, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerPtpProfile(String name, ObjectSwitchcontrollerPtpProfileArgs args)
public ObjectSwitchcontrollerPtpProfile(String name, ObjectSwitchcontrollerPtpProfileArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerPtpProfile
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 ObjectSwitchcontrollerPtpProfileArgs
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 ObjectSwitchcontrollerPtpProfileArgs
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 ObjectSwitchcontrollerPtpProfileArgs
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 ObjectSwitchcontrollerPtpProfileArgs
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. ObjectSwitchcontrollerPtpProfileArgs
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 objectSwitchcontrollerPtpProfileResource = new Fortimanager.ObjectSwitchcontrollerPtpProfile("objectSwitchcontrollerPtpProfileResource", new()
{
    Adom = "string",
    Description = "string",
    Domain = 0,
    Mode = "string",
    Name = "string",
    ObjectSwitchcontrollerPtpProfileId = "string",
    PdelayReqInterval = "string",
    PtpProfile = "string",
    Scopetype = "string",
    Transport = "string",
});
Copy
example, err := fortimanager.NewObjectSwitchcontrollerPtpProfile(ctx, "objectSwitchcontrollerPtpProfileResource", &fortimanager.ObjectSwitchcontrollerPtpProfileArgs{
	Adom:                               pulumi.String("string"),
	Description:                        pulumi.String("string"),
	Domain:                             pulumi.Float64(0),
	Mode:                               pulumi.String("string"),
	Name:                               pulumi.String("string"),
	ObjectSwitchcontrollerPtpProfileId: pulumi.String("string"),
	PdelayReqInterval:                  pulumi.String("string"),
	PtpProfile:                         pulumi.String("string"),
	Scopetype:                          pulumi.String("string"),
	Transport:                          pulumi.String("string"),
})
Copy
var objectSwitchcontrollerPtpProfileResource = new ObjectSwitchcontrollerPtpProfile("objectSwitchcontrollerPtpProfileResource", ObjectSwitchcontrollerPtpProfileArgs.builder()
    .adom("string")
    .description("string")
    .domain(0)
    .mode("string")
    .name("string")
    .objectSwitchcontrollerPtpProfileId("string")
    .pdelayReqInterval("string")
    .ptpProfile("string")
    .scopetype("string")
    .transport("string")
    .build());
Copy
object_switchcontroller_ptp_profile_resource = fortimanager.ObjectSwitchcontrollerPtpProfile("objectSwitchcontrollerPtpProfileResource",
    adom="string",
    description="string",
    domain=0,
    mode="string",
    name="string",
    object_switchcontroller_ptp_profile_id="string",
    pdelay_req_interval="string",
    ptp_profile="string",
    scopetype="string",
    transport="string")
Copy
const objectSwitchcontrollerPtpProfileResource = new fortimanager.ObjectSwitchcontrollerPtpProfile("objectSwitchcontrollerPtpProfileResource", {
    adom: "string",
    description: "string",
    domain: 0,
    mode: "string",
    name: "string",
    objectSwitchcontrollerPtpProfileId: "string",
    pdelayReqInterval: "string",
    ptpProfile: "string",
    scopetype: "string",
    transport: "string",
});
Copy
type: fortimanager:ObjectSwitchcontrollerPtpProfile
properties:
    adom: string
    description: string
    domain: 0
    mode: string
    name: string
    objectSwitchcontrollerPtpProfileId: string
    pdelayReqInterval: string
    ptpProfile: string
    scopetype: string
    transport: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Domain double
Configure PTP domain value (0 - 255, default = 254).
Mode string
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
Name string
Profile name.
ObjectSwitchcontrollerPtpProfileId string
an identifier for the resource with format {{name}}.
PdelayReqInterval string
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
PtpProfile string
Configure PTP power profile. Valid values: C37.238-2017.
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.
Transport string
Configure PTP transport mode. Valid values: l2-mcast.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Domain float64
Configure PTP domain value (0 - 255, default = 254).
Mode string
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
Name string
Profile name.
ObjectSwitchcontrollerPtpProfileId string
an identifier for the resource with format {{name}}.
PdelayReqInterval string
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
PtpProfile string
Configure PTP power profile. Valid values: C37.238-2017.
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.
Transport string
Configure PTP transport mode. Valid values: l2-mcast.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
domain Double
Configure PTP domain value (0 - 255, default = 254).
mode String
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name String
Profile name.
objectSwitchcontrollerPtpProfileId String
an identifier for the resource with format {{name}}.
pdelayReqInterval String
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptpProfile String
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport String
Configure PTP transport mode. Valid values: l2-mcast.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description string
Description.
domain number
Configure PTP domain value (0 - 255, default = 254).
mode string
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name string
Profile name.
objectSwitchcontrollerPtpProfileId string
an identifier for the resource with format {{name}}.
pdelayReqInterval string
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptpProfile string
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport string
Configure PTP transport mode. Valid values: l2-mcast.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description str
Description.
domain float
Configure PTP domain value (0 - 255, default = 254).
mode str
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name str
Profile name.
object_switchcontroller_ptp_profile_id str
an identifier for the resource with format {{name}}.
pdelay_req_interval str
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptp_profile str
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport str
Configure PTP transport mode. Valid values: l2-mcast.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
domain Number
Configure PTP domain value (0 - 255, default = 254).
mode String
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name String
Profile name.
objectSwitchcontrollerPtpProfileId String
an identifier for the resource with format {{name}}.
pdelayReqInterval String
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptpProfile String
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport String
Configure PTP transport mode. Valid values: l2-mcast.

Outputs

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

Get an existing ObjectSwitchcontrollerPtpProfile 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?: ObjectSwitchcontrollerPtpProfileState, opts?: CustomResourceOptions): ObjectSwitchcontrollerPtpProfile
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        description: Optional[str] = None,
        domain: Optional[float] = None,
        mode: Optional[str] = None,
        name: Optional[str] = None,
        object_switchcontroller_ptp_profile_id: Optional[str] = None,
        pdelay_req_interval: Optional[str] = None,
        ptp_profile: Optional[str] = None,
        scopetype: Optional[str] = None,
        transport: Optional[str] = None) -> ObjectSwitchcontrollerPtpProfile
func GetObjectSwitchcontrollerPtpProfile(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerPtpProfileState, opts ...ResourceOption) (*ObjectSwitchcontrollerPtpProfile, error)
public static ObjectSwitchcontrollerPtpProfile Get(string name, Input<string> id, ObjectSwitchcontrollerPtpProfileState? state, CustomResourceOptions? opts = null)
public static ObjectSwitchcontrollerPtpProfile get(String name, Output<String> id, ObjectSwitchcontrollerPtpProfileState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSwitchcontrollerPtpProfile    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.
Description string
Description.
Domain double
Configure PTP domain value (0 - 255, default = 254).
Mode string
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
Name string
Profile name.
ObjectSwitchcontrollerPtpProfileId string
an identifier for the resource with format {{name}}.
PdelayReqInterval string
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
PtpProfile string
Configure PTP power profile. Valid values: C37.238-2017.
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.
Transport string
Configure PTP transport mode. Valid values: l2-mcast.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
Domain float64
Configure PTP domain value (0 - 255, default = 254).
Mode string
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
Name string
Profile name.
ObjectSwitchcontrollerPtpProfileId string
an identifier for the resource with format {{name}}.
PdelayReqInterval string
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
PtpProfile string
Configure PTP power profile. Valid values: C37.238-2017.
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.
Transport string
Configure PTP transport mode. Valid values: l2-mcast.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
domain Double
Configure PTP domain value (0 - 255, default = 254).
mode String
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name String
Profile name.
objectSwitchcontrollerPtpProfileId String
an identifier for the resource with format {{name}}.
pdelayReqInterval String
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptpProfile String
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport String
Configure PTP transport mode. Valid values: l2-mcast.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description string
Description.
domain number
Configure PTP domain value (0 - 255, default = 254).
mode string
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name string
Profile name.
objectSwitchcontrollerPtpProfileId string
an identifier for the resource with format {{name}}.
pdelayReqInterval string
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptpProfile string
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport string
Configure PTP transport mode. Valid values: l2-mcast.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description str
Description.
domain float
Configure PTP domain value (0 - 255, default = 254).
mode str
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name str
Profile name.
object_switchcontroller_ptp_profile_id str
an identifier for the resource with format {{name}}.
pdelay_req_interval str
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptp_profile str
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport str
Configure PTP transport mode. Valid values: l2-mcast.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
domain Number
Configure PTP domain value (0 - 255, default = 254).
mode String
Select PTP mode. Valid values: transparent-e2e, transparent-p2p.
name String
Profile name.
objectSwitchcontrollerPtpProfileId String
an identifier for the resource with format {{name}}.
pdelayReqInterval String
Configure PTP peer delay request interval. Valid values: 1sec, 2sec, 4sec, 8sec, 16sec, 32sec.
ptpProfile String
Configure PTP power profile. Valid values: C37.238-2017.
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.
transport String
Configure PTP transport mode. Valid values: l2-mcast.

Import

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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