@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
126 lines • 4.11 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about a Load Balancer.
*
* For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/concepts/#load-balancers) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-list-load-balancers).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by name
* const byName = scaleway.loadbalancers.getLoadBalancer({
* name: "foobar",
* });
* // Get info by ID
* const byId = scaleway.loadbalancers.getLoadBalancer({
* lbId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getLoadBalancer(args?: GetLoadBalancerArgs, opts?: pulumi.InvokeOptions): Promise<GetLoadBalancerResult>;
/**
* A collection of arguments for invoking getLoadBalancer.
*/
export interface GetLoadBalancerArgs {
lbId?: string;
/**
* The Load Balancer name.
*/
name?: string;
/**
* The ID of the Project the Load Balancer is associated with.
*/
projectId?: string;
releaseIp?: boolean;
/**
* (Defaults to provider `zone`) The zone in which the Load Balancer exists.
*/
zone?: string;
}
/**
* A collection of values returned by getLoadBalancer.
*/
export interface GetLoadBalancerResult {
readonly assignFlexibleIp: boolean;
readonly assignFlexibleIpv6: boolean;
readonly description: string;
readonly externalPrivateNetworks: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The Load Balancer public IP address.
*/
readonly ipAddress: string;
readonly ipId: string;
readonly ipIds: string[];
readonly ipv6Address: string;
readonly lbId?: string;
readonly name?: string;
readonly organizationId: string;
readonly privateIps: outputs.loadbalancers.GetLoadBalancerPrivateIp[];
readonly privateNetworks: outputs.loadbalancers.GetLoadBalancerPrivateNetwork[];
readonly projectId?: string;
readonly region: string;
readonly releaseIp?: boolean;
readonly sslCompatibilityLevel: string;
/**
* The tags associated with the Load Balancer.
*/
readonly tags: string[];
/**
* The Load Balancer type.
*/
readonly type: string;
/**
* (Defaults to provider `zone`) The zone in which the Load Balancer exists.
*/
readonly zone?: string;
}
/**
* Gets information about a Load Balancer.
*
* For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/concepts/#load-balancers) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-load-balancer-list-load-balancers).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by name
* const byName = scaleway.loadbalancers.getLoadBalancer({
* name: "foobar",
* });
* // Get info by ID
* const byId = scaleway.loadbalancers.getLoadBalancer({
* lbId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getLoadBalancerOutput(args?: GetLoadBalancerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLoadBalancerResult>;
/**
* A collection of arguments for invoking getLoadBalancer.
*/
export interface GetLoadBalancerOutputArgs {
lbId?: pulumi.Input<string | undefined>;
/**
* The Load Balancer name.
*/
name?: pulumi.Input<string | undefined>;
/**
* The ID of the Project the Load Balancer is associated with.
*/
projectId?: pulumi.Input<string | undefined>;
releaseIp?: pulumi.Input<boolean | undefined>;
/**
* (Defaults to provider `zone`) The zone in which the Load Balancer exists.
*/
zone?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getLoadBalancer.d.ts.map