import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to retrieve information about a rule on an IP firewall. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myFirewallRule = ovh.Ip.getFirewallRule({ * ip: "XXXXXX", * ipOnFirewall: "XXXXXX", * sequence: 0, * }); * ``` */ export declare function getFirewallRule(args: GetFirewallRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getFirewallRule. */ export interface GetFirewallRuleArgs { /** * The IP or the CIDR */ ip: string; /** * IPv4 address */ ipOnFirewall: string; /** * Rule position in the rules array */ sequence: number; } /** * A collection of values returned by getFirewallRule. */ export interface GetFirewallRuleResult { /** * Possible values for action (deny|permit) */ readonly action: string; /** * Creation date of the rule */ readonly creationDate: string; /** * Destination IP for your rule */ readonly destination: string; /** * Destination port for your rule. Only with TCP/UDP protocol */ readonly destinationPort: string; /** * Fragments option */ readonly fragments: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The IP or the CIDR */ readonly ip: string; /** * IPv4 address */ readonly ipOnFirewall: string; /** * Possible values for protocol (ah|esp|gre|icmp|ipv4|tcp|udp) */ readonly protocol: string; /** * Description of the rule */ readonly rule: string; /** * Rule position in the rules array */ readonly sequence: number; /** * IPv4 CIDR notation (e.g., 192.0.2.0/24) */ readonly source: string; /** * Source port for your rule. Only with TCP/UDP protocol */ readonly sourcePort: string; /** * Current state of your rule */ readonly state: string; /** * TCP option on your rule (syn|established) */ readonly tcpOption: string; } /** * Use this data source to retrieve information about a rule on an IP firewall. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myFirewallRule = ovh.Ip.getFirewallRule({ * ip: "XXXXXX", * ipOnFirewall: "XXXXXX", * sequence: 0, * }); * ``` */ export declare function getFirewallRuleOutput(args: GetFirewallRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getFirewallRule. */ export interface GetFirewallRuleOutputArgs { /** * The IP or the CIDR */ ip: pulumi.Input; /** * IPv4 address */ ipOnFirewall: pulumi.Input; /** * Rule position in the rules array */ sequence: pulumi.Input; }