import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Creates a HTTP backend server group (farm) to be used by loadbalancing frontend(s) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const lb = ovh.IpLoadBalancing.getIpLoadBalancing({ * serviceName: "ip-1.2.3.4", * state: "ok", * }); * const farmname = new ovh.iploadbalancing.HttpFarm("farmname", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "GRA", * }); * ``` * * ## Import * * HTTP farm can be imported using the following format `service_name` and the `id` of the farm, separated by "/" e.g. * * bash * * ```sh * $ pulumi import ovh:IpLoadBalancing/httpFarm:HttpFarm farmname service_name/farm_id * ``` */ export declare class HttpFarm extends pulumi.CustomResource { /** * Get an existing HttpFarm 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, state?: HttpFarmState, opts?: pulumi.CustomResourceOptions): HttpFarm; /** * Returns true if the given object is an instance of HttpFarm. 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 HttpFarm; /** * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`) */ readonly balance: pulumi.Output; /** * Readable label for loadbalancer farm */ readonly displayName: pulumi.Output; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ readonly port: pulumi.Output; /** * define a backend healthcheck probe */ readonly probe: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * Stickiness type. No stickiness if null (`sourceIp`, `cookie`) */ readonly stickiness: pulumi.Output; /** * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack */ readonly vrackNetworkId: pulumi.Output; /** * Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`) */ readonly zone: pulumi.Output; /** * Create a HttpFarm 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: HttpFarmArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpFarm resources. */ export interface HttpFarmState { /** * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`) */ balance?: pulumi.Input; /** * Readable label for loadbalancer farm */ displayName?: pulumi.Input; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ port?: pulumi.Input; /** * define a backend healthcheck probe */ probe?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * Stickiness type. No stickiness if null (`sourceIp`, `cookie`) */ stickiness?: pulumi.Input; /** * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack */ vrackNetworkId?: pulumi.Input; /** * Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`) */ zone?: pulumi.Input; } /** * The set of arguments for constructing a HttpFarm resource. */ export interface HttpFarmArgs { /** * Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`, `uri`) */ balance?: pulumi.Input; /** * Readable label for loadbalancer farm */ displayName?: pulumi.Input; /** * Port attached to your farm ([1..49151]). Inherited from frontend if null */ port?: pulumi.Input; /** * define a backend healthcheck probe */ probe?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * Stickiness type. No stickiness if null (`sourceIp`, `cookie`) */ stickiness?: pulumi.Input; /** * Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack */ vrackNetworkId?: pulumi.Input; /** * Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`) */ zone: pulumi.Input; }