@pulumi/tailscale
Version:
A Pulumi package for creating and managing Tailscale cloud resources.
66 lines • 2.01 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.getDeviceOutput = exports.getDevice = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The device data source describes a single device in a tailnet
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as tailscale from "@pulumi/tailscale";
*
* const sampleDevice = tailscale.getDevice({
* name: "device1.example.ts.net",
* waitFor: "60s",
* });
* const sampleDevice2 = tailscale.getDevice({
* hostname: "device2",
* waitFor: "60s",
* });
* ```
*/
function getDevice(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("tailscale:index/getDevice:getDevice", {
"hostname": args.hostname,
"name": args.name,
"waitFor": args.waitFor,
}, opts);
}
exports.getDevice = getDevice;
/**
* The device data source describes a single device in a tailnet
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as tailscale from "@pulumi/tailscale";
*
* const sampleDevice = tailscale.getDevice({
* name: "device1.example.ts.net",
* waitFor: "60s",
* });
* const sampleDevice2 = tailscale.getDevice({
* hostname: "device2",
* waitFor: "60s",
* });
* ```
*/
function getDeviceOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("tailscale:index/getDevice:getDevice", {
"hostname": args.hostname,
"name": args.name,
"waitFor": args.waitFor,
}, opts);
}
exports.getDeviceOutput = getDeviceOutput;
//# sourceMappingURL=getDevice.js.map