UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

76 lines 3.35 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.getLbBackendsOutput = exports.getLbBackends = 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", * }); * ``` */ /** @deprecated scaleway.index/getlbbackends.getLbBackends has been deprecated in favor of scaleway.loadbalancers/getbackends.getBackends */ function getLbBackends(args, opts) { pulumi.log.warn("getLbBackends is deprecated: scaleway.index/getlbbackends.getLbBackends has been deprecated in favor of scaleway.loadbalancers/getbackends.getBackends"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getLbBackends:getLbBackends", { "lbId": args.lbId, "name": args.name, "projectId": args.projectId, "zone": args.zone, }, opts); } exports.getLbBackends = getLbBackends; /** * 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", * }); * ``` */ /** @deprecated scaleway.index/getlbbackends.getLbBackends has been deprecated in favor of scaleway.loadbalancers/getbackends.getBackends */ function getLbBackendsOutput(args, opts) { pulumi.log.warn("getLbBackends is deprecated: scaleway.index/getlbbackends.getLbBackends has been deprecated in favor of scaleway.loadbalancers/getbackends.getBackends"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getLbBackends:getLbBackends", { "lbId": args.lbId, "name": args.name, "projectId": args.projectId, "zone": args.zone, }, opts); } exports.getLbBackendsOutput = getLbBackendsOutput; //# sourceMappingURL=getLbBackends.js.map