1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. PolicySort
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.firewall.PolicySort

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Create PolicySort Resource

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

    Constructor syntax

    new PolicySort(name: string, args: PolicySortArgs, opts?: CustomResourceOptions);
    @overload
    def PolicySort(resource_name: str,
                   args: PolicySortArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicySort(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   sortby: Optional[str] = None,
                   sortdirection: Optional[str] = None,
                   comment: Optional[str] = None,
                   force_recreate: Optional[str] = None,
                   manual_orders: Optional[Sequence[str]] = None,
                   status: Optional[str] = None,
                   vdomparam: Optional[str] = None)
    func NewPolicySort(ctx *Context, name string, args PolicySortArgs, opts ...ResourceOption) (*PolicySort, error)
    public PolicySort(string name, PolicySortArgs args, CustomResourceOptions? opts = null)
    public PolicySort(String name, PolicySortArgs args)
    public PolicySort(String name, PolicySortArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:PolicySort
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PolicySortArgs
    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 PolicySortArgs
    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 PolicySortArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicySortArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicySortArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var policySortResource = new Fortios.Firewall.PolicySort("policySortResource", new()
    {
        Sortby = "string",
        Sortdirection = "string",
        Comment = "string",
        ForceRecreate = "string",
        ManualOrders = new[]
        {
            "string",
        },
        Status = "string",
        Vdomparam = "string",
    });
    
    example, err := firewall.NewPolicySort(ctx, "policySortResource", &firewall.PolicySortArgs{
    	Sortby:        pulumi.String("string"),
    	Sortdirection: pulumi.String("string"),
    	Comment:       pulumi.String("string"),
    	ForceRecreate: pulumi.String("string"),
    	ManualOrders: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Status:    pulumi.String("string"),
    	Vdomparam: pulumi.String("string"),
    })
    
    var policySortResource = new PolicySort("policySortResource", PolicySortArgs.builder()
        .sortby("string")
        .sortdirection("string")
        .comment("string")
        .forceRecreate("string")
        .manualOrders("string")
        .status("string")
        .vdomparam("string")
        .build());
    
    policy_sort_resource = fortios.firewall.PolicySort("policySortResource",
        sortby="string",
        sortdirection="string",
        comment="string",
        force_recreate="string",
        manual_orders=["string"],
        status="string",
        vdomparam="string")
    
    const policySortResource = new fortios.firewall.PolicySort("policySortResource", {
        sortby: "string",
        sortdirection: "string",
        comment: "string",
        forceRecreate: "string",
        manualOrders: ["string"],
        status: "string",
        vdomparam: "string",
    });
    
    type: fortios:firewall:PolicySort
    properties:
        comment: string
        forceRecreate: string
        manualOrders:
            - string
        sortby: string
        sortdirection: string
        status: string
        vdomparam: string
    

    PolicySort Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PolicySort resource accepts the following input properties:

    Sortby string
    Sortdirection string
    Comment string
    ForceRecreate string
    ManualOrders List<string>
    Status string
    Vdomparam string
    Sortby string
    Sortdirection string
    Comment string
    ForceRecreate string
    ManualOrders []string
    Status string
    Vdomparam string
    sortby String
    sortdirection String
    comment String
    forceRecreate String
    manualOrders List<String>
    status String
    vdomparam String
    sortby string
    sortdirection string
    comment string
    forceRecreate string
    manualOrders string[]
    status string
    vdomparam string
    sortby String
    sortdirection String
    comment String
    forceRecreate String
    manualOrders List<String>
    status String
    vdomparam String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    StatePolicyLists List<Pulumiverse.Fortios.Firewall.Outputs.PolicySortStatePolicyList>
    Id string
    The provider-assigned unique ID for this managed resource.
    StatePolicyLists []PolicySortStatePolicyList
    id String
    The provider-assigned unique ID for this managed resource.
    statePolicyLists List<PolicySortStatePolicyList>
    id string
    The provider-assigned unique ID for this managed resource.
    statePolicyLists PolicySortStatePolicyList[]
    id str
    The provider-assigned unique ID for this managed resource.
    state_policy_lists Sequence[PolicySortStatePolicyList]
    id String
    The provider-assigned unique ID for this managed resource.
    statePolicyLists List<Property Map>

    Look up Existing PolicySort Resource

    Get an existing PolicySort 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?: PolicySortState, opts?: CustomResourceOptions): PolicySort
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            force_recreate: Optional[str] = None,
            manual_orders: Optional[Sequence[str]] = None,
            sortby: Optional[str] = None,
            sortdirection: Optional[str] = None,
            state_policy_lists: Optional[Sequence[PolicySortStatePolicyListArgs]] = None,
            status: Optional[str] = None,
            vdomparam: Optional[str] = None) -> PolicySort
    func GetPolicySort(ctx *Context, name string, id IDInput, state *PolicySortState, opts ...ResourceOption) (*PolicySort, error)
    public static PolicySort Get(string name, Input<string> id, PolicySortState? state, CustomResourceOptions? opts = null)
    public static PolicySort get(String name, Output<String> id, PolicySortState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:

    Supporting Types

    PolicySortStatePolicyList, PolicySortStatePolicyListArgs

    Action string
    Name string
    Policyid string
    Action string
    Name string
    Policyid string
    action String
    name String
    policyid String
    action string
    name string
    policyid string
    action str
    name str
    policyid str
    action String
    name String
    policyid String

    Package Details

    Repository
    fortios pulumiverse/pulumi-fortios
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fortios Terraform Provider.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse