UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

192 lines (191 loc) 5.45 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to configure static route of FortiOS. * * !> **Warning:** The resource will be deprecated and replaced by new resource `fortios.router.Static`, we recommend that you use the new resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const subnet = new fortios.networking.RouteStatic("subnet", { * blackhole: "disable", * comment: "Terraform test", * device: "port2", * distance: "22", * dst: "110.2.2.122/32", * gateway: "2.2.2.2", * priority: "3", * status: "enable", * weight: "3", * }); * const internetService = new fortios.networking.RouteStatic("internetService", { * blackhole: "disable", * comment: "Terraform Test", * device: "port2", * distance: "22", * gateway: "2.2.2.2", * internetService: 5242881, * priority: "3", * status: "enable", * weight: "3", * }); * ``` */ export declare class RouteStatic extends pulumi.CustomResource { /** * Get an existing RouteStatic resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteStaticState, opts?: pulumi.CustomResourceOptions): RouteStatic; /** * Returns true if the given object is an instance of RouteStatic. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RouteStatic; /** * Enable/disable black hole. */ readonly blackhole: pulumi.Output<string>; /** * Optional comments. */ readonly comment: pulumi.Output<string | undefined>; /** * Gateway out interface or tunnel. */ readonly device: pulumi.Output<string>; /** * Administrative distance. */ readonly distance: pulumi.Output<string>; /** * Destination IP and mask for this route. */ readonly dst: pulumi.Output<string>; /** * Gateway IP for this route. */ readonly gateway: pulumi.Output<string>; /** * Application ID in the Internet service database. */ readonly internetService: pulumi.Output<number>; /** * Administrative priority. */ readonly priority: pulumi.Output<string>; /** * Enable/disable this static route. default is "enable". */ readonly status: pulumi.Output<string>; /** * Administrative weight. */ readonly weight: pulumi.Output<string>; /** * Create a RouteStatic resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RouteStaticArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RouteStatic resources. */ export interface RouteStaticState { /** * Enable/disable black hole. */ blackhole?: pulumi.Input<string>; /** * Optional comments. */ comment?: pulumi.Input<string>; /** * Gateway out interface or tunnel. */ device?: pulumi.Input<string>; /** * Administrative distance. */ distance?: pulumi.Input<string>; /** * Destination IP and mask for this route. */ dst?: pulumi.Input<string>; /** * Gateway IP for this route. */ gateway?: pulumi.Input<string>; /** * Application ID in the Internet service database. */ internetService?: pulumi.Input<number>; /** * Administrative priority. */ priority?: pulumi.Input<string>; /** * Enable/disable this static route. default is "enable". */ status?: pulumi.Input<string>; /** * Administrative weight. */ weight?: pulumi.Input<string>; } /** * The set of arguments for constructing a RouteStatic resource. */ export interface RouteStaticArgs { /** * Enable/disable black hole. */ blackhole?: pulumi.Input<string>; /** * Optional comments. */ comment?: pulumi.Input<string>; /** * Gateway out interface or tunnel. */ device: pulumi.Input<string>; /** * Administrative distance. */ distance?: pulumi.Input<string>; /** * Destination IP and mask for this route. */ dst?: pulumi.Input<string>; /** * Gateway IP for this route. */ gateway: pulumi.Input<string>; /** * Application ID in the Internet service database. */ internetService?: pulumi.Input<number>; /** * Administrative priority. */ priority?: pulumi.Input<string>; /** * Enable/disable this static route. default is "enable". */ status?: pulumi.Input<string>; /** * Administrative weight. */ weight?: pulumi.Input<string>; }