@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
116 lines • 3.42 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.getNodebalancersOutput = exports.getNodebalancers = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about Linode NodeBalancers that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-node-balancers).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode NodeBalancer.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const specific_nodebalancers = linode.getNodebalancers({
* filters: [
* {
* name: "label",
* values: ["my-nodebalancer"],
* },
* {
* name: "region",
* values: ["us-iad"],
* },
* ],
* });
* export const nodebalancerId = specific_nodebalancers.then(specific_nodebalancers => specific_nodebalancers.nodebalancers?.[0]?.id);
* ```
*
* ## Filterable Fields
*
* * `label`
*
* * `tags`
*
* * `ipv4`
*
* * `ipv6`
*
* * `hostname`
*
* * `region`
*
* * `clientConnThrottle`
*/
function getNodebalancers(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getNodebalancers:getNodebalancers", {
"filters": args.filters,
"nodebalancers": args.nodebalancers,
"order": args.order,
"orderBy": args.orderBy,
}, opts);
}
exports.getNodebalancers = getNodebalancers;
/**
* Provides information about Linode NodeBalancers that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-node-balancers).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode NodeBalancer.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const specific_nodebalancers = linode.getNodebalancers({
* filters: [
* {
* name: "label",
* values: ["my-nodebalancer"],
* },
* {
* name: "region",
* values: ["us-iad"],
* },
* ],
* });
* export const nodebalancerId = specific_nodebalancers.then(specific_nodebalancers => specific_nodebalancers.nodebalancers?.[0]?.id);
* ```
*
* ## Filterable Fields
*
* * `label`
*
* * `tags`
*
* * `ipv4`
*
* * `ipv6`
*
* * `hostname`
*
* * `region`
*
* * `clientConnThrottle`
*/
function getNodebalancersOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getNodebalancers:getNodebalancers", {
"filters": args.filters,
"nodebalancers": args.nodebalancers,
"order": args.order,
"orderBy": args.orderBy,
}, opts);
}
exports.getNodebalancersOutput = getNodebalancersOutput;
//# sourceMappingURL=getNodebalancers.js.map
;