import * as pulumi from "@pulumi/pulumi"; /** * Creates a backend server entry linked to 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.UdpFarm("farm_name", { * serviceName: lb.then(lb => lb.serviceName), * displayName: "ingress-8080-gra", * zone: "gra", * port: 80, * }); * const backend = new ovh.iploadbalancing.UdpFarmServer("backend", { * serviceName: lb.then(lb => lb.serviceName), * farmId: farmName.farmId, * displayName: "mybackend", * address: "4.5.6.7", * status: "active", * port: 80, * }); * ``` * * ## Import * * UDP 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/udpFarmServer:UdpFarmServer backend service_name/farm_id/server_id * ``` */ export declare class UdpFarmServer extends pulumi.CustomResource { /** * Get an existing UdpFarmServer 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?: UdpFarmServerState, opts?: pulumi.CustomResourceOptions): UdpFarmServer; /** * Returns true if the given object is an instance of UdpFarmServer. 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 UdpFarmServer; /** * Address of the backend server (IP from either internal or OVHcloud network) */ readonly address: pulumi.Output; /** * Synonym for `farmId`. */ readonly backendId: pulumi.Output; /** * Label for the server */ readonly displayName: pulumi.Output; /** * ID of the farm this server is attached to */ readonly farmId: pulumi.Output; /** * Port that backend will respond on */ readonly port: pulumi.Output; /** * Id of your server. */ readonly serverId: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * backend status - `active` or `inactive` */ readonly status: pulumi.Output; /** * Create a UdpFarmServer 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: UdpFarmServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UdpFarmServer resources. */ export interface UdpFarmServerState { /** * Address of the backend server (IP from either internal or OVHcloud network) */ address?: pulumi.Input; /** * Synonym for `farmId`. */ backendId?: pulumi.Input; /** * Label for the server */ displayName?: pulumi.Input; /** * ID of the farm this server is attached to */ farmId?: pulumi.Input; /** * Port that backend will respond on */ port?: pulumi.Input; /** * Id of your server. */ serverId?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * backend status - `active` or `inactive` */ status?: pulumi.Input; } /** * The set of arguments for constructing a UdpFarmServer resource. */ export interface UdpFarmServerArgs { /** * Address of the backend server (IP from either internal or OVHcloud network) */ address: pulumi.Input; /** * Label for the server */ displayName?: pulumi.Input; /** * ID of the farm this server is attached to */ farmId: pulumi.Input; /** * Port that backend will respond on */ port?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * backend status - `active` or `inactive` */ status: pulumi.Input; }