@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
72 lines • 2.74 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.getFrontendsOutput = exports.getFrontends = 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",
* });
* ```
*/
function getFrontends(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:loadbalancers/getFrontends:getFrontends", {
"lbId": args.lbId,
"name": args.name,
"projectId": args.projectId,
"zone": args.zone,
}, opts);
}
exports.getFrontends = getFrontends;
/**
* 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",
* });
* ```
*/
function getFrontendsOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:loadbalancers/getFrontends:getFrontends", {
"lbId": args.lbId,
"name": args.name,
"projectId": args.projectId,
"zone": args.zone,
}, opts);
}
exports.getFrontendsOutput = getFrontendsOutput;
//# sourceMappingURL=getFrontends.js.map