Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse
fortios.router.getPolicy
Explore with Pulumi AI
Use this data source to get information on an fortios router policy
Using getPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
def get_policy(seq_num: Optional[int] = None,
vdomparam: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(seq_num: Optional[pulumi.Input[int]] = None,
vdomparam: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput
> Note: This function is named LookupPolicy
in the Go SDK.
public static class GetPolicy
{
public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fortios:router/getPolicy:getPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Seq
Num int - Specify the seq_num of the desired router policy.
- Vdomparam string
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Seq
Num int - Specify the seq_num of the desired router policy.
- Vdomparam string
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- seq
Num Integer - Specify the seq_num of the desired router policy.
- vdomparam String
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- seq
Num number - Specify the seq_num of the desired router policy.
- vdomparam string
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- seq_
num int - Specify the seq_num of the desired router policy.
- vdomparam str
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- seq
Num Number - Specify the seq_num of the desired router policy.
- vdomparam String
- Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
getPolicy Result
The following output properties are available:
- Action string
- Action of the policy route.
- Comments string
- Optional comments.
- Dst
Negate string - Enable/disable negating destination address match.
- Dstaddrs
List<Pulumiverse.
Fortios. Router. Outputs. Get Policy Dstaddr> - Destination address name. The structure of
dstaddr
block is documented below. - Dsts
List<Pulumiverse.
Fortios. Router. Outputs. Get Policy Dst> - Destination IP and mask (x.x.x.x/x). The structure of
dst
block is documented below. - End
Port int - End destination port number (0 - 65535).
- End
Source intPort - End source port number (0 - 65535).
- Gateway string
- IP address of the gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Input
Device stringNegate - Enable/disable negation of input device match.
- Input
Devices List<Pulumiverse.Fortios. Router. Outputs. Get Policy Input Device> - Incoming interface name. The structure of
input_device
block is documented below. - Internet
Service List<Pulumiverse.Customs Fortios. Router. Outputs. Get Policy Internet Service Custom> - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - Internet
Service List<Pulumiverse.Ids Fortios. Router. Outputs. Get Policy Internet Service Id> - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - Output
Device string - Outgoing interface name.
- Protocol int
- Protocol number (0 - 255).
- Seq
Num int - Sequence number.
- Src
Negate string - Enable/disable negating source address match.
- Srcaddrs
List<Pulumiverse.
Fortios. Router. Outputs. Get Policy Srcaddr> - Source address name. The structure of
srcaddr
block is documented below. - Srcs
List<Pulumiverse.
Fortios. Router. Outputs. Get Policy Src> - Source IP and mask (x.x.x.x/x). The structure of
src
block is documented below. - Start
Port int - Start destination port number (0 - 65535).
- Start
Source intPort - Start source port number (0 - 65535).
- Status string
- Enable/disable this policy route.
- Tos string
- Type of service bit pattern.
- Tos
Mask string - Type of service evaluated bits.
- Vdomparam string
- Action string
- Action of the policy route.
- Comments string
- Optional comments.
- Dst
Negate string - Enable/disable negating destination address match.
- Dstaddrs
[]Get
Policy Dstaddr - Destination address name. The structure of
dstaddr
block is documented below. - Dsts
[]Get
Policy Dst - Destination IP and mask (x.x.x.x/x). The structure of
dst
block is documented below. - End
Port int - End destination port number (0 - 65535).
- End
Source intPort - End source port number (0 - 65535).
- Gateway string
- IP address of the gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Input
Device stringNegate - Enable/disable negation of input device match.
- Input
Devices []GetPolicy Input Device - Incoming interface name. The structure of
input_device
block is documented below. - Internet
Service []GetCustoms Policy Internet Service Custom - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - Internet
Service []GetIds Policy Internet Service Id - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - Output
Device string - Outgoing interface name.
- Protocol int
- Protocol number (0 - 255).
- Seq
Num int - Sequence number.
- Src
Negate string - Enable/disable negating source address match.
- Srcaddrs
[]Get
Policy Srcaddr - Source address name. The structure of
srcaddr
block is documented below. - Srcs
[]Get
Policy Src - Source IP and mask (x.x.x.x/x). The structure of
src
block is documented below. - Start
Port int - Start destination port number (0 - 65535).
- Start
Source intPort - Start source port number (0 - 65535).
- Status string
- Enable/disable this policy route.
- Tos string
- Type of service bit pattern.
- Tos
Mask string - Type of service evaluated bits.
- Vdomparam string
- action String
- Action of the policy route.
- comments String
- Optional comments.
- dst
Negate String - Enable/disable negating destination address match.
- dstaddrs
List<Get
Policy Dstaddr> - Destination address name. The structure of
dstaddr
block is documented below. - dsts
List<Get
Policy Dst> - Destination IP and mask (x.x.x.x/x). The structure of
dst
block is documented below. - end
Port Integer - End destination port number (0 - 65535).
- end
Source IntegerPort - End source port number (0 - 65535).
- gateway String
- IP address of the gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- input
Device StringNegate - Enable/disable negation of input device match.
- input
Devices List<GetPolicy Input Device> - Incoming interface name. The structure of
input_device
block is documented below. - internet
Service List<GetCustoms Policy Internet Service Custom> - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service List<GetIds Policy Internet Service Id> - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device String - Outgoing interface name.
- protocol Integer
- Protocol number (0 - 255).
- seq
Num Integer - Sequence number.
- src
Negate String - Enable/disable negating source address match.
- srcaddrs
List<Get
Policy Srcaddr> - Source address name. The structure of
srcaddr
block is documented below. - srcs
List<Get
Policy Src> - Source IP and mask (x.x.x.x/x). The structure of
src
block is documented below. - start
Port Integer - Start destination port number (0 - 65535).
- start
Source IntegerPort - Start source port number (0 - 65535).
- status String
- Enable/disable this policy route.
- tos String
- Type of service bit pattern.
- tos
Mask String - Type of service evaluated bits.
- vdomparam String
- action string
- Action of the policy route.
- comments string
- Optional comments.
- dst
Negate string - Enable/disable negating destination address match.
- dstaddrs
Get
Policy Dstaddr[] - Destination address name. The structure of
dstaddr
block is documented below. - dsts
Get
Policy Dst[] - Destination IP and mask (x.x.x.x/x). The structure of
dst
block is documented below. - end
Port number - End destination port number (0 - 65535).
- end
Source numberPort - End source port number (0 - 65535).
- gateway string
- IP address of the gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- input
Device stringNegate - Enable/disable negation of input device match.
- input
Devices GetPolicy Input Device[] - Incoming interface name. The structure of
input_device
block is documented below. - internet
Service GetCustoms Policy Internet Service Custom[] - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service GetIds Policy Internet Service Id[] - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device string - Outgoing interface name.
- protocol number
- Protocol number (0 - 255).
- seq
Num number - Sequence number.
- src
Negate string - Enable/disable negating source address match.
- srcaddrs
Get
Policy Srcaddr[] - Source address name. The structure of
srcaddr
block is documented below. - srcs
Get
Policy Src[] - Source IP and mask (x.x.x.x/x). The structure of
src
block is documented below. - start
Port number - Start destination port number (0 - 65535).
- start
Source numberPort - Start source port number (0 - 65535).
- status string
- Enable/disable this policy route.
- tos string
- Type of service bit pattern.
- tos
Mask string - Type of service evaluated bits.
- vdomparam string
- action str
- Action of the policy route.
- comments str
- Optional comments.
- dst_
negate str - Enable/disable negating destination address match.
- dstaddrs
Sequence[Get
Policy Dstaddr] - Destination address name. The structure of
dstaddr
block is documented below. - dsts
Sequence[Get
Policy Dst] - Destination IP and mask (x.x.x.x/x). The structure of
dst
block is documented below. - end_
port int - End destination port number (0 - 65535).
- end_
source_ intport - End source port number (0 - 65535).
- gateway str
- IP address of the gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- input_
device_ strnegate - Enable/disable negation of input device match.
- input_
devices Sequence[GetPolicy Input Device] - Incoming interface name. The structure of
input_device
block is documented below. - internet_
service_ Sequence[Getcustoms Policy Internet Service Custom] - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet_
service_ Sequence[Getids Policy Internet Service Id] - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output_
device str - Outgoing interface name.
- protocol int
- Protocol number (0 - 255).
- seq_
num int - Sequence number.
- src_
negate str - Enable/disable negating source address match.
- srcaddrs
Sequence[Get
Policy Srcaddr] - Source address name. The structure of
srcaddr
block is documented below. - srcs
Sequence[Get
Policy Src] - Source IP and mask (x.x.x.x/x). The structure of
src
block is documented below. - start_
port int - Start destination port number (0 - 65535).
- start_
source_ intport - Start source port number (0 - 65535).
- status str
- Enable/disable this policy route.
- tos str
- Type of service bit pattern.
- tos_
mask str - Type of service evaluated bits.
- vdomparam str
- action String
- Action of the policy route.
- comments String
- Optional comments.
- dst
Negate String - Enable/disable negating destination address match.
- dstaddrs List<Property Map>
- Destination address name. The structure of
dstaddr
block is documented below. - dsts List<Property Map>
- Destination IP and mask (x.x.x.x/x). The structure of
dst
block is documented below. - end
Port Number - End destination port number (0 - 65535).
- end
Source NumberPort - End source port number (0 - 65535).
- gateway String
- IP address of the gateway.
- id String
- The provider-assigned unique ID for this managed resource.
- input
Device StringNegate - Enable/disable negation of input device match.
- input
Devices List<Property Map> - Incoming interface name. The structure of
input_device
block is documented below. - internet
Service List<Property Map>Customs - Custom Destination Internet Service name. The structure of
internet_service_custom
block is documented below. - internet
Service List<Property Map>Ids - Destination Internet Service ID. The structure of
internet_service_id
block is documented below. - output
Device String - Outgoing interface name.
- protocol Number
- Protocol number (0 - 255).
- seq
Num Number - Sequence number.
- src
Negate String - Enable/disable negating source address match.
- srcaddrs List<Property Map>
- Source address name. The structure of
srcaddr
block is documented below. - srcs List<Property Map>
- Source IP and mask (x.x.x.x/x). The structure of
src
block is documented below. - start
Port Number - Start destination port number (0 - 65535).
- start
Source NumberPort - Start source port number (0 - 65535).
- status String
- Enable/disable this policy route.
- tos String
- Type of service bit pattern.
- tos
Mask String - Type of service evaluated bits.
- vdomparam String
Supporting Types
GetPolicyDst
- Subnet string
- IP and mask.
- Subnet string
- IP and mask.
- subnet String
- IP and mask.
- subnet string
- IP and mask.
- subnet str
- IP and mask.
- subnet String
- IP and mask.
GetPolicyDstaddr
- Name string
- Custom Destination Internet Service name.
- Name string
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
- name string
- Custom Destination Internet Service name.
- name str
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
GetPolicyInputDevice
- Name string
- Custom Destination Internet Service name.
- Name string
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
- name string
- Custom Destination Internet Service name.
- name str
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
GetPolicyInternetServiceCustom
- Name string
- Custom Destination Internet Service name.
- Name string
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
- name string
- Custom Destination Internet Service name.
- name str
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
GetPolicyInternetServiceId
- Id int
- Destination Internet Service ID.
- Id int
- Destination Internet Service ID.
- id Integer
- Destination Internet Service ID.
- id number
- Destination Internet Service ID.
- id int
- Destination Internet Service ID.
- id Number
- Destination Internet Service ID.
GetPolicySrc
- Subnet string
- IP and mask.
- Subnet string
- IP and mask.
- subnet String
- IP and mask.
- subnet string
- IP and mask.
- subnet str
- IP and mask.
- subnet String
- IP and mask.
GetPolicySrcaddr
- Name string
- Custom Destination Internet Service name.
- Name string
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
- name string
- Custom Destination Internet Service name.
- name str
- Custom Destination Internet Service name.
- name String
- Custom Destination Internet Service name.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.