@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
64 lines • 2.12 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.getDynamicHostVolumeOutput = exports.getDynamicHostVolume = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get information on a dynamic host volume from Nomad.
*
* ## Example Usage
*
* Check for the existing of a host volume:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getDynamicHostVolume({
* namespace: "prod",
* id: "d688ff7a-d299-11ef-ae3c-6f2400953c18",
* });
* ```
*
* This will check for a dynamic host volume with the ID
* `d688ff7a-d299-11ef-ae3c-6f2400953c18`.
*/
function getDynamicHostVolume(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("nomad:index/getDynamicHostVolume:getDynamicHostVolume", {
"id": args.id,
"namespace": args.namespace,
}, opts);
}
exports.getDynamicHostVolume = getDynamicHostVolume;
/**
* Get information on a dynamic host volume from Nomad.
*
* ## Example Usage
*
* Check for the existing of a host volume:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getDynamicHostVolume({
* namespace: "prod",
* id: "d688ff7a-d299-11ef-ae3c-6f2400953c18",
* });
* ```
*
* This will check for a dynamic host volume with the ID
* `d688ff7a-d299-11ef-ae3c-6f2400953c18`.
*/
function getDynamicHostVolumeOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("nomad:index/getDynamicHostVolume:getDynamicHostVolume", {
"id": args.id,
"namespace": args.namespace,
}, opts);
}
exports.getDynamicHostVolumeOutput = getDynamicHostVolumeOutput;
//# sourceMappingURL=getDynamicHostVolume.js.map