Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse
fortios.router.getStatic
Explore with Pulumi AI
Use this data source to get information on an fortios router static
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumi/fortios";
const sample1 = fortios.router.getStatic({
seqNum: 1,
});
export const output1 = sample1;
import pulumi
import pulumi_fortios as fortios
sample1 = fortios.router.get_static(seq_num=1)
pulumi.export("output1", sample1)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/router"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
sample1, err := router.LookupStatic(ctx, &router.LookupStaticArgs{
SeqNum: 1,
}, nil)
if err != nil {
return err
}
ctx.Export("output1", sample1)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumi.Fortios;
return await Deployment.RunAsync(() =>
{
var sample1 = Fortios.Router.GetStatic.Invoke(new()
{
SeqNum = 1,
});
return new Dictionary<string, object?>
{
["output1"] = sample1,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.router.RouterFunctions;
import com.pulumi.fortios.router.inputs.GetStaticArgs;
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) {
final var sample1 = RouterFunctions.getStatic(GetStaticArgs.builder()
.seqNum(1)
.build());
ctx.export("output1", sample1.applyValue(getStaticResult -> getStaticResult));
}
}
variables:
sample1:
fn::invoke:
Function: fortios:router:getStatic
Arguments:
seqNum: 1
outputs:
output1: ${sample1}
Using getStatic
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 getStatic(args: GetStaticArgs, opts?: InvokeOptions): Promise<GetStaticResult>
function getStaticOutput(args: GetStaticOutputArgs, opts?: InvokeOptions): Output<GetStaticResult>
def get_static(seq_num: Optional[int] = None,
vdomparam: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStaticResult
def get_static_output(seq_num: Optional[pulumi.Input[int]] = None,
vdomparam: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStaticResult]
func LookupStatic(ctx *Context, args *LookupStaticArgs, opts ...InvokeOption) (*LookupStaticResult, error)
func LookupStaticOutput(ctx *Context, args *LookupStaticOutputArgs, opts ...InvokeOption) LookupStaticResultOutput
> Note: This function is named LookupStatic
in the Go SDK.
public static class GetStatic
{
public static Task<GetStaticResult> InvokeAsync(GetStaticArgs args, InvokeOptions? opts = null)
public static Output<GetStaticResult> Invoke(GetStaticInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStaticResult> getStatic(GetStaticArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fortios:router/getStatic:getStatic
arguments:
# arguments dictionary
The following arguments are supported:
- Seq
Num int - Specify the seq_num of the desired router static.
- 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 static.
- 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 static.
- 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 static.
- 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 static.
- 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 static.
- 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.
getStatic Result
The following output properties are available:
- Bfd string
- Enable/disable Bidirectional Forwarding Detection (BFD).
- Blackhole string
- Enable/disable black hole.
- Comment string
- Optional comments.
- Device string
- Gateway out interface or tunnel.
- Distance int
- Administrative distance (1 - 255).
- Dst string
- Destination IP and mask for this route.
- Dstaddr string
- Name of firewall address or address group.
- Dynamic
Gateway string - Enable use of dynamic gateway retrieved from a DHCP or PPP server.
- Gateway string
- Gateway IP for this route.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Service int - Application ID in the Internet service database.
- Internet
Service stringCustom - Application name in the Internet service custom database.
- Link
Monitor stringExempt - Enable/disable withdrawing this route when link monitor or health check is down.
- Preferred
Source string - Preferred source IP for this route.
- Priority int
- Administrative priority (0 - 4294967295).
- Sdwan string
- Enable/disable egress through SD-WAN.
- Sdwan
Zones List<Pulumiverse.Fortios. Router. Outputs. Get Static Sdwan Zone> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - Seq
Num int - Sequence number.
- Src string
- Source prefix for this route.
- Status string
- Enable/disable this static route.
- Tag int
- Route tag.
- Virtual
Wan stringLink - Enable/disable egress through the virtual-wan-link.
- Vrf int
- Virtual Routing Forwarding ID.
- Weight int
- Administrative weight (0 - 255).
- Vdomparam string
- Bfd string
- Enable/disable Bidirectional Forwarding Detection (BFD).
- Blackhole string
- Enable/disable black hole.
- Comment string
- Optional comments.
- Device string
- Gateway out interface or tunnel.
- Distance int
- Administrative distance (1 - 255).
- Dst string
- Destination IP and mask for this route.
- Dstaddr string
- Name of firewall address or address group.
- Dynamic
Gateway string - Enable use of dynamic gateway retrieved from a DHCP or PPP server.
- Gateway string
- Gateway IP for this route.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Service int - Application ID in the Internet service database.
- Internet
Service stringCustom - Application name in the Internet service custom database.
- Link
Monitor stringExempt - Enable/disable withdrawing this route when link monitor or health check is down.
- Preferred
Source string - Preferred source IP for this route.
- Priority int
- Administrative priority (0 - 4294967295).
- Sdwan string
- Enable/disable egress through SD-WAN.
- Sdwan
Zones []GetStatic Sdwan Zone - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - Seq
Num int - Sequence number.
- Src string
- Source prefix for this route.
- Status string
- Enable/disable this static route.
- Tag int
- Route tag.
- Virtual
Wan stringLink - Enable/disable egress through the virtual-wan-link.
- Vrf int
- Virtual Routing Forwarding ID.
- Weight int
- Administrative weight (0 - 255).
- Vdomparam string
- bfd String
- Enable/disable Bidirectional Forwarding Detection (BFD).
- blackhole String
- Enable/disable black hole.
- comment String
- Optional comments.
- device String
- Gateway out interface or tunnel.
- distance Integer
- Administrative distance (1 - 255).
- dst String
- Destination IP and mask for this route.
- dstaddr String
- Name of firewall address or address group.
- dynamic
Gateway String - Enable use of dynamic gateway retrieved from a DHCP or PPP server.
- gateway String
- Gateway IP for this route.
- id String
- The provider-assigned unique ID for this managed resource.
- internet
Service Integer - Application ID in the Internet service database.
- internet
Service StringCustom - Application name in the Internet service custom database.
- link
Monitor StringExempt - Enable/disable withdrawing this route when link monitor or health check is down.
- preferred
Source String - Preferred source IP for this route.
- priority Integer
- Administrative priority (0 - 4294967295).
- sdwan String
- Enable/disable egress through SD-WAN.
- sdwan
Zones List<GetStatic Sdwan Zone> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num Integer - Sequence number.
- src String
- Source prefix for this route.
- status String
- Enable/disable this static route.
- tag Integer
- Route tag.
- virtual
Wan StringLink - Enable/disable egress through the virtual-wan-link.
- vrf Integer
- Virtual Routing Forwarding ID.
- weight Integer
- Administrative weight (0 - 255).
- vdomparam String
- bfd string
- Enable/disable Bidirectional Forwarding Detection (BFD).
- blackhole string
- Enable/disable black hole.
- comment string
- Optional comments.
- device string
- Gateway out interface or tunnel.
- distance number
- Administrative distance (1 - 255).
- dst string
- Destination IP and mask for this route.
- dstaddr string
- Name of firewall address or address group.
- dynamic
Gateway string - Enable use of dynamic gateway retrieved from a DHCP or PPP server.
- gateway string
- Gateway IP for this route.
- id string
- The provider-assigned unique ID for this managed resource.
- internet
Service number - Application ID in the Internet service database.
- internet
Service stringCustom - Application name in the Internet service custom database.
- link
Monitor stringExempt - Enable/disable withdrawing this route when link monitor or health check is down.
- preferred
Source string - Preferred source IP for this route.
- priority number
- Administrative priority (0 - 4294967295).
- sdwan string
- Enable/disable egress through SD-WAN.
- sdwan
Zones GetStatic Sdwan Zone[] - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num number - Sequence number.
- src string
- Source prefix for this route.
- status string
- Enable/disable this static route.
- tag number
- Route tag.
- virtual
Wan stringLink - Enable/disable egress through the virtual-wan-link.
- vrf number
- Virtual Routing Forwarding ID.
- weight number
- Administrative weight (0 - 255).
- vdomparam string
- bfd str
- Enable/disable Bidirectional Forwarding Detection (BFD).
- blackhole str
- Enable/disable black hole.
- comment str
- Optional comments.
- device str
- Gateway out interface or tunnel.
- distance int
- Administrative distance (1 - 255).
- dst str
- Destination IP and mask for this route.
- dstaddr str
- Name of firewall address or address group.
- dynamic_
gateway str - Enable use of dynamic gateway retrieved from a DHCP or PPP server.
- gateway str
- Gateway IP for this route.
- id str
- The provider-assigned unique ID for this managed resource.
- internet_
service int - Application ID in the Internet service database.
- internet_
service_ strcustom - Application name in the Internet service custom database.
- link_
monitor_ strexempt - Enable/disable withdrawing this route when link monitor or health check is down.
- preferred_
source str - Preferred source IP for this route.
- priority int
- Administrative priority (0 - 4294967295).
- sdwan str
- Enable/disable egress through SD-WAN.
- sdwan_
zones Sequence[GetStatic Sdwan Zone] - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq_
num int - Sequence number.
- src str
- Source prefix for this route.
- status str
- Enable/disable this static route.
- tag int
- Route tag.
- virtual_
wan_ strlink - Enable/disable egress through the virtual-wan-link.
- vrf int
- Virtual Routing Forwarding ID.
- weight int
- Administrative weight (0 - 255).
- vdomparam str
- bfd String
- Enable/disable Bidirectional Forwarding Detection (BFD).
- blackhole String
- Enable/disable black hole.
- comment String
- Optional comments.
- device String
- Gateway out interface or tunnel.
- distance Number
- Administrative distance (1 - 255).
- dst String
- Destination IP and mask for this route.
- dstaddr String
- Name of firewall address or address group.
- dynamic
Gateway String - Enable use of dynamic gateway retrieved from a DHCP or PPP server.
- gateway String
- Gateway IP for this route.
- id String
- The provider-assigned unique ID for this managed resource.
- internet
Service Number - Application ID in the Internet service database.
- internet
Service StringCustom - Application name in the Internet service custom database.
- link
Monitor StringExempt - Enable/disable withdrawing this route when link monitor or health check is down.
- preferred
Source String - Preferred source IP for this route.
- priority Number
- Administrative priority (0 - 4294967295).
- sdwan String
- Enable/disable egress through SD-WAN.
- sdwan
Zones List<Property Map> - Choose SD-WAN Zone. The structure of
sdwan_zone
block is documented below. - seq
Num Number - Sequence number.
- src String
- Source prefix for this route.
- status String
- Enable/disable this static route.
- tag Number
- Route tag.
- virtual
Wan StringLink - Enable/disable egress through the virtual-wan-link.
- vrf Number
- Virtual Routing Forwarding ID.
- weight Number
- Administrative weight (0 - 255).
- vdomparam String
Supporting Types
GetStaticSdwanZone
- Name string
- SD-WAN zone name.
- Name string
- SD-WAN zone name.
- name String
- SD-WAN zone name.
- name string
- SD-WAN zone name.
- name str
- SD-WAN zone name.
- name String
- SD-WAN zone name.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.