UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

72 lines 2.71 kB
"use strict"; // *** 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.getBackendsOutput = exports.getBackends = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Gets information about multiple Load Balancer Backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find backends that share the same LB ID * const byLBID = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * }); * // Find backends by LB ID and name * const byLBIDAndName = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * name: "tf-backend-datasource", * }); * ``` */ function getBackends(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:loadbalancers/getBackends:getBackends", { "lbId": args.lbId, "name": args.name, "projectId": args.projectId, "zone": args.zone, }, opts); } exports.getBackends = getBackends; /** * Gets information about multiple Load Balancer Backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find backends that share the same LB ID * const byLBID = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * }); * // Find backends by LB ID and name * const byLBIDAndName = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * name: "tf-backend-datasource", * }); * ``` */ function getBackendsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:loadbalancers/getBackends:getBackends", { "lbId": args.lbId, "name": args.name, "projectId": args.projectId, "zone": args.zone, }, opts); } exports.getBackendsOutput = getBackendsOutput; //# sourceMappingURL=getBackends.js.map