UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

76 lines 3.34 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.getLbRoutesOutput = exports.getLbRoutes = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about multiple Load Balancer routes. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-routes/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find routes that share the same frontend ID * const byFrontendID = scaleway.loadbalancers.getRoutes({ * frontendId: frt01.id, * }); * // Find routes by frontend ID and zone * const myKey = scaleway.loadbalancers.getRoutes({ * frontendId: "11111111-1111-1111-1111-111111111111", * zone: "fr-par-2", * }); * ``` */ /** @deprecated scaleway.index/getlbroutes.getLbRoutes has been deprecated in favor of scaleway.loadbalancers/getroutes.getRoutes */ function getLbRoutes(args, opts) { pulumi.log.warn("getLbRoutes is deprecated: scaleway.index/getlbroutes.getLbRoutes has been deprecated in favor of scaleway.loadbalancers/getroutes.getRoutes"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getLbRoutes:getLbRoutes", { "frontendId": args.frontendId, "projectId": args.projectId, "zone": args.zone, }, opts); } exports.getLbRoutes = getLbRoutes; /** * Gets information about multiple Load Balancer routes. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-routes/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find routes that share the same frontend ID * const byFrontendID = scaleway.loadbalancers.getRoutes({ * frontendId: frt01.id, * }); * // Find routes by frontend ID and zone * const myKey = scaleway.loadbalancers.getRoutes({ * frontendId: "11111111-1111-1111-1111-111111111111", * zone: "fr-par-2", * }); * ``` */ /** @deprecated scaleway.index/getlbroutes.getLbRoutes has been deprecated in favor of scaleway.loadbalancers/getroutes.getRoutes */ function getLbRoutesOutput(args, opts) { pulumi.log.warn("getLbRoutes is deprecated: scaleway.index/getlbroutes.getLbRoutes has been deprecated in favor of scaleway.loadbalancers/getroutes.getRoutes"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getLbRoutes:getLbRoutes", { "frontendId": args.frontendId, "projectId": args.projectId, "zone": args.zone, }, opts); } exports.getLbRoutesOutput = getLbRoutesOutput; //# sourceMappingURL=getLbRoutes.js.map