@pulumi/tailscale 0.7.2-alpha.1652714061 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/acl.d.ts CHANGED
@@ -1,7 +1,21 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The acl resource allows you to configure a Tailscale ACL. See the [Tailscale ACL documentation](https://tailscale.com/kb/1018/acls)
4
- * for more information. You can set the ACL in multiple ways including hujson.
3
+ * The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as tailscale from "@pulumi/tailscale";
10
+ *
11
+ * const sampleAcl = new tailscale.Acl("sampleAcl", {acl: JSON.stringify({
12
+ * acls: [{
13
+ * action: "accept",
14
+ * users: ["*"],
15
+ * ports: ["*:*"],
16
+ * }],
17
+ * })});
18
+ * ```
5
19
  */
6
20
  export declare class Acl extends pulumi.CustomResource {
7
21
  /**
@@ -20,9 +34,7 @@ export declare class Acl extends pulumi.CustomResource {
20
34
  */
21
35
  static isInstance(obj: any): obj is Acl;
22
36
  /**
23
- * The JSON-based policy that defines which devices and users are allowed to connect in your network.
24
- * This can be JSON or HuJSON. Comments will not be provided when sent to the Tailscale API, they were only appear in your
25
- * local ACL file.
37
+ * The JSON-based policy that defines which devices and users are allowed to connect in your network
26
38
  */
27
39
  readonly acl: pulumi.Output<string>;
28
40
  /**
@@ -39,9 +51,7 @@ export declare class Acl extends pulumi.CustomResource {
39
51
  */
40
52
  export interface AclState {
41
53
  /**
42
- * The JSON-based policy that defines which devices and users are allowed to connect in your network.
43
- * This can be JSON or HuJSON. Comments will not be provided when sent to the Tailscale API, they were only appear in your
44
- * local ACL file.
54
+ * The JSON-based policy that defines which devices and users are allowed to connect in your network
45
55
  */
46
56
  acl?: pulumi.Input<string>;
47
57
  }
@@ -50,9 +60,7 @@ export interface AclState {
50
60
  */
51
61
  export interface AclArgs {
52
62
  /**
53
- * The JSON-based policy that defines which devices and users are allowed to connect in your network.
54
- * This can be JSON or HuJSON. Comments will not be provided when sent to the Tailscale API, they were only appear in your
55
- * local ACL file.
63
+ * The JSON-based policy that defines which devices and users are allowed to connect in your network
56
64
  */
57
65
  acl: pulumi.Input<string>;
58
66
  }
package/acl.js CHANGED
@@ -6,8 +6,22 @@ exports.Acl = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The acl resource allows you to configure a Tailscale ACL. See the [Tailscale ACL documentation](https://tailscale.com/kb/1018/acls)
10
- * for more information. You can set the ACL in multiple ways including hujson.
9
+ * The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as tailscale from "@pulumi/tailscale";
16
+ *
17
+ * const sampleAcl = new tailscale.Acl("sampleAcl", {acl: JSON.stringify({
18
+ * acls: [{
19
+ * action: "accept",
20
+ * users: ["*"],
21
+ * ports: ["*:*"],
22
+ * }],
23
+ * })});
24
+ * ```
11
25
  */
12
26
  class Acl extends pulumi.CustomResource {
13
27
  constructor(name, argsOrState, opts) {
package/acl.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"acl.js","sourceRoot":"","sources":["../acl.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IA2C1C,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CA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ACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;;AA1BL,kBAyDC;AA3CG,gBAAgB;AACO,gBAAY,GAAG,yBAAyB,CAAC"}
package/config/vars.d.ts CHANGED
@@ -1,3 +1,13 @@
1
+ /**
2
+ * The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
3
+ */
1
4
  export declare const apiKey: string | undefined;
5
+ /**
6
+ * The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
7
+ * environment variable.
8
+ */
2
9
  export declare const baseUrl: string | undefined;
10
+ /**
11
+ * The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
12
+ */
3
13
  export declare const tailnet: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAGhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
@@ -1,12 +1,21 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The deviceAuthorization resource is used to approve new devices before they can join the tailnet.
4
- * See the [Tailscale device authorization documentation](https://tailscale.com/kb/1099/device-authorization) for more
5
- * information.
3
+ * The deviceAuthorization resource is used to approve new devices before they can join the tailnet. See https://tailscale.com/kb/1099/device-authorization/ for more details.
6
4
  *
7
- * The Tailscale API currently only supports authorizing devices, but not rejecting/removing them. Once a device is
8
- * authorized by this provider it cannot be modified again afterwards. Modifying or deleting the resource
9
- * will not affect the device's authorization within the tailnet.
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as tailscale from "@pulumi/tailscale";
10
+ *
11
+ * const sampleDevice = tailscale.getDevice({
12
+ * name: "device.example.com",
13
+ * });
14
+ * const sampleAuthorization = new tailscale.DeviceAuthorization("sampleAuthorization", {
15
+ * deviceId: sampleDevice.then(sampleDevice => sampleDevice.id),
16
+ * authorized: true,
17
+ * });
18
+ * ```
10
19
  */
11
20
  export declare class DeviceAuthorization extends pulumi.CustomResource {
12
21
  /**
@@ -25,11 +34,11 @@ export declare class DeviceAuthorization extends pulumi.CustomResource {
25
34
  */
26
35
  static isInstance(obj: any): obj is DeviceAuthorization;
27
36
  /**
28
- * Indicates if the device is allowed to join the tailnet.
37
+ * Whether or not the device is authorized
29
38
  */
30
39
  readonly authorized: pulumi.Output<boolean>;
31
40
  /**
32
- * The device to authorize.
41
+ * The device to set as authorized
33
42
  */
34
43
  readonly deviceId: pulumi.Output<string>;
35
44
  /**
@@ -46,11 +55,11 @@ export declare class DeviceAuthorization extends pulumi.CustomResource {
46
55
  */
47
56
  export interface DeviceAuthorizationState {
48
57
  /**
49
- * Indicates if the device is allowed to join the tailnet.
58
+ * Whether or not the device is authorized
50
59
  */
51
60
  authorized?: pulumi.Input<boolean>;
52
61
  /**
53
- * The device to authorize.
62
+ * The device to set as authorized
54
63
  */
55
64
  deviceId?: pulumi.Input<string>;
56
65
  }
@@ -59,11 +68,11 @@ export interface DeviceAuthorizationState {
59
68
  */
60
69
  export interface DeviceAuthorizationArgs {
61
70
  /**
62
- * Indicates if the device is allowed to join the tailnet.
71
+ * Whether or not the device is authorized
63
72
  */
64
73
  authorized: pulumi.Input<boolean>;
65
74
  /**
66
- * The device to authorize.
75
+ * The device to set as authorized
67
76
  */
68
77
  deviceId: pulumi.Input<string>;
69
78
  }
@@ -6,13 +6,22 @@ exports.DeviceAuthorization = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The deviceAuthorization resource is used to approve new devices before they can join the tailnet.
10
- * See the [Tailscale device authorization documentation](https://tailscale.com/kb/1099/device-authorization) for more
11
- * information.
9
+ * The deviceAuthorization resource is used to approve new devices before they can join the tailnet. See https://tailscale.com/kb/1099/device-authorization/ for more details.
12
10
  *
13
- * The Tailscale API currently only supports authorizing devices, but not rejecting/removing them. Once a device is
14
- * authorized by this provider it cannot be modified again afterwards. Modifying or deleting the resource
15
- * will not affect the device's authorization within the tailnet.
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as tailscale from "@pulumi/tailscale";
16
+ *
17
+ * const sampleDevice = tailscale.getDevice({
18
+ * name: "device.example.com",
19
+ * });
20
+ * const sampleAuthorization = new tailscale.DeviceAuthorization("sampleAuthorization", {
21
+ * deviceId: sampleDevice.then(sampleDevice => sampleDevice.id),
22
+ * authorized: true,
23
+ * });
24
+ * ```
16
25
  */
17
26
  class DeviceAuthorization extends pulumi.CustomResource {
18
27
  constructor(name, argsOrState, opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"deviceAuthorization.js","sourceRoot":"","sources":["../deviceAuthorization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IA6C1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,IAAI,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SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAhED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAkEC;AApDG,gBAAgB;AACO,gCAAY,GAAG,yDAAyD,CAAC"}
package/deviceKey.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The `deviceKey` resource allows you to modify the property of a device's key.
3
+ * The deviceKey resource allows you to update the properties of a device's key
4
4
  *
5
5
  * ## Example Usage
6
6
  *
@@ -35,16 +35,15 @@ export declare class DeviceKey extends pulumi.CustomResource {
35
35
  */
36
36
  static isInstance(obj: any): obj is DeviceKey;
37
37
  /**
38
- * The device to change the key properties of.
38
+ * The device to update the key properties of
39
39
  */
40
40
  readonly deviceId: pulumi.Output<string>;
41
41
  /**
42
- * Whether the device's key will ever expire.
42
+ * Determines whether or not the device's key will expire
43
43
  */
44
44
  readonly keyExpiryDisabled: pulumi.Output<boolean | undefined>;
45
45
  /**
46
- * Whether the device should be authorized for the tailnet by default, works in tailnets
47
- * where device authorization is enabled.
46
+ * Determines whether or not the device will be authorized for the tailnet by default.
48
47
  */
49
48
  readonly preauthorized: pulumi.Output<boolean | undefined>;
50
49
  /**
@@ -61,16 +60,15 @@ export declare class DeviceKey extends pulumi.CustomResource {
61
60
  */
62
61
  export interface DeviceKeyState {
63
62
  /**
64
- * The device to change the key properties of.
63
+ * The device to update the key properties of
65
64
  */
66
65
  deviceId?: pulumi.Input<string>;
67
66
  /**
68
- * Whether the device's key will ever expire.
67
+ * Determines whether or not the device's key will expire
69
68
  */
70
69
  keyExpiryDisabled?: pulumi.Input<boolean>;
71
70
  /**
72
- * Whether the device should be authorized for the tailnet by default, works in tailnets
73
- * where device authorization is enabled.
71
+ * Determines whether or not the device will be authorized for the tailnet by default.
74
72
  */
75
73
  preauthorized?: pulumi.Input<boolean>;
76
74
  }
@@ -79,16 +77,15 @@ export interface DeviceKeyState {
79
77
  */
80
78
  export interface DeviceKeyArgs {
81
79
  /**
82
- * The device to change the key properties of.
80
+ * The device to update the key properties of
83
81
  */
84
82
  deviceId: pulumi.Input<string>;
85
83
  /**
86
- * Whether the device's key will ever expire.
84
+ * Determines whether or not the device's key will expire
87
85
  */
88
86
  keyExpiryDisabled?: pulumi.Input<boolean>;
89
87
  /**
90
- * Whether the device should be authorized for the tailnet by default, works in tailnets
91
- * where device authorization is enabled.
88
+ * Determines whether or not the device will be authorized for the tailnet by default.
92
89
  */
93
90
  preauthorized?: pulumi.Input<boolean>;
94
91
  }
package/deviceKey.js CHANGED
@@ -6,7 +6,7 @@ exports.DeviceKey = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The `deviceKey` resource allows you to modify the property of a device's key.
9
+ * The deviceKey resource allows you to update the properties of a device's key
10
10
  *
11
11
  * ## Example Usage
12
12
  *
package/deviceKey.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"deviceKey.js","sourceRoot":"","sources":["../deviceKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF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;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAqEC;AAvDG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
@@ -1,7 +1,25 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The deviceSubnetRoutes resource allows you to configure subnet routes for your Tailscale devices. See the
4
- * [Tailscale subnets documentation](https://tailscale.com/kb/1019/subnets) for more information.
3
+ * The deviceSubnetRoutes resource allows you to configure subnet routes for your Tailscale devices. See https://tailscale.com/kb/1019/subnets for more information.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as tailscale from "@pulumi/tailscale";
10
+ *
11
+ * const sampleDevice = tailscale.getDevice({
12
+ * name: "device.example.com",
13
+ * });
14
+ * const sampleRoutes = new tailscale.DeviceSubnetRoutes("sampleRoutes", {
15
+ * deviceId: sampleDevice.then(sampleDevice => sampleDevice.id),
16
+ * routes: [
17
+ * "10.0.1.0/24",
18
+ * "1.2.0.0/16",
19
+ * "2.0.0.0/24",
20
+ * ],
21
+ * });
22
+ * ```
5
23
  */
6
24
  export declare class DeviceSubnetRoutes extends pulumi.CustomResource {
7
25
  /**
@@ -20,12 +38,11 @@ export declare class DeviceSubnetRoutes extends pulumi.CustomResource {
20
38
  */
21
39
  static isInstance(obj: any): obj is DeviceSubnetRoutes;
22
40
  /**
23
- * The device to change enabled subroutes for.
41
+ * The device to set subnet routes for
24
42
  */
25
43
  readonly deviceId: pulumi.Output<string>;
26
44
  /**
27
- * The subnet routes that are enabled to be routed by a device. Routes can be enabled without a
28
- * device advertising them (e.g. for preauth).
45
+ * The subnet routes that are enabled to be routed by a device
29
46
  */
30
47
  readonly routes: pulumi.Output<string[]>;
31
48
  /**
@@ -42,12 +59,11 @@ export declare class DeviceSubnetRoutes extends pulumi.CustomResource {
42
59
  */
43
60
  export interface DeviceSubnetRoutesState {
44
61
  /**
45
- * The device to change enabled subroutes for.
62
+ * The device to set subnet routes for
46
63
  */
47
64
  deviceId?: pulumi.Input<string>;
48
65
  /**
49
- * The subnet routes that are enabled to be routed by a device. Routes can be enabled without a
50
- * device advertising them (e.g. for preauth).
66
+ * The subnet routes that are enabled to be routed by a device
51
67
  */
52
68
  routes?: pulumi.Input<pulumi.Input<string>[]>;
53
69
  }
@@ -56,12 +72,11 @@ export interface DeviceSubnetRoutesState {
56
72
  */
57
73
  export interface DeviceSubnetRoutesArgs {
58
74
  /**
59
- * The device to change enabled subroutes for.
75
+ * The device to set subnet routes for
60
76
  */
61
77
  deviceId: pulumi.Input<string>;
62
78
  /**
63
- * The subnet routes that are enabled to be routed by a device. Routes can be enabled without a
64
- * device advertising them (e.g. for preauth).
79
+ * The subnet routes that are enabled to be routed by a device
65
80
  */
66
81
  routes: pulumi.Input<pulumi.Input<string>[]>;
67
82
  }
@@ -6,8 +6,26 @@ exports.DeviceSubnetRoutes = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The deviceSubnetRoutes resource allows you to configure subnet routes for your Tailscale devices. See the
10
- * [Tailscale subnets documentation](https://tailscale.com/kb/1019/subnets) for more information.
9
+ * The deviceSubnetRoutes resource allows you to configure subnet routes for your Tailscale devices. See https://tailscale.com/kb/1019/subnets for more information.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as tailscale from "@pulumi/tailscale";
16
+ *
17
+ * const sampleDevice = tailscale.getDevice({
18
+ * name: "device.example.com",
19
+ * });
20
+ * const sampleRoutes = new tailscale.DeviceSubnetRoutes("sampleRoutes", {
21
+ * deviceId: sampleDevice.then(sampleDevice => sampleDevice.id),
22
+ * routes: [
23
+ * "10.0.1.0/24",
24
+ * "1.2.0.0/16",
25
+ * "2.0.0.0/24",
26
+ * ],
27
+ * });
28
+ * ```
11
29
  */
12
30
  class DeviceSubnetRoutes extends pulumi.CustomResource {
13
31
  constructor(name, argsOrState, opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"deviceSubnetRoutes.js","sourceRoot":"","sources":["../deviceSubnetRoutes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IA8CzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAA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CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAkEC;AApDG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
package/deviceTags.d.ts CHANGED
@@ -1,7 +1,21 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The deviceTags resource is used to apply tags to a device within a Tailnet. For more information on ACL tags, see
4
- * the [ACL tags documentation](https://tailscale.com/kb/1068/acl-tags/) for more details.
3
+ * The deviceTags resource is used to apply tags to Tailscale devices. See https://tailscale.com/kb/1068/acl-tags/ for more details.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as tailscale from "@pulumi/tailscale";
10
+ *
11
+ * const sampleDevice = tailscale.getDevice({
12
+ * name: "device.example.com",
13
+ * });
14
+ * const sampleTags = new tailscale.DeviceTags("sampleTags", {
15
+ * deviceId: sampleDevice.then(sampleDevice => sampleDevice.id),
16
+ * tags: ["room:bedroom"],
17
+ * });
18
+ * ```
5
19
  */
6
20
  export declare class DeviceTags extends pulumi.CustomResource {
7
21
  /**
@@ -20,11 +34,11 @@ export declare class DeviceTags extends pulumi.CustomResource {
20
34
  */
21
35
  static isInstance(obj: any): obj is DeviceTags;
22
36
  /**
23
- * The device to apply tags to.
37
+ * The device to set tags for
24
38
  */
25
39
  readonly deviceId: pulumi.Output<string>;
26
40
  /**
27
- * The tags to apply to the device.
41
+ * The tags to apply to the device
28
42
  */
29
43
  readonly tags: pulumi.Output<string[]>;
30
44
  /**
@@ -41,11 +55,11 @@ export declare class DeviceTags extends pulumi.CustomResource {
41
55
  */
42
56
  export interface DeviceTagsState {
43
57
  /**
44
- * The device to apply tags to.
58
+ * The device to set tags for
45
59
  */
46
60
  deviceId?: pulumi.Input<string>;
47
61
  /**
48
- * The tags to apply to the device.
62
+ * The tags to apply to the device
49
63
  */
50
64
  tags?: pulumi.Input<pulumi.Input<string>[]>;
51
65
  }
@@ -54,11 +68,11 @@ export interface DeviceTagsState {
54
68
  */
55
69
  export interface DeviceTagsArgs {
56
70
  /**
57
- * The device to apply tags to.
71
+ * The device to set tags for
58
72
  */
59
73
  deviceId: pulumi.Input<string>;
60
74
  /**
61
- * The tags to apply to the device.
75
+ * The tags to apply to the device
62
76
  */
63
77
  tags: pulumi.Input<pulumi.Input<string>[]>;
64
78
  }
package/deviceTags.js CHANGED
@@ -6,8 +6,22 @@ exports.DeviceTags = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The deviceTags resource is used to apply tags to a device within a Tailnet. For more information on ACL tags, see
10
- * the [ACL tags documentation](https://tailscale.com/kb/1068/acl-tags/) for more details.
9
+ * The deviceTags resource is used to apply tags to Tailscale devices. See https://tailscale.com/kb/1068/acl-tags/ for more details.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as tailscale from "@pulumi/tailscale";
16
+ *
17
+ * const sampleDevice = tailscale.getDevice({
18
+ * name: "device.example.com",
19
+ * });
20
+ * const sampleTags = new tailscale.DeviceTags("sampleTags", {
21
+ * deviceId: sampleDevice.then(sampleDevice => sampleDevice.id),
22
+ * tags: ["room:bedroom"],
23
+ * });
24
+ * ```
11
25
  */
12
26
  class DeviceTags extends pulumi.CustomResource {
13
27
  constructor(name, argsOrState, opts) {
package/deviceTags.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"deviceTags.js","sourceRoot":"","sources":["../deviceTags.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;GAGG;AACH,MAAa,UAAW,SAAQ,MAA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ameservers resource allows you to configure DNS nameservers for your Tailscale network. See the
4
- * [Tailscale DNS documentation](https://tailscale.com/kb/1054/dns) for more information.
3
+ * The dnsNameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
5
4
  *
6
5
  * ## Example Usage
7
6
  *
@@ -34,8 +33,7 @@ export declare class DnsNameservers extends pulumi.CustomResource {
34
33
  */
35
34
  static isInstance(obj: any): obj is DnsNameservers;
36
35
  /**
37
- * Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6
38
- * addresses are accepted.
36
+ * Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6 addresses are accepted.
39
37
  */
40
38
  readonly nameservers: pulumi.Output<string[]>;
41
39
  /**
@@ -52,8 +50,7 @@ export declare class DnsNameservers extends pulumi.CustomResource {
52
50
  */
53
51
  export interface DnsNameserversState {
54
52
  /**
55
- * Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6
56
- * addresses are accepted.
53
+ * Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6 addresses are accepted.
57
54
  */
58
55
  nameservers?: pulumi.Input<pulumi.Input<string>[]>;
59
56
  }
@@ -62,8 +59,7 @@ export interface DnsNameserversState {
62
59
  */
63
60
  export interface DnsNameserversArgs {
64
61
  /**
65
- * Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6
66
- * addresses are accepted.
62
+ * Devices on your network will use these nameservers to resolve DNS names. IPv4 or IPv6 addresses are accepted.
67
63
  */
68
64
  nameservers: pulumi.Input<pulumi.Input<string>[]>;
69
65
  }
package/dnsNameservers.js CHANGED
@@ -6,8 +6,7 @@ exports.DnsNameservers = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The dnsNameservers resource allows you to configure DNS nameservers for your Tailscale network. See the
10
- * [Tailscale DNS documentation](https://tailscale.com/kb/1054/dns) for more information.
9
+ * The dnsNameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
11
10
  *
12
11
  * ## Example Usage
13
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dnsNameservers.js","sourceRoot":"","sources":["../dnsNameservers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA0CrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAxDD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,C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AG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAvDD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAyDC;AA3CG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The dnsPreferences resource allows you to configure DNS preferences for your Tailscale network. See the
4
- * [Tailscale DNS documentation](https://tailscale.com/kb/1054/dns) for more information.
3
+ * The dnsPreferences resource allows you to configure DNS preferences for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
5
4
  *
6
5
  * ## Example Usage
7
6
  *
@@ -31,8 +30,7 @@ export declare class DnsPreferences extends pulumi.CustomResource {
31
30
  */
32
31
  static isInstance(obj: any): obj is DnsPreferences;
33
32
  /**
34
- * Enables or disables MagicDNS, automatically registers DNS names for devices on your network.
35
- * At least one DNS server must be set before enabling Magic DNS.
33
+ * Whether or not to enable magic DNS
36
34
  */
37
35
  readonly magicDns: pulumi.Output<boolean>;
38
36
  /**
@@ -49,8 +47,7 @@ export declare class DnsPreferences extends pulumi.CustomResource {
49
47
  */
50
48
  export interface DnsPreferencesState {
51
49
  /**
52
- * Enables or disables MagicDNS, automatically registers DNS names for devices on your network.
53
- * At least one DNS server must be set before enabling Magic DNS.
50
+ * Whether or not to enable magic DNS
54
51
  */
55
52
  magicDns?: pulumi.Input<boolean>;
56
53
  }
@@ -59,8 +56,7 @@ export interface DnsPreferencesState {
59
56
  */
60
57
  export interface DnsPreferencesArgs {
61
58
  /**
62
- * Enables or disables MagicDNS, automatically registers DNS names for devices on your network.
63
- * At least one DNS server must be set before enabling Magic DNS.
59
+ * Whether or not to enable magic DNS
64
60
  */
65
61
  magicDns: pulumi.Input<boolean>;
66
62
  }
package/dnsPreferences.js CHANGED
@@ -6,8 +6,7 @@ exports.DnsPreferences = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The dnsPreferences resource allows you to configure DNS preferences for your Tailscale network. See the
10
- * [Tailscale DNS documentation](https://tailscale.com/kb/1054/dns) for more information.
9
+ * The dnsPreferences resource allows you to configure DNS preferences for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
11
10
  *
12
11
  * ## Example Usage
13
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dnsPreferences.js","sourceRoot":"","sources":["../dnsPreferences.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IA0CrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAA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AC;IAC/D,CAAC;;AA1BL,wCAyDC;AA3CG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The searchPaths resource allows you to configure DNS search paths for your Tailscale network. See the
4
- * [Tailscale DNS documentation](https://tailscale.com/kb/1054/dns) for more information.
3
+ * The dnsNameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
5
4
  *
6
5
  * ## Example Usage
7
6
  *
package/dnsSearchPaths.js CHANGED
@@ -6,8 +6,7 @@ exports.DnsSearchPaths = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The searchPaths resource allows you to configure DNS search paths for your Tailscale network. See the
10
- * [Tailscale DNS documentation](https://tailscale.com/kb/1054/dns) for more information.
9
+ * The dnsNameservers resource allows you to configure DNS nameservers for your Tailscale network. See https://tailscale.com/kb/1054/dns for more information.
11
10
  *
12
11
  * ## Example Usage
13
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"dnsSearchPaths.js","sourceRoot":"","sources":["../dnsSearchPaths.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAyCrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;aAAM;YACH,MAAM,IAAI,GAAG,W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gB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
package/getDevice.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The device data source describes a single device in a tailnet.
3
+ * The device data source describes a single device in a tailnet
4
4
  *
5
5
  * ## Example Usage
6
6
  *
@@ -19,35 +19,20 @@ export declare function getDevice(args: GetDeviceArgs, opts?: pulumi.InvokeOptio
19
19
  * A collection of arguments for invoking getDevice.
20
20
  */
21
21
  export interface GetDeviceArgs {
22
- /**
23
- * The name of the tailnet device to obtain the attributes of.
24
- */
25
22
  name: string;
26
- /**
27
- * If specified, the provider will retry obtaining the device data every second until the specified duration has been reached. Must be a value greater than 1 second
28
- */
29
23
  waitFor?: string;
30
24
  }
31
25
  /**
32
26
  * A collection of values returned by getDevice.
33
27
  */
34
28
  export interface GetDeviceResult {
35
- /**
36
- * Tailscale IPs for the device
37
- */
38
29
  readonly addresses: string[];
39
30
  /**
40
31
  * The provider-assigned unique ID for this managed resource.
41
32
  */
42
33
  readonly id: string;
43
34
  readonly name: string;
44
- /**
45
- * Tags applied to the device
46
- */
47
35
  readonly tags: string[];
48
- /**
49
- * The user associated with the device
50
- */
51
36
  readonly user: string;
52
37
  readonly waitFor?: string;
53
38
  }
@@ -56,12 +41,6 @@ export declare function getDeviceOutput(args: GetDeviceOutputArgs, opts?: pulumi
56
41
  * A collection of arguments for invoking getDevice.
57
42
  */
58
43
  export interface GetDeviceOutputArgs {
59
- /**
60
- * The name of the tailnet device to obtain the attributes of.
61
- */
62
44
  name: pulumi.Input<string>;
63
- /**
64
- * If specified, the provider will retry obtaining the device data every second until the specified duration has been reached. Must be a value greater than 1 second
65
- */
66
45
  waitFor?: pulumi.Input<string>;
67
46
  }
package/getDevice.js CHANGED
@@ -6,7 +6,7 @@ exports.getDeviceOutput = exports.getDevice = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The device data source describes a single device in a tailnet.
9
+ * The device data source describes a single device in a tailnet
10
10
  *
11
11
  * ## Example Usage
12
12
  *
package/getDevice.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getDevice.js","sourceRoot":"","sources":["../getDevice.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AAwCD,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
1
+ {"version":3,"file":"getDevice.js","sourceRoot":"","sources":["../getDevice.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,8BAUC;AAyBD,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
package/getDevices.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { output as outputs } from "./types";
3
3
  /**
4
- * The devices data source describes a list of devices in a tailnet.
4
+ * The devices data source describes a list of devices in a tailnet
5
5
  *
6
6
  * ## Example Usage
7
7
  *
@@ -19,18 +19,12 @@ export declare function getDevices(args?: GetDevicesArgs, opts?: pulumi.InvokeOp
19
19
  * A collection of arguments for invoking getDevices.
20
20
  */
21
21
  export interface GetDevicesArgs {
22
- /**
23
- * Filters the returned list of devices to those whose name have this prefix.
24
- */
25
22
  namePrefix?: string;
26
23
  }
27
24
  /**
28
25
  * A collection of values returned by getDevices.
29
26
  */
30
27
  export interface GetDevicesResult {
31
- /**
32
- * The list of devices returned from the Tailscale API. Each element contains the following:
33
- */
34
28
  readonly devices: outputs.GetDevicesDevice[];
35
29
  /**
36
30
  * The provider-assigned unique ID for this managed resource.
@@ -43,8 +37,5 @@ export declare function getDevicesOutput(args?: GetDevicesOutputArgs, opts?: pul
43
37
  * A collection of arguments for invoking getDevices.
44
38
  */
45
39
  export interface GetDevicesOutputArgs {
46
- /**
47
- * Filters the returned list of devices to those whose name have this prefix.
48
- */
49
40
  namePrefix?: pulumi.Input<string>;
50
41
  }
package/getDevices.js CHANGED
@@ -6,7 +6,7 @@ exports.getDevicesOutput = exports.getDevices = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The devices data source describes a list of devices in a tailnet.
9
+ * The devices data source describes a list of devices in a tailnet
10
10
  *
11
11
  * ## Example Usage
12
12
  *
package/getDevices.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AA2BD,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
1
+ {"version":3,"file":"getDevices.js","sourceRoot":"","sources":["../getDevices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AAqBD,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9D,CAAC;AAFD,4CAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/tailscale",
3
- "version": "v0.7.2-alpha.1652714061+9b336700",
3
+ "version": "v0.8.1",
4
4
  "description": "A Pulumi package for creating and managing xyz cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource tailscale v0.7.2-alpha.1652714061+9b336700"
14
+ "install": "node scripts/install-pulumi-plugin.js resource tailscale v0.8.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/tailscale",
3
- "version": "v0.7.2-alpha.1652714061+9b336700",
3
+ "version": "v0.8.1",
4
4
  "description": "A Pulumi package for creating and managing xyz cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource tailscale v0.7.2-alpha.1652714061+9b336700"
14
+ "install": "node scripts/install-pulumi-plugin.js resource tailscale v0.8.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/provider.d.ts CHANGED
@@ -11,8 +11,18 @@ export declare class Provider extends pulumi.ProviderResource {
11
11
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
12
  */
13
13
  static isInstance(obj: any): obj is Provider;
14
+ /**
15
+ * The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
16
+ */
14
17
  readonly apiKey: pulumi.Output<string>;
18
+ /**
19
+ * The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
20
+ * environment variable.
21
+ */
15
22
  readonly baseUrl: pulumi.Output<string | undefined>;
23
+ /**
24
+ * The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
25
+ */
16
26
  readonly tailnet: pulumi.Output<string>;
17
27
  /**
18
28
  * Create a Provider resource with the given unique name, arguments, and options.
@@ -27,7 +37,17 @@ export declare class Provider extends pulumi.ProviderResource {
27
37
  * The set of arguments for constructing a Provider resource.
28
38
  */
29
39
  export interface ProviderArgs {
40
+ /**
41
+ * The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
42
+ */
30
43
  apiKey: pulumi.Input<string>;
44
+ /**
45
+ * The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
46
+ * environment variable.
47
+ */
31
48
  baseUrl?: pulumi.Input<string>;
49
+ /**
50
+ * The Tailnet to perform actions in. Can be set via the TAILSCALE_TAILNET environment variable.
51
+ */
32
52
  tailnet: pulumi.Input<string>;
33
53
  }
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG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EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAhDD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAqDC;AApDG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
package/tailnetKey.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * The `tailnetKey` resource allows you to generate pre-authentication keys for your tailnet. See the
4
- * [Tailscale auth keys](https://tailscale.com/kb/1085/auth-keys/) documentation for more information
3
+ * The tailnetKey resource allows you to create pre-authentication keys that can register new nodes without needing to sign in via a web browser. See https://tailscale.com/kb/1085/auth-keys for more information
5
4
  *
6
5
  * ## Example Usage
7
6
  *
@@ -32,22 +31,19 @@ export declare class TailnetKey extends pulumi.CustomResource {
32
31
  */
33
32
  static isInstance(obj: any): obj is TailnetKey;
34
33
  /**
35
- * Determines if the generated key is ephemeral. Ephemeral keys are used for authenticating
36
- * ephemeral nodes for short-lived workloads.
34
+ * Indicates if the key is ephemeral.
37
35
  */
38
36
  readonly ephemeral: pulumi.Output<boolean | undefined>;
39
37
  /**
40
- * The generated authentication key.
38
+ * The authentication key
41
39
  */
42
40
  readonly key: pulumi.Output<string>;
43
41
  /**
44
- * Determines if the generated key is reusable. Reusable keys can be used to connect multiple
45
- * nodes. For example, multiple instances of on-prem database might use a reusable key to connect.
42
+ * Indicates if the key is reusable or single-use.
46
43
  */
47
44
  readonly reusable: pulumi.Output<boolean | undefined>;
48
45
  /**
49
- * Set of tags to apply to the machines authenticated by the key. These tags can be used in ACL
50
- * rules, see the [Tailscale ACL tag documentation](https://tailscale.com/kb/1068/acl-tags/).
46
+ * List of tags to apply to the machines authenticated by the key.
51
47
  */
52
48
  readonly tags: pulumi.Output<string[] | undefined>;
53
49
  /**
@@ -64,22 +60,19 @@ export declare class TailnetKey extends pulumi.CustomResource {
64
60
  */
65
61
  export interface TailnetKeyState {
66
62
  /**
67
- * Determines if the generated key is ephemeral. Ephemeral keys are used for authenticating
68
- * ephemeral nodes for short-lived workloads.
63
+ * Indicates if the key is ephemeral.
69
64
  */
70
65
  ephemeral?: pulumi.Input<boolean>;
71
66
  /**
72
- * The generated authentication key.
67
+ * The authentication key
73
68
  */
74
69
  key?: pulumi.Input<string>;
75
70
  /**
76
- * Determines if the generated key is reusable. Reusable keys can be used to connect multiple
77
- * nodes. For example, multiple instances of on-prem database might use a reusable key to connect.
71
+ * Indicates if the key is reusable or single-use.
78
72
  */
79
73
  reusable?: pulumi.Input<boolean>;
80
74
  /**
81
- * Set of tags to apply to the machines authenticated by the key. These tags can be used in ACL
82
- * rules, see the [Tailscale ACL tag documentation](https://tailscale.com/kb/1068/acl-tags/).
75
+ * List of tags to apply to the machines authenticated by the key.
83
76
  */
84
77
  tags?: pulumi.Input<pulumi.Input<string>[]>;
85
78
  }
@@ -88,18 +81,15 @@ export interface TailnetKeyState {
88
81
  */
89
82
  export interface TailnetKeyArgs {
90
83
  /**
91
- * Determines if the generated key is ephemeral. Ephemeral keys are used for authenticating
92
- * ephemeral nodes for short-lived workloads.
84
+ * Indicates if the key is ephemeral.
93
85
  */
94
86
  ephemeral?: pulumi.Input<boolean>;
95
87
  /**
96
- * Determines if the generated key is reusable. Reusable keys can be used to connect multiple
97
- * nodes. For example, multiple instances of on-prem database might use a reusable key to connect.
88
+ * Indicates if the key is reusable or single-use.
98
89
  */
99
90
  reusable?: pulumi.Input<boolean>;
100
91
  /**
101
- * Set of tags to apply to the machines authenticated by the key. These tags can be used in ACL
102
- * rules, see the [Tailscale ACL tag documentation](https://tailscale.com/kb/1068/acl-tags/).
92
+ * List of tags to apply to the machines authenticated by the key.
103
93
  */
104
94
  tags?: pulumi.Input<pulumi.Input<string>[]>;
105
95
  }
package/tailnetKey.js CHANGED
@@ -6,8 +6,7 @@ exports.TailnetKey = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * The `tailnetKey` resource allows you to generate pre-authentication keys for your tailnet. See the
10
- * [Tailscale auth keys](https://tailscale.com/kb/1085/auth-keys/) documentation for more information
9
+ * The tailnetKey resource allows you to create pre-authentication keys that can register new nodes without needing to sign in via a web browser. See https://tailscale.com/kb/1085/auth-keys for more information
11
10
  *
12
11
  * ## Example Usage
13
12
  *
package/tailnetKey.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IAwDjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,C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AAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCAwEC;AA1DG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
package/types/output.d.ts CHANGED
@@ -1,22 +1,7 @@
1
1
  export interface GetDevicesDevice {
2
- /**
3
- * Tailscale IPs for the device
4
- */
5
2
  addresses: string[];
6
- /**
7
- * The unique identifier of the device
8
- */
9
3
  id: string;
10
- /**
11
- * The name of the device
12
- */
13
4
  name: string;
14
- /**
15
- * Tags applied to the device
16
- */
17
5
  tags: string[];
18
- /**
19
- * The user associated with the device
20
- */
21
6
  user: string;
22
7
  }