UNPKG

@pulumiverse/fortios

Version:

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

228 lines (227 loc) 6.89 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to configure firewall addresses used in firewall policies of FortiOS. * * !> **Warning:** The resource will be deprecated and replaced by new resource `fortios.firewall.Address`, we recommend that you use the new resource. * * ## Example Usage * * ### Iprange Address * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const s1 = new fortios.firewall.ObjectAddress("s1", { * comment: "dd", * endIp: "2.0.0.0", * startIp: "1.0.0.0", * type: "iprange", * }); * ``` * * ### Geography Address * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const s2 = new fortios.firewall.ObjectAddress("s2", { * comment: "dd", * country: "AO", * type: "geography", * }); * ``` * * ### Fqdn Address * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const s3 = new fortios.firewall.ObjectAddress("s3", { * associatedInterface: "port4", * comment: "dd", * fqdn: "baid.com", * showInAddressList: "disable", * staticRouteConfigure: "enable", * type: "fqdn", * }); * ``` * * ### Ipmask Address * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const s4 = new fortios.firewall.ObjectAddress("s4", { * comment: "dd", * subnet: "0.0.0.0 0.0.0.0", * type: "ipmask", * }); * ``` */ export declare class ObjectAddress extends pulumi.CustomResource { /** * Get an existing ObjectAddress 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?: ObjectAddressState, opts?: pulumi.CustomResourceOptions): ObjectAddress; /** * Returns true if the given object is an instance of ObjectAddress. 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 ObjectAddress; /** * Network interface associated with address. */ readonly associatedInterface: pulumi.Output<string>; /** * Comment. */ readonly comment: pulumi.Output<string | undefined>; /** * IP addresses associated to a specific country. */ readonly country: pulumi.Output<string>; /** * Final IP address (inclusive) in the range for the address. */ readonly endIp: pulumi.Output<string>; /** * Fully Qualified Domain Name address. */ readonly fqdn: pulumi.Output<string>; /** * Address name. */ readonly name: pulumi.Output<string>; /** * Enable/disable address visibility in the GUI. default is "enable". */ readonly showInAddressList: pulumi.Output<string>; /** * First IP address (inclusive) in the range for the address. */ readonly startIp: pulumi.Output<string>; /** * Enable/disable use of this address in the static route configuration. default is "disable". */ readonly staticRouteConfigure: pulumi.Output<string>; /** * IP address and subnet mask of address. */ readonly subnet: pulumi.Output<string>; /** * Type of address(Support ipmask, iprange, fqdn and geography). */ readonly type: pulumi.Output<string>; /** * Create a ObjectAddress 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: ObjectAddressArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ObjectAddress resources. */ export interface ObjectAddressState { /** * Network interface associated with address. */ associatedInterface?: pulumi.Input<string>; /** * Comment. */ comment?: pulumi.Input<string>; /** * IP addresses associated to a specific country. */ country?: pulumi.Input<string>; /** * Final IP address (inclusive) in the range for the address. */ endIp?: pulumi.Input<string>; /** * Fully Qualified Domain Name address. */ fqdn?: pulumi.Input<string>; /** * Address name. */ name?: pulumi.Input<string>; /** * Enable/disable address visibility in the GUI. default is "enable". */ showInAddressList?: pulumi.Input<string>; /** * First IP address (inclusive) in the range for the address. */ startIp?: pulumi.Input<string>; /** * Enable/disable use of this address in the static route configuration. default is "disable". */ staticRouteConfigure?: pulumi.Input<string>; /** * IP address and subnet mask of address. */ subnet?: pulumi.Input<string>; /** * Type of address(Support ipmask, iprange, fqdn and geography). */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a ObjectAddress resource. */ export interface ObjectAddressArgs { /** * Network interface associated with address. */ associatedInterface?: pulumi.Input<string>; /** * Comment. */ comment?: pulumi.Input<string>; /** * IP addresses associated to a specific country. */ country?: pulumi.Input<string>; /** * Final IP address (inclusive) in the range for the address. */ endIp?: pulumi.Input<string>; /** * Fully Qualified Domain Name address. */ fqdn?: pulumi.Input<string>; /** * Address name. */ name?: pulumi.Input<string>; /** * Enable/disable address visibility in the GUI. default is "enable". */ showInAddressList?: pulumi.Input<string>; /** * First IP address (inclusive) in the range for the address. */ startIp?: pulumi.Input<string>; /** * Enable/disable use of this address in the static route configuration. default is "disable". */ staticRouteConfigure?: pulumi.Input<string>; /** * IP address and subnet mask of address. */ subnet?: pulumi.Input<string>; /** * Type of address(Support ipmask, iprange, fqdn and geography). */ type: pulumi.Input<string>; }