fortimanager.ObjectFirewallIdentitybasedrouteRule
Explore with Pulumi AI
Rule.
This resource is a sub resource for variable
rule
of resourcefortimanager.ObjectFirewallIdentitybasedroute
. 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 trnameObjectFirewallIdentitybasedroute = new fortimanager.ObjectFirewallIdentitybasedroute("trnameObjectFirewallIdentitybasedroute", {});
const trnameObjectFirewallIdentitybasedrouteRule = new fortimanager.ObjectFirewallIdentitybasedrouteRule("trnameObjectFirewallIdentitybasedrouteRule", {
identityBasedRoute: trnameObjectFirewallIdentitybasedroute.name,
fosid: 2,
gateway: "34.8.24.1",
}, {
dependsOn: [trnameObjectFirewallIdentitybasedroute],
});
import pulumi
import pulumi_fortimanager as fortimanager
trname_object_firewall_identitybasedroute = fortimanager.ObjectFirewallIdentitybasedroute("trnameObjectFirewallIdentitybasedroute")
trname_object_firewall_identitybasedroute_rule = fortimanager.ObjectFirewallIdentitybasedrouteRule("trnameObjectFirewallIdentitybasedrouteRule",
identity_based_route=trname_object_firewall_identitybasedroute.name,
fosid=2,
gateway="34.8.24.1",
opts = pulumi.ResourceOptions(depends_on=[trname_object_firewall_identitybasedroute]))
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 {
trnameObjectFirewallIdentitybasedroute, err := fortimanager.NewObjectFirewallIdentitybasedroute(ctx, "trnameObjectFirewallIdentitybasedroute", nil)
if err != nil {
return err
}
_, err = fortimanager.NewObjectFirewallIdentitybasedrouteRule(ctx, "trnameObjectFirewallIdentitybasedrouteRule", &fortimanager.ObjectFirewallIdentitybasedrouteRuleArgs{
IdentityBasedRoute: trnameObjectFirewallIdentitybasedroute.Name,
Fosid: pulumi.Float64(2),
Gateway: pulumi.String("34.8.24.1"),
}, pulumi.DependsOn([]pulumi.Resource{
trnameObjectFirewallIdentitybasedroute,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;
return await Deployment.RunAsync(() =>
{
var trnameObjectFirewallIdentitybasedroute = new Fortimanager.ObjectFirewallIdentitybasedroute("trnameObjectFirewallIdentitybasedroute");
var trnameObjectFirewallIdentitybasedrouteRule = new Fortimanager.ObjectFirewallIdentitybasedrouteRule("trnameObjectFirewallIdentitybasedrouteRule", new()
{
IdentityBasedRoute = trnameObjectFirewallIdentitybasedroute.Name,
Fosid = 2,
Gateway = "34.8.24.1",
}, new CustomResourceOptions
{
DependsOn =
{
trnameObjectFirewallIdentitybasedroute,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallIdentitybasedroute;
import com.pulumi.fortimanager.ObjectFirewallIdentitybasedrouteRule;
import com.pulumi.fortimanager.ObjectFirewallIdentitybasedrouteRuleArgs;
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 trnameObjectFirewallIdentitybasedroute = new ObjectFirewallIdentitybasedroute("trnameObjectFirewallIdentitybasedroute");
var trnameObjectFirewallIdentitybasedrouteRule = new ObjectFirewallIdentitybasedrouteRule("trnameObjectFirewallIdentitybasedrouteRule", ObjectFirewallIdentitybasedrouteRuleArgs.builder()
.identityBasedRoute(trnameObjectFirewallIdentitybasedroute.name())
.fosid(2)
.gateway("34.8.24.1")
.build(), CustomResourceOptions.builder()
.dependsOn(trnameObjectFirewallIdentitybasedroute)
.build());
}
}
resources:
trnameObjectFirewallIdentitybasedrouteRule:
type: fortimanager:ObjectFirewallIdentitybasedrouteRule
properties:
identityBasedRoute: ${trnameObjectFirewallIdentitybasedroute.name}
fosid: 2
gateway: 34.8.24.1
options:
dependsOn:
- ${trnameObjectFirewallIdentitybasedroute}
trnameObjectFirewallIdentitybasedroute:
type: fortimanager:ObjectFirewallIdentitybasedroute
Create ObjectFirewallIdentitybasedrouteRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectFirewallIdentitybasedrouteRule(name: string, args: ObjectFirewallIdentitybasedrouteRuleArgs, opts?: CustomResourceOptions);
@overload
def ObjectFirewallIdentitybasedrouteRule(resource_name: str,
args: ObjectFirewallIdentitybasedrouteRuleInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectFirewallIdentitybasedrouteRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity_based_route: Optional[str] = None,
adom: Optional[str] = None,
device: Optional[str] = None,
fosid: Optional[float] = None,
gateway: Optional[str] = None,
groups: Optional[str] = None,
object_firewall_identitybasedroute_rule_id: Optional[str] = None,
scopetype: Optional[str] = None)
func NewObjectFirewallIdentitybasedrouteRule(ctx *Context, name string, args ObjectFirewallIdentitybasedrouteRuleArgs, opts ...ResourceOption) (*ObjectFirewallIdentitybasedrouteRule, error)
public ObjectFirewallIdentitybasedrouteRule(string name, ObjectFirewallIdentitybasedrouteRuleArgs args, CustomResourceOptions? opts = null)
public ObjectFirewallIdentitybasedrouteRule(String name, ObjectFirewallIdentitybasedrouteRuleArgs args)
public ObjectFirewallIdentitybasedrouteRule(String name, ObjectFirewallIdentitybasedrouteRuleArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallIdentitybasedrouteRule
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 ObjectFirewallIdentitybasedrouteRuleArgs
- 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 ObjectFirewallIdentitybasedrouteRuleInitArgs
- 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 ObjectFirewallIdentitybasedrouteRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectFirewallIdentitybasedrouteRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectFirewallIdentitybasedrouteRuleArgs
- 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 objectFirewallIdentitybasedrouteRuleResource = new Fortimanager.ObjectFirewallIdentitybasedrouteRule("objectFirewallIdentitybasedrouteRuleResource", new()
{
IdentityBasedRoute = "string",
Adom = "string",
Device = "string",
Fosid = 0,
Gateway = "string",
Groups = "string",
ObjectFirewallIdentitybasedrouteRuleId = "string",
Scopetype = "string",
});
example, err := fortimanager.NewObjectFirewallIdentitybasedrouteRule(ctx, "objectFirewallIdentitybasedrouteRuleResource", &fortimanager.ObjectFirewallIdentitybasedrouteRuleArgs{
IdentityBasedRoute: pulumi.String("string"),
Adom: pulumi.String("string"),
Device: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Gateway: pulumi.String("string"),
Groups: pulumi.String("string"),
ObjectFirewallIdentitybasedrouteRuleId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
var objectFirewallIdentitybasedrouteRuleResource = new ObjectFirewallIdentitybasedrouteRule("objectFirewallIdentitybasedrouteRuleResource", ObjectFirewallIdentitybasedrouteRuleArgs.builder()
.identityBasedRoute("string")
.adom("string")
.device("string")
.fosid(0)
.gateway("string")
.groups("string")
.objectFirewallIdentitybasedrouteRuleId("string")
.scopetype("string")
.build());
object_firewall_identitybasedroute_rule_resource = fortimanager.ObjectFirewallIdentitybasedrouteRule("objectFirewallIdentitybasedrouteRuleResource",
identity_based_route="string",
adom="string",
device="string",
fosid=0,
gateway="string",
groups="string",
object_firewall_identitybasedroute_rule_id="string",
scopetype="string")
const objectFirewallIdentitybasedrouteRuleResource = new fortimanager.ObjectFirewallIdentitybasedrouteRule("objectFirewallIdentitybasedrouteRuleResource", {
identityBasedRoute: "string",
adom: "string",
device: "string",
fosid: 0,
gateway: "string",
groups: "string",
objectFirewallIdentitybasedrouteRuleId: "string",
scopetype: "string",
});
type: fortimanager:ObjectFirewallIdentitybasedrouteRule
properties:
adom: string
device: string
fosid: 0
gateway: string
groups: string
identityBasedRoute: string
objectFirewallIdentitybasedrouteRuleId: string
scopetype: string
ObjectFirewallIdentitybasedrouteRule 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 ObjectFirewallIdentitybasedrouteRule resource accepts the following input properties:
- Identity
Based stringRoute - Identity Based Route.
- Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Device string
- Outgoing interface for the rule.
- Fosid double
- Rule ID.
- Gateway string
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- Groups string
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- Object
Firewall stringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- Identity
Based stringRoute - Identity Based Route.
- Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Device string
- Outgoing interface for the rule.
- Fosid float64
- Rule ID.
- Gateway string
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- Groups string
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- Object
Firewall stringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- identity
Based StringRoute - Identity Based Route.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device String
- Outgoing interface for the rule.
- fosid Double
- Rule ID.
- gateway String
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups String
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- object
Firewall StringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- identity
Based stringRoute - Identity Based Route.
- adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device string
- Outgoing interface for the rule.
- fosid number
- Rule ID.
- gateway string
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups string
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- object
Firewall stringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- identity_
based_ strroute - Identity Based Route.
- adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device str
- Outgoing interface for the rule.
- fosid float
- Rule ID.
- gateway str
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups str
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- object_
firewall_ stridentitybasedroute_ rule_ id - an identifier for the resource with format {{fosid}}.
- scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- identity
Based StringRoute - Identity Based Route.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device String
- Outgoing interface for the rule.
- fosid Number
- Rule ID.
- gateway String
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups String
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- object
Firewall StringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectFirewallIdentitybasedrouteRule 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 ObjectFirewallIdentitybasedrouteRule Resource
Get an existing ObjectFirewallIdentitybasedrouteRule 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?: ObjectFirewallIdentitybasedrouteRuleState, opts?: CustomResourceOptions): ObjectFirewallIdentitybasedrouteRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
device: Optional[str] = None,
fosid: Optional[float] = None,
gateway: Optional[str] = None,
groups: Optional[str] = None,
identity_based_route: Optional[str] = None,
object_firewall_identitybasedroute_rule_id: Optional[str] = None,
scopetype: Optional[str] = None) -> ObjectFirewallIdentitybasedrouteRule
func GetObjectFirewallIdentitybasedrouteRule(ctx *Context, name string, id IDInput, state *ObjectFirewallIdentitybasedrouteRuleState, opts ...ResourceOption) (*ObjectFirewallIdentitybasedrouteRule, error)
public static ObjectFirewallIdentitybasedrouteRule Get(string name, Input<string> id, ObjectFirewallIdentitybasedrouteRuleState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallIdentitybasedrouteRule get(String name, Output<String> id, ObjectFirewallIdentitybasedrouteRuleState state, CustomResourceOptions options)
resources: _: type: fortimanager:ObjectFirewallIdentitybasedrouteRule get: 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
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Device string
- Outgoing interface for the rule.
- Fosid double
- Rule ID.
- Gateway string
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- Groups string
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- Identity
Based stringRoute - Identity Based Route.
- Object
Firewall stringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Device string
- Outgoing interface for the rule.
- Fosid float64
- Rule ID.
- Gateway string
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- Groups string
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- Identity
Based stringRoute - Identity Based Route.
- Object
Firewall stringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device String
- Outgoing interface for the rule.
- fosid Double
- Rule ID.
- gateway String
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups String
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- identity
Based StringRoute - Identity Based Route.
- object
Firewall StringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device string
- Outgoing interface for the rule.
- fosid number
- Rule ID.
- gateway string
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups string
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- identity
Based stringRoute - Identity Based Route.
- object
Firewall stringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device str
- Outgoing interface for the rule.
- fosid float
- Rule ID.
- gateway str
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups str
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- identity_
based_ strroute - Identity Based Route.
- object_
firewall_ stridentitybasedroute_ rule_ id - an identifier for the resource with format {{fosid}}.
- scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - device String
- Outgoing interface for the rule.
- fosid Number
- Rule ID.
- gateway String
- IPv4 address of the gateway (Format: xxx.xxx.xxx.xxx , Default: 0.0.0.0).
- groups String
- Select one or more group(s) from available groups that are allowed to use this route. Separate group names with a space.
- identity
Based StringRoute - Identity Based Route.
- object
Firewall StringIdentitybasedroute Rule Id - an identifier for the resource with format {{fosid}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
.
Import
ObjectFirewall IdentityBasedRouteRule can be imported using any of these accepted formats:
Set import_options = [“identity_based_route=YOUR_VALUE”] in the provider section.
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectFirewallIdentitybasedrouteRule:ObjectFirewallIdentitybasedrouteRule labelname {{fosid}}
$ 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.