@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
105 lines (104 loc) • 3.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Gets information about multiple 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";
*
* // Find backends that share the same LB ID
* const byLBID = scaleway.loadbalancers.getBackends({
* lbId: lb01.id,
* });
* // Find backends by LB ID and name
* const byLBIDAndName = scaleway.loadbalancers.getBackends({
* lbId: lb01.id,
* name: "tf-backend-datasource",
* });
* ```
*/
/** @deprecated scaleway.index/getlbbackends.getLbBackends has been deprecated in favor of scaleway.loadbalancers/getbackends.getBackends */
export declare function getLbBackends(args: GetLbBackendsArgs, opts?: pulumi.InvokeOptions): Promise<GetLbBackendsResult>;
/**
* A collection of arguments for invoking getLbBackends.
*/
export interface GetLbBackendsArgs {
/**
* The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
*/
lbId: string;
/**
* The backend name to filter for. Backends with a matching name are listed.
*/
name?: string;
projectId?: string;
/**
* `zone`) The zone in which backends exist.
*/
zone?: string;
}
/**
* A collection of values returned by getLbBackends.
*/
export interface GetLbBackendsResult {
/**
* List of retrieved backends
*/
readonly backends: outputs.GetLbBackendsBackend[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly lbId: string;
readonly name?: string;
readonly organizationId: string;
readonly projectId: string;
readonly zone: string;
}
/**
* Gets information about multiple 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";
*
* // Find backends that share the same LB ID
* const byLBID = scaleway.loadbalancers.getBackends({
* lbId: lb01.id,
* });
* // Find backends by LB ID and name
* const byLBIDAndName = scaleway.loadbalancers.getBackends({
* lbId: lb01.id,
* name: "tf-backend-datasource",
* });
* ```
*/
/** @deprecated scaleway.index/getlbbackends.getLbBackends has been deprecated in favor of scaleway.loadbalancers/getbackends.getBackends */
export declare function getLbBackendsOutput(args: GetLbBackendsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLbBackendsResult>;
/**
* A collection of arguments for invoking getLbBackends.
*/
export interface GetLbBackendsOutputArgs {
/**
* The Load Balancer ID this backend is attached to. Backends with a matching ID are listed.
*/
lbId: pulumi.Input<string>;
/**
* The backend name to filter for. Backends with a matching name are listed.
*/
name?: pulumi.Input<string>;
projectId?: pulumi.Input<string>;
/**
* `zone`) The zone in which backends exist.
*/
zone?: pulumi.Input<string>;
}