published on Friday, Jul 31, 2026 by fortinetdev
published on Friday, Jul 31, 2026 by fortinetdev
Create ObjectSwitchcontrollerDynamicportpolicyPolicySort Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectSwitchcontrollerDynamicportpolicyPolicySort(name: string, args: ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs, opts?: CustomResourceOptions);@overload
def ObjectSwitchcontrollerDynamicportpolicyPolicySort(resource_name: str,
args: ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectSwitchcontrollerDynamicportpolicyPolicySort(resource_name: str,
opts: Optional[ResourceOptions] = None,
dynamic_port_policy: Optional[str] = None,
sortby: Optional[str] = None,
sortdirection: Optional[str] = None,
adom: Optional[str] = None,
comment: Optional[str] = None,
force_recreate: Optional[str] = None,
manual_orders: Optional[Sequence[str]] = None,
object_switchcontroller_dynamicportpolicy_policy_sort_id: Optional[str] = None,
scopetype: Optional[str] = None,
status: Optional[str] = None)func NewObjectSwitchcontrollerDynamicportpolicyPolicySort(ctx *Context, name string, args ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs, opts ...ResourceOption) (*ObjectSwitchcontrollerDynamicportpolicyPolicySort, error)public ObjectSwitchcontrollerDynamicportpolicyPolicySort(string name, ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs args, CustomResourceOptions? opts = null)
public ObjectSwitchcontrollerDynamicportpolicyPolicySort(String name, ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs args)
public ObjectSwitchcontrollerDynamicportpolicyPolicySort(String name, ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicySort
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "fortimanager_object_switchcontroller_dynamicportpolicy_policy_sort" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs
- 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 ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs
- 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 ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs
- 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 objectSwitchcontrollerDynamicportpolicyPolicySortResource = new Fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicySort("objectSwitchcontrollerDynamicportpolicyPolicySortResource", new()
{
DynamicPortPolicy = "string",
Sortby = "string",
Sortdirection = "string",
Adom = "string",
Comment = "string",
ForceRecreate = "string",
ManualOrders = new[]
{
"string",
},
ObjectSwitchcontrollerDynamicportpolicyPolicySortId = "string",
Scopetype = "string",
Status = "string",
});
example, err := fortimanager.NewObjectSwitchcontrollerDynamicportpolicyPolicySort(ctx, "objectSwitchcontrollerDynamicportpolicyPolicySortResource", &fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs{
DynamicPortPolicy: pulumi.String("string"),
Sortby: pulumi.String("string"),
Sortdirection: pulumi.String("string"),
Adom: pulumi.String("string"),
Comment: pulumi.String("string"),
ForceRecreate: pulumi.String("string"),
ManualOrders: pulumi.StringArray{
pulumi.String("string"),
},
ObjectSwitchcontrollerDynamicportpolicyPolicySortId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Status: pulumi.String("string"),
})
resource "fortimanager_object_switchcontroller_dynamicportpolicy_policy_sort" "objectSwitchcontrollerDynamicportpolicyPolicySortResource" {
lifecycle {
create_before_destroy = true
}
dynamic_port_policy = "string"
sortby = "string"
sortdirection = "string"
adom = "string"
comment = "string"
force_recreate = "string"
manual_orders = ["string"]
object_switchcontroller_dynamicportpolicy_policy_sort_id = "string"
scopetype = "string"
status = "string"
}
var objectSwitchcontrollerDynamicportpolicyPolicySortResource = new ObjectSwitchcontrollerDynamicportpolicyPolicySort("objectSwitchcontrollerDynamicportpolicyPolicySortResource", ObjectSwitchcontrollerDynamicportpolicyPolicySortArgs.builder()
.dynamicPortPolicy("string")
.sortby("string")
.sortdirection("string")
.adom("string")
.comment("string")
.forceRecreate("string")
.manualOrders("string")
.objectSwitchcontrollerDynamicportpolicyPolicySortId("string")
.scopetype("string")
.status("string")
.build());
object_switchcontroller_dynamicportpolicy_policy_sort_resource = fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicySort("objectSwitchcontrollerDynamicportpolicyPolicySortResource",
dynamic_port_policy="string",
sortby="string",
sortdirection="string",
adom="string",
comment="string",
force_recreate="string",
manual_orders=["string"],
object_switchcontroller_dynamicportpolicy_policy_sort_id="string",
scopetype="string",
status="string")
const objectSwitchcontrollerDynamicportpolicyPolicySortResource = new fortimanager.ObjectSwitchcontrollerDynamicportpolicyPolicySort("objectSwitchcontrollerDynamicportpolicyPolicySortResource", {
dynamicPortPolicy: "string",
sortby: "string",
sortdirection: "string",
adom: "string",
comment: "string",
forceRecreate: "string",
manualOrders: ["string"],
objectSwitchcontrollerDynamicportpolicyPolicySortId: "string",
scopetype: "string",
status: "string",
});
type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicySort
properties:
adom: string
comment: string
dynamicPortPolicy: string
forceRecreate: string
manualOrders:
- string
objectSwitchcontrollerDynamicportpolicyPolicySortId: string
scopetype: string
sortby: string
sortdirection: string
status: string
ObjectSwitchcontrollerDynamicportpolicyPolicySort 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 ObjectSwitchcontrollerDynamicportpolicyPolicySort resource accepts the following input properties:
- Dynamic
Port stringPolicy - Sortby string
- Sortdirection string
- Adom string
- Comment string
- Force
Recreate string - Manual
Orders List<string> - Object
Switchcontroller stringDynamicportpolicy Policy Sort Id - Scopetype string
- Status string
- Dynamic
Port stringPolicy - Sortby string
- Sortdirection string
- Adom string
- Comment string
- Force
Recreate string - Manual
Orders []string - Object
Switchcontroller stringDynamicportpolicy Policy Sort Id - Scopetype string
- Status string
- dynamic_
port_ stringpolicy - sortby string
- sortdirection string
- adom string
- comment string
- force_
recreate string - manual_
orders list(string) - object_
switchcontroller_ stringdynamicportpolicy_ policy_ sort_ id - scopetype string
- status string
- dynamic
Port StringPolicy - sortby String
- sortdirection String
- adom String
- comment String
- force
Recreate String - manual
Orders List<String> - object
Switchcontroller StringDynamicportpolicy Policy Sort Id - scopetype String
- status String
- dynamic
Port stringPolicy - sortby string
- sortdirection string
- adom string
- comment string
- force
Recreate string - manual
Orders string[] - object
Switchcontroller stringDynamicportpolicy Policy Sort Id - scopetype string
- status string
- dynamic_
port_ strpolicy - sortby str
- sortdirection str
- adom str
- comment str
- force_
recreate str - manual_
orders Sequence[str] - object_
switchcontroller_ strdynamicportpolicy_ policy_ sort_ id - scopetype str
- status str
- dynamic
Port StringPolicy - sortby String
- sortdirection String
- adom String
- comment String
- force
Recreate String - manual
Orders List<String> - object
Switchcontroller StringDynamicportpolicy Policy Sort Id - scopetype String
- status String
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectSwitchcontrollerDynamicportpolicyPolicySort resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Lists List<ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List>
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Lists []ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List
- id string
- The provider-assigned unique ID for this managed resource.
- state_
lists list(object)
- id String
- The provider-assigned unique ID for this managed resource.
- state
Lists List<ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List>
- id string
- The provider-assigned unique ID for this managed resource.
- state
Lists ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List[]
- id str
- The provider-assigned unique ID for this managed resource.
- state_
lists Sequence[ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List]
- id String
- The provider-assigned unique ID for this managed resource.
- state
Lists List<Property Map>
Look up Existing ObjectSwitchcontrollerDynamicportpolicyPolicySort Resource
Get an existing ObjectSwitchcontrollerDynamicportpolicyPolicySort 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?: ObjectSwitchcontrollerDynamicportpolicyPolicySortState, opts?: CustomResourceOptions): ObjectSwitchcontrollerDynamicportpolicyPolicySort@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
comment: Optional[str] = None,
dynamic_port_policy: Optional[str] = None,
force_recreate: Optional[str] = None,
manual_orders: Optional[Sequence[str]] = None,
object_switchcontroller_dynamicportpolicy_policy_sort_id: Optional[str] = None,
scopetype: Optional[str] = None,
sortby: Optional[str] = None,
sortdirection: Optional[str] = None,
state_lists: Optional[Sequence[ObjectSwitchcontrollerDynamicportpolicyPolicySortStateListArgs]] = None,
status: Optional[str] = None) -> ObjectSwitchcontrollerDynamicportpolicyPolicySortfunc GetObjectSwitchcontrollerDynamicportpolicyPolicySort(ctx *Context, name string, id IDInput, state *ObjectSwitchcontrollerDynamicportpolicyPolicySortState, opts ...ResourceOption) (*ObjectSwitchcontrollerDynamicportpolicyPolicySort, error)public static ObjectSwitchcontrollerDynamicportpolicyPolicySort Get(string name, Input<string> id, ObjectSwitchcontrollerDynamicportpolicyPolicySortState? state, CustomResourceOptions? opts = null)public static ObjectSwitchcontrollerDynamicportpolicyPolicySort get(String name, Output<String> id, ObjectSwitchcontrollerDynamicportpolicyPolicySortState state, CustomResourceOptions options)resources: _: type: fortimanager:ObjectSwitchcontrollerDynamicportpolicyPolicySort get: id: ${id}import {
to = fortimanager_object_switchcontroller_dynamicportpolicy_policy_sort.example
id = "${id}"
}
- 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.
- Adom string
- Comment string
- Dynamic
Port stringPolicy - Force
Recreate string - Manual
Orders List<string> - Object
Switchcontroller stringDynamicportpolicy Policy Sort Id - Scopetype string
- Sortby string
- Sortdirection string
- State
Lists List<ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List> - Status string
- Adom string
- Comment string
- Dynamic
Port stringPolicy - Force
Recreate string - Manual
Orders []string - Object
Switchcontroller stringDynamicportpolicy Policy Sort Id - Scopetype string
- Sortby string
- Sortdirection string
- State
Lists []ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List Args - Status string
- adom string
- comment string
- dynamic_
port_ stringpolicy - force_
recreate string - manual_
orders list(string) - object_
switchcontroller_ stringdynamicportpolicy_ policy_ sort_ id - scopetype string
- sortby string
- sortdirection string
- state_
lists list(object) - status string
- adom String
- comment String
- dynamic
Port StringPolicy - force
Recreate String - manual
Orders List<String> - object
Switchcontroller StringDynamicportpolicy Policy Sort Id - scopetype String
- sortby String
- sortdirection String
- state
Lists List<ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List> - status String
- adom string
- comment string
- dynamic
Port stringPolicy - force
Recreate string - manual
Orders string[] - object
Switchcontroller stringDynamicportpolicy Policy Sort Id - scopetype string
- sortby string
- sortdirection string
- state
Lists ObjectSwitchcontroller Dynamicportpolicy Policy Sort State List[] - status string
- adom String
- comment String
- dynamic
Port StringPolicy - force
Recreate String - manual
Orders List<String> - object
Switchcontroller StringDynamicportpolicy Policy Sort Id - scopetype String
- sortby String
- sortdirection String
- state
Lists List<Property Map> - status String
Supporting Types
ObjectSwitchcontrollerDynamicportpolicyPolicySortStateList, ObjectSwitchcontrollerDynamicportpolicyPolicySortStateListArgs
- Name string
- Name string
- name string
- name String
- name string
- name str
- name String
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanagerTerraform Provider.
published on Friday, Jul 31, 2026 by fortinetdev