UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

151 lines (150 loc) 5.37 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get information about Scaleway Load Balancer backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.loadbalancers.Ip("main", {}); * const mainLoadBalancer = new scaleway.loadbalancers.LoadBalancer("main", { * ipId: main.id, * name: "data-test-lb-backend", * type: "LB-S", * }); * const mainBackend = new scaleway.loadbalancers.Backend("main", { * lbId: mainLoadBalancer.id, * name: "backend01", * forwardProtocol: "http", * forwardPort: 80, * }); * const byID = scaleway.loadbalancers.getBackendOutput({ * backendId: mainBackend.id, * }); * const byName = scaleway.loadbalancers.getBackendOutput({ * name: mainBackend.name, * lbId: mainLoadBalancer.id, * }); * ``` */ /** @deprecated scaleway.index/getlbbackend.getLbBackend has been deprecated in favor of scaleway.loadbalancers/getbackend.getBackend */ export declare function getLbBackend(args?: GetLbBackendArgs, opts?: pulumi.InvokeOptions): Promise<GetLbBackendResult>; /** * A collection of arguments for invoking getLbBackend. */ export interface GetLbBackendArgs { /** * The backend ID. * - Only one of `name` and `backendId` should be specified. */ backendId?: string; /** * Load Balancer ID this backend is attached to. */ lbId?: string; /** * The name of the backend. * - When using `name` you should specify the `lb-id` */ name?: string; } /** * A collection of values returned by getLbBackend. */ export interface GetLbBackendResult { readonly backendId?: string; readonly failoverHost: string; readonly forwardPort: number; readonly forwardPortAlgorithm: string; readonly forwardProtocol: string; readonly healthCheckDelay: string; readonly healthCheckHttp: outputs.GetLbBackendHealthCheckHttp[]; readonly healthCheckHttps: outputs.GetLbBackendHealthCheckHttp[]; readonly healthCheckMaxRetries: number; readonly healthCheckPort: number; readonly healthCheckSendProxy: boolean; readonly healthCheckTcps: outputs.GetLbBackendHealthCheckTcp[]; readonly healthCheckTimeout: string; readonly healthCheckTransientDelay: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ignoreSslServerVerify: boolean; readonly lbId?: string; readonly maxConnections: number; readonly maxRetries: number; readonly name?: string; readonly onMarkedDownAction: string; readonly proxyProtocol: string; readonly redispatchAttemptCount: number; readonly sendProxyV2: boolean; readonly serverIps: string[]; readonly sslBridging: boolean; readonly stickySessions: string; readonly stickySessionsCookieName: string; readonly timeoutConnect: string; readonly timeoutQueue: string; readonly timeoutServer: string; readonly timeoutTunnel: string; } /** * Get information about Scaleway Load Balancer backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.loadbalancers.Ip("main", {}); * const mainLoadBalancer = new scaleway.loadbalancers.LoadBalancer("main", { * ipId: main.id, * name: "data-test-lb-backend", * type: "LB-S", * }); * const mainBackend = new scaleway.loadbalancers.Backend("main", { * lbId: mainLoadBalancer.id, * name: "backend01", * forwardProtocol: "http", * forwardPort: 80, * }); * const byID = scaleway.loadbalancers.getBackendOutput({ * backendId: mainBackend.id, * }); * const byName = scaleway.loadbalancers.getBackendOutput({ * name: mainBackend.name, * lbId: mainLoadBalancer.id, * }); * ``` */ /** @deprecated scaleway.index/getlbbackend.getLbBackend has been deprecated in favor of scaleway.loadbalancers/getbackend.getBackend */ export declare function getLbBackendOutput(args?: GetLbBackendOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLbBackendResult>; /** * A collection of arguments for invoking getLbBackend. */ export interface GetLbBackendOutputArgs { /** * The backend ID. * - Only one of `name` and `backendId` should be specified. */ backendId?: pulumi.Input<string>; /** * Load Balancer ID this backend is attached to. */ lbId?: pulumi.Input<string>; /** * The name of the backend. * - When using `name` you should specify the `lb-id` */ name?: pulumi.Input<string>; }