@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
56 lines • 1.76 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAllocationsOutput = exports.getAllocations = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieve a list of allocations from Nomad.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getAllocations({
* filter: "JobID == \"example\"",
* });
* ```
*/
function getAllocations(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("nomad:index/getAllocations:getAllocations", {
"filter": args.filter,
"namespace": args.namespace,
"prefix": args.prefix,
}, opts);
}
exports.getAllocations = getAllocations;
/**
* Retrieve a list of allocations from Nomad.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getAllocations({
* filter: "JobID == \"example\"",
* });
* ```
*/
function getAllocationsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("nomad:index/getAllocations:getAllocations", {
"filter": args.filter,
"namespace": args.namespace,
"prefix": args.prefix,
}, opts);
}
exports.getAllocationsOutput = getAllocationsOutput;
//# sourceMappingURL=getAllocations.js.map