@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
127 lines (126 loc) • 4.22 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 "@pulumi/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",
* });
* ```
*/
/** @deprecated scaleway.index/getloadbalancer.getLoadbalancer has been deprecated in favor of scaleway.loadbalancers/getloadbalancer.getLoadBalancer */
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;
/**
* 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.GetLoadbalancerPrivateIp[];
readonly privateNetworks: outputs.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 "@pulumi/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",
* });
* ```
*/
/** @deprecated scaleway.index/getloadbalancer.getLoadbalancer has been deprecated in favor of scaleway.loadbalancers/getloadbalancer.getLoadBalancer */
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>;
/**
* The Load Balancer name.
*/
name?: pulumi.Input<string>;
/**
* The ID of the Project the Load Balancer is associated with.
*/
projectId?: pulumi.Input<string>;
releaseIp?: pulumi.Input<boolean>;
/**
* (Defaults to provider `zone`) The zone in which the Load Balancer exists.
*/
zone?: pulumi.Input<string>;
}