@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
108 lines (107 loc) • 2.93 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Gets information about a Load Balancer.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byName = scaleway.getLoadbalancer({
* name: "foobar",
* });
* const byId = scaleway.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;
releaseIp?: boolean;
/**
* (Defaults to provider `zone`) The zone in which the LB exists.
*/
zone?: string;
}
/**
* A collection of values returned by getLoadbalancer.
*/
export interface GetLoadbalancerResult {
readonly assignFlexibleIp: boolean;
readonly description: string;
/**
* 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 lbId?: string;
readonly name?: string;
readonly organizationId: string;
readonly privateNetworks: outputs.GetLoadbalancerPrivateNetwork[];
/**
* (Defaults to provider `projectId`) The ID of the project the LB is associated with.
*/
readonly projectId: string;
readonly region: string;
readonly releaseIp?: boolean;
readonly sslCompatibilityLevel: string;
/**
* The tags associated with the load-balancer.
*/
readonly tags: string[];
/**
* The type of the load-balancer.
*/
readonly type: string;
/**
* (Defaults to provider `zone`) The zone in which the LB exists.
*/
readonly zone?: string;
}
/**
* Gets information about a Load Balancer.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byName = scaleway.getLoadbalancer({
* name: "foobar",
* });
* const byId = scaleway.getLoadbalancer({
* lbId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getLoadbalancerOutput(args?: GetLoadbalancerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLoadbalancerResult>;
/**
* A collection of arguments for invoking getLoadbalancer.
*/
export interface GetLoadbalancerOutputArgs {
lbId?: pulumi.Input<string>;
/**
* The load balancer name.
*/
name?: pulumi.Input<string>;
releaseIp?: pulumi.Input<boolean>;
/**
* (Defaults to provider `zone`) The zone in which the LB exists.
*/
zone?: pulumi.Input<string>;
}