import * as pulumi from "@pulumi/pulumi"; /** * Creates a backend server entry linked to HTTP loadbalancing group (farm) * * ## 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), * port: 8080, * zone: "all", * }); * const backend = new ovh.iploadbalancing.HttpFarmServer("backend", { * serviceName: lb.then(lb => lb.serviceName), * farmId: farmname.id, * displayName: "mybackend", * address: "4.5.6.7", * status: "active", * port: 80, * proxyProtocolVersion: "v2", * weight: 2, * probe: true, * ssl: false, * backup: true, * }); * ``` * * ## Import * * HTTP farm server can be imported using the following format `service_name`, the `id` of the farm and the `id` of the server separated by "/" e.g. * * bash * * ```sh * $ pulumi import ovh:IpLoadBalancing/httpFarmServer:HttpFarmServer backend service_name/farm_id/server_id * ``` */ export declare class HttpFarmServer extends pulumi.CustomResource { /** * Get an existing HttpFarmServer 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?: HttpFarmServerState, opts?: pulumi.CustomResourceOptions): HttpFarmServer; /** * Returns true if the given object is an instance of HttpFarmServer. 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 HttpFarmServer; /** * Address of the backend server (IP from either internal or OVHcloud network) */ readonly address: pulumi.Output; /** * is it a backup server used in case of failure of all the non-backup backends */ readonly backup: pulumi.Output; readonly chain: pulumi.Output; /** * Value of the stickiness cookie used for this backend. */ readonly cookie: pulumi.Output; /** * Label for the server */ readonly displayName: pulumi.Output; /** * ID of the farm this server is attached to */ readonly farmId: pulumi.Output; /** * enable action when backend marked down. (`shutdown-sessions`) */ readonly onMarkedDown: pulumi.Output; /** * Port that backend will respond on */ readonly port: pulumi.Output; /** * defines if backend will be probed to determine health and keep as active in farm if healthy */ readonly probe: pulumi.Output; /** * version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (`v1`, `v2`, `v2-ssl`, `v2-ssl-cn`) */ readonly proxyProtocolVersion: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * is the connection ciphered with SSL (TLS) */ readonly ssl: pulumi.Output; /** * backend status - `active` or `inactive` */ readonly status: pulumi.Output; /** * used in loadbalancing algorithm */ readonly weight: pulumi.Output; /** * Create a HttpFarmServer 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: HttpFarmServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpFarmServer resources. */ export interface HttpFarmServerState { /** * Address of the backend server (IP from either internal or OVHcloud network) */ address?: pulumi.Input; /** * is it a backup server used in case of failure of all the non-backup backends */ backup?: pulumi.Input; chain?: pulumi.Input; /** * Value of the stickiness cookie used for this backend. */ cookie?: pulumi.Input; /** * Label for the server */ displayName?: pulumi.Input; /** * ID of the farm this server is attached to */ farmId?: pulumi.Input; /** * enable action when backend marked down. (`shutdown-sessions`) */ onMarkedDown?: pulumi.Input; /** * Port that backend will respond on */ port?: pulumi.Input; /** * defines if backend will be probed to determine health and keep as active in farm if healthy */ probe?: pulumi.Input; /** * version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (`v1`, `v2`, `v2-ssl`, `v2-ssl-cn`) */ proxyProtocolVersion?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * is the connection ciphered with SSL (TLS) */ ssl?: pulumi.Input; /** * backend status - `active` or `inactive` */ status?: pulumi.Input; /** * used in loadbalancing algorithm */ weight?: pulumi.Input; } /** * The set of arguments for constructing a HttpFarmServer resource. */ export interface HttpFarmServerArgs { /** * Address of the backend server (IP from either internal or OVHcloud network) */ address: pulumi.Input; /** * is it a backup server used in case of failure of all the non-backup backends */ backup?: pulumi.Input; chain?: pulumi.Input; /** * Label for the server */ displayName?: pulumi.Input; /** * ID of the farm this server is attached to */ farmId: pulumi.Input; /** * enable action when backend marked down. (`shutdown-sessions`) */ onMarkedDown?: pulumi.Input; /** * Port that backend will respond on */ port?: pulumi.Input; /** * defines if backend will be probed to determine health and keep as active in farm if healthy */ probe?: pulumi.Input; /** * version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (`v1`, `v2`, `v2-ssl`, `v2-ssl-cn`) */ proxyProtocolVersion?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * is the connection ciphered with SSL (TLS) */ ssl?: pulumi.Input; /** * backend status - `active` or `inactive` */ status: pulumi.Input; /** * used in loadbalancing algorithm */ weight?: pulumi.Input; }