@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
149 lines (148 loc) • 5.1 kB
TypeScript
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,
* });
* ```
*/
export declare function getBackend(args?: GetBackendArgs, opts?: pulumi.InvokeOptions): Promise<GetBackendResult>;
/**
* A collection of arguments for invoking getBackend.
*/
export interface GetBackendArgs {
/**
* 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 getBackend.
*/
export interface GetBackendResult {
readonly backendId?: string;
readonly failoverHost: string;
readonly forwardPort: number;
readonly forwardPortAlgorithm: string;
readonly forwardProtocol: string;
readonly healthCheckDelay: string;
readonly healthCheckHttp: outputs.loadbalancers.GetBackendHealthCheckHttp[];
readonly healthCheckHttps: outputs.loadbalancers.GetBackendHealthCheckHttp[];
readonly healthCheckMaxRetries: number;
readonly healthCheckPort: number;
readonly healthCheckSendProxy: boolean;
readonly healthCheckTcps: outputs.loadbalancers.GetBackendHealthCheckTcp[];
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,
* });
* ```
*/
export declare function getBackendOutput(args?: GetBackendOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBackendResult>;
/**
* A collection of arguments for invoking getBackend.
*/
export interface GetBackendOutputArgs {
/**
* 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>;
}