@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
76 lines • 3.4 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLbFrontendsOutput = exports.getLbFrontends = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about multiple Load Balancer frontends.
*
* For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Find frontends that share the same LB ID
* const byLBID = scaleway.loadbalancers.getFrontends({
* lbId: lb01.id,
* });
* // Find frontends by LB ID and name
* const byLBIDAndName = scaleway.loadbalancers.getFrontends({
* lbId: lb01.id,
* name: "tf-frontend-datasource",
* });
* ```
*/
/** @deprecated scaleway.index/getlbfrontends.getLbFrontends has been deprecated in favor of scaleway.loadbalancers/getfrontends.getFrontends */
function getLbFrontends(args, opts) {
pulumi.log.warn("getLbFrontends is deprecated: scaleway.index/getlbfrontends.getLbFrontends has been deprecated in favor of scaleway.loadbalancers/getfrontends.getFrontends");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getLbFrontends:getLbFrontends", {
"lbId": args.lbId,
"name": args.name,
"projectId": args.projectId,
"zone": args.zone,
}, opts);
}
exports.getLbFrontends = getLbFrontends;
/**
* Gets information about multiple Load Balancer frontends.
*
* For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* // Find frontends that share the same LB ID
* const byLBID = scaleway.loadbalancers.getFrontends({
* lbId: lb01.id,
* });
* // Find frontends by LB ID and name
* const byLBIDAndName = scaleway.loadbalancers.getFrontends({
* lbId: lb01.id,
* name: "tf-frontend-datasource",
* });
* ```
*/
/** @deprecated scaleway.index/getlbfrontends.getLbFrontends has been deprecated in favor of scaleway.loadbalancers/getfrontends.getFrontends */
function getLbFrontendsOutput(args, opts) {
pulumi.log.warn("getLbFrontends is deprecated: scaleway.index/getlbfrontends.getLbFrontends has been deprecated in favor of scaleway.loadbalancers/getfrontends.getFrontends");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getLbFrontends:getLbFrontends", {
"lbId": args.lbId,
"name": args.name,
"projectId": args.projectId,
"zone": args.zone,
}, opts);
}
exports.getLbFrontendsOutput = getLbFrontendsOutput;
//# sourceMappingURL=getLbFrontends.js.map