@distilled.cloud/tailscale 0.0.0 → 1.0.0-rc.19
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/LICENSE +201 -0
- package/README.md +81 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +52 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +25 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +34 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +8 -0
- package/lib/index.lazy.js +8 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/pagination.d.ts +2 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +17 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +12 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/tailscale.d.ts +2148 -0
- package/lib/services/tailscale.d.ts.map +1 -0
- package/lib/services/tailscale.js +136 -0
- package/lib/services/tailscale.js.map +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/tailscale.js +4 -0
- package/lib/traits.d.ts +3 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +82 -2
- package/src/credentials.ts +228 -0
- package/src/errors.ts +39 -0
- package/src/index.ts +40 -0
- package/src/pagination.ts +1 -0
- package/src/protocol.ts +120 -0
- package/src/retry.ts +28 -0
- package/src/services/index.ts +2 -0
- package/src/services/tailscale.ts +6000 -0
- package/src/traits.ts +37 -0
|
@@ -0,0 +1,2148 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
|
+
import { type TailscaleOpError, type TailscaleOpContext } from "../protocol.ts";
|
|
5
|
+
export type { TailscaleOpError, TailscaleOpContext };
|
|
6
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
7
|
+
readonly message: any;
|
|
8
|
+
}> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
BadRequestError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
|
+
}
|
|
15
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
16
|
+
readonly message: any;
|
|
17
|
+
}> & (new (...args: any[]) => {
|
|
18
|
+
"@distilled.cloud/error/categories": {
|
|
19
|
+
ConflictError: true;
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
23
|
+
}
|
|
24
|
+
declare const DeviceInviteNotFound_base: S.TaggedErrorClass<"DeviceInviteNotFound", {
|
|
25
|
+
readonly message: any;
|
|
26
|
+
}> & (new (...args: any[]) => {
|
|
27
|
+
"@distilled.cloud/error/categories": {
|
|
28
|
+
BadRequestError: true;
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
/** The device invite does not exist: it was deleted, its device was deleted, or the ID is malformed (Tailscale answers HTTP 400 with `invalid invite`). */
|
|
32
|
+
export declare class DeviceInviteNotFound extends /*@__PURE__*/ DeviceInviteNotFound_base {
|
|
33
|
+
}
|
|
34
|
+
declare const FeatureNotAvailable_base: S.TaggedErrorClass<"FeatureNotAvailable", {
|
|
35
|
+
readonly message: any;
|
|
36
|
+
}> & (new (...args: any[]) => {
|
|
37
|
+
"@distilled.cloud/error/categories": {
|
|
38
|
+
AuthError: true;
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
/** The tailnet's billing plan does not include this feature (HTTP 403 or 400, 'feature not available on current billing plan' or 'current plan does not allow'). */
|
|
42
|
+
export declare class FeatureNotAvailable extends /*@__PURE__*/ FeatureNotAvailable_base {
|
|
43
|
+
}
|
|
44
|
+
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
45
|
+
readonly message: any;
|
|
46
|
+
}> & (new (...args: any[]) => {
|
|
47
|
+
"@distilled.cloud/error/categories": {
|
|
48
|
+
AuthError: true;
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
52
|
+
}
|
|
53
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
54
|
+
readonly message: any;
|
|
55
|
+
}> & (new (...args: any[]) => {
|
|
56
|
+
"@distilled.cloud/error/categories": {
|
|
57
|
+
BadRequestError: true;
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
61
|
+
}
|
|
62
|
+
declare const PreconditionFailed_base: S.TaggedErrorClass<"PreconditionFailed", {
|
|
63
|
+
readonly message: any;
|
|
64
|
+
}>;
|
|
65
|
+
export declare class PreconditionFailed extends /*@__PURE__*/ PreconditionFailed_base {
|
|
66
|
+
}
|
|
67
|
+
declare const TailnetDisplayNameAlreadyExists_base: S.TaggedErrorClass<"TailnetDisplayNameAlreadyExists", {
|
|
68
|
+
readonly message: any;
|
|
69
|
+
}> & (new (...args: any[]) => {
|
|
70
|
+
"@distilled.cloud/error/categories": {
|
|
71
|
+
BadRequestError: true;
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
/** Another tailnet in the organization already has this display name (HTTP 400, 'tailnet display names must be unique within the organization'). */
|
|
75
|
+
export declare class TailnetDisplayNameAlreadyExists extends /*@__PURE__*/ TailnetDisplayNameAlreadyExists_base {
|
|
76
|
+
}
|
|
77
|
+
declare const TailnetNotFound_base: S.TaggedErrorClass<"TailnetNotFound", {
|
|
78
|
+
readonly message: any;
|
|
79
|
+
}> & (new (...args: any[]) => {
|
|
80
|
+
"@distilled.cloud/error/categories": {
|
|
81
|
+
BadRequestError: true;
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
/** The credential cannot reach this tailnet: the tailnet ID is wrong, or the tailnet is one the credential has no access to (HTTP 404, 'tailnet "<id>" not found'). A missing object in a tailnet the credential can reach is NotFound instead. */
|
|
85
|
+
export declare class TailnetNotFound extends /*@__PURE__*/ TailnetNotFound_base {
|
|
86
|
+
}
|
|
87
|
+
declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
|
|
88
|
+
readonly message: any;
|
|
89
|
+
}> & (new (...args: any[]) => {
|
|
90
|
+
"@distilled.cloud/error/categories": {
|
|
91
|
+
BadRequestError: true;
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
95
|
+
}
|
|
96
|
+
declare const UserOwnedKeyRequired_base: S.TaggedErrorClass<"UserOwnedKeyRequired", {
|
|
97
|
+
readonly message: any;
|
|
98
|
+
}> & (new (...args: any[]) => {
|
|
99
|
+
"@distilled.cloud/error/categories": {
|
|
100
|
+
AuthError: true;
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
/** The operation is only permitted for user-owned keys, such as a user's API access token, and the credential is not one (HTTP 403, 'operation only permitted for user-owned keys'). */
|
|
104
|
+
export declare class UserOwnedKeyRequired extends /*@__PURE__*/ UserOwnedKeyRequired_base {
|
|
105
|
+
}
|
|
106
|
+
export interface AcceptDeviceInviteRequest {
|
|
107
|
+
/** The URL of the invite (in the form `https://login.tailscale.com/admin/invite/{code}`) or the `{code}` component of the URL. */
|
|
108
|
+
invite: Redacted.Redacted<string>;
|
|
109
|
+
}
|
|
110
|
+
/** Information about the device being shared. */
|
|
111
|
+
export interface AcceptDeviceInviteResponseDevice {
|
|
112
|
+
/** The `nodeId` for the device. */
|
|
113
|
+
id?: string | undefined;
|
|
114
|
+
/** The operating system that the device is running. */
|
|
115
|
+
os?: string | undefined;
|
|
116
|
+
/** The name of the device. */
|
|
117
|
+
name?: string | undefined;
|
|
118
|
+
/** The MagicDNS name of the device. Learn more about MagicDNS at https://tailscale.com/docs/features/magicdns. */
|
|
119
|
+
fqdn?: string | undefined;
|
|
120
|
+
/** The IPv4 address of the device. */
|
|
121
|
+
ipv4?: string | undefined;
|
|
122
|
+
/** The IPv6 address of the device. */
|
|
123
|
+
ipv6?: string | undefined;
|
|
124
|
+
/** Specifies whether the invited user is able to use the device as an exit node when the device is advertising as one. */
|
|
125
|
+
includeExitNode?: boolean | undefined;
|
|
126
|
+
}
|
|
127
|
+
/** The user who create the device share invite. */
|
|
128
|
+
export interface AcceptDeviceInviteResponseSharer {
|
|
129
|
+
/** The ID of the user who created the share invite. */
|
|
130
|
+
id?: string | undefined;
|
|
131
|
+
/** The display name of the user who created the share invite. */
|
|
132
|
+
displayName?: string | undefined;
|
|
133
|
+
/** The email address of the user who created the share invite. */
|
|
134
|
+
loginName?: string | undefined;
|
|
135
|
+
/** The profile pic URL for the user who created the share invite. */
|
|
136
|
+
profilePicURL?: string | undefined;
|
|
137
|
+
}
|
|
138
|
+
/** The user accepting the device share invite. */
|
|
139
|
+
export interface AcceptDeviceInviteResponseAcceptedBy {
|
|
140
|
+
/** The ID of the user who accepted the share invite. */
|
|
141
|
+
id?: string | undefined;
|
|
142
|
+
/** The display name of the user who accepted the share invite. */
|
|
143
|
+
displayName?: string | undefined;
|
|
144
|
+
/** The email address of the user who accepted the share invite. */
|
|
145
|
+
loginName?: string | undefined;
|
|
146
|
+
/** The profile pic URL for the user who accepted the share invite. */
|
|
147
|
+
profilePicURL?: string | undefined;
|
|
148
|
+
}
|
|
149
|
+
export interface AcceptDeviceInviteResponse {
|
|
150
|
+
/** Information about the device being shared. */
|
|
151
|
+
device?: AcceptDeviceInviteResponseDevice | undefined;
|
|
152
|
+
/** The user who create the device share invite. */
|
|
153
|
+
sharer?: AcceptDeviceInviteResponseSharer | undefined;
|
|
154
|
+
/** The user accepting the device share invite. */
|
|
155
|
+
acceptedBy?: AcceptDeviceInviteResponseAcceptedBy | undefined;
|
|
156
|
+
}
|
|
157
|
+
export interface ApproveUserRequest {
|
|
158
|
+
/** ID of the user. */
|
|
159
|
+
userId: string;
|
|
160
|
+
}
|
|
161
|
+
export interface ApproveUserResponse {
|
|
162
|
+
}
|
|
163
|
+
export interface AuthorizeDeviceRequest {
|
|
164
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
165
|
+
deviceId: string;
|
|
166
|
+
/** - If `true`, authorize a new device or re-authorize a previously deauthorized device. - If `false`, deauthorize an authorized device. */
|
|
167
|
+
authorized: boolean;
|
|
168
|
+
}
|
|
169
|
+
export interface AuthorizeDeviceResponse {
|
|
170
|
+
}
|
|
171
|
+
/** Attribute value. */
|
|
172
|
+
export type BatchUpdateCustomDevicePostureAttributesRequestNodesValueValueValue = string | number | boolean;
|
|
173
|
+
export interface BatchUpdateCustomDevicePostureAttributesRequestNodesValueValue {
|
|
174
|
+
/** Attribute value. */
|
|
175
|
+
value: BatchUpdateCustomDevicePostureAttributesRequestNodesValueValueValue;
|
|
176
|
+
/** Optional expiry time for the attribute. If set, Tailscale automatically removes the attribute within a few minutes after the specified time. */
|
|
177
|
+
expiry?: string | undefined;
|
|
178
|
+
}
|
|
179
|
+
/** A mapping of attribute name -> attribute configuration for this device. */
|
|
180
|
+
export type BatchUpdateCustomDevicePostureAttributesRequestNodesValueMap = {
|
|
181
|
+
[key: string]: BatchUpdateCustomDevicePostureAttributesRequestNodesValueValue | null | undefined;
|
|
182
|
+
};
|
|
183
|
+
/** A mapping of deviceId -> posture attributes. */
|
|
184
|
+
export type BatchUpdateCustomDevicePostureAttributesRequestNodesMap = {
|
|
185
|
+
[key: string]: BatchUpdateCustomDevicePostureAttributesRequestNodesValueMap | undefined;
|
|
186
|
+
};
|
|
187
|
+
export interface BatchUpdateCustomDevicePostureAttributesRequest {
|
|
188
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
189
|
+
tailnet: string;
|
|
190
|
+
/** A mapping of deviceId -> posture attributes. */
|
|
191
|
+
nodes?: BatchUpdateCustomDevicePostureAttributesRequestNodesMap | undefined;
|
|
192
|
+
/** An optional comment indicating why attributes are being set, which will be added to the audit log. */
|
|
193
|
+
comment?: string | undefined;
|
|
194
|
+
}
|
|
195
|
+
export type BatchUpdateCustomDevicePostureAttributesResponse = unknown;
|
|
196
|
+
export interface CreateDeviceInvitesRequestBodyItem {
|
|
197
|
+
/** Whether the invite can be accepted more than once. When set to `true`, it results in an invite that can be accepted up to 1,000 times. */
|
|
198
|
+
multiUse?: boolean | undefined;
|
|
199
|
+
/** Whether the invited user can use the device as an exit node when it advertises as one. */
|
|
200
|
+
allowExitNode?: boolean | undefined;
|
|
201
|
+
/** The email to send the created invite to. If not set, the endpoint generates and returns an invite URL (but doesn't send it out). */
|
|
202
|
+
email?: string | undefined;
|
|
203
|
+
}
|
|
204
|
+
export type CreateDeviceInvitesRequestBodyList = Array<CreateDeviceInvitesRequestBodyItem>;
|
|
205
|
+
export interface CreateDeviceInvitesRequest {
|
|
206
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
207
|
+
deviceId: string;
|
|
208
|
+
body?: CreateDeviceInvitesRequestBodyList | undefined;
|
|
209
|
+
}
|
|
210
|
+
/** Set when the invite has been accepted. It holds information about the user who accepted the share invite. */
|
|
211
|
+
export interface DeviceInviteAcceptedBy {
|
|
212
|
+
/** The ID of the user who accepted the share invite. */
|
|
213
|
+
id?: number | undefined;
|
|
214
|
+
/** The login name of the user who accepted the share invite. */
|
|
215
|
+
loginName?: string | undefined;
|
|
216
|
+
/** The profile pic URL for the user who accepted the share invite. */
|
|
217
|
+
profilePicUrl?: string | undefined;
|
|
218
|
+
}
|
|
219
|
+
/** A device invite is an invitation that shares a device with an external user (a user not in the device's tailnet). Each device invite has a unique ID that is used to identify the invite in API calls. You can find all device invite IDs for a particular device by [listing all device invites](#tag/deviceinvites/POST/device/{deviceId}/device-invites) for a device. */
|
|
220
|
+
export interface DeviceInvite {
|
|
221
|
+
/** The unique identifier for the invite. Supply this value wherever {deviceInviteId} is indicated in the endpoint. */
|
|
222
|
+
id?: string | undefined;
|
|
223
|
+
/** The creation time of the invite. */
|
|
224
|
+
created?: string | undefined;
|
|
225
|
+
/** The ID of the tailnet to which the shared device belongs. */
|
|
226
|
+
tailnetId?: number | undefined;
|
|
227
|
+
/** The ID of the device being shared. */
|
|
228
|
+
deviceId?: number | undefined;
|
|
229
|
+
/** The ID of the user who created the share invite. */
|
|
230
|
+
sharerId?: number | undefined;
|
|
231
|
+
/** Specifies whether this device invite can be accepted more than once. */
|
|
232
|
+
multiUse?: boolean | undefined;
|
|
233
|
+
/** Specifies whether the invited user is able to use the device as an exit node when the device is advertising as one. */
|
|
234
|
+
allowExitNode?: boolean | undefined;
|
|
235
|
+
/** The email to which the invite was sent. If empty, the invite was not emailed to anyone, but the inviteUrl can be shared manually. */
|
|
236
|
+
email?: string | undefined;
|
|
237
|
+
/** The last time the invite was attempted to be sent to Email. Only ever set if `email` is not empty. */
|
|
238
|
+
lastEmailSentAt?: string | undefined;
|
|
239
|
+
/** The link to accept the invite. Anyone with this link can accept the invite. It is not restricted to the person to which the invite was emailed. */
|
|
240
|
+
inviteUrl?: Redacted.Redacted<string> | undefined;
|
|
241
|
+
/** `true` when the share invite has been accepted. */
|
|
242
|
+
accepted?: boolean | undefined;
|
|
243
|
+
/** Set when the invite has been accepted. It holds information about the user who accepted the share invite. */
|
|
244
|
+
acceptedBy?: DeviceInviteAcceptedBy | undefined;
|
|
245
|
+
}
|
|
246
|
+
export type CreateDeviceInvitesResponseBodyList = Array<DeviceInvite>;
|
|
247
|
+
export type CreateDeviceInvitesResponse = CreateDeviceInvitesResponseBodyList;
|
|
248
|
+
/** The type of key to create. Defaults to "auth" if omitted. */
|
|
249
|
+
export type CreateKeyRequestKeyType = "auth" | "client" | "federated";
|
|
250
|
+
/** tags are the tags that will be set on devices registered with this key. Learn about tags at https://tailscale.com/docs/features/tags. Whether tags are required or optional depends on the owner of the auth key: - When creating an auth key owned by the tailnet (using OAuth), it must have tags. The auth tags specified for that new auth key must exactly match the tags that are on the OAuth client used to create that auth key (or they must be tags that are owned by the tags that are on the OAuth client used to create the auth key). - When creating an auth key owned by a user (using a user's access token), tags are optional. */
|
|
251
|
+
export type KeyCapabilitiesDevicesCreateTagsList = Array<string>;
|
|
252
|
+
export type KeyCapabilitiesDevicesCreateNodeAttributesValue = string | number | boolean;
|
|
253
|
+
/** nodeAttributes are custom device posture attributes that will be set on devices registered with this key. Attribute keys must be in the `custom:` namespace, and values must be strings, integers, or booleans. At most 100 attributes may be set. Learn about device posture attributes at https://tailscale.com/docs/features/device-posture. Creating an auth key with node attributes requires permission to write device posture attributes. */
|
|
254
|
+
export type KeyCapabilitiesDevicesCreateNodeAttributesMap = {
|
|
255
|
+
[key: string]: KeyCapabilitiesDevicesCreateNodeAttributesValue | undefined;
|
|
256
|
+
};
|
|
257
|
+
/** `create` specifies the key's permissions when creating devices. */
|
|
258
|
+
export interface KeyCapabilitiesDevicesCreate {
|
|
259
|
+
/** reusable for auth keys only; reusable auth keys can be used multiple times to register different devices. Learn more about reusable auth keys at https://tailscale.com/docs/features/access-control/auth-keys#types-of-auth-keys. */
|
|
260
|
+
reusable?: boolean | undefined;
|
|
261
|
+
/** ephemeral for auth keys only; ephemeral keys are used to connect and then clean up short-lived devices. Learn about ephemeral nodes at https://tailscale.com/docs/features/ephemeral-nodes. */
|
|
262
|
+
ephemeral?: boolean | undefined;
|
|
263
|
+
/** preauthorized for auth keys only; these are also referred to as "pre-approved" keys. 'true' means that devices registered with this key won't require additional approval from a tailnet admin. Learn about device approval at https://tailscale.com/docs/features/access-control/device-management/device-approval. */
|
|
264
|
+
preauthorized?: boolean | undefined;
|
|
265
|
+
/** tags are the tags that will be set on devices registered with this key. Learn about tags at https://tailscale.com/docs/features/tags. Whether tags are required or optional depends on the owner of the auth key: - When creating an auth key owned by the tailnet (using OAuth), it must have tags. The auth tags specified for that new auth key must exactly match the tags that are on the OAuth client used to create that auth key (or they must be tags that are owned by the tags that are on the OAuth client used to create the auth key). - When creating an auth key owned by a user (using a user's access token), tags are optional. */
|
|
266
|
+
tags?: KeyCapabilitiesDevicesCreateTagsList | undefined;
|
|
267
|
+
/** nodeAttributes are custom device posture attributes that will be set on devices registered with this key. Attribute keys must be in the `custom:` namespace, and values must be strings, integers, or booleans. At most 100 attributes may be set. Learn about device posture attributes at https://tailscale.com/docs/features/device-posture. Creating an auth key with node attributes requires permission to write device posture attributes. */
|
|
268
|
+
nodeAttributes?: KeyCapabilitiesDevicesCreateNodeAttributesMap | undefined;
|
|
269
|
+
}
|
|
270
|
+
/** `devices` specifies the key's permissions over devices. This field is only populated for auth keys. */
|
|
271
|
+
export interface KeyCapabilitiesDevices {
|
|
272
|
+
/** `create` specifies the key's permissions when creating devices. */
|
|
273
|
+
create?: KeyCapabilitiesDevicesCreate | undefined;
|
|
274
|
+
}
|
|
275
|
+
/** `capabilities` is a mapping of resources to permissible actions. */
|
|
276
|
+
export interface KeyCapabilities {
|
|
277
|
+
/** `devices` specifies the key's permissions over devices. This field is only populated for auth keys. */
|
|
278
|
+
devices?: KeyCapabilitiesDevices | undefined;
|
|
279
|
+
}
|
|
280
|
+
/** A list of scopes to grant to the key. At least one scope is required for OAuth clients and federated identities. See [trust credentials scopes](https://tailscale.com/docs/reference/trust-credentials#scopes) for a list of available scopes. Only applies to OAuth clients and federated identities. */
|
|
281
|
+
export type CreateKeyRequestScopesList = Array<string>;
|
|
282
|
+
/** A list of tags associated to the trust credential. Auth keys created with this credential must have these exact tags, or tags owned by the credential's tags. Mandatory if the scopes include "devices:core" or "auth_keys". Only applies to OAuth clients and federated identities. */
|
|
283
|
+
export type CreateKeyRequestTagsList = Array<string>;
|
|
284
|
+
/** A map of claim names to pattern strings used to match against arbitrary claims in the OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
285
|
+
export type CreateKeyRequestCustomClaimRulesMap = {
|
|
286
|
+
[key: string]: string | undefined;
|
|
287
|
+
};
|
|
288
|
+
export interface CreateKeyRequest {
|
|
289
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
290
|
+
tailnet: string;
|
|
291
|
+
/** The type of key to create. Defaults to "auth" if omitted. */
|
|
292
|
+
keyType?: CreateKeyRequestKeyType | (string & {}) | undefined;
|
|
293
|
+
/** A short string specifying the purpose of the key. Can be a maximum of 50 alphanumeric characters. Hyphens and spaces are also allowed. */
|
|
294
|
+
description?: string | undefined;
|
|
295
|
+
capabilities?: KeyCapabilities | undefined;
|
|
296
|
+
/** Specifies the duration in seconds until the key expires. Defaults to 90 days if not supplied. Only applies to auth keys. */
|
|
297
|
+
expirySeconds?: number | undefined;
|
|
298
|
+
/** A list of scopes to grant to the key. At least one scope is required for OAuth clients and federated identities. See [trust credentials scopes](https://tailscale.com/docs/reference/trust-credentials#scopes) for a list of available scopes. Only applies to OAuth clients and federated identities. */
|
|
299
|
+
scopes?: CreateKeyRequestScopesList | undefined;
|
|
300
|
+
/** A list of tags associated to the trust credential. Auth keys created with this credential must have these exact tags, or tags owned by the credential's tags. Mandatory if the scopes include "devices:core" or "auth_keys". Only applies to OAuth clients and federated identities. */
|
|
301
|
+
tags?: CreateKeyRequestTagsList | undefined;
|
|
302
|
+
/** The issuer of the OIDC identity token used in the token exchange. Must be a valid and publicly reachable https:// URL. Only applies to federated identities. */
|
|
303
|
+
issuer?: string | undefined;
|
|
304
|
+
/** The pattern used when matching against the `sub` claim from an OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
305
|
+
subject?: string | undefined;
|
|
306
|
+
/** The value used when matching against the `aud` claim from an OIDC identity token. Specifying the audience is optional as Tailscale will generate a secure audience at creation time by default. It is recommended to let Tailscale generate the audience unless the identity provider you are integrating with requires a specific audience format. Only applies to federated identities. */
|
|
307
|
+
audience?: string | undefined;
|
|
308
|
+
/** A map of claim names to pattern strings used to match against arbitrary claims in the OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
309
|
+
customClaimRules?: CreateKeyRequestCustomClaimRulesMap | undefined;
|
|
310
|
+
}
|
|
311
|
+
/** The type of key. Can be one of "auth", "client", "federated", or "api". - "auth" refers to machine auth keys. - "client" refers to OAuth clients. - "federated" refers to federated identities. - "api" refers to personal API access tokens or tokens generated using an OAuth client or federated identity. */
|
|
312
|
+
export type KeyKeyType = "auth" | "client" | "api" | "federated";
|
|
313
|
+
/** A list of scopes granted to the key. Only applies to OAuth clients, API access tokens, and federated identities. */
|
|
314
|
+
export type KeyScopesList = Array<string>;
|
|
315
|
+
/** A list of tags associated to the trust credential. Auth keys created with this client must have these exact tags, or tags owned by the client's tags. Mandatory if the scopes include "devices:core" or "auth_keys". Only applies to OAuth clients and federated identities. */
|
|
316
|
+
export type KeyTagsList = Array<string>;
|
|
317
|
+
/** A map of claim names to pattern strings used to match against arbitrary claims in the OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
318
|
+
export type KeyCustomClaimRulesMap = {
|
|
319
|
+
[key: string]: string | undefined;
|
|
320
|
+
};
|
|
321
|
+
/** An API access token or Auth Key. */
|
|
322
|
+
export interface Key {
|
|
323
|
+
id?: string | undefined;
|
|
324
|
+
/** The secret key material (only populated at creation time). */
|
|
325
|
+
key?: Redacted.Redacted<string> | undefined;
|
|
326
|
+
/** The type of key. Can be one of "auth", "client", "federated", or "api". - "auth" refers to machine auth keys. - "client" refers to OAuth clients. - "federated" refers to federated identities. - "api" refers to personal API access tokens or tokens generated using an OAuth client or federated identity. */
|
|
327
|
+
keyType?: KeyKeyType | undefined;
|
|
328
|
+
/** Duration in seconds until the key expires. Only applies to auth keys. */
|
|
329
|
+
expirySeconds?: number | undefined;
|
|
330
|
+
created?: string | undefined;
|
|
331
|
+
updated?: string | undefined;
|
|
332
|
+
expires?: string | undefined;
|
|
333
|
+
revoked?: string | undefined;
|
|
334
|
+
capabilities?: KeyCapabilities | undefined;
|
|
335
|
+
/** A list of scopes granted to the key. Only applies to OAuth clients, API access tokens, and federated identities. */
|
|
336
|
+
scopes?: KeyScopesList | undefined;
|
|
337
|
+
/** A list of tags associated to the trust credential. Auth keys created with this client must have these exact tags, or tags owned by the client's tags. Mandatory if the scopes include "devices:core" or "auth_keys". Only applies to OAuth clients and federated identities. */
|
|
338
|
+
tags?: KeyTagsList | undefined;
|
|
339
|
+
description?: string | undefined;
|
|
340
|
+
/** Response for a revoked (deleted) or expired key will have an `invalid` field set to true. */
|
|
341
|
+
invalid?: boolean | undefined;
|
|
342
|
+
/** ID of the user who created this key, empty for keys created by trust credentials. */
|
|
343
|
+
userId?: string | undefined;
|
|
344
|
+
/** The value used when matching against the `aud` claim from an OIDC identity token. Specifying the audience is optional as Tailscale will generate a secure audience at creation time by default. It is recommended to let Tailscale generate the audience unless the identity provider you are integrating with requires a specific audience format. Only applies to federated identities. */
|
|
345
|
+
audience?: string | undefined;
|
|
346
|
+
/** The issuer of the OIDC identity token used in the token exchange. Must be a valid and publicly reachable https:// URL. Only applies to federated identities. */
|
|
347
|
+
issuer?: string | undefined;
|
|
348
|
+
/** The pattern used when matching against the `sub` claim from an OIDC identity token. This pattern can include `*` characters to match against any character. Only applies to federated identities. */
|
|
349
|
+
subject?: string | undefined;
|
|
350
|
+
/** A map of claim names to pattern strings used to match against arbitrary claims in the OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
351
|
+
customClaimRules?: KeyCustomClaimRulesMap | undefined;
|
|
352
|
+
}
|
|
353
|
+
/** The list of permitted redirect URIs for the OAuth authorization code flow. At least one redirect URI is required. Each URI must use the `https` scheme, except for `localhost`, `127.0.0.1`, and `::1`, which may use any scheme. Raw IP address hosts are not permitted. */
|
|
354
|
+
export type RedirectURIs = Array<string>;
|
|
355
|
+
/** The list of OAuth scopes granted to the app. Must be non-empty. Learn more about [OAuth clients and scopes](/docs/features/oauth-clients). */
|
|
356
|
+
export type Scopes = Array<string>;
|
|
357
|
+
/** The list of custom device attributes that the OAuth app is allowed to set. */
|
|
358
|
+
export type AllowedNodeAttributes = Array<string>;
|
|
359
|
+
export interface CreateOAuthAppRequest {
|
|
360
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
361
|
+
tailnet: string;
|
|
362
|
+
name: string;
|
|
363
|
+
description?: string | undefined;
|
|
364
|
+
redirectURIs: RedirectURIs;
|
|
365
|
+
scopes: Scopes;
|
|
366
|
+
allowedNodeAttributes?: AllowedNodeAttributes | undefined;
|
|
367
|
+
}
|
|
368
|
+
/** The list of permitted redirect URIs for the OAuth authorization code flow. At least one redirect URI is required. Each URI must use the `https` scheme, except for `localhost`, `127.0.0.1`, and `::1`, which may use any scheme. Raw IP address hosts are not permitted. */
|
|
369
|
+
export type OAuthAppRedirectURIsList = Array<string>;
|
|
370
|
+
/** The list of OAuth scopes granted to the app. Must be non-empty. Learn more about [OAuth clients and scopes](/docs/features/oauth-clients). */
|
|
371
|
+
export type OAuthAppScopesList = Array<string>;
|
|
372
|
+
/** The list of custom device attributes that the OAuth app is allowed to set. */
|
|
373
|
+
export type OAuthAppAllowedNodeAttributesList = Array<string>;
|
|
374
|
+
export interface OAuthApp {
|
|
375
|
+
/** The unique identifier for the OAuth app. */
|
|
376
|
+
id?: string | undefined;
|
|
377
|
+
/** The name of the OAuth app. Must be between 3 and 50 characters and contain only alphanumeric characters, dashes, periods, and underscores. */
|
|
378
|
+
name?: string | undefined;
|
|
379
|
+
/** A human-readable description of the OAuth app. Must be at most 300 characters. */
|
|
380
|
+
description?: string | undefined;
|
|
381
|
+
/** The list of permitted redirect URIs for the OAuth authorization code flow. At least one redirect URI is required. Each URI must use the `https` scheme, except for `localhost`, `127.0.0.1`, and `::1`, which may use any scheme. Raw IP address hosts are not permitted. */
|
|
382
|
+
redirectURIs?: OAuthAppRedirectURIsList | undefined;
|
|
383
|
+
/** The list of OAuth scopes granted to the app. Must be non-empty. Learn more about [OAuth clients and scopes](/docs/features/oauth-clients). */
|
|
384
|
+
scopes?: OAuthAppScopesList | undefined;
|
|
385
|
+
/** The list of custom device attributes that the OAuth app is allowed to set. */
|
|
386
|
+
allowedNodeAttributes?: OAuthAppAllowedNodeAttributesList | undefined;
|
|
387
|
+
/** The client secret for the OAuth app. Only populated when the app is created and cannot be retrieved afterwards. */
|
|
388
|
+
clientSecret?: Redacted.Redacted<string> | undefined;
|
|
389
|
+
/** The time the OAuth app was created. */
|
|
390
|
+
created?: string | undefined;
|
|
391
|
+
/** The time the OAuth app was last updated. */
|
|
392
|
+
updated?: string | undefined;
|
|
393
|
+
}
|
|
394
|
+
export interface CreateOrganizationTailnetRequest {
|
|
395
|
+
/** The organization identifier. Use a dash (`-`) to reference the organization of the access token being used to make the API call. */
|
|
396
|
+
organization: string;
|
|
397
|
+
/** A custom name for the tailnet. It can contain letters, numbers, spaces, apostrophes, and hyphens, and must be unique within the organization. */
|
|
398
|
+
displayName: string;
|
|
399
|
+
}
|
|
400
|
+
/** OAuth client credentials with the `all` scope for the newly created tailnet. The secret is returned only once. */
|
|
401
|
+
export interface TailnetOAuthClient {
|
|
402
|
+
/** A stable, globally unique identifier for the OAuth client. */
|
|
403
|
+
id?: string | undefined;
|
|
404
|
+
/** The OAuth client secret. */
|
|
405
|
+
secret?: Redacted.Redacted<string> | undefined;
|
|
406
|
+
}
|
|
407
|
+
export interface CreateOrganizationTailnetResponse {
|
|
408
|
+
/** A stable, globally unique identifier for the tailnet. */
|
|
409
|
+
id?: string | undefined;
|
|
410
|
+
/** The tailnet name provided in the request. */
|
|
411
|
+
displayName?: string | undefined;
|
|
412
|
+
/** A stable, globally unique identifier for the organization. */
|
|
413
|
+
orgId?: string | undefined;
|
|
414
|
+
/** The DNS suffix used to construct fully qualified domain names for devices in this tailnet. */
|
|
415
|
+
dnsName?: string | undefined;
|
|
416
|
+
/** RFC3339 timestamp of when the tailnet was created. */
|
|
417
|
+
createdAt?: string | undefined;
|
|
418
|
+
oauthClient?: TailnetOAuthClient | undefined;
|
|
419
|
+
/** True if the requested tailnet already exists. */
|
|
420
|
+
alreadyExists?: boolean | undefined;
|
|
421
|
+
}
|
|
422
|
+
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
423
|
+
export type CreatePostureIntegrationRequestProvider = "falcon" | "intune" | "jamfpro" | "kandji" | "kolide" | "sentinelone";
|
|
424
|
+
export interface CreatePostureIntegrationRequest {
|
|
425
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
426
|
+
tailnet: string;
|
|
427
|
+
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
428
|
+
provider?: CreatePostureIntegrationRequestProvider | (string & {}) | undefined;
|
|
429
|
+
/** Identifies which of the provider's clouds to integrate with. - For CrowdStrike Falcon, it will be one of `us-1`, `us-2`, `eu-1` or `us-gov`. - For Microsoft Intune, it will be one of `global` or `us-gov`. - For Jamf Pro, Kandji and Sentinel One, it is the FQDN of your subdomain, for example `mydomain.sentinelone.net`. - For Kolide, this is left blank. */
|
|
430
|
+
cloudId?: string | undefined;
|
|
431
|
+
/** Unique identifier for your client. - For Microsoft Intune, it will be your application's UUID. - For CrowdStrike Falcon and Jamf Pro, it will be your client id. - For Kandji, Kolide and Sentinel One, this is left blank. */
|
|
432
|
+
clientId?: string | undefined;
|
|
433
|
+
/** The Microsoft Intune directory (tenant) ID. For other providers, this is left blank. */
|
|
434
|
+
tenantId?: string | undefined;
|
|
435
|
+
/** The secret (auth key, token, etc.) used to authenticate with the provider. Required when creating a new integration, may be omitted when updating an existing integration, in which case we retain the existing password. */
|
|
436
|
+
clientSecret?: Redacted.Redacted<string> | undefined;
|
|
437
|
+
}
|
|
438
|
+
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
439
|
+
export type PostureIntegrationOutputProvider = "falcon" | "intune" | "jamfpro" | "kandji" | "kolide" | "sentinelone";
|
|
440
|
+
/** Most recent status for this integration. */
|
|
441
|
+
export interface PostureIntegrationOutputStatus {
|
|
442
|
+
/** Timestamp of the last synchronization with the device posture provider, in RFC 3339 format. */
|
|
443
|
+
lastSync?: string | undefined;
|
|
444
|
+
/** If the last synchronization failed, this shows the error message associated with the failed synchronization. */
|
|
445
|
+
error?: string | undefined;
|
|
446
|
+
/** The number of devices known to the provider. */
|
|
447
|
+
providerHostCount?: number | undefined;
|
|
448
|
+
/** The number of Tailscale nodes that were matched with provider. */
|
|
449
|
+
matchedCount?: number | undefined;
|
|
450
|
+
/** The number of Tailscale nodes with identifiers for matching. */
|
|
451
|
+
possibleMatchedCount?: number | undefined;
|
|
452
|
+
}
|
|
453
|
+
/** A configured PostureIntegration. */
|
|
454
|
+
export interface PostureIntegrationOutput {
|
|
455
|
+
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
456
|
+
provider?: PostureIntegrationOutputProvider | undefined;
|
|
457
|
+
/** Identifies which of the provider's clouds to integrate with. - For CrowdStrike Falcon, it will be one of `us-1`, `us-2`, `eu-1` or `us-gov`. - For Microsoft Intune, it will be one of `global` or `us-gov`. - For Jamf Pro, Kandji and Sentinel One, it is the FQDN of your subdomain, for example `mydomain.sentinelone.net`. - For Kolide, this is left blank. */
|
|
458
|
+
cloudId?: string | undefined;
|
|
459
|
+
/** Unique identifier for your client. - For Microsoft Intune, it will be your application's UUID. - For CrowdStrike Falcon and Jamf Pro, it will be your client id. - For Kandji, Kolide and Sentinel One, this is left blank. */
|
|
460
|
+
clientId?: string | undefined;
|
|
461
|
+
/** The Microsoft Intune directory (tenant) ID. For other providers, this is left blank. */
|
|
462
|
+
tenantId?: string | undefined;
|
|
463
|
+
/** A unique identifier for the integration (generated by the system). */
|
|
464
|
+
id?: string | undefined;
|
|
465
|
+
/** Timestamp of the last time this configuration was updated, in RFC 3339 format. */
|
|
466
|
+
configUpdated?: string | undefined;
|
|
467
|
+
/** Most recent status for this integration. */
|
|
468
|
+
status?: PostureIntegrationOutputStatus | undefined;
|
|
469
|
+
}
|
|
470
|
+
/** Optionally specifies a user role to assign the invited user. */
|
|
471
|
+
export type CreateUserInvitesRequestBodyItemRole = "member" | "admin" | "it-admin" | "network-admin" | "billing-admin" | "auditor";
|
|
472
|
+
export interface CreateUserInvitesRequestBodyItem {
|
|
473
|
+
/** Optionally specifies a user role to assign the invited user. */
|
|
474
|
+
role?: CreateUserInvitesRequestBodyItemRole | (string & {}) | undefined;
|
|
475
|
+
/** Optionally specifies the email to send the created invite. If not set, the endpoint generates and returns an invite URL, but does not email it out. */
|
|
476
|
+
email?: string | undefined;
|
|
477
|
+
}
|
|
478
|
+
export type CreateUserInvitesRequestBodyList = Array<CreateUserInvitesRequestBodyItem>;
|
|
479
|
+
export interface CreateUserInvitesRequest {
|
|
480
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
481
|
+
tailnet: string;
|
|
482
|
+
body?: CreateUserInvitesRequestBodyList | undefined;
|
|
483
|
+
}
|
|
484
|
+
/** The tailnet user role to assign to the invited user upon accepting the invite. */
|
|
485
|
+
export type UserInviteRole = "member" | "admin" | "it-admin" | "network-admin" | "billing-admin" | "auditor";
|
|
486
|
+
/** A user invite is an active invitation that lets a user join a tailnet with a preassigned [user role](https://tailscale.com/docs/reference/user-roles). Each user invite has a unique ID that is used to identify the invite in API calls. You can find all user invite IDs for a particular tailnet by [listing user invites](#tag/userinvites/get/tailnet/{tailnet}/user-invites). */
|
|
487
|
+
export interface UserInvite {
|
|
488
|
+
/** The unique identifier for the invite. Supply this value wherever `userInviteId` is indicated in the endpoint. */
|
|
489
|
+
id: string;
|
|
490
|
+
/** The tailnet user role to assign to the invited user upon accepting the invite. */
|
|
491
|
+
role: UserInviteRole;
|
|
492
|
+
/** The ID of the tailnet to which the user was invited. */
|
|
493
|
+
tailnetId: number;
|
|
494
|
+
/** The ID of the user who created the invite. */
|
|
495
|
+
inviterId: number;
|
|
496
|
+
/** The email to which the invite was sent. If empty, the invite was not emailed to anyone, but the inviteUrl can be shared manually. */
|
|
497
|
+
email?: string | undefined;
|
|
498
|
+
/** The last time the invite was attempted to be sent to Email. Only ever set if `email` is not empty. */
|
|
499
|
+
lastEmailSentAt?: string | undefined;
|
|
500
|
+
/** Included when `email` is not part of the tailnet's domain, or when `email` is empty. It is the link to accept the invite. When included, anyone with this link can accept the invite. It is not restricted to the person to which the invite was emailed. When `email` is part of the tailnet's domain (has the same @domain.com suffix as the tailnet), the user can join the tailnet automatically by logging in with their domain email at https://login.tailscale.com/start. They'll be assigned the specified `role` upon signing in for the first time. */
|
|
501
|
+
inviteUrl?: Redacted.Redacted<string> | undefined;
|
|
502
|
+
}
|
|
503
|
+
export type CreateUserInvitesResponseBodyList = Array<UserInvite>;
|
|
504
|
+
export type CreateUserInvitesResponse = CreateUserInvitesResponseBodyList;
|
|
505
|
+
/** The provider type for the webhook destination, or an empty string if none are applicable. Outgoing webhook events are sent in the format expected by the provider type if non-empty. */
|
|
506
|
+
export type ProviderType = "slack" | "mattermost" | "googlechat" | "discord";
|
|
507
|
+
export type SubscriptionsItem = "nodeCreated" | "nodeNeedsApproval" | "nodeApproved" | "nodeKeyExpiringInOneDay" | "nodeKeyExpired" | "nodeDeleted" | "nodeSigned" | "nodeNeedsSignature" | "policyUpdate" | "userCreated" | "userNeedsApproval" | "userSuspended" | "userRestored" | "userDeleted" | "userApproved" | "userRoleUpdated" | "subnetIPForwardingNotEnabled" | "exitNodeIPForwardingNotEnabled";
|
|
508
|
+
/** The list of subscribed events that trigger POST requests to the configured endpoint URL. Learn more about [webhook events](/docs/features/webhooks#events). */
|
|
509
|
+
export type Subscriptions = Array<SubscriptionsItem | (string & {})>;
|
|
510
|
+
export interface CreateWebhookRequest {
|
|
511
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
512
|
+
tailnet: string;
|
|
513
|
+
/** The endpoint that events are sent to from Tailscale via POST requests. */
|
|
514
|
+
endpointUrl: Redacted.Redacted<string>;
|
|
515
|
+
providerType?: ProviderType | (string & {}) | undefined;
|
|
516
|
+
subscriptions: Subscriptions;
|
|
517
|
+
}
|
|
518
|
+
/** The provider type for the webhook destination, or an empty string if none are applicable. Outgoing webhook events are sent in the format expected by the provider type if non-empty. */
|
|
519
|
+
export type WebhookProviderType = "slack" | "mattermost" | "googlechat" | "discord" | "";
|
|
520
|
+
export type WebhookSubscriptionsItem = "nodeCreated" | "nodeNeedsApproval" | "nodeApproved" | "nodeKeyExpiringInOneDay" | "nodeKeyExpired" | "nodeDeleted" | "nodeSigned" | "nodeNeedsSignature" | "policyUpdate" | "userCreated" | "userNeedsApproval" | "userSuspended" | "userRestored" | "userDeleted" | "userApproved" | "userRoleUpdated" | "subnetIPForwardingNotEnabled" | "exitNodeIPForwardingNotEnabled";
|
|
521
|
+
/** The list of subscribed events that trigger POST requests to the configured endpoint URL. Learn more about [webhook events](/docs/features/webhooks#events). */
|
|
522
|
+
export type WebhookSubscriptionsList = Array<WebhookSubscriptionsItem>;
|
|
523
|
+
export interface Webhook {
|
|
524
|
+
/** ID of the webhook endpoint. */
|
|
525
|
+
endpointId?: string | undefined;
|
|
526
|
+
/** The endpoint that events are sent to from Tailscale via POST requests. */
|
|
527
|
+
endpointUrl?: Redacted.Redacted<string> | undefined;
|
|
528
|
+
/** The provider type for the webhook destination, or an empty string if none are applicable. Outgoing webhook events are sent in the format expected by the provider type if non-empty. */
|
|
529
|
+
providerType?: WebhookProviderType | undefined;
|
|
530
|
+
/** The login name for the creator of the webhook endpoint. In some cases, such as webhooks created with an OAuth client, this can be blank. */
|
|
531
|
+
creatorLoginName?: string | undefined;
|
|
532
|
+
/** The time the webhook endpoint was created. */
|
|
533
|
+
created?: string | undefined;
|
|
534
|
+
/** The time the webhook endpoint was last modified. */
|
|
535
|
+
lastModified?: string | undefined;
|
|
536
|
+
/** The list of subscribed events that trigger POST requests to the configured endpoint URL. Learn more about [webhook events](/docs/features/webhooks#events). */
|
|
537
|
+
subscriptions?: WebhookSubscriptionsList | undefined;
|
|
538
|
+
/** The webhook secret associated with the endpoint. Only populated on creation or when the secret is rotated. This secret is used for generating the `Tailscale-Webhook-Signature` header in requests sent to the endpoint URL. Learn more about [verifying webhook event signatures](/docs/features/webhooks#verifying-an-event-signature). */
|
|
539
|
+
secret?: Redacted.Redacted<string> | undefined;
|
|
540
|
+
}
|
|
541
|
+
export interface DeleteCustomDevicePostureAttributesRequest {
|
|
542
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
543
|
+
deviceId: string;
|
|
544
|
+
/** The name of the posture attribute to set. This must be prefixed with `custom`: Keys have a maximum length of 128 characters including the namespace, and can only contain letters, numbers, underscores, and colon. Keys are case-sensitive. Keys must be unique, but are checked for uniqueness in a case-insensitive manner. For example, `custom:MyAttribute` and `custom:myattribute` cannot both be set within a single tailnet. All values for a given key need to be of the same type, which is determined when the first value is written for a given key. For example, `custom:myattribute` cannot have a numeric value (`87`) for one node and a string value (`"78"`) for another node within the same tailnet. */
|
|
545
|
+
attributeKey: string;
|
|
546
|
+
}
|
|
547
|
+
export interface DeleteCustomDevicePostureAttributesResponse {
|
|
548
|
+
}
|
|
549
|
+
export interface DeleteDeviceRequest {
|
|
550
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
551
|
+
deviceId: string;
|
|
552
|
+
}
|
|
553
|
+
export interface DeleteDeviceResponse {
|
|
554
|
+
}
|
|
555
|
+
export interface DeleteDeviceInviteRequest {
|
|
556
|
+
/** ID of the device invite. */
|
|
557
|
+
deviceInviteId: string;
|
|
558
|
+
}
|
|
559
|
+
export interface DeleteDeviceInviteResponse {
|
|
560
|
+
}
|
|
561
|
+
export interface DeleteKeyRequest {
|
|
562
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
563
|
+
tailnet: string;
|
|
564
|
+
/** The id of the key. The key ID can be found in the [admin console](https://login.tailscale.com/admin/settings/keys). */
|
|
565
|
+
keyId: string;
|
|
566
|
+
}
|
|
567
|
+
export interface DeleteKeyResponse {
|
|
568
|
+
}
|
|
569
|
+
export interface DeleteOAuthAppRequest {
|
|
570
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
571
|
+
tailnet: string;
|
|
572
|
+
/** The ID of the OAuth app. */
|
|
573
|
+
appId: string;
|
|
574
|
+
}
|
|
575
|
+
export interface DeleteOAuthAppResponse {
|
|
576
|
+
}
|
|
577
|
+
export interface DeletePostureIntegrationRequest {
|
|
578
|
+
/** Unique identifier for a posture integration. */
|
|
579
|
+
id: string;
|
|
580
|
+
}
|
|
581
|
+
export interface DeletePostureIntegrationResponse {
|
|
582
|
+
}
|
|
583
|
+
export interface DeleteServiceRequest {
|
|
584
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
585
|
+
tailnet: string;
|
|
586
|
+
/** The unique name of a Service. The name should be prefixed with "svc:". It should be unique across the tailnet, so names already used for a machine cannot be reused for a Service. */
|
|
587
|
+
serviceName: string;
|
|
588
|
+
}
|
|
589
|
+
export interface DeleteServiceResponse {
|
|
590
|
+
}
|
|
591
|
+
export interface DeleteTailnetRequest {
|
|
592
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
593
|
+
tailnet: string;
|
|
594
|
+
}
|
|
595
|
+
export interface DeleteTailnetResponse {
|
|
596
|
+
}
|
|
597
|
+
export interface DeleteUserRequest {
|
|
598
|
+
/** ID of the user. */
|
|
599
|
+
userId: string;
|
|
600
|
+
}
|
|
601
|
+
export interface DeleteUserResponse {
|
|
602
|
+
}
|
|
603
|
+
export interface DeleteUserInviteRequest {
|
|
604
|
+
/** ID of the user invite. */
|
|
605
|
+
userInviteId: string;
|
|
606
|
+
}
|
|
607
|
+
export interface DeleteUserInviteResponse {
|
|
608
|
+
}
|
|
609
|
+
export interface DeleteWebhookRequest {
|
|
610
|
+
/** ID for the webhook endpoint. */
|
|
611
|
+
endpointId: string;
|
|
612
|
+
}
|
|
613
|
+
export interface DeleteWebhookResponse {
|
|
614
|
+
}
|
|
615
|
+
/** The type of log for logging endpoints. */
|
|
616
|
+
export type DisableLogStreamingRequestLogType = "configuration" | "network";
|
|
617
|
+
export interface DisableLogStreamingRequest {
|
|
618
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
619
|
+
tailnet: string;
|
|
620
|
+
/** The type of log. */
|
|
621
|
+
logType: DisableLogStreamingRequestLogType | (string & {});
|
|
622
|
+
}
|
|
623
|
+
export interface DisableLogStreamingResponse {
|
|
624
|
+
}
|
|
625
|
+
export interface ExpireDeviceKeyRequest {
|
|
626
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
627
|
+
deviceId: string;
|
|
628
|
+
}
|
|
629
|
+
export interface ExpireDeviceKeyResponse {
|
|
630
|
+
}
|
|
631
|
+
export interface GetAwsExternalIdRequest {
|
|
632
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
633
|
+
tailnet: string;
|
|
634
|
+
/** If set to true, this same AWS external id will be returned on future calls to this endpoint, if and only if those calls also mark `reusable` as true, and the ID has not yet been linked with an AWS account. */
|
|
635
|
+
reusable?: boolean | undefined;
|
|
636
|
+
}
|
|
637
|
+
/** An external ID for use in authenticating to AWS using role-based authentication. */
|
|
638
|
+
export interface AwsExternalId {
|
|
639
|
+
/** The external id that Tailscale will supply to AWS when authenticating using role-based authentication. */
|
|
640
|
+
externalId?: string | undefined;
|
|
641
|
+
/** The AWS account id that Tailscale will supply to AWS when authenticating using role-based authentication. */
|
|
642
|
+
tailscaleAwsAccountId?: string | undefined;
|
|
643
|
+
}
|
|
644
|
+
export interface GetContactsRequest {
|
|
645
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
646
|
+
tailnet: string;
|
|
647
|
+
}
|
|
648
|
+
/** A tailnet contact. */
|
|
649
|
+
export interface Contact {
|
|
650
|
+
/** The contact's email address. */
|
|
651
|
+
email?: string | undefined;
|
|
652
|
+
/** The email address used when contact's email address has not been verified. */
|
|
653
|
+
fallbackEmail?: string | undefined;
|
|
654
|
+
/** Indicates whether the contact's email address still needs to be verified. */
|
|
655
|
+
needsVerification?: boolean | undefined;
|
|
656
|
+
}
|
|
657
|
+
export interface GetContactsResponse {
|
|
658
|
+
account?: Contact | undefined;
|
|
659
|
+
support?: Contact | undefined;
|
|
660
|
+
security?: Contact | undefined;
|
|
661
|
+
}
|
|
662
|
+
export type GetDeviceRequestFields = "all" | "default";
|
|
663
|
+
export interface GetDeviceRequest {
|
|
664
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
665
|
+
deviceId: string;
|
|
666
|
+
/** Optionally controls whether the response returns **all** fields or only a predefined subset of fields. Currently, there are two supported options: - **`all`:** return all fields in the response - **`default`:** return the following fields - `addresses` - `id` - `nodeId` - `user` - `name` - `hostname` - `clientVersion` - `updateAvailable` - `os` - `created` - `connectedToControl` - `lastSeen` - `keyExpiryDisabled` - `expires` - `authorized` - `isExternal` - `machineKey` - `nodeKey` - `blocksIncomingConnections` - `tailnetLockKey` - `tailnetLockError` - `tags` - `isEphemeral` If the `fields` parameter is not supplied, then the default (limited fields) option is used. */
|
|
667
|
+
fields?: GetDeviceRequestFields | (string & {}) | undefined;
|
|
668
|
+
}
|
|
669
|
+
/** A list of Tailscale IP addresses for the device, including both IPv4 (formatted as 100.x.y.z) and IPv6 (formatted as fd7a:115c:a1e0:a:b:c:d:e) addresses. */
|
|
670
|
+
export type DeviceAddressesList = Array<string>;
|
|
671
|
+
/** The subnet routes for this device that have been approved by a tailnet admin. Learn more about subnet routes at https://tailscale.com/docs/features/subnet-routers. */
|
|
672
|
+
export type DeviceEnabledRoutesList = Array<string>;
|
|
673
|
+
/** The subnets this device requests to expose. Learn more about subnet routes at https://tailscale.com/docs/features/subnet-routers. */
|
|
674
|
+
export type DeviceAdvertisedRoutesList = Array<string>;
|
|
675
|
+
/** Client's magicsock UDP IP:port endpoints (IPv4 or IPv6). */
|
|
676
|
+
export type DeviceClientConnectivityEndpointsList = Array<string>;
|
|
677
|
+
export interface DeviceClientConnectivityLatencyValue {
|
|
678
|
+
/** 'true' for the node's preferred DERP server for incoming traffic. */
|
|
679
|
+
preferred?: boolean | undefined;
|
|
680
|
+
/** Current latency to DERP server. */
|
|
681
|
+
latencyMs?: number | undefined;
|
|
682
|
+
}
|
|
683
|
+
/** Map of DERP server locations and their current latency. */
|
|
684
|
+
export type DeviceClientConnectivityLatencyMap = {
|
|
685
|
+
[key: string]: DeviceClientConnectivityLatencyValue | undefined;
|
|
686
|
+
};
|
|
687
|
+
/** Identifies features supported by the client. */
|
|
688
|
+
export interface DeviceClientConnectivityClientSupports {
|
|
689
|
+
/** This information is no longer tracked and will always be null. */
|
|
690
|
+
hairPinning?: boolean | null | undefined;
|
|
691
|
+
/** 'true' if the device OS supports IPv6, regardless of whether IPv6 internet connectivity is available. */
|
|
692
|
+
ipv6?: boolean | null | undefined;
|
|
693
|
+
/** 'true' if PCP port-mapping service exists on your router. */
|
|
694
|
+
pcp?: boolean | null | undefined;
|
|
695
|
+
/** 'true' if NAT-PMP port-mapping service exists on your router. */
|
|
696
|
+
pmp?: boolean | null | undefined;
|
|
697
|
+
/** 'true' if UDP traffic is enabled on the current network; if 'false', Tailscale may be unable to make direct connections, and will rely on our DERP servers. */
|
|
698
|
+
udp?: boolean | null | undefined;
|
|
699
|
+
/** 'true' if UPnP port-mapping service exists on your router. */
|
|
700
|
+
upnp?: boolean | null | undefined;
|
|
701
|
+
}
|
|
702
|
+
/** clientConnectivity provides a report on the device's current physical network conditions. */
|
|
703
|
+
export interface DeviceClientConnectivity {
|
|
704
|
+
/** Client's magicsock UDP IP:port endpoints (IPv4 or IPv6). */
|
|
705
|
+
endpoints?: DeviceClientConnectivityEndpointsList | undefined;
|
|
706
|
+
/** 'true' if the host's NAT mappings vary based on the destination IP. */
|
|
707
|
+
mappingVariesByDestIP?: boolean | undefined;
|
|
708
|
+
/** Map of DERP server locations and their current latency. */
|
|
709
|
+
latency?: DeviceClientConnectivityLatencyMap | undefined;
|
|
710
|
+
/** Identifies features supported by the client. */
|
|
711
|
+
clientSupports?: DeviceClientConnectivityClientSupports | undefined;
|
|
712
|
+
}
|
|
713
|
+
/** Lets you assign an identity to a device that is separate from human users, and use it as part of an ACL to restrict access. Once a device is tagged, the tag is the owner of that device. A single node can have multiple tags assigned. This value is empty for external devices. Learn more about tags at https://tailscale.com/docs/features/tags. */
|
|
714
|
+
export type DeviceTagsList = Array<string>;
|
|
715
|
+
export type DevicePostureIdentitySerialNumbersList = Array<string>;
|
|
716
|
+
/** Contains extra identifiers from the device when the tailnet it is connected to has device posture identification collection enabled. If the device has not opted-in to posture identification collection, this will contain {"disabled": true}. Learn more about posture identity at https://tailscale.com/docs/features/access-control/device-management/how-to/manage-identity. */
|
|
717
|
+
export interface DevicePostureIdentity {
|
|
718
|
+
serialNumbers?: DevicePostureIdentitySerialNumbersList | undefined;
|
|
719
|
+
disabled?: boolean | undefined;
|
|
720
|
+
}
|
|
721
|
+
/** List of posture assertions the device is failing. Empty if the device is passing. */
|
|
722
|
+
export type DevicePostureStatusFailingAssertionsList = Array<string>;
|
|
723
|
+
/** Reports the status of a single posture for a device. */
|
|
724
|
+
export interface DevicePostureStatus {
|
|
725
|
+
/** Reports whether the device is passing this posture. */
|
|
726
|
+
passing?: boolean | undefined;
|
|
727
|
+
/** Whether the status of this posture affects the connectivity of the device. */
|
|
728
|
+
impacting?: boolean | undefined;
|
|
729
|
+
/** List of posture assertions the device is failing. Empty if the device is passing. */
|
|
730
|
+
failingAssertions?: DevicePostureStatusFailingAssertionsList | undefined;
|
|
731
|
+
}
|
|
732
|
+
/** distro provides details of the operating system distribution, if available. */
|
|
733
|
+
export interface DeviceDistro {
|
|
734
|
+
/** The operating system distribution that the device is running. */
|
|
735
|
+
name?: string | undefined;
|
|
736
|
+
/** The operating system distribution version that the device is running. */
|
|
737
|
+
version?: string | undefined;
|
|
738
|
+
/** The operating system distribution code name that the device is running. */
|
|
739
|
+
codeName?: string | undefined;
|
|
740
|
+
}
|
|
741
|
+
/** A Tailscale device (sometimes referred to as *node* or *machine*), is any computer or mobile device that joins a tailnet. Each device has a unique ID (`nodeId` in the schema below) that is used to identify the device in API calls. This ID can be found by going to the [Machines](https://login.tailscale.com/admin/machines) page in the admin console, selecting the relevant device, then finding the ID in the Machine Details section. You can also [list all devices](#tag/devices/get/tailnet/{tailnet}/devices) in the tailnet to get their `nodeId` values. */
|
|
742
|
+
export interface Device {
|
|
743
|
+
/** A list of Tailscale IP addresses for the device, including both IPv4 (formatted as 100.x.y.z) and IPv6 (formatted as fd7a:115c:a1e0:a:b:c:d:e) addresses. */
|
|
744
|
+
addresses?: DeviceAddressesList | undefined;
|
|
745
|
+
/** The legacy identifier for a device; you can supply this value wherever {deviceId} is indicated in the endpoint. Note that although "id" is still accepted, "nodeId" is preferred. */
|
|
746
|
+
id?: string | undefined;
|
|
747
|
+
/** The preferred identifier for a device; supply this value wherever {deviceId} is indicated in the endpoint. */
|
|
748
|
+
nodeId?: string | undefined;
|
|
749
|
+
/** The user who registered the node. For untagged nodes, this user is the device owner. */
|
|
750
|
+
user?: string | undefined;
|
|
751
|
+
/** The MagicDNS name of the device. Learn more about MagicDNS at https://tailscale.com/docs/features/magicdns. */
|
|
752
|
+
name?: string | undefined;
|
|
753
|
+
/** The machine name in the admin console. Learn more about machine names at https://tailscale.com/docs/concepts/machine-names. */
|
|
754
|
+
hostname?: string | undefined;
|
|
755
|
+
/** The version of the Tailscale client software; this is empty for external devices. */
|
|
756
|
+
clientVersion?: string | undefined;
|
|
757
|
+
/** 'true' if a Tailscale client version upgrade is available. This value is empty for external devices. */
|
|
758
|
+
updateAvailable?: boolean | undefined;
|
|
759
|
+
/** The operating system that the device is running. */
|
|
760
|
+
os?: string | undefined;
|
|
761
|
+
/** The date on which the device was added to the tailnet; this is empty for external devices. */
|
|
762
|
+
created?: string | undefined;
|
|
763
|
+
/** Indicates if the device recently maintained a TCP connection to the Tailscale control server. */
|
|
764
|
+
connectedToControl?: boolean | undefined;
|
|
765
|
+
/** When the device was last connected to the Tailscale control server. Omitted if the device has never been online or `connectedToControl` is true. */
|
|
766
|
+
lastSeen?: string | undefined;
|
|
767
|
+
/** 'true' if the keys for the device will not expire. Learn more at https://tailscale.com/docs/features/access-control/key-expiry. */
|
|
768
|
+
keyExpiryDisabled?: boolean | undefined;
|
|
769
|
+
/** The expiration date of the device's auth key. Learn more about key expiry at https://tailscale.com/docs/features/access-control/key-expiry. */
|
|
770
|
+
expires?: string | undefined;
|
|
771
|
+
/** 'true' if the device has been authorized to join the tailnet; otherwise, 'false'. Learn more about device authorization at https://tailscale.com/docs/features/access-control/device-management/device-approval. */
|
|
772
|
+
authorized?: boolean | undefined;
|
|
773
|
+
/** 'true', indicates that a device is not a member of the tailnet, but is shared in to the tailnet; if 'false', the device is a member of the tailnet. Learn more about node sharing at https://tailscale.com/docs/features/sharing. */
|
|
774
|
+
isExternal?: boolean | undefined;
|
|
775
|
+
/** 'true', indicates that multiple devices are currently connected using the same node key, which is usually a sign of node state being copied between machines. If only one device is connected using this node's key, the field is omitted. If the number of live connections goes back to 0 or 1, this field is also omitted, meaning it's not sticky. In case an attacker steals node state from a legitimate node, they can mask their activities by not connecting concurrently with the legitimate node. */
|
|
776
|
+
multipleConnections?: boolean | undefined;
|
|
777
|
+
/** For internal use and is not required for any API operations. This value is empty for external devices. */
|
|
778
|
+
machineKey?: string | undefined;
|
|
779
|
+
/** Mostly for internal use, required for select operations, such as adding a node to a locked tailnet. Learn about tailnet locks at https://tailscale.com/docs/features/tailnet-lock. */
|
|
780
|
+
nodeKey?: string | undefined;
|
|
781
|
+
/** 'true' if the device is not allowed to accept any connections over Tailscale, including pings. Learn more in the "Allow incoming connections" section of https://tailscale.com/docs/features/client/manage-preferences. */
|
|
782
|
+
blocksIncomingConnections?: boolean | undefined;
|
|
783
|
+
/** The subnet routes for this device that have been approved by a tailnet admin. Learn more about subnet routes at https://tailscale.com/docs/features/subnet-routers. */
|
|
784
|
+
enabledRoutes?: DeviceEnabledRoutesList | undefined;
|
|
785
|
+
/** The subnets this device requests to expose. Learn more about subnet routes at https://tailscale.com/docs/features/subnet-routers. */
|
|
786
|
+
advertisedRoutes?: DeviceAdvertisedRoutesList | undefined;
|
|
787
|
+
/** clientConnectivity provides a report on the device's current physical network conditions. */
|
|
788
|
+
clientConnectivity?: DeviceClientConnectivity | undefined;
|
|
789
|
+
/** Lets you assign an identity to a device that is separate from human users, and use it as part of an ACL to restrict access. Once a device is tagged, the tag is the owner of that device. A single node can have multiple tags assigned. This value is empty for external devices. Learn more about tags at https://tailscale.com/docs/features/tags. */
|
|
790
|
+
tags?: DeviceTagsList | undefined;
|
|
791
|
+
/** Indicates an issue with the tailnet lock node-key signature on this device. This field is only populated when tailnet lock is enabled. */
|
|
792
|
+
tailnetLockError?: string | undefined;
|
|
793
|
+
/** The node's tailnet lock key. Every node generates a tailnet lock key (so the value will be present) even if tailnet lock is not enabled. Learn more about tailnet lock at https://tailscale.com/docs/features/tailnet-lock. */
|
|
794
|
+
tailnetLockKey?: string | undefined;
|
|
795
|
+
/** 'true' if Tailscale SSH is enabled on this device. Learn more about Tailscale SSH at https://tailscale.com/docs/features/tailscale-ssh. */
|
|
796
|
+
sshEnabled?: boolean | undefined;
|
|
797
|
+
/** Contains extra identifiers from the device when the tailnet it is connected to has device posture identification collection enabled. If the device has not opted-in to posture identification collection, this will contain {"disabled": true}. Learn more about posture identity at https://tailscale.com/docs/features/access-control/device-management/how-to/manage-identity. */
|
|
798
|
+
postureIdentity?: DevicePostureIdentity | undefined;
|
|
799
|
+
/** Reports the status of a single posture for a device. */
|
|
800
|
+
postureStatus?: DevicePostureStatus | undefined;
|
|
801
|
+
/** 'true' if the device is ephemeral. Learn more about ephemeral nodes at https://tailscale.com/docs/features/ephemeral-nodes. */
|
|
802
|
+
isEphemeral?: boolean | undefined;
|
|
803
|
+
/** distro provides details of the operating system distribution, if available. */
|
|
804
|
+
distro?: DeviceDistro | undefined;
|
|
805
|
+
}
|
|
806
|
+
export interface GetDeviceInviteRequest {
|
|
807
|
+
/** ID of the device invite. */
|
|
808
|
+
deviceInviteId: string;
|
|
809
|
+
}
|
|
810
|
+
export interface GetDevicePostureAttributesRequest {
|
|
811
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
812
|
+
deviceId: string;
|
|
813
|
+
}
|
|
814
|
+
export type DevicePostureAttributesAttributesValue = string | number | boolean;
|
|
815
|
+
/** Contains all the posture attributes assigned to a node. Attribute values can be strings, numbers or booleans. */
|
|
816
|
+
export type DevicePostureAttributesAttributesMap = {
|
|
817
|
+
[key: string]: DevicePostureAttributesAttributesValue | undefined;
|
|
818
|
+
};
|
|
819
|
+
/** Contains the expiry time for each posture attribute, if set. */
|
|
820
|
+
export type DevicePostureAttributesExpiriesMap = {
|
|
821
|
+
[key: string]: string | undefined;
|
|
822
|
+
};
|
|
823
|
+
export interface DevicePostureAttributes {
|
|
824
|
+
/** Contains all the posture attributes assigned to a node. Attribute values can be strings, numbers or booleans. */
|
|
825
|
+
attributes?: DevicePostureAttributesAttributesMap | undefined;
|
|
826
|
+
/** Contains the expiry time for each posture attribute, if set. */
|
|
827
|
+
expiries?: DevicePostureAttributesExpiriesMap | undefined;
|
|
828
|
+
}
|
|
829
|
+
export interface GetDnsConfigurationRequest {
|
|
830
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
831
|
+
tailnet: string;
|
|
832
|
+
}
|
|
833
|
+
export interface DnsConfigurationResolver {
|
|
834
|
+
/** IPv4 or IPv6 address of the DNS resolver. */
|
|
835
|
+
address?: string | undefined;
|
|
836
|
+
/** If true, this resolver should still be used when a device is configured to use a Tailscale exit node. Requires Tailscale v1.88.1 or later. */
|
|
837
|
+
useWithExitNode?: boolean | undefined;
|
|
838
|
+
}
|
|
839
|
+
/** Global DNS resolvers to use. If `preferences.overrideLocalDNS` is true, these override the local OS configuration; otherwise they are used as fallback resolvers. */
|
|
840
|
+
export type DnsConfigurationNameserversList = Array<DnsConfigurationResolver>;
|
|
841
|
+
export type DnsConfigurationSplitDNSValueList = Array<DnsConfigurationResolver>;
|
|
842
|
+
/** Map of DNS name suffixes (domains) to lists of resolvers for Split DNS and advanced routing overlays. */
|
|
843
|
+
export type DnsConfigurationSplitDNSMap = {
|
|
844
|
+
[key: string]: DnsConfigurationSplitDNSValueList | null | undefined;
|
|
845
|
+
};
|
|
846
|
+
/** Search domain paths to apply. */
|
|
847
|
+
export type DnsConfigurationSearchPathsList = Array<string>;
|
|
848
|
+
export interface DnsConfigurationPreferences {
|
|
849
|
+
/** If true, resolvers in `nameservers` override the local OS DNS configuration; if false, local resolvers are used. */
|
|
850
|
+
overrideLocalDNS?: boolean | undefined;
|
|
851
|
+
/** Whether MagicDNS is enabled for this tailnet. */
|
|
852
|
+
magicDNS?: boolean | undefined;
|
|
853
|
+
}
|
|
854
|
+
export interface DnsConfiguration {
|
|
855
|
+
/** Global DNS resolvers to use. If `preferences.overrideLocalDNS` is true, these override the local OS configuration; otherwise they are used as fallback resolvers. */
|
|
856
|
+
nameservers?: DnsConfigurationNameserversList | undefined;
|
|
857
|
+
/** Map of DNS name suffixes (domains) to lists of resolvers for Split DNS and advanced routing overlays. */
|
|
858
|
+
splitDNS?: DnsConfigurationSplitDNSMap | undefined;
|
|
859
|
+
/** Search domain paths to apply. */
|
|
860
|
+
searchPaths?: DnsConfigurationSearchPathsList | undefined;
|
|
861
|
+
preferences?: DnsConfigurationPreferences | undefined;
|
|
862
|
+
}
|
|
863
|
+
export interface GetDnsPreferencesRequest {
|
|
864
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
865
|
+
tailnet: string;
|
|
866
|
+
}
|
|
867
|
+
export interface DnsPreferences {
|
|
868
|
+
/** Whether MagicDNS is active for this tailnet. */
|
|
869
|
+
magicDNS: boolean;
|
|
870
|
+
}
|
|
871
|
+
export interface GetKeyRequest {
|
|
872
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
873
|
+
tailnet: string;
|
|
874
|
+
/** The id of the key. The key ID can be found in the [admin console](https://login.tailscale.com/admin/settings/keys). */
|
|
875
|
+
keyId: string;
|
|
876
|
+
}
|
|
877
|
+
/** The type of log for logging endpoints. */
|
|
878
|
+
export type GetLogStreamingConfigurationRequestLogType = "configuration" | "network";
|
|
879
|
+
export interface GetLogStreamingConfigurationRequest {
|
|
880
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
881
|
+
tailnet: string;
|
|
882
|
+
/** The type of log. */
|
|
883
|
+
logType: GetLogStreamingConfigurationRequestLogType | (string & {});
|
|
884
|
+
}
|
|
885
|
+
/** The type of log for logging endpoints. */
|
|
886
|
+
export type LogType = "configuration" | "network";
|
|
887
|
+
/** The type of system to which logs are being streamed. */
|
|
888
|
+
export type LogstreamEndpointConfigurationOutputDestinationType = "splunk" | "elastic" | "panther" | "cribl" | "crowdstrike" | "datadog" | "axiom" | "s3";
|
|
889
|
+
/** The compression algorithm with which to compress logs. `none` disables compression. Defaults to `none`. */
|
|
890
|
+
export type LogstreamEndpointConfigurationOutputCompressionFormat = "zstd" | "gzip" | "none";
|
|
891
|
+
/** What type of authentication to use for S3. Required if the destinationType is `s3`. Tailscale recommends using `rolearn`. See [Amazon documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html). */
|
|
892
|
+
export type LogstreamEndpointConfigurationOutputS3AuthenticationType = "accesskey" | "rolearn";
|
|
893
|
+
/** The GCS scopes needed to be able to write to the GCS bucket. */
|
|
894
|
+
export type LogstreamEndpointConfigurationOutputGcsScopesList = Array<string>;
|
|
895
|
+
/** The current configuration of a log streaming endpoint. */
|
|
896
|
+
export interface LogstreamEndpointConfigurationOutput {
|
|
897
|
+
/** The type of log that is streamed to this endpoint. */
|
|
898
|
+
logType?: LogType | undefined;
|
|
899
|
+
/** The type of system to which logs are being streamed. */
|
|
900
|
+
destinationType?: LogstreamEndpointConfigurationOutputDestinationType | undefined;
|
|
901
|
+
/** The URL to which log streams are being posted. If the DestinationType is `s3`, the URL may be (and often is) empty to use the official Amazon S3 endpoint. */
|
|
902
|
+
url?: string | undefined;
|
|
903
|
+
/** The username with which log streams to this endpoint are authenticated. */
|
|
904
|
+
user?: string | undefined;
|
|
905
|
+
/** An optional number of minutes to wait in between uploading new logs. If the quantity of logs does not fit within a single upload, multiple uploads will be made. */
|
|
906
|
+
uploadPeriodMinutes?: number | undefined;
|
|
907
|
+
/** The compression algorithm with which to compress logs. `none` disables compression. Defaults to `none`. */
|
|
908
|
+
compressionFormat?: LogstreamEndpointConfigurationOutputCompressionFormat | undefined;
|
|
909
|
+
/** The S3 bucket name. Required if the destinationType is `s3`. */
|
|
910
|
+
s3Bucket?: string | undefined;
|
|
911
|
+
/** The region in which the S3 bucket is located. Required if the destinationType is `s3`. */
|
|
912
|
+
s3Region?: string | undefined;
|
|
913
|
+
/** An optional S3 key prefix to prepend to the auto-generated S3 key name. */
|
|
914
|
+
s3KeyPrefix?: string | undefined;
|
|
915
|
+
/** What type of authentication to use for S3. Required if the destinationType is `s3`. Tailscale recommends using `rolearn`. See [Amazon documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html). */
|
|
916
|
+
s3AuthenticationType?: LogstreamEndpointConfigurationOutputS3AuthenticationType | undefined;
|
|
917
|
+
/** The S3 access key ID. Required if the destinationType is `s3` and `authenticationType` is `accesskey`. */
|
|
918
|
+
s3AccessKeyId?: string | undefined;
|
|
919
|
+
/** The Role ARN that Tailscale should supply to AWS when authenticating using role-based authentication. Required if the destinationType is `s3` and `authenticationType` is `rolearn`. */
|
|
920
|
+
s3RoleArn?: string | undefined;
|
|
921
|
+
/** The AWS external id that Tailscale supplies when authenticating using role-based authentication. Populated if the destinationType is `s3` and `authenticationType` is `rolearn`. This corresponds to the `externalId` field obtained from [tailnet/{tailnet}/aws-external-id](#tag/logging/POST/tailnet/{tailnet}/aws-external-id). */
|
|
922
|
+
s3ExternalId?: string | undefined;
|
|
923
|
+
/** The GCS bucket name. Required if the destinationType is `gcs`. */
|
|
924
|
+
gcsBucket?: string | undefined;
|
|
925
|
+
/** An optional GCS key prefix to append to the GCS bucket name. */
|
|
926
|
+
gcsKeyPrefix?: string | undefined;
|
|
927
|
+
/** The GCS scopes needed to be able to write to the GCS bucket. */
|
|
928
|
+
gcsScopes?: LogstreamEndpointConfigurationOutputGcsScopesList | undefined;
|
|
929
|
+
/** The JSON workload identity credentials from GCS needed for accessing the GCS account. */
|
|
930
|
+
gcsCredentials?: Redacted.Redacted<string> | undefined;
|
|
931
|
+
}
|
|
932
|
+
/** The type of log for logging endpoints. */
|
|
933
|
+
export type GetLogStreamingStatusRequestLogType = "configuration" | "network";
|
|
934
|
+
export interface GetLogStreamingStatusRequest {
|
|
935
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
936
|
+
tailnet: string;
|
|
937
|
+
/** The type of log. */
|
|
938
|
+
logType: GetLogStreamingStatusRequestLogType | (string & {});
|
|
939
|
+
}
|
|
940
|
+
/** Latest status of log stream publishing for a specific type of log. */
|
|
941
|
+
export interface LogstreamEndpointPublishingStatus {
|
|
942
|
+
/** Timestamp of the most recent publishing activity, in RFC 3339 format. */
|
|
943
|
+
lastActivity: string;
|
|
944
|
+
/** The most recent error (if any). */
|
|
945
|
+
lastError: string;
|
|
946
|
+
/** The size of the largest single request body. */
|
|
947
|
+
maxBodySize: number;
|
|
948
|
+
/** Total bytes published across all requests. */
|
|
949
|
+
numBytesSent: number;
|
|
950
|
+
/** The total number of entries published. */
|
|
951
|
+
numEntriesSent: number;
|
|
952
|
+
/** The number of spoofed entries published. A spoofed entry is one that failed to validate because we did not see receive a matching flow log from the other side of the connection. */
|
|
953
|
+
numSpoofedEntries: number;
|
|
954
|
+
/** The total number of requests made to the streaming endpoint. */
|
|
955
|
+
numTotalRequests: number;
|
|
956
|
+
/** The total number of requests to the streaming endpoint that have failed. */
|
|
957
|
+
numFailedRequests: number;
|
|
958
|
+
/** The exponentially weighted moving average rate at which data is being streamed to the endpoint, in bytes per second. */
|
|
959
|
+
rateBytesSent: number;
|
|
960
|
+
/** The exponentially weighted moving average rate at which entries are being sent to the endpoint, in entries per second. */
|
|
961
|
+
rateEntriesSent: number;
|
|
962
|
+
/** The exponentially weighted moving average rate at which requests are being made to the endpoint, in requests per second. */
|
|
963
|
+
rateTotalRequests: number;
|
|
964
|
+
/** The exponentially weighted moving average rate at which requests are failing, in requests per second. */
|
|
965
|
+
rateFailedRequests: number;
|
|
966
|
+
}
|
|
967
|
+
export interface GetOAuthAppRequest {
|
|
968
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
969
|
+
tailnet: string;
|
|
970
|
+
/** The ID of the OAuth app. */
|
|
971
|
+
appId: string;
|
|
972
|
+
}
|
|
973
|
+
export interface GetPolicyFileRequest {
|
|
974
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
975
|
+
tailnet: string;
|
|
976
|
+
/** Request a detailed description of the tailnet policy file by providing `details=true` in the URL query string. Supplying any other value for `details`, or not sending the param, is treated as sending `details=false`. If using this, do not supply an `Accept` parameter in the header. The response will contain a JSON object with the fields: - `acl`: a base64-encoded string representation of the huJSON format. - `warnings`: array of strings for syntactically valid but nonsensical entries. - `errors`: an array of strings for parsing failures. */
|
|
977
|
+
details?: boolean | undefined;
|
|
978
|
+
/** Response is encoded as JSON if `application/json` is requested, otherwise HuJSON will be returned. */
|
|
979
|
+
accept?: string | undefined;
|
|
980
|
+
}
|
|
981
|
+
export interface GetPolicyFileResponse {
|
|
982
|
+
body: string;
|
|
983
|
+
/** Entity tag for the policy file. Send it back as If-Match on setPolicyFile. */
|
|
984
|
+
eTag?: string | undefined;
|
|
985
|
+
}
|
|
986
|
+
export interface GetPostureIntegrationRequest {
|
|
987
|
+
/** Unique identifier for a posture integration. */
|
|
988
|
+
id: string;
|
|
989
|
+
}
|
|
990
|
+
export interface GetPostureIntegrationsRequest {
|
|
991
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
992
|
+
tailnet: string;
|
|
993
|
+
}
|
|
994
|
+
/** List of PostureIntegrations. */
|
|
995
|
+
export type GetPostureIntegrationsResponseIntegrationsList = Array<PostureIntegrationOutput>;
|
|
996
|
+
export interface GetPostureIntegrationsResponse {
|
|
997
|
+
/** List of PostureIntegrations. */
|
|
998
|
+
integrations?: GetPostureIntegrationsResponseIntegrationsList | undefined;
|
|
999
|
+
}
|
|
1000
|
+
export interface GetServiceRequest {
|
|
1001
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1002
|
+
tailnet: string;
|
|
1003
|
+
/** The unique name of a Service. The name should be prefixed with "svc:". It should be unique across the tailnet, so names already used for a machine cannot be reused for a Service. */
|
|
1004
|
+
serviceName: string;
|
|
1005
|
+
}
|
|
1006
|
+
/** The IP addresses assigned to the Service: the IPv4 followed by the IPv6. */
|
|
1007
|
+
export type VIPServiceInfoAddrsList = Array<string>;
|
|
1008
|
+
/** A list of protocol:port pairs to be exposed by the Service. The only supported protocol is "tcp" at this time. "do-not-validate" can be used to skip validation. */
|
|
1009
|
+
export type VIPServiceInfoPortsList = Array<string>;
|
|
1010
|
+
/** A list of optional tags associated with the Service. */
|
|
1011
|
+
export type VIPServiceInfoTagsList = Array<string>;
|
|
1012
|
+
/** An information summary for a Service. Each Service has a unique name within the tailnet, one IPv4 and one IPv6 address, optional comment, list of ports, and optional tags. */
|
|
1013
|
+
export interface VIPServiceInfo {
|
|
1014
|
+
/** The unique name of the Service. */
|
|
1015
|
+
name?: string | undefined;
|
|
1016
|
+
/** An optional human-readable label for the Service, shown in the Tailscale admin console and to clients with access to the Service. Must be 64 characters or fewer. */
|
|
1017
|
+
displayName?: string | undefined;
|
|
1018
|
+
/** The IP addresses assigned to the Service: the IPv4 followed by the IPv6. */
|
|
1019
|
+
addrs?: VIPServiceInfoAddrsList | undefined;
|
|
1020
|
+
/** An optional comment for the Service. */
|
|
1021
|
+
comment?: string | undefined;
|
|
1022
|
+
/** A list of protocol:port pairs to be exposed by the Service. The only supported protocol is "tcp" at this time. "do-not-validate" can be used to skip validation. */
|
|
1023
|
+
ports?: VIPServiceInfoPortsList | undefined;
|
|
1024
|
+
/** A list of optional tags associated with the Service. */
|
|
1025
|
+
tags?: VIPServiceInfoTagsList | undefined;
|
|
1026
|
+
}
|
|
1027
|
+
export interface GetServiceDeviceApprovalRequest {
|
|
1028
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1029
|
+
tailnet: string;
|
|
1030
|
+
/** The unique name of a Service. The name should be prefixed with "svc:". It should be unique across the tailnet, so names already used for a machine cannot be reused for a Service. */
|
|
1031
|
+
serviceName: string;
|
|
1032
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1033
|
+
deviceId: string;
|
|
1034
|
+
}
|
|
1035
|
+
/** The approval status of a Service on a specific device. */
|
|
1036
|
+
export interface VIPServiceApproval {
|
|
1037
|
+
/** Indicates whether the Service is approved on the device. */
|
|
1038
|
+
approved?: boolean | undefined;
|
|
1039
|
+
/** Indicates whether the Service was auto-approved by an auto-approver. */
|
|
1040
|
+
autoApproved?: boolean | undefined;
|
|
1041
|
+
}
|
|
1042
|
+
export interface GetSplitDnsRequest {
|
|
1043
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1044
|
+
tailnet: string;
|
|
1045
|
+
}
|
|
1046
|
+
export type SplitDnsValueList = Array<string>;
|
|
1047
|
+
/** Map of domain names to lists of nameservers or to `null`. */
|
|
1048
|
+
export type SplitDns = {
|
|
1049
|
+
[key: string]: SplitDnsValueList | null | undefined;
|
|
1050
|
+
};
|
|
1051
|
+
export type GetSplitDnsResponse = SplitDns;
|
|
1052
|
+
export interface GetTailnetSettingsRequest {
|
|
1053
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1054
|
+
tailnet: string;
|
|
1055
|
+
}
|
|
1056
|
+
/** Which user roles are allowed to [join external tailnets](/docs/features/sharing/how-to/invite-any-user). */
|
|
1057
|
+
export type TailnetSettingsUsersRoleAllowedToJoinExternalTailnets = "none" | "admin" | "member";
|
|
1058
|
+
/** The [route selection](/docs/features/route-selection) algorithm used by the tailnet: * `active-passive-failover` - Active-passive failover (formerly known as "Failover") * `regional-routing` - Regional routing * `regional-routing-failover` - Regional routing with in-region failover * `magicroute` - MagicRoute A PATCH request must not specify both the `regionalRoutingOn` and `routeSelection` fields. */
|
|
1059
|
+
export type TailnetSettingsRouteSelection = "active-passive-failover" | "regional-routing" | "regional-routing-failover" | "magicroute";
|
|
1060
|
+
/** Settings for a tailnet. */
|
|
1061
|
+
export interface TailnetSettings {
|
|
1062
|
+
/** Prevents users from editing policies in the admin console to avoid conflicts with external management workflows like GitOps or Terraform. */
|
|
1063
|
+
aclsExternallyManagedOn?: boolean | null | undefined;
|
|
1064
|
+
/** Link to the external tailnet policy definition or management solution for this tailnet. */
|
|
1065
|
+
aclsExternalLink?: string | undefined;
|
|
1066
|
+
/** The [admin console session timeout](/docs/account/admin-console-session-timeout) for members of this tailnet. Setting it to 0 disables the timeout. */
|
|
1067
|
+
adminConsoleSessionTimeoutMinutes?: number | undefined;
|
|
1068
|
+
/** Whether [device approval](/docs/features/access-control/device-management/device-approval) is enabled for the tailnet. */
|
|
1069
|
+
devicesApprovalOn?: boolean | null | undefined;
|
|
1070
|
+
/** Whether [auto updates](/docs/features/client/update#auto-updates) are enabled for devices that belong to this tailnet. */
|
|
1071
|
+
devicesAutoUpdatesOn?: boolean | null | undefined;
|
|
1072
|
+
/** The [key expiry](/docs/features/access-control/key-expiry) duration for devices on this tailnet. */
|
|
1073
|
+
devicesKeyDurationDays?: number | undefined;
|
|
1074
|
+
/** Whether [user approval](/docs/features/access-control/user-approval) is enabled for this tailnet. */
|
|
1075
|
+
usersApprovalOn?: boolean | null | undefined;
|
|
1076
|
+
/** Which user roles are allowed to [join external tailnets](/docs/features/sharing/how-to/invite-any-user). */
|
|
1077
|
+
usersRoleAllowedToJoinExternalTailnets?: TailnetSettingsUsersRoleAllowedToJoinExternalTailnets | undefined;
|
|
1078
|
+
/** Whether [network flog logs](/docs/features/logging/network-flow-logs) are enabled for the tailnet. */
|
|
1079
|
+
networkFlowLoggingOn?: boolean | null | undefined;
|
|
1080
|
+
/** Whether [regional routing](/docs/features/route-selection#regional-routing) is enabled for the tailnet. A PATCH request should prefer setting `routeSelection`. A PATCH request must not specify both the `regionalRoutingOn` and `routeSelection` fields. */
|
|
1081
|
+
regionalRoutingOn?: boolean | null | undefined;
|
|
1082
|
+
/** The [route selection](/docs/features/route-selection) algorithm used by the tailnet: * `active-passive-failover` - Active-passive failover (formerly known as "Failover") * `regional-routing` - Regional routing * `regional-routing-failover` - Regional routing with in-region failover * `magicroute` - MagicRoute A PATCH request must not specify both the `regionalRoutingOn` and `routeSelection` fields. */
|
|
1083
|
+
routeSelection?: TailnetSettingsRouteSelection | undefined;
|
|
1084
|
+
/** Whether [identity collection](/docs/features/access-control/device-management/how-to/manage-identity) is enabled for [device posture](/docs/features/device-posture) integrations for the tailnet. */
|
|
1085
|
+
postureIdentityCollectionOn?: boolean | null | undefined;
|
|
1086
|
+
/** Whether provisioning of [HTTPS certificates](/docs/how-to/set-up-https-certificates) is enabled for this tailnet. */
|
|
1087
|
+
httpsEnabled?: boolean | null | undefined;
|
|
1088
|
+
}
|
|
1089
|
+
export interface GetUserRequest {
|
|
1090
|
+
/** ID of the user. */
|
|
1091
|
+
userId: string;
|
|
1092
|
+
}
|
|
1093
|
+
/** The type of relation this user has to the tailnet associated with the request. */
|
|
1094
|
+
export type UserType = "member" | "shared";
|
|
1095
|
+
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). */
|
|
1096
|
+
export type UserRole = "owner" | "member" | "admin" | "it-admin" | "network-admin" | "billing-admin" | "auditor";
|
|
1097
|
+
/** The status of the user. */
|
|
1098
|
+
export type UserStatus = "active" | "idle" | "suspended" | "needs-approval" | "over-billing-limit";
|
|
1099
|
+
/** Representation of a user within a tailnet. */
|
|
1100
|
+
export interface User {
|
|
1101
|
+
/** The unique identifier for the user. Supply this value wherever {userId} is indicated in an endpoint. */
|
|
1102
|
+
id?: string | undefined;
|
|
1103
|
+
/** The name of the user. */
|
|
1104
|
+
displayName?: string | undefined;
|
|
1105
|
+
/** The emailish login name of the user. */
|
|
1106
|
+
loginName?: string | undefined;
|
|
1107
|
+
/** The profile pic URL for the user. */
|
|
1108
|
+
profilePicUrl?: string | undefined;
|
|
1109
|
+
/** The tailnet that owns the user. */
|
|
1110
|
+
tailnetId?: string | undefined;
|
|
1111
|
+
/** The time the user joined their tailnet. */
|
|
1112
|
+
created?: string | undefined;
|
|
1113
|
+
/** The type of relation this user has to the tailnet associated with the request. */
|
|
1114
|
+
type?: UserType | undefined;
|
|
1115
|
+
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). */
|
|
1116
|
+
role?: UserRole | undefined;
|
|
1117
|
+
/** The status of the user. */
|
|
1118
|
+
status?: UserStatus | undefined;
|
|
1119
|
+
/** Number of devices the user owns. */
|
|
1120
|
+
deviceCount?: number | undefined;
|
|
1121
|
+
/** The later of either: - The last time any of the user's nodes were connected to the network. - The last time the user authenticated to any tailscale service, including the admin panel. */
|
|
1122
|
+
lastSeen?: string | undefined;
|
|
1123
|
+
/** `true` when the user has a node currently connected to the control server. */
|
|
1124
|
+
currentlyConnected?: boolean | undefined;
|
|
1125
|
+
}
|
|
1126
|
+
export interface GetUserInviteRequest {
|
|
1127
|
+
/** ID of the user invite. */
|
|
1128
|
+
userInviteId: string;
|
|
1129
|
+
}
|
|
1130
|
+
export interface GetWebhookRequest {
|
|
1131
|
+
/** ID for the webhook endpoint. */
|
|
1132
|
+
endpointId: string;
|
|
1133
|
+
}
|
|
1134
|
+
export type ListConfigurationAuditLogsRequestActorList = Array<string>;
|
|
1135
|
+
export type ListConfigurationAuditLogsRequestTargetList = Array<string>;
|
|
1136
|
+
export type ListConfigurationAuditLogsRequestEventItem = "ADMIN_CONSOLE.LOGIN" | "ADMIN_CONSOLE.LOGOUT" | "API_KEY.CREATE" | "API_KEY.EXPIRED" | "API_KEY.REVOKE" | "BILLING.CANCEL.SUBSCRIPTION" | "BILLING.CREATE.SUBSCRIPTION" | "BILLING.UPDATE.ADDRESS" | "BILLING.UPDATE.BILLING_OWNER" | "BILLING.UPDATE.EMAIL" | "BILLING.UPDATE.PAYMENT_INFO" | "BILLING.UPDATE.STRIPE_CUSTOMER_ID" | "BILLING.UPDATE.SUBSCRIPTION" | "FAILED_REQUEST.UPDATE" | "GROUP.PUSH_GROUP.ATTRIBUTES" | "GROUP.UPDATE.USER_ROLE" | "INVITE.ACCEPT.FEATURE" | "INVITE.ACCEPT.NODE_SHARE" | "INVITE.ACCEPT.TAILNET_INVITE" | "INVITE.CREATE.FEATURE" | "INVITE.CREATE.NODE_SHARE" | "INVITE.CREATE.TAILNET_INVITE" | "INVITE.DELETE.NODE_SHARE" | "INVITE.DELETE.TAILNET_INVITE" | "INVITE.RESEND.NODE_SHARE" | "INVITE.RESEND.TAILNET_INVITE" | "NODE.APPROVE" | "NODE.CREATE" | "NODE.CREATE.ATTRIBUTES" | "NODE.DELETE" | "NODE.DELETE.ATTRIBUTES" | "NODE.DISABLE.KEY_EXPIRY" | "NODE.DISCONNECT_NODE.CLIENT_LOG" | "NODE.ENABLE.KEY_EXPIRY" | "NODE.EXPIRED.KEY_EXPIRY_TIME" | "NODE.LOGIN" | "NODE.LOGOUT" | "NODE.REVOKE" | "NODE.UPDATE.ACL_TAGS" | "NODE.UPDATE.ALLOWED_IPS" | "NODE.UPDATE.ATTRIBUTES" | "NODE.UPDATE.AUTO_APPROVED_ROUTES" | "NODE.UPDATE.EXIT_NODE" | "NODE.UPDATE.KEY_EXPIRY_TIME" | "NODE.UPDATE.MACHINE_NAME" | "NODE.UPDATE.POSTURE_IDENTITY" | "NODE.UPDATE.TKA" | "SHARE.CREATE" | "SHARE.DELETE" | "SHARE.UPDATE" | "TAILNET.ACCEPT.FEATURE" | "TAILNET.CREATE" | "TAILNET.CREATE.LOGSTREAM_ENDPOINT" | "TAILNET.CREATE.POSTURE_INTEGRATION" | "TAILNET.CREATE.TKA" | "TAILNET.DELETE.LOGSTREAM_ENDPOINT" | "TAILNET.DELETE.POSTURE_INTEGRATION" | "TAILNET.DELETE.TKA" | "TAILNET.DISABLE.COLLECT_POSTURE_IDENTITY" | "TAILNET.DISABLE.COLLECT_SERVICES" | "TAILNET.DISABLE.FILE_SHARING" | "TAILNET.DISABLE.GEOSTEERING" | "TAILNET.DISABLE.HTTPS" | "TAILNET.DISABLE.LOG_EXIT_FLOWS" | "TAILNET.DISABLE.MACHINE_APPROVAL_NEEDED" | "TAILNET.DISABLE.MAGIC_DNS" | "TAILNET.DISABLE.MULLVAD_VPN" | "TAILNET.DISABLE.NETWORK_FLOW_LOGGING" | "TAILNET.DISABLE.SCIM" | "TAILNET.DISABLE.TKA" | "TAILNET.DISABLE.USER_APPROVAL_REQUIRED" | "TAILNET.ENABLE.COLLECT_POSTURE_IDENTITY" | "TAILNET.ENABLE.COLLECT_SERVICES" | "TAILNET.ENABLE.FILE_SHARING" | "TAILNET.ENABLE.GEOSTEERING" | "TAILNET.ENABLE.HTTPS" | "TAILNET.ENABLE.LOG_EXIT_FLOWS" | "TAILNET.ENABLE.MACHINE_APPROVAL_NEEDED" | "TAILNET.ENABLE.MAGIC_DNS" | "TAILNET.ENABLE.MULLVAD_VPN" | "TAILNET.ENABLE.NETWORK_FLOW_LOGGING" | "TAILNET.ENABLE.SCIM" | "TAILNET.ENABLE.TKA" | "TAILNET.ENABLE.USER_APPROVAL_REQUIRED" | "TAILNET.JOIN" | "TAILNET.JOIN_WAITLIST.FEATURE" | "TAILNET.LEAVE" | "TAILNET.UPDATE.ACCOUNT_EMAIL" | "TAILNET.UPDATE.ACL" | "TAILNET.UPDATE.DNS_CONFIG" | "TAILNET.UPDATE.LOGSTREAM_ENDPOINT" | "TAILNET.UPDATE.MAX_KEY_DURATION" | "TAILNET.UPDATE.POSTURE_INTEGRATION" | "TAILNET.UPDATE.ROUTE_SELECTION" | "TAILNET.UPDATE.SECURITY_EMAIL" | "TAILNET.UPDATE.SUPPORT_EMAIL" | "TAILNET.UPDATE.TCD" | "TAILNET.UPDATE.TKA" | "TAILNET.VERIFY.ACCOUNT_EMAIL" | "TAILNET.VERIFY.SECURITY_EMAIL" | "TAILNET.VERIFY.SUPPORT_EMAIL" | "USER.APPROVE" | "USER.CREATE" | "USER.DELETE" | "USER.INVITE" | "USER.PUSH_USER.ATTRIBUTES" | "USER.RESEND.TAILNET_INVITE" | "USER.RESTORE" | "USER.RESTORE_GLOBAL" | "USER.SUSPEND" | "USER.SUSPEND_GLOBAL" | "USER.UPDATE.USER_ROLE" | "WEBHOOK_ENDPOINT.CREATE" | "WEBHOOK_ENDPOINT.DELETE" | "WEBHOOK_ENDPOINT.UPDATE.SECRET" | "WEBHOOK_ENDPOINT.UPDATE.SUBSCRIBED_EVENTS" | "WEB_INTERFACE.LOGIN" | "WEB_INTERFACE.LOGOUT" | "PAM_CONNECTOR.CREATE" | "PAM_CONNECTOR.CREATE.ACCESS_TOKEN" | "PAM_CONNECTOR.DELETE" | "PAM_CONNECTOR.DISABLE.ACCESS_TOKEN" | "PAM_CONNECTOR.UPDATE" | "PAM_SERVICE.CREATE" | "PAM_SERVICE.DELETE" | "PAM_SERVICE.UPDATE" | "PAM_SERVICE_ACCOUNT.CREATE" | "PAM_SERVICE_ACCOUNT.CREATE.ACCESS_TOKEN" | "PAM_SERVICE_ACCOUNT.DELETE" | "PAM_SERVICE_ACCOUNT.UPDATE" | "PAM_SETTINGS.CREATE.CUSTOM_DOMAIN" | "PAM_SETTINGS.CREATE.NOTIFICATION" | "PAM_SETTINGS.CREATE.RECORDING_STORAGE" | "PAM_SETTINGS.DELETE.CUSTOM_DOMAIN" | "PAM_SETTINGS.DELETE.NOTIFICATION" | "PAM_SETTINGS.DELETE.RECORDING_STORAGE" | "PAM_SETTINGS.UPDATE" | "PAM_SETTINGS.UPDATE.CUSTOM_DOMAIN" | "PAM_SETTINGS.UPDATE.NOTIFICATION" | "PAM_SETTINGS.UPDATE.SETUP_WIZARD";
|
|
1137
|
+
export type ListConfigurationAuditLogsRequestEventList = Array<ListConfigurationAuditLogsRequestEventItem | (string & {})>;
|
|
1138
|
+
export interface ListConfigurationAuditLogsRequest {
|
|
1139
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1140
|
+
tailnet: string;
|
|
1141
|
+
/** The start of the time window for which to retrieve logs, in RFC 3339 format. */
|
|
1142
|
+
start: string;
|
|
1143
|
+
/** The end of the time window for which to retrieve logs, in RFC 3339 format. */
|
|
1144
|
+
end: string;
|
|
1145
|
+
/** List of filters on actors, either exact actor IDs or a wildcard search on login name or display name indicated as `~search`. */
|
|
1146
|
+
actor?: ListConfigurationAuditLogsRequestActorList | undefined;
|
|
1147
|
+
/** List of target elements for which to filter, attempts to match any part of any of the targets to any of the given strings. */
|
|
1148
|
+
target?: ListConfigurationAuditLogsRequestTargetList | undefined;
|
|
1149
|
+
/** List of events for which to filter. */
|
|
1150
|
+
event?: ListConfigurationAuditLogsRequestEventList | undefined;
|
|
1151
|
+
}
|
|
1152
|
+
/** The type of log (always "CONFIG"). */
|
|
1153
|
+
export type ConfigurationAuditLogType = "CONFIG";
|
|
1154
|
+
/** The initiator of the action that generated the event, typically an API or user interface, like the Tailscale admin panel. */
|
|
1155
|
+
export type ConfigurationAuditLogOrigin = "ADMIN_CONSOLE" | "CONFIG_API" | "CONTROL" | "IDENTITY_PROVIDER" | "NODE" | "SUPPORT_REQUEST" | "STRIPE" | "SECURITY_NOTIFICATION" | "LEGAL_NOTIFICATION" | "BORDER0_API";
|
|
1156
|
+
/** The entity type of the actor. */
|
|
1157
|
+
export type ConfigurationAuditLogActorType = "USER" | "NODE" | "AUTOMATED_WORKER" | "OAUTH_CLIENT" | "SCIM" | "MULLVAD" | "LOGSTREAM" | "SECRET_SCANNER" | "PAM_CONNECTOR" | "PAM_SERVICE_ACCOUNT";
|
|
1158
|
+
/** Indicates the tags owning a node. Its value is only set if `type` is `NODE`. */
|
|
1159
|
+
export type ConfigurationAuditLogActorTagsList = Array<string>;
|
|
1160
|
+
/** The person who caused the action related to this event. */
|
|
1161
|
+
export interface ConfigurationAuditLogActor {
|
|
1162
|
+
/** The ID (user ID or node ID) of the actor. */
|
|
1163
|
+
id?: string | undefined;
|
|
1164
|
+
/** The entity type of the actor. */
|
|
1165
|
+
type?: ConfigurationAuditLogActorType | undefined;
|
|
1166
|
+
/** The login name of the actor at time of the action. */
|
|
1167
|
+
loginName?: string | undefined;
|
|
1168
|
+
/** The display name of the actor at time of the action. */
|
|
1169
|
+
displayName?: string | undefined;
|
|
1170
|
+
/** Indicates the tags owning a node. Its value is only set if `type` is `NODE`. */
|
|
1171
|
+
tags?: ConfigurationAuditLogActorTagsList | undefined;
|
|
1172
|
+
}
|
|
1173
|
+
/** The entity type of Target. */
|
|
1174
|
+
export type ConfigurationAuditLogTargetType = "TAILNET" | "USER" | "GROUP" | "NODE" | "API_KEY" | "INVITE" | "SHARE" | "BILLING" | "ADMIN_CONSOLE" | "WEB_INTERFACE" | "WEBHOOK_ENDPOINT" | "FAILED_REQUEST";
|
|
1175
|
+
/** The property name on this target which was updated by the event. When empty, the event didn't update any fields on this target. */
|
|
1176
|
+
export type ConfigurationAuditLogTargetProperty = "ACL" | "ACL_TAGS" | "ACCOUNT_EMAIL" | "ADDRESS" | "ALLOWED_IPS" | "AUTO_APPROVED_ROUTES" | "ATTRIBUTES" | "BILLING_OWNER" | "COLLECT_SERVICES" | "COLLECT_POSTURE_IDENTITY" | "MULLVAD_VPN" | "DNS_CONFIG" | "EMAIL" | "EXIT_NODE" | "FEATURE" | "FILE_SHARING" | "HTTPS" | "KEY_EXPIRY_TIME" | "KEY_EXPIRY" | "LOG_EXIT_FLOWS" | "LOGSTREAM_ENDPOINT" | "MAGIC_DNS" | "MACHINE_AUTH_NEEDED" | "MACHINE_APPROVAL_NEEDED" | "USER_APPROVAL_REQUIRED" | "MACHINE_NAME" | "MAX_KEY_DURATION" | "NETWORK_FLOW_LOGGING" | "GEOSTEERING" | "NODE_SHARE" | "TAILNET_INVITE" | "PAYMENT_INFO" | "POSTURE_IDENTITY" | "POSTURE_INTEGRATION" | "USER_ROLE" | "SCIM" | "SECURITY_EMAIL" | "STRIPE_CUSTOMER_ID" | "SUBSCRIPTION" | "SUBSCRIBED_EVENTS" | "SUPPORT_EMAIL" | "SECRET" | "TCD" | "TKA" | "AUTH_PROVIDER" | "ROUTE_SELECTION";
|
|
1177
|
+
/** The object of this event's action. */
|
|
1178
|
+
export interface ConfigurationAuditLogTarget {
|
|
1179
|
+
/** The unique ID (user id, tailnet SID, or node id) of the target. */
|
|
1180
|
+
id?: string | undefined;
|
|
1181
|
+
/** Name of the entity at time of the action. */
|
|
1182
|
+
name?: string | undefined;
|
|
1183
|
+
/** The entity type of Target. */
|
|
1184
|
+
type?: ConfigurationAuditLogTargetType | undefined;
|
|
1185
|
+
/** Indicates whether the target is ephemeral. Its value should only be set if `type` is `NODE``. */
|
|
1186
|
+
isEphemeral?: boolean | undefined;
|
|
1187
|
+
/** The property name on this target which was updated by the event. When empty, the event didn't update any fields on this target. */
|
|
1188
|
+
property?: ConfigurationAuditLogTargetProperty | undefined;
|
|
1189
|
+
}
|
|
1190
|
+
/** The type of change attempted against the `target`. */
|
|
1191
|
+
export type ConfigurationAuditLogAction = "LOGIN" | "LOGOUT" | "CREATE" | "UPDATE" | "DELETE" | "CANCEL" | "REVOKE" | "APPROVE" | "SUSPEND" | "RESTORE" | "ENABLE" | "DISABLE" | "ACCEPT" | "EXPIRED" | "PUSH_USER" | "PUSH_GROUP" | "VERIFY" | "JOIN_WAITLIST" | "INVITE" | "JOIN" | "LEAVE" | "RESEND" | "MIGRATE_AUTH_PROVIDER";
|
|
1192
|
+
export type ConfigurationAuditLogOldCase4List = Array<unknown>;
|
|
1193
|
+
/** The value of `target.property`` prior to the event. */
|
|
1194
|
+
export type ConfigurationAuditLogOld = string | number | number | boolean | ConfigurationAuditLogOldCase4List | unknown;
|
|
1195
|
+
export type ConfigurationAuditLogNewCase4List = Array<unknown>;
|
|
1196
|
+
/** The value of `target.property` after the event. */
|
|
1197
|
+
export type ConfigurationAuditLogNew = string | number | number | boolean | ConfigurationAuditLogNewCase4List | unknown;
|
|
1198
|
+
export interface ConfigurationAuditLog {
|
|
1199
|
+
/** Timestamp of the audit log event, in RFC 3339 format. */
|
|
1200
|
+
eventTime: string;
|
|
1201
|
+
/** The type of log (always "CONFIG"). */
|
|
1202
|
+
type: ConfigurationAuditLogType;
|
|
1203
|
+
/** Timestamp recording the time that the audit log rate limiter enqueued the record to be logged at a future time, in RFC 3339 format. */
|
|
1204
|
+
deferredAt?: string | undefined;
|
|
1205
|
+
/** Identifier assigned to one or more audit log events, all of which are the result of a single operation. */
|
|
1206
|
+
eventGroupID: string;
|
|
1207
|
+
/** The initiator of the action that generated the event, typically an API or user interface, like the Tailscale admin panel. */
|
|
1208
|
+
origin: ConfigurationAuditLogOrigin;
|
|
1209
|
+
/** The person who caused the action related to this event. */
|
|
1210
|
+
actor: ConfigurationAuditLogActor;
|
|
1211
|
+
/** The object of this event's action. */
|
|
1212
|
+
target: ConfigurationAuditLogTarget;
|
|
1213
|
+
/** The type of change attempted against the `target`. */
|
|
1214
|
+
action: ConfigurationAuditLogAction;
|
|
1215
|
+
/** The value of `target.property`` prior to the event. */
|
|
1216
|
+
old?: ConfigurationAuditLogOld | undefined;
|
|
1217
|
+
/** The value of `target.property` after the event. */
|
|
1218
|
+
new?: ConfigurationAuditLogNew | undefined;
|
|
1219
|
+
/** Additional information about the event, such as a client-provided reason, if it exists. */
|
|
1220
|
+
actionDetails?: string | undefined;
|
|
1221
|
+
/** Provided when the configuration change failed to be completed. It is a user-presentable reason for the failure. */
|
|
1222
|
+
error?: string | undefined;
|
|
1223
|
+
}
|
|
1224
|
+
/** Matching log entries, ordered chronologically. */
|
|
1225
|
+
export type ListConfigurationAuditLogsResponseLogsList = Array<ConfigurationAuditLog>;
|
|
1226
|
+
export interface ListConfigurationAuditLogsResponse {
|
|
1227
|
+
/** Version of audit logs response. */
|
|
1228
|
+
version?: string | undefined;
|
|
1229
|
+
/** The tailnet on which the logged configuration changes were made. */
|
|
1230
|
+
tailnet?: string | undefined;
|
|
1231
|
+
/** Matching log entries, ordered chronologically. */
|
|
1232
|
+
logs?: ListConfigurationAuditLogsResponseLogsList | undefined;
|
|
1233
|
+
}
|
|
1234
|
+
export interface ListDeviceInvitesRequest {
|
|
1235
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1236
|
+
deviceId: string;
|
|
1237
|
+
}
|
|
1238
|
+
export type ListDeviceInvitesResponseBodyList = Array<DeviceInvite>;
|
|
1239
|
+
export type ListDeviceInvitesResponse = ListDeviceInvitesResponseBodyList;
|
|
1240
|
+
export interface ListDeviceRoutesRequest {
|
|
1241
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1242
|
+
deviceId: string;
|
|
1243
|
+
}
|
|
1244
|
+
/** The subnets this device requests to expose. */
|
|
1245
|
+
export type DeviceRoutesAdvertisedRoutesList = Array<string>;
|
|
1246
|
+
/** The subnet routes for this device that have been approved by a tailnet admin. */
|
|
1247
|
+
export type DeviceRoutesEnabledRoutesList = Array<string>;
|
|
1248
|
+
export interface DeviceRoutes {
|
|
1249
|
+
/** The subnets this device requests to expose. */
|
|
1250
|
+
advertisedRoutes?: DeviceRoutesAdvertisedRoutesList | undefined;
|
|
1251
|
+
/** The subnet routes for this device that have been approved by a tailnet admin. */
|
|
1252
|
+
enabledRoutes?: DeviceRoutesEnabledRoutesList | undefined;
|
|
1253
|
+
}
|
|
1254
|
+
export interface ListDnsNameserversRequest {
|
|
1255
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1256
|
+
tailnet: string;
|
|
1257
|
+
}
|
|
1258
|
+
/** DNS nameservers. */
|
|
1259
|
+
export type ListDnsNameserversResponseDnsList = Array<string>;
|
|
1260
|
+
export interface ListDnsNameserversResponse {
|
|
1261
|
+
/** DNS nameservers. */
|
|
1262
|
+
dns?: ListDnsNameserversResponseDnsList | undefined;
|
|
1263
|
+
}
|
|
1264
|
+
export interface ListDnsSearchPathsRequest {
|
|
1265
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1266
|
+
tailnet: string;
|
|
1267
|
+
}
|
|
1268
|
+
/** The search domains for the given tailnet. */
|
|
1269
|
+
export type DnsSearchPathsSearchPathsList = Array<string>;
|
|
1270
|
+
export interface DnsSearchPaths {
|
|
1271
|
+
/** The search domains for the given tailnet. */
|
|
1272
|
+
searchPaths: DnsSearchPathsSearchPathsList;
|
|
1273
|
+
}
|
|
1274
|
+
export interface ListNetworkFlowLogsRequest {
|
|
1275
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1276
|
+
tailnet: string;
|
|
1277
|
+
/** The start of the time window for which to retrieve logs, in RFC 3339 format. */
|
|
1278
|
+
start: string;
|
|
1279
|
+
/** The end of the time window for which to retrieve logs, in RFC 3339 format. */
|
|
1280
|
+
end: string;
|
|
1281
|
+
}
|
|
1282
|
+
/** IP protocol name (or number if no name used). */
|
|
1283
|
+
export type ConnectionCountsProto = "ah" | "dccp" | "egp" | "esp" | "gre" | "icmp" | "igmp" | "igp" | "ipv4" | "ipv6-icmp" | "sctp" | "tcp" | "udp";
|
|
1284
|
+
export interface ConnectionCounts {
|
|
1285
|
+
/** IP protocol name (or number if no name used). */
|
|
1286
|
+
proto?: ConnectionCountsProto | undefined;
|
|
1287
|
+
/** Source addr:port. */
|
|
1288
|
+
src?: string | undefined;
|
|
1289
|
+
/** Destination addr:port. */
|
|
1290
|
+
dst?: string | undefined;
|
|
1291
|
+
/** Number of packets sent. */
|
|
1292
|
+
txPkts?: number | undefined;
|
|
1293
|
+
/** Number of bytes sent. */
|
|
1294
|
+
txBytes?: number | undefined;
|
|
1295
|
+
/** Number of packets received. */
|
|
1296
|
+
rxPkts?: number | undefined;
|
|
1297
|
+
/** Number of bytes received. */
|
|
1298
|
+
rxBytes?: number | undefined;
|
|
1299
|
+
}
|
|
1300
|
+
export type NetworkFlowLogVirtualTrafficList = Array<ConnectionCounts>;
|
|
1301
|
+
export type NetworkFlowLogSubnetTrafficList = Array<ConnectionCounts>;
|
|
1302
|
+
export type NetworkFlowLogExitTrafficList = Array<ConnectionCounts>;
|
|
1303
|
+
export type NetworkFlowLogPhysicalTrafficList = Array<ConnectionCounts>;
|
|
1304
|
+
export interface NetworkFlowLog {
|
|
1305
|
+
/** Timestamp of the flow log, in RFC 3339 format. */
|
|
1306
|
+
logged?: string | undefined;
|
|
1307
|
+
/** Identifier of the node. */
|
|
1308
|
+
nodeId?: string | undefined;
|
|
1309
|
+
/** Time at which flow started, in RFC 3339 format. */
|
|
1310
|
+
start?: string | undefined;
|
|
1311
|
+
/** Time at which flow ended, in RFC 3339 format. */
|
|
1312
|
+
end?: string | undefined;
|
|
1313
|
+
virtualTraffic?: NetworkFlowLogVirtualTrafficList | undefined;
|
|
1314
|
+
subnetTraffic?: NetworkFlowLogSubnetTrafficList | undefined;
|
|
1315
|
+
exitTraffic?: NetworkFlowLogExitTrafficList | undefined;
|
|
1316
|
+
physicalTraffic?: NetworkFlowLogPhysicalTrafficList | undefined;
|
|
1317
|
+
}
|
|
1318
|
+
/** Matching log entries, ordered chronologically. */
|
|
1319
|
+
export type ListNetworkFlowLogsResponseLogsList = Array<NetworkFlowLog>;
|
|
1320
|
+
export interface ListNetworkFlowLogsResponse {
|
|
1321
|
+
/** Matching log entries, ordered chronologically. */
|
|
1322
|
+
logs?: ListNetworkFlowLogsResponseLogsList | undefined;
|
|
1323
|
+
}
|
|
1324
|
+
export interface ListOAuthAppsRequest {
|
|
1325
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1326
|
+
tailnet: string;
|
|
1327
|
+
}
|
|
1328
|
+
export type ListOAuthAppsResponseOauthAppsList = Array<OAuthApp>;
|
|
1329
|
+
export interface ListOAuthAppsResponse {
|
|
1330
|
+
oauthApps?: ListOAuthAppsResponseOauthAppsList | undefined;
|
|
1331
|
+
}
|
|
1332
|
+
export interface ListOrganizationTailnetsRequest {
|
|
1333
|
+
/** The organization identifier. Use a dash (`-`) to reference the organization of the access token being used to make the API call. */
|
|
1334
|
+
organization: string;
|
|
1335
|
+
/** Maximum number of tailnets to return per page; defaults to the maximum of 100. */
|
|
1336
|
+
limit?: number | undefined;
|
|
1337
|
+
/** Opaque pagination cursor from a previous response. */
|
|
1338
|
+
cursor?: string | undefined;
|
|
1339
|
+
}
|
|
1340
|
+
export interface OrganizationTailnet {
|
|
1341
|
+
/** A stable, globally unique identifier for the tailnet. */
|
|
1342
|
+
id?: string | undefined;
|
|
1343
|
+
/** The tailnet's display name. */
|
|
1344
|
+
displayName?: string | undefined;
|
|
1345
|
+
/** A stable, globally unique identifier for the organization. */
|
|
1346
|
+
orgId?: string | undefined;
|
|
1347
|
+
/** RFC3339 timestamp of when the tailnet was created. */
|
|
1348
|
+
createdAt?: string | undefined;
|
|
1349
|
+
}
|
|
1350
|
+
/** Tailnets in the organization. */
|
|
1351
|
+
export type ListOrganizationTailnetsResponseTailnetsList = Array<OrganizationTailnet>;
|
|
1352
|
+
export interface ListOrganizationTailnetsResponse {
|
|
1353
|
+
/** Tailnets in the organization. */
|
|
1354
|
+
tailnets: ListOrganizationTailnetsResponseTailnetsList;
|
|
1355
|
+
/** Opaque pagination cursor for the next page. */
|
|
1356
|
+
cursor?: string | undefined;
|
|
1357
|
+
/** Total number of tailnets in the organization. */
|
|
1358
|
+
totalCount?: number | undefined;
|
|
1359
|
+
}
|
|
1360
|
+
export interface ListServiceHostsRequest {
|
|
1361
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1362
|
+
tailnet: string;
|
|
1363
|
+
/** The unique name of a Service. The name should be prefixed with "svc:". It should be unique across the tailnet, so names already used for a machine cannot be reused for a Service. */
|
|
1364
|
+
serviceName: string;
|
|
1365
|
+
}
|
|
1366
|
+
/** The approval level of the device hosting the Service. */
|
|
1367
|
+
export type ServiceHostInfoApprovalLevel = "not-approved" | "approved:auto" | "approved:manual";
|
|
1368
|
+
/** An information summary for a device hosting a Service. */
|
|
1369
|
+
export interface ServiceHostInfo {
|
|
1370
|
+
/** The approval level of the device hosting the Service. */
|
|
1371
|
+
approvalLevel?: ServiceHostInfoApprovalLevel | undefined;
|
|
1372
|
+
/** The configuration status of the device hosting the Service. */
|
|
1373
|
+
configured?: string | undefined;
|
|
1374
|
+
/** The preferred identifier for a device. */
|
|
1375
|
+
nodeId?: string | undefined;
|
|
1376
|
+
}
|
|
1377
|
+
export type ListServiceHostsResponseHostsList = Array<ServiceHostInfo>;
|
|
1378
|
+
export interface ListServiceHostsResponse {
|
|
1379
|
+
hosts?: ListServiceHostsResponseHostsList | undefined;
|
|
1380
|
+
}
|
|
1381
|
+
export interface ListServicesRequest {
|
|
1382
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1383
|
+
tailnet: string;
|
|
1384
|
+
}
|
|
1385
|
+
export type ListServicesResponseVipServicesList = Array<VIPServiceInfo>;
|
|
1386
|
+
export interface ListServicesResponse {
|
|
1387
|
+
vipServices?: ListServicesResponseVipServicesList | undefined;
|
|
1388
|
+
}
|
|
1389
|
+
export type ListTailnetDevicesRequestFields = "all" | "default";
|
|
1390
|
+
export interface ListTailnetDevicesRequest {
|
|
1391
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1392
|
+
tailnet: string;
|
|
1393
|
+
/** Optionally controls whether the response returns **all** fields or only a predefined subset of fields. Currently, there are two supported options: - **`all`:** return all fields in the response - **`default`:** return the following fields - `addresses` - `id` - `nodeId` - `user` - `name` - `hostname` - `clientVersion` - `updateAvailable` - `os` - `created` - `connectedToControl` - `lastSeen` - `keyExpiryDisabled` - `expires` - `authorized` - `isExternal` - `machineKey` - `nodeKey` - `blocksIncomingConnections` - `tailnetLockKey` - `tailnetLockError` - `tags` - `isEphemeral` If the `fields` parameter is not supplied, then the default (limited fields) option is used. */
|
|
1394
|
+
fields?: ListTailnetDevicesRequestFields | (string & {}) | undefined;
|
|
1395
|
+
/** This endpoint supports server-side filtering of devices by specifying one or more filters in the form `<field>=<value>`. Fields must be a top-level device property - e.g. `isEphemeral`, `tags`, `hostname`, etc. Values are matched as _exact_ matches. Properties with simple types (strings, numbers, dates, etc) and lists are supported. Properties that are complex objects (e.g. `clientConnectivity`) are not supported. When multiple parameters are provided, the server performs a logical `AND` across all filter parameters before returning results. For example, `isEphemeral=true&tags=tag:prod&tags=tag:subnetrouter` would return devices where `isEphemeral` is `true` and `tags` contains both `tag:prod` and `tag:subnetrouter`. */
|
|
1396
|
+
_field___value__filters?: string | undefined;
|
|
1397
|
+
}
|
|
1398
|
+
export type ListTailnetDevicesResponseDevicesList = Array<Device>;
|
|
1399
|
+
export interface ListTailnetDevicesResponse {
|
|
1400
|
+
devices?: ListTailnetDevicesResponseDevicesList | undefined;
|
|
1401
|
+
}
|
|
1402
|
+
export interface ListTailnetKeysRequest {
|
|
1403
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1404
|
+
tailnet: string;
|
|
1405
|
+
/** If set to true, this will return all auth keys, API access tokens and OAuth clients for the tailnet. */
|
|
1406
|
+
all: boolean;
|
|
1407
|
+
}
|
|
1408
|
+
/** A list of the active keys. */
|
|
1409
|
+
export type ListTailnetKeysResponseKeysList = Array<Key>;
|
|
1410
|
+
export interface ListTailnetKeysResponse {
|
|
1411
|
+
/** A list of the active keys. */
|
|
1412
|
+
keys?: ListTailnetKeysResponseKeysList | undefined;
|
|
1413
|
+
}
|
|
1414
|
+
export interface ListUserInvitesRequest {
|
|
1415
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1416
|
+
tailnet: string;
|
|
1417
|
+
}
|
|
1418
|
+
export type ListUserInvitesResponseBodyList = Array<UserInvite>;
|
|
1419
|
+
export type ListUserInvitesResponse = ListUserInvitesResponseBodyList;
|
|
1420
|
+
export type ListUsersRequestType = "member" | "shared" | "all";
|
|
1421
|
+
export type ListUsersRequestRole = "owner" | "member" | "admin" | "it-admin" | "network-admin" | "billing-admin" | "auditor" | "all";
|
|
1422
|
+
export interface ListUsersRequest {
|
|
1423
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1424
|
+
tailnet: string;
|
|
1425
|
+
/** Allows for filtering the output by user type. */
|
|
1426
|
+
type?: ListUsersRequestType | (string & {}) | undefined;
|
|
1427
|
+
/** Allows for filtering the output by user role. Learn more about [user roles](/docs/reference/user-roles). */
|
|
1428
|
+
role?: ListUsersRequestRole | (string & {}) | undefined;
|
|
1429
|
+
}
|
|
1430
|
+
export type ListUsersResponseUsersList = Array<User>;
|
|
1431
|
+
export interface ListUsersResponse {
|
|
1432
|
+
users?: ListUsersResponseUsersList | undefined;
|
|
1433
|
+
}
|
|
1434
|
+
export interface ListWebhooksRequest {
|
|
1435
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1436
|
+
tailnet: string;
|
|
1437
|
+
}
|
|
1438
|
+
export type ListWebhooksResponseWebhooksList = Array<Webhook>;
|
|
1439
|
+
export interface ListWebhooksResponse {
|
|
1440
|
+
webhooks?: ListWebhooksResponseWebhooksList | null | undefined;
|
|
1441
|
+
}
|
|
1442
|
+
export type PreviewRuleMatchesRequestType = "user" | "ipport";
|
|
1443
|
+
export interface PreviewRuleMatchesRequest {
|
|
1444
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1445
|
+
tailnet: string;
|
|
1446
|
+
/** Specify for which type of resource (user or IP port) matching rules are to be fetched. Read about [previewing changes in the admin console](https://tailscale.com/docs/features/tailnet-policy-file/manage-tailnet-policies#preview-changes). OAuth Scope: `policy_file:read`. */
|
|
1447
|
+
type: PreviewRuleMatchesRequestType | (string & {});
|
|
1448
|
+
/** - If `type` is `user`, provide the email of a valid user with registered machines. - If `type` is `ipport`, provide an IP address + port: `10.0.0.1:80`. The supplied policy file is queried with this parameter to determine which rules match. */
|
|
1449
|
+
previewFor: string;
|
|
1450
|
+
}
|
|
1451
|
+
/** Source entities affected by the rule. */
|
|
1452
|
+
export type PreviewRuleMatchesResponseMatchesItemUsersList = Array<string>;
|
|
1453
|
+
/** Destinations that can be accessed. */
|
|
1454
|
+
export type PreviewRuleMatchesResponseMatchesItemPortsList = Array<string>;
|
|
1455
|
+
export interface PreviewRuleMatchesResponseMatchesItem {
|
|
1456
|
+
/** Source entities affected by the rule. */
|
|
1457
|
+
users: PreviewRuleMatchesResponseMatchesItemUsersList;
|
|
1458
|
+
/** Destinations that can be accessed. */
|
|
1459
|
+
ports: PreviewRuleMatchesResponseMatchesItemPortsList;
|
|
1460
|
+
/** The rule's location in the policy file. */
|
|
1461
|
+
lineNumber: number;
|
|
1462
|
+
}
|
|
1463
|
+
export type PreviewRuleMatchesResponseMatchesList = Array<PreviewRuleMatchesResponseMatchesItem>;
|
|
1464
|
+
export interface PreviewRuleMatchesResponse {
|
|
1465
|
+
matches: PreviewRuleMatchesResponseMatchesList;
|
|
1466
|
+
/** Echoes the `type` provided in the request. */
|
|
1467
|
+
type: string;
|
|
1468
|
+
/** Echoes the `previewFor` provided in the request. */
|
|
1469
|
+
previewFor: string;
|
|
1470
|
+
}
|
|
1471
|
+
export type ResendContactVerificationEmailRequestContactType = "account" | "support" | "security";
|
|
1472
|
+
export interface ResendContactVerificationEmailRequest {
|
|
1473
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1474
|
+
tailnet: string;
|
|
1475
|
+
/** Type of contact. */
|
|
1476
|
+
contactType: ResendContactVerificationEmailRequestContactType | (string & {});
|
|
1477
|
+
}
|
|
1478
|
+
export interface ResendContactVerificationEmailResponse {
|
|
1479
|
+
}
|
|
1480
|
+
export interface ResendDeviceInviteRequest {
|
|
1481
|
+
/** ID of the device invite. */
|
|
1482
|
+
deviceInviteId: string;
|
|
1483
|
+
}
|
|
1484
|
+
export interface ResendDeviceInviteResponse {
|
|
1485
|
+
}
|
|
1486
|
+
export interface ResendUserInviteRequest {
|
|
1487
|
+
/** ID of the user invite. */
|
|
1488
|
+
userInviteId: string;
|
|
1489
|
+
}
|
|
1490
|
+
export interface ResendUserInviteResponse {
|
|
1491
|
+
}
|
|
1492
|
+
export interface RestoreUserRequest {
|
|
1493
|
+
/** ID of the user. */
|
|
1494
|
+
userId: string;
|
|
1495
|
+
}
|
|
1496
|
+
export interface RestoreUserResponse {
|
|
1497
|
+
}
|
|
1498
|
+
export interface RotateWebhookSecretRequest {
|
|
1499
|
+
/** ID for the webhook endpoint. */
|
|
1500
|
+
endpointId: string;
|
|
1501
|
+
}
|
|
1502
|
+
/** A value can be either a string, number or boolean. A string value can have a maximum length of 50 characters, and can only contain letters, numbers, underscores, and periods. A number value is an integer and must be a JSON safe number (up to 2^53 - 1). */
|
|
1503
|
+
export type SetCustomDevicePostureAttributesRequestValue = string | number | boolean;
|
|
1504
|
+
export interface SetCustomDevicePostureAttributesRequest {
|
|
1505
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1506
|
+
deviceId: string;
|
|
1507
|
+
/** The name of the posture attribute to set. This must be prefixed with `custom`: Keys have a maximum length of 128 characters including the namespace, and can only contain letters, numbers, underscores, and colon. Keys are case-sensitive. Keys must be unique, but are checked for uniqueness in a case-insensitive manner. For example, `custom:MyAttribute` and `custom:myattribute` cannot both be set within a single tailnet. All values for a given key need to be of the same type, which is determined when the first value is written for a given key. For example, `custom:myattribute` cannot have a numeric value (`87`) for one node and a string value (`"78"`) for another node within the same tailnet. */
|
|
1508
|
+
attributeKey: string;
|
|
1509
|
+
/** A value can be either a string, number or boolean. A string value can have a maximum length of 50 characters, and can only contain letters, numbers, underscores, and periods. A number value is an integer and must be a JSON safe number (up to 2^53 - 1). */
|
|
1510
|
+
value?: SetCustomDevicePostureAttributesRequestValue | undefined;
|
|
1511
|
+
/** An optional expiry time for a given posture attribute. If set, Tailscale will automatically remove the attribute within a few minutes after the specified time. */
|
|
1512
|
+
expiry?: string | undefined;
|
|
1513
|
+
/** An optional comment indicating a reason why an attribute is set, which will be added to the audit log. */
|
|
1514
|
+
comment?: string | undefined;
|
|
1515
|
+
}
|
|
1516
|
+
export interface SetDeviceIpRequest {
|
|
1517
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1518
|
+
deviceId: string;
|
|
1519
|
+
/** The new IPv4 address for the device. */
|
|
1520
|
+
ipv4: string;
|
|
1521
|
+
}
|
|
1522
|
+
export interface SetDeviceIpResponse {
|
|
1523
|
+
}
|
|
1524
|
+
export interface SetDeviceNameRequest {
|
|
1525
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1526
|
+
deviceId: string;
|
|
1527
|
+
/** The new name for the device. This can be provided as either the fully qualified domain name for the device (e.g. "nodename.your-domain.ts.net") or just the base name (e.g. "nodename"). If `name` is unset or provided empty, the device's name is reset to be generated from its OS hostname. */
|
|
1528
|
+
name: string;
|
|
1529
|
+
}
|
|
1530
|
+
export interface SetDeviceNameResponse {
|
|
1531
|
+
}
|
|
1532
|
+
/** The new list of enabled subnet routes. */
|
|
1533
|
+
export type SetDeviceRoutesRequestRoutesList = Array<string>;
|
|
1534
|
+
export interface SetDeviceRoutesRequest {
|
|
1535
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1536
|
+
deviceId: string;
|
|
1537
|
+
/** The new list of enabled subnet routes. */
|
|
1538
|
+
routes?: SetDeviceRoutesRequestRoutesList | undefined;
|
|
1539
|
+
}
|
|
1540
|
+
/** The new list of tags for the device. */
|
|
1541
|
+
export type SetDeviceTagsRequestTagsList = Array<string>;
|
|
1542
|
+
export interface SetDeviceTagsRequest {
|
|
1543
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1544
|
+
deviceId: string;
|
|
1545
|
+
/** The new list of tags for the device. */
|
|
1546
|
+
tags?: SetDeviceTagsRequestTagsList | undefined;
|
|
1547
|
+
}
|
|
1548
|
+
export interface SetDeviceTagsResponse {
|
|
1549
|
+
}
|
|
1550
|
+
/** Global DNS resolvers to use. If `preferences.overrideLocalDNS` is true, these override the local OS configuration; otherwise they are used as fallback resolvers. */
|
|
1551
|
+
export type SetDnsConfigurationRequestNameserversList = Array<DnsConfigurationResolver>;
|
|
1552
|
+
export type SetDnsConfigurationRequestSplitDNSValueList = Array<DnsConfigurationResolver>;
|
|
1553
|
+
/** Map of DNS name suffixes (domains) to lists of resolvers for Split DNS and advanced routing overlays. */
|
|
1554
|
+
export type SetDnsConfigurationRequestSplitDNSMap = {
|
|
1555
|
+
[key: string]: SetDnsConfigurationRequestSplitDNSValueList | null | undefined;
|
|
1556
|
+
};
|
|
1557
|
+
/** Search domain paths to apply. */
|
|
1558
|
+
export type SetDnsConfigurationRequestSearchPathsList = Array<string>;
|
|
1559
|
+
export interface SetDnsConfigurationRequest {
|
|
1560
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1561
|
+
tailnet: string;
|
|
1562
|
+
/** Global DNS resolvers to use. If `preferences.overrideLocalDNS` is true, these override the local OS configuration; otherwise they are used as fallback resolvers. */
|
|
1563
|
+
nameservers?: SetDnsConfigurationRequestNameserversList | undefined;
|
|
1564
|
+
/** Map of DNS name suffixes (domains) to lists of resolvers for Split DNS and advanced routing overlays. */
|
|
1565
|
+
splitDNS?: SetDnsConfigurationRequestSplitDNSMap | undefined;
|
|
1566
|
+
/** Search domain paths to apply. */
|
|
1567
|
+
searchPaths?: SetDnsConfigurationRequestSearchPathsList | undefined;
|
|
1568
|
+
preferences?: DnsConfigurationPreferences | undefined;
|
|
1569
|
+
}
|
|
1570
|
+
/** DNS nameservers. */
|
|
1571
|
+
export type SetDnsNameserversRequestDnsList = Array<string>;
|
|
1572
|
+
export interface SetDnsNameserversRequest {
|
|
1573
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1574
|
+
tailnet: string;
|
|
1575
|
+
/** DNS nameservers. */
|
|
1576
|
+
dns?: SetDnsNameserversRequestDnsList | undefined;
|
|
1577
|
+
}
|
|
1578
|
+
/** DNS nameservers. */
|
|
1579
|
+
export type SetDnsNameserversResponseDnsList = Array<string>;
|
|
1580
|
+
export interface SetDnsNameserversResponse {
|
|
1581
|
+
/** DNS nameservers. */
|
|
1582
|
+
dns?: SetDnsNameserversResponseDnsList | undefined;
|
|
1583
|
+
/** Whether MagicDNS is active for this tailnet. */
|
|
1584
|
+
magicDNS?: boolean | undefined;
|
|
1585
|
+
}
|
|
1586
|
+
export interface SetDnsPreferencesRequest {
|
|
1587
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1588
|
+
tailnet: string;
|
|
1589
|
+
/** Whether MagicDNS is active for this tailnet. */
|
|
1590
|
+
magicDNS: boolean;
|
|
1591
|
+
}
|
|
1592
|
+
/** The search domains for the given tailnet. */
|
|
1593
|
+
export type SetDnsSearchPathsRequestSearchPathsList = Array<string>;
|
|
1594
|
+
export interface SetDnsSearchPathsRequest {
|
|
1595
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1596
|
+
tailnet: string;
|
|
1597
|
+
/** The search domains for the given tailnet. */
|
|
1598
|
+
searchPaths: SetDnsSearchPathsRequestSearchPathsList;
|
|
1599
|
+
}
|
|
1600
|
+
/** The type of the key being updated. */
|
|
1601
|
+
export type SetKeyRequestKeyType = "client" | "federated";
|
|
1602
|
+
/** A list of scopes to grant to the key. At least one scope is required. See [trust credentials scopes](https://tailscale.com/docs/reference/trust-credentials#scopes) for a list of available scopes. */
|
|
1603
|
+
export type SetKeyRequestScopesList = Array<string>;
|
|
1604
|
+
/** A list of tags associated to the trust credential. Auth keys created with this credential must have these exact tags, or tags owned by the credential's tags. Mandatory if the scopes include "devices:core" or "auth_keys". */
|
|
1605
|
+
export type SetKeyRequestTagsList = Array<string>;
|
|
1606
|
+
/** A map of claim names to pattern strings used to match against arbitrary claims in the OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
1607
|
+
export type SetKeyRequestCustomClaimRulesMap = {
|
|
1608
|
+
[key: string]: string | undefined;
|
|
1609
|
+
};
|
|
1610
|
+
export interface SetKeyRequest {
|
|
1611
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1612
|
+
tailnet: string;
|
|
1613
|
+
/** The id of the key. The key ID can be found in the [admin console](https://login.tailscale.com/admin/settings/keys). */
|
|
1614
|
+
keyId: string;
|
|
1615
|
+
/** The type of the key being updated. */
|
|
1616
|
+
keyType?: SetKeyRequestKeyType | (string & {}) | undefined;
|
|
1617
|
+
/** A short string specifying the purpose of the key. Can be a maximum of 50 alphanumeric characters. Hyphens and spaces are also allowed. */
|
|
1618
|
+
description?: string | undefined;
|
|
1619
|
+
/** A list of scopes to grant to the key. At least one scope is required. See [trust credentials scopes](https://tailscale.com/docs/reference/trust-credentials#scopes) for a list of available scopes. */
|
|
1620
|
+
scopes?: SetKeyRequestScopesList | undefined;
|
|
1621
|
+
/** A list of tags associated to the trust credential. Auth keys created with this credential must have these exact tags, or tags owned by the credential's tags. Mandatory if the scopes include "devices:core" or "auth_keys". */
|
|
1622
|
+
tags?: SetKeyRequestTagsList | undefined;
|
|
1623
|
+
/** The issuer of the OIDC identity token used in the token exchange. Must be a valid https:// URL. Only applies to federated identities. */
|
|
1624
|
+
issuer?: string | undefined;
|
|
1625
|
+
/** The pattern used when matching against the `sub` claim from an OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
1626
|
+
subject?: string | undefined;
|
|
1627
|
+
/** The value used when matching against the `aud` claim from an OIDC identity token. Only applies to federated identities. */
|
|
1628
|
+
audience?: string | undefined;
|
|
1629
|
+
/** A map of claim names to pattern strings used to match against arbitrary claims in the OIDC identity token. Patterns can include `*` characters to match against any character. Only applies to federated identities. */
|
|
1630
|
+
customClaimRules?: SetKeyRequestCustomClaimRulesMap | undefined;
|
|
1631
|
+
}
|
|
1632
|
+
/** The type of log for logging endpoints. */
|
|
1633
|
+
export type SetLogStreamingConfigurationRequestLogType = "configuration" | "network";
|
|
1634
|
+
/** The type of system to which logs are being streamed. */
|
|
1635
|
+
export type SetLogStreamingConfigurationRequestDestinationType = "splunk" | "elastic" | "panther" | "cribl" | "crowdstrike" | "datadog" | "axiom" | "s3";
|
|
1636
|
+
/** The compression algorithm with which to compress logs. `none` disables compression. Defaults to `none`. */
|
|
1637
|
+
export type SetLogStreamingConfigurationRequestCompressionFormat = "zstd" | "gzip" | "none";
|
|
1638
|
+
/** What type of authentication to use for S3. Required if the destinationType is `s3`. Tailscale recommends using `rolearn`. See [Amazon documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html). */
|
|
1639
|
+
export type SetLogStreamingConfigurationRequestS3AuthenticationType = "accesskey" | "rolearn";
|
|
1640
|
+
/** The GCS scopes needed to be able to write to the GCS bucket. */
|
|
1641
|
+
export type SetLogStreamingConfigurationRequestGcsScopesList = Array<string>;
|
|
1642
|
+
export interface SetLogStreamingConfigurationRequest {
|
|
1643
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1644
|
+
tailnet: string;
|
|
1645
|
+
/** The type of log. */
|
|
1646
|
+
logType: SetLogStreamingConfigurationRequestLogType | (string & {});
|
|
1647
|
+
/** The type of system to which logs are being streamed. */
|
|
1648
|
+
destinationType?: SetLogStreamingConfigurationRequestDestinationType | (string & {}) | undefined;
|
|
1649
|
+
/** The URL to which log streams are being posted. If the DestinationType is `s3`, the URL may be (and often is) empty to use the official Amazon S3 endpoint. */
|
|
1650
|
+
url?: string | undefined;
|
|
1651
|
+
/** The username with which log streams to this endpoint are authenticated. */
|
|
1652
|
+
user?: string | undefined;
|
|
1653
|
+
/** An optional number of minutes to wait in between uploading new logs. If the quantity of logs does not fit within a single upload, multiple uploads will be made. */
|
|
1654
|
+
uploadPeriodMinutes?: number | undefined;
|
|
1655
|
+
/** The compression algorithm with which to compress logs. `none` disables compression. Defaults to `none`. */
|
|
1656
|
+
compressionFormat?: SetLogStreamingConfigurationRequestCompressionFormat | (string & {}) | undefined;
|
|
1657
|
+
/** The token/password with which log streams to this endpoint should be authenticated. */
|
|
1658
|
+
token?: Redacted.Redacted<string> | undefined;
|
|
1659
|
+
/** The S3 bucket name. Required if the destinationType is `s3`. */
|
|
1660
|
+
s3Bucket?: string | undefined;
|
|
1661
|
+
/** The region in which the S3 bucket is located. Required if the destinationType is `s3`. */
|
|
1662
|
+
s3Region?: string | undefined;
|
|
1663
|
+
/** An optional S3 key prefix to prepend to the auto-generated S3 key name. */
|
|
1664
|
+
s3KeyPrefix?: string | undefined;
|
|
1665
|
+
/** What type of authentication to use for S3. Required if the destinationType is `s3`. Tailscale recommends using `rolearn`. See [Amazon documentation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html). */
|
|
1666
|
+
s3AuthenticationType?: SetLogStreamingConfigurationRequestS3AuthenticationType | (string & {}) | undefined;
|
|
1667
|
+
/** The S3 access key ID. Required if the destinationType is `s3` and `authenticationType` is `accesskey`. */
|
|
1668
|
+
s3AccessKeyId?: string | undefined;
|
|
1669
|
+
/** The S3 secret access key. Required if the destinationType is `s3` and `authenticationType` is `accesskey`. */
|
|
1670
|
+
s3SecretAccessKey?: Redacted.Redacted<string> | undefined;
|
|
1671
|
+
/** The Role ARN that Tailscale should supply to AWS when authenticating using role-based authentication. Required if the destinationType is `s3` and `authenticationType` is `rolearn`. */
|
|
1672
|
+
s3RoleArn?: string | undefined;
|
|
1673
|
+
/** The GCS bucket name. Required if the destinationType is `gcs`. */
|
|
1674
|
+
gcsBucket?: string | undefined;
|
|
1675
|
+
/** An optional GCS key prefix to append to the GCS bucket name. */
|
|
1676
|
+
gcsKeyPrefix?: string | undefined;
|
|
1677
|
+
/** The GCS scopes needed to be able to write to the GCS bucket. */
|
|
1678
|
+
gcsScopes?: SetLogStreamingConfigurationRequestGcsScopesList | undefined;
|
|
1679
|
+
/** The JSON workload identity credentials from GCS needed for accessing the GCS account. */
|
|
1680
|
+
gcsCredentials?: Redacted.Redacted<string> | undefined;
|
|
1681
|
+
}
|
|
1682
|
+
export interface SetLogStreamingConfigurationResponse {
|
|
1683
|
+
}
|
|
1684
|
+
export interface SetPolicyFileRequest {
|
|
1685
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1686
|
+
tailnet: string;
|
|
1687
|
+
/** Response is encoded as JSON if `application/json` is requested, otherwise HuJSON will be returned. */
|
|
1688
|
+
accept?: string | undefined;
|
|
1689
|
+
/** This is a safety mechanism to avoid overwriting other users' updates to the tailnet policy file. - Set the `If-Match` value to that of the `ETag` header returned in a `GET` request to `/api/v2/tailnet/{tailnet}/acl`. Tailscale compares the `ETag` value in your request to that of the current tailnet file and only replaces the file if there's a match. (A mismatch indicates that another update has been made to the file.) For example: `-H "If-Match: \"e0b2816b418\""`. - Alternately, set the `If-Match` value to `ts-default` to ensure that the policy file is replaced *only if the current policy file is still the untouched default created automatically* for each tailnet. For example: `-H "If-Match: \"ts-default\""`. */
|
|
1690
|
+
ifMatch?: string | undefined;
|
|
1691
|
+
body: string;
|
|
1692
|
+
}
|
|
1693
|
+
export interface SetPolicyFileResponse {
|
|
1694
|
+
body: string;
|
|
1695
|
+
/** Entity tag for the stored policy file. Send it back as If-Match on the next setPolicyFile. */
|
|
1696
|
+
eTag?: string | undefined;
|
|
1697
|
+
}
|
|
1698
|
+
export interface SetSplitDnsRequest {
|
|
1699
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1700
|
+
tailnet: string;
|
|
1701
|
+
body?: SplitDns | undefined;
|
|
1702
|
+
}
|
|
1703
|
+
export type SetSplitDnsResponse = SplitDns;
|
|
1704
|
+
export interface SuspendUserRequest {
|
|
1705
|
+
/** ID of the user. */
|
|
1706
|
+
userId: string;
|
|
1707
|
+
}
|
|
1708
|
+
export interface SuspendUserResponse {
|
|
1709
|
+
}
|
|
1710
|
+
export interface TestWebhookRequest {
|
|
1711
|
+
/** ID for the webhook endpoint. */
|
|
1712
|
+
endpointId: string;
|
|
1713
|
+
}
|
|
1714
|
+
export interface TestWebhookResponse {
|
|
1715
|
+
}
|
|
1716
|
+
export type UpdateContactRequestContactType = "account" | "support" | "security";
|
|
1717
|
+
export interface UpdateContactRequest {
|
|
1718
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1719
|
+
tailnet: string;
|
|
1720
|
+
/** Type of contact. */
|
|
1721
|
+
contactType: UpdateContactRequestContactType | (string & {});
|
|
1722
|
+
/** The contact's email address. */
|
|
1723
|
+
email: string;
|
|
1724
|
+
}
|
|
1725
|
+
export interface UpdateContactResponse {
|
|
1726
|
+
}
|
|
1727
|
+
export interface UpdateDeviceKeyRequest {
|
|
1728
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1729
|
+
deviceId: string;
|
|
1730
|
+
/** - If `true`, disable the device's key expiry. The original key expiry time is still maintained. Upon re-enabling, the key will expire at that original time. - If `false`, enable the device's key expiry. Sets the key to expire at the original expiry time prior to disabling. The key may already have expired. In that case, the device must be re-authenticated. */
|
|
1731
|
+
keyExpiryDisabled: boolean;
|
|
1732
|
+
}
|
|
1733
|
+
export interface UpdateDeviceKeyResponse {
|
|
1734
|
+
}
|
|
1735
|
+
export interface UpdateOAuthAppRequest {
|
|
1736
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1737
|
+
tailnet: string;
|
|
1738
|
+
/** The ID of the OAuth app. */
|
|
1739
|
+
appId: string;
|
|
1740
|
+
name: string;
|
|
1741
|
+
description?: string | undefined;
|
|
1742
|
+
redirectURIs: RedirectURIs;
|
|
1743
|
+
scopes: Scopes;
|
|
1744
|
+
allowedNodeAttributes?: AllowedNodeAttributes | undefined;
|
|
1745
|
+
}
|
|
1746
|
+
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
1747
|
+
export type UpdatePostureIntegrationRequestProvider = "falcon" | "intune" | "jamfpro" | "kandji" | "kolide" | "sentinelone";
|
|
1748
|
+
export interface UpdatePostureIntegrationRequest {
|
|
1749
|
+
/** Unique identifier for a posture integration. */
|
|
1750
|
+
id: string;
|
|
1751
|
+
/** The device posture provider. Required on POST requests, ignored on PATCH requests. */
|
|
1752
|
+
provider?: UpdatePostureIntegrationRequestProvider | (string & {}) | undefined;
|
|
1753
|
+
/** Identifies which of the provider's clouds to integrate with. - For CrowdStrike Falcon, it will be one of `us-1`, `us-2`, `eu-1` or `us-gov`. - For Microsoft Intune, it will be one of `global` or `us-gov`. - For Jamf Pro, Kandji and Sentinel One, it is the FQDN of your subdomain, for example `mydomain.sentinelone.net`. - For Kolide, this is left blank. */
|
|
1754
|
+
cloudId?: string | undefined;
|
|
1755
|
+
/** Unique identifier for your client. - For Microsoft Intune, it will be your application's UUID. - For CrowdStrike Falcon and Jamf Pro, it will be your client id. - For Kandji, Kolide and Sentinel One, this is left blank. */
|
|
1756
|
+
clientId?: string | undefined;
|
|
1757
|
+
/** The Microsoft Intune directory (tenant) ID. For other providers, this is left blank. */
|
|
1758
|
+
tenantId?: string | undefined;
|
|
1759
|
+
/** The secret (auth key, token, etc.) used to authenticate with the provider. Required when creating a new integration, may be omitted when updating an existing integration, in which case we retain the existing password. */
|
|
1760
|
+
clientSecret?: Redacted.Redacted<string> | undefined;
|
|
1761
|
+
}
|
|
1762
|
+
/** The IP addresses assigned to the Service. - For new Services: either unset or a single IPv4 to assign the Service. - For existing Services: an IPv4 and an IPv6. The IPv4 can be updated, but not the IPv6. */
|
|
1763
|
+
export type UpdateServiceRequestAddrsList = Array<string>;
|
|
1764
|
+
/** A list of protocol:port pairs to be exposed by the Service. The only supported protocol is "tcp" at this time. "do-not-validate" can be used to skip validation. */
|
|
1765
|
+
export type UpdateServiceRequestPortsList = Array<string>;
|
|
1766
|
+
/** A list of optional tags associated with the Service. */
|
|
1767
|
+
export type UpdateServiceRequestTagsList = Array<string>;
|
|
1768
|
+
export interface UpdateServiceRequest {
|
|
1769
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1770
|
+
tailnet: string;
|
|
1771
|
+
/** The unique name of a Service. The name should be prefixed with "svc:". It should be unique across the tailnet, so names already used for a machine cannot be reused for a Service. */
|
|
1772
|
+
serviceName: string;
|
|
1773
|
+
/** The IP addresses assigned to the Service. - For new Services: either unset or a single IPv4 to assign the Service. - For existing Services: an IPv4 and an IPv6. The IPv4 can be updated, but not the IPv6. */
|
|
1774
|
+
addrs?: UpdateServiceRequestAddrsList | undefined;
|
|
1775
|
+
/** The unique name of the Service. */
|
|
1776
|
+
name?: string | undefined;
|
|
1777
|
+
/** An optional human-readable label for the Service, shown in the Tailscale admin console and to clients with access to the Service. Must be 64 characters or fewer. */
|
|
1778
|
+
displayName?: string | undefined;
|
|
1779
|
+
/** An optional comment for the Service. */
|
|
1780
|
+
comment?: string | undefined;
|
|
1781
|
+
/** A list of protocol:port pairs to be exposed by the Service. The only supported protocol is "tcp" at this time. "do-not-validate" can be used to skip validation. */
|
|
1782
|
+
ports?: UpdateServiceRequestPortsList | undefined;
|
|
1783
|
+
/** A list of optional tags associated with the Service. */
|
|
1784
|
+
tags?: UpdateServiceRequestTagsList | undefined;
|
|
1785
|
+
}
|
|
1786
|
+
export interface UpdateServiceDeviceApprovalRequest {
|
|
1787
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1788
|
+
tailnet: string;
|
|
1789
|
+
/** The unique name of a Service. The name should be prefixed with "svc:". It should be unique across the tailnet, so names already used for a machine cannot be reused for a Service. */
|
|
1790
|
+
serviceName: string;
|
|
1791
|
+
/** ID of the device. Using the device's `nodeId` is preferred, but its numeric `id` value can also be used. */
|
|
1792
|
+
deviceId: string;
|
|
1793
|
+
/** Indicates whether to approve or revoke approval for the Service on the device. */
|
|
1794
|
+
approved?: boolean | undefined;
|
|
1795
|
+
}
|
|
1796
|
+
export interface UpdateSplitDnsRequest {
|
|
1797
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1798
|
+
tailnet: string;
|
|
1799
|
+
body?: SplitDns | undefined;
|
|
1800
|
+
}
|
|
1801
|
+
export type UpdateSplitDnsResponse = SplitDns;
|
|
1802
|
+
/** Which user roles are allowed to [join external tailnets](/docs/features/sharing/how-to/invite-any-user). */
|
|
1803
|
+
export type UpdateTailnetSettingsRequestUsersRoleAllowedToJoinExternalTailnets = "none" | "admin" | "member";
|
|
1804
|
+
/** The [route selection](/docs/features/route-selection) algorithm used by the tailnet: * `active-passive-failover` - Active-passive failover (formerly known as "Failover") * `regional-routing` - Regional routing * `regional-routing-failover` - Regional routing with in-region failover * `magicroute` - MagicRoute A PATCH request must not specify both the `regionalRoutingOn` and `routeSelection` fields. */
|
|
1805
|
+
export type UpdateTailnetSettingsRequestRouteSelection = "active-passive-failover" | "regional-routing" | "regional-routing-failover" | "magicroute";
|
|
1806
|
+
export interface UpdateTailnetSettingsRequest {
|
|
1807
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1808
|
+
tailnet: string;
|
|
1809
|
+
/** Prevents users from editing policies in the admin console to avoid conflicts with external management workflows like GitOps or Terraform. */
|
|
1810
|
+
aclsExternallyManagedOn?: boolean | null | undefined;
|
|
1811
|
+
/** Link to the external tailnet policy definition or management solution for this tailnet. */
|
|
1812
|
+
aclsExternalLink?: string | undefined;
|
|
1813
|
+
/** The [admin console session timeout](/docs/account/admin-console-session-timeout) for members of this tailnet. Setting it to 0 disables the timeout. */
|
|
1814
|
+
adminConsoleSessionTimeoutMinutes?: number | undefined;
|
|
1815
|
+
/** Whether [device approval](/docs/features/access-control/device-management/device-approval) is enabled for the tailnet. */
|
|
1816
|
+
devicesApprovalOn?: boolean | null | undefined;
|
|
1817
|
+
/** Whether [auto updates](/docs/features/client/update#auto-updates) are enabled for devices that belong to this tailnet. */
|
|
1818
|
+
devicesAutoUpdatesOn?: boolean | null | undefined;
|
|
1819
|
+
/** The [key expiry](/docs/features/access-control/key-expiry) duration for devices on this tailnet. */
|
|
1820
|
+
devicesKeyDurationDays?: number | undefined;
|
|
1821
|
+
/** Whether [user approval](/docs/features/access-control/user-approval) is enabled for this tailnet. */
|
|
1822
|
+
usersApprovalOn?: boolean | null | undefined;
|
|
1823
|
+
/** Which user roles are allowed to [join external tailnets](/docs/features/sharing/how-to/invite-any-user). */
|
|
1824
|
+
usersRoleAllowedToJoinExternalTailnets?: UpdateTailnetSettingsRequestUsersRoleAllowedToJoinExternalTailnets | (string & {}) | undefined;
|
|
1825
|
+
/** Whether [network flog logs](/docs/features/logging/network-flow-logs) are enabled for the tailnet. */
|
|
1826
|
+
networkFlowLoggingOn?: boolean | null | undefined;
|
|
1827
|
+
/** The [route selection](/docs/features/route-selection) algorithm used by the tailnet: * `active-passive-failover` - Active-passive failover (formerly known as "Failover") * `regional-routing` - Regional routing * `regional-routing-failover` - Regional routing with in-region failover * `magicroute` - MagicRoute A PATCH request must not specify both the `regionalRoutingOn` and `routeSelection` fields. */
|
|
1828
|
+
routeSelection?: UpdateTailnetSettingsRequestRouteSelection | (string & {}) | undefined;
|
|
1829
|
+
/** Whether [identity collection](/docs/features/access-control/device-management/how-to/manage-identity) is enabled for [device posture](/docs/features/device-posture) integrations for the tailnet. */
|
|
1830
|
+
postureIdentityCollectionOn?: boolean | null | undefined;
|
|
1831
|
+
/** Whether provisioning of [HTTPS certificates](/docs/how-to/set-up-https-certificates) is enabled for this tailnet. */
|
|
1832
|
+
httpsEnabled?: boolean | null | undefined;
|
|
1833
|
+
}
|
|
1834
|
+
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). */
|
|
1835
|
+
export type UpdateUserRoleRequestRole = "owner" | "member" | "admin" | "it-admin" | "network-admin" | "billing-admin" | "auditor";
|
|
1836
|
+
export interface UpdateUserRoleRequest {
|
|
1837
|
+
/** ID of the user. */
|
|
1838
|
+
userId: string;
|
|
1839
|
+
/** The role of the user. Learn more about [user roles](/docs/reference/user-roles). */
|
|
1840
|
+
role?: UpdateUserRoleRequestRole | (string & {}) | undefined;
|
|
1841
|
+
}
|
|
1842
|
+
export interface UpdateUserRoleResponse {
|
|
1843
|
+
}
|
|
1844
|
+
export interface UpdateWebhookRequest {
|
|
1845
|
+
/** ID for the webhook endpoint. */
|
|
1846
|
+
endpointId: string;
|
|
1847
|
+
subscriptions?: Subscriptions | undefined;
|
|
1848
|
+
}
|
|
1849
|
+
export interface ValidateAndTestPolicyFileRequest {
|
|
1850
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1851
|
+
tailnet: string;
|
|
1852
|
+
body: string;
|
|
1853
|
+
}
|
|
1854
|
+
export type ValidateAndTestPolicyFileResponseDataList = Array<unknown>;
|
|
1855
|
+
export interface ValidateAndTestPolicyFileResponse {
|
|
1856
|
+
message?: string | undefined;
|
|
1857
|
+
data?: ValidateAndTestPolicyFileResponseDataList | undefined;
|
|
1858
|
+
}
|
|
1859
|
+
export interface ValidateAwsExternalIdRequest {
|
|
1860
|
+
/** The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. When specifying a tailnet in the API, you can: - Provide a dash (`-`) to reference the default tailnet of the access token being used to make the API call. This is the best option for most users. Your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/-/..." ``` - Provide the **tailnet ID** found on the **[General Settings](https://login.tailscale.com/admin/settings/general)** page of the Tailscale admin console. For example, if your tailnet ID name is `T1234CNTRL`, your API calls would start: ```sh curl "https://api.tailscale.com/api/v2/tailnet/T1234CNTRL/..." ``` Learn more about [tailnet ID](https://tailscale.com/docs/concepts/tailnet-name#tailnet-id). */
|
|
1861
|
+
tailnet: string;
|
|
1862
|
+
/** The AWS external ID to validate. */
|
|
1863
|
+
id: string;
|
|
1864
|
+
/** ARN of the AWS IAM role to validate with this external ID. */
|
|
1865
|
+
roleArn?: string | undefined;
|
|
1866
|
+
}
|
|
1867
|
+
export interface ValidateAwsExternalIdResponse {
|
|
1868
|
+
}
|
|
1869
|
+
export type AcceptDeviceInviteError = BadRequest | TailscaleOpError;
|
|
1870
|
+
/** Accept a device invite Accepts the invitation to share a device into the requesting user's tailnet. Note that device invites cannot be accepted using an API access token generated from an OAuth client as the shared device is scoped to a user. */
|
|
1871
|
+
export declare const acceptDeviceInvite: API.OperationMethod<AcceptDeviceInviteRequest, AcceptDeviceInviteResponse, AcceptDeviceInviteError, TailscaleOpContext>;
|
|
1872
|
+
export type ApproveUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
1873
|
+
/** Approve a user Approve a pending user's access to the tailnet. This is a no-op if user approval has not been enabled for the tailnet, or if the user is already approved. User approval can be managed using the [tailnet settings endpoints](#tag/tailnetsettings). Learn more about [user approval](/docs/features/access-control/user-approval) and [enabling user approval for your network](/docs/features/access-control/user-approval#enable-user-approval-for-your-network). OAuth Scope: `users`. > U+24D8 User-based access tokens cannot approve their own user. */
|
|
1874
|
+
export declare const approveUser: API.OperationMethod<ApproveUserRequest, ApproveUserResponse, ApproveUserError, TailscaleOpContext>;
|
|
1875
|
+
export type AuthorizeDeviceError = BadRequest | NotFound | TailscaleOpError;
|
|
1876
|
+
/** Authorize device This call marks a device as authorized or revokes its authorization for tailnets where device authorization is required, according to the authorized field in the payload. OAuth Scope: `devices:core`. */
|
|
1877
|
+
export declare const authorizeDevice: API.OperationMethod<AuthorizeDeviceRequest, AuthorizeDeviceResponse, AuthorizeDeviceError, TailscaleOpContext>;
|
|
1878
|
+
export type BatchUpdateCustomDevicePostureAttributesError = BadRequest | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1879
|
+
/** Batch update custom device posture attributes Batch updates posture attributes across devices in a tailnet. This endpoint uses [JSON Merge Patch](https://datatracker.ietf.org/doc/html/rfc7396) semantics. Specifying `null` for an attribute will delete that attribute. Attributes must be in the `custom:` namespace. OAuth Scope: `devices:posture_attributes`. */
|
|
1880
|
+
export declare const batchUpdateCustomDevicePostureAttributes: API.OperationMethod<BatchUpdateCustomDevicePostureAttributesRequest, BatchUpdateCustomDevicePostureAttributesResponse, BatchUpdateCustomDevicePostureAttributesError, TailscaleOpContext>;
|
|
1881
|
+
export type CreateDeviceInvitesError = NotFound | TailscaleOpError;
|
|
1882
|
+
/** Create device invites Create new share invites for a device. Note that device invites cannot be created using an API access token generated from an OAuth client as the shared device is scoped to a user. */
|
|
1883
|
+
export declare const createDeviceInvites: API.OperationMethod<CreateDeviceInvitesRequest, CreateDeviceInvitesResponse, CreateDeviceInvitesError, TailscaleOpContext>;
|
|
1884
|
+
export type CreateKeyError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
1885
|
+
/** Create an auth key or trust credential Creates a new [auth key](https://tailscale.com/docs/features/access-control/auth-keys), or [trust credential](https://tailscale.com/docs/reference/trust-credentials) in the specified tailnet. Trust credentials include [OAuth clients](https://tailscale.com/docs/features/oauth-clients) and [federated identities](https://tailscale.com/docs/features/workload-identity-federation). The key will be associated with the user who owns the API access token used to make this call, or, if the call is made with an access token derived from an OAuth client or federated identity, the key will be owned by the tailnet. Returns a JSON object with the generated key. The key should be recorded and kept safe and secure because it wields the capabilities or scopes specified in the request. The identity of the key is embedded in the key itself and can be used to perform operations on the key (e.g., revoking it or retrieving information about it). The full key can no longer be retrieved after the initial response. OAuth Scope: `auth_keys` grants access to create machine auth keys. If you include `nodeAttributes` in the request body, you must also have `devices:posture_attributes`. OAuth Scope: `oauth_keys` grants access to create OAuth clients. OAuth Scope: `federated_keys` grants access to created federated identities. */
|
|
1886
|
+
export declare const createKey: API.OperationMethod<CreateKeyRequest, Key, CreateKeyError, TailscaleOpContext>;
|
|
1887
|
+
export type CreateOAuthAppError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1888
|
+
/** Create an OAuth app Create an OAuth app within a tailnet. The generated client secret is returned only in this response and cannot be retrieved later, so be sure to record it. OAuth Scope: `oauth_apps`. If you include `allowedNodeAttributes` in the request body, you must also have `devices:posture_attributes`. */
|
|
1889
|
+
export declare const createOAuthApp: API.OperationMethod<CreateOAuthAppRequest, OAuthApp, CreateOAuthAppError, TailscaleOpContext>;
|
|
1890
|
+
export type CreateOrganizationTailnetError = BadRequest | Forbidden | NotFound | TailnetDisplayNameAlreadyExists | TailscaleOpError;
|
|
1891
|
+
/** Create a tailnet Create an [API-only tailnet](https://tailscale.com/docs/features/tailnet-creation-api) in the organization. API-only tailnets have no human users and do not appear in the admin console. Use them for applications and infrastructure that manage tailnets entirely through the API. All plans can create a maximum of 10 tailnets, including their original tailnet. If your use case requires more than 10 tailnets, [contact sales](https://tailscale.com/contact/sales). The response includes an OAuth client for the new tailnet. The client secret is returned only in this response and cannot be retrieved later, so be sure to record it. OAuth Scope: `tailnets`. */
|
|
1892
|
+
export declare const createOrganizationTailnet: API.OperationMethod<CreateOrganizationTailnetRequest, CreateOrganizationTailnetResponse, CreateOrganizationTailnetError, TailscaleOpContext>;
|
|
1893
|
+
export type CreatePostureIntegrationError = Forbidden | Conflict | TailnetNotFound | TailscaleOpError;
|
|
1894
|
+
/** Create a posture integration Create a posture integration, returning the resulting [PostureIntegration](#model/postureintegration). Must include `provider` and `clientSecret`. Currently, only one integration for each provider is supported. OAuth Scope: `feature_settings`. */
|
|
1895
|
+
export declare const createPostureIntegration: API.OperationMethod<CreatePostureIntegrationRequest, PostureIntegrationOutput, CreatePostureIntegrationError, TailscaleOpContext>;
|
|
1896
|
+
export type CreateUserInvitesError = NotFound | FeatureNotAvailable | TailnetNotFound | TailscaleOpError;
|
|
1897
|
+
/** Create user invites Create, and optionally email out, new user invites to join the tailnet. > U+24D8 Only permitted for user-owned keys, because invites require an inviting user. */
|
|
1898
|
+
export declare const createUserInvites: API.OperationMethod<CreateUserInvitesRequest, CreateUserInvitesResponse, CreateUserInvitesError, TailscaleOpContext>;
|
|
1899
|
+
export type CreateWebhookError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1900
|
+
/** Create a webhook Create a webhook within a tailnet. OAuth Scope: `webhooks`. */
|
|
1901
|
+
export declare const createWebhook: API.OperationMethod<CreateWebhookRequest, Webhook, CreateWebhookError, TailscaleOpContext>;
|
|
1902
|
+
export type DeleteCustomDevicePostureAttributesError = NotFound | FeatureNotAvailable | TailscaleOpError;
|
|
1903
|
+
/** Delete custom device posture attributes Delete a posture attribute from the specified device. This is only applicable to user-managed posture attributes in the custom namespace, which is indicated by prefixing the attribute key with `custom:`. OAuth Scope: `devices:posture_attributes`. */
|
|
1904
|
+
export declare const deleteCustomDevicePostureAttributes: API.OperationMethod<DeleteCustomDevicePostureAttributesRequest, DeleteCustomDevicePostureAttributesResponse, DeleteCustomDevicePostureAttributesError, TailscaleOpContext>;
|
|
1905
|
+
export type DeleteDeviceError = BadRequest | TailscaleOpError;
|
|
1906
|
+
/** Delete a device Deletes the device from its tailnet. The device must belong to the requesting user's tailnet. Deleting devices shared with the tailnet is not supported. OAuth Scope: `devices:core`. */
|
|
1907
|
+
export declare const deleteDevice: API.OperationMethod<DeleteDeviceRequest, DeleteDeviceResponse, DeleteDeviceError, TailscaleOpContext>;
|
|
1908
|
+
export type DeleteDeviceInviteError = NotFound | DeviceInviteNotFound | TailscaleOpError;
|
|
1909
|
+
/** Delete a device invite Delete a specific device invite. OAuth Scope: `device_invites`. */
|
|
1910
|
+
export declare const deleteDeviceInvite: API.OperationMethod<DeleteDeviceInviteRequest, DeleteDeviceInviteResponse, DeleteDeviceInviteError, TailscaleOpContext>;
|
|
1911
|
+
export type DeleteKeyError = Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1912
|
+
/** Delete key Deletes a specific api access token or auth key. OAuth Scope: `api_access_tokens` grants access to personal API access tokens. OAuth Scope: `auth_keys` grants access to machine auth keys. OAuth Scope: `oauth_keys` grants access to OAuth clients and OAuth tokens. OAuth Scope: `federated_keys` grants access to federated identities. */
|
|
1913
|
+
export declare const deleteKey: API.OperationMethod<DeleteKeyRequest, DeleteKeyResponse, DeleteKeyError, TailscaleOpContext>;
|
|
1914
|
+
export type DeleteOAuthAppError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1915
|
+
/** Delete OAuth app Delete a specific OAuth app. OAuth Scope: `oauth_apps`. */
|
|
1916
|
+
export declare const deleteOAuthApp: API.OperationMethod<DeleteOAuthAppRequest, DeleteOAuthAppResponse, DeleteOAuthAppError, TailscaleOpContext>;
|
|
1917
|
+
export type DeletePostureIntegrationError = Forbidden | NotFound | TailscaleOpError;
|
|
1918
|
+
/** Delete a posture integration Delete a specific posture integration. OAuth Scope: `feature_settings`. */
|
|
1919
|
+
export declare const deletePostureIntegration: API.OperationMethod<DeletePostureIntegrationRequest, DeletePostureIntegrationResponse, DeletePostureIntegrationError, TailscaleOpContext>;
|
|
1920
|
+
export type DeleteServiceError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1921
|
+
/** Delete a Service Delete the specified Service from the tailnet. OAuth Scope: `services`. */
|
|
1922
|
+
export declare const deleteService: API.OperationMethod<DeleteServiceRequest, DeleteServiceResponse, DeleteServiceError, TailscaleOpContext>;
|
|
1923
|
+
export type DeleteTailnetError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
1924
|
+
/** Delete a tailnet Delete the specified tailnet and all of its users, devices, and configuration. [API-only tailnets](https://tailscale.com/docs/features/tailnet-creation-api) can be deleted using an access token for the tailnet being deleted. You can get a tailnet-specific access token by exchanging either the OAuth client credentials returned when the tailnet was created or an OAuth client from the creating tailnet that has the `all` scope. OAuth Scope: `all`. */
|
|
1925
|
+
export declare const deleteTailnet: API.OperationMethod<DeleteTailnetRequest, DeleteTailnetResponse, DeleteTailnetError, TailscaleOpContext>;
|
|
1926
|
+
export type DeleteUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
1927
|
+
/** Delete a user Delete a user from their tailnet. Learn more about [deleting users](/docs/features/sharing/how-to/remove-team-members#deleting-users). OAuth Scope: `users`. > U+24D8 User-based access tokens cannot delete their own user. */
|
|
1928
|
+
export declare const deleteUser: API.OperationMethod<DeleteUserRequest, DeleteUserResponse, DeleteUserError, TailscaleOpContext>;
|
|
1929
|
+
export type DeleteUserInviteError = NotFound | UserOwnedKeyRequired | TailscaleOpError;
|
|
1930
|
+
/** Delete a user invite Deletes a specific user invite. > U+24D8 Only permitted for user-owned keys, because invites require an inviting user. */
|
|
1931
|
+
export declare const deleteUserInvite: API.OperationMethod<DeleteUserInviteRequest, DeleteUserInviteResponse, DeleteUserInviteError, TailscaleOpContext>;
|
|
1932
|
+
export type DeleteWebhookError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
1933
|
+
/** Delete webhook Delete a specific webhook. OAuth Scope: `webhooks`. */
|
|
1934
|
+
export declare const deleteWebhook: API.OperationMethod<DeleteWebhookRequest, DeleteWebhookResponse, DeleteWebhookError, TailscaleOpContext>;
|
|
1935
|
+
export type DisableLogStreamingError = Forbidden | NotFound | FeatureNotAvailable | TailnetNotFound | TailscaleOpError;
|
|
1936
|
+
/** Disable log streaming Delete the log streaming configuration for the provided log type. OAuth Scope: `log_streaming`. */
|
|
1937
|
+
export declare const disableLogStreaming: API.OperationMethod<DisableLogStreamingRequest, DisableLogStreamingResponse, DisableLogStreamingError, TailscaleOpContext>;
|
|
1938
|
+
export type ExpireDeviceKeyError = NotFound | TailscaleOpError;
|
|
1939
|
+
/** Expire a device's key Mark a device's node key as expired. This will require the device to re-authenticate in order to connect to the tailnet. The device must belong to the requesting user's tailnet. OAuth Scope: `devices:core`. */
|
|
1940
|
+
export declare const expireDeviceKey: API.OperationMethod<ExpireDeviceKeyRequest, ExpireDeviceKeyResponse, ExpireDeviceKeyError, TailscaleOpContext>;
|
|
1941
|
+
export type GetAwsExternalIdError = Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1942
|
+
/** Create or get AWS external id Get an AWS external id to use for streaming tailnet logs to S3 using role-based authentication, creating a new one for this tailnet when necessary. OAuth Scope: `log_streaming`. */
|
|
1943
|
+
export declare const getAwsExternalId: API.OperationMethod<GetAwsExternalIdRequest, AwsExternalId, GetAwsExternalIdError, TailscaleOpContext>;
|
|
1944
|
+
export type GetContactsError = Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1945
|
+
/** Get contacts Retrieve the tailnet's current contacts. OAuth Scope: `account_settings:read`. */
|
|
1946
|
+
export declare const getContacts: API.OperationMethod<GetContactsRequest, GetContactsResponse, GetContactsError, TailscaleOpContext>;
|
|
1947
|
+
export type GetDeviceError = BadRequest | NotFound | TailscaleOpError;
|
|
1948
|
+
/** Get a device Retrieve the details for the specified device. OAuth Scope: `devices:core:read`. */
|
|
1949
|
+
export declare const getDevice: API.OperationMethod<GetDeviceRequest, Device, GetDeviceError, TailscaleOpContext>;
|
|
1950
|
+
export type GetDeviceInviteError = NotFound | DeviceInviteNotFound | TailscaleOpError;
|
|
1951
|
+
/** Get a device invite Retrieve a specific device invite. OAuth Scope: `device_invites:read`. */
|
|
1952
|
+
export declare const getDeviceInvite: API.OperationMethod<GetDeviceInviteRequest, DeviceInvite, GetDeviceInviteError, TailscaleOpContext>;
|
|
1953
|
+
export type GetDevicePostureAttributesError = NotFound | TailscaleOpError;
|
|
1954
|
+
/** Get device posture attributes Retrieve all posture attributes for the specified device. This returns a JSON object of all the key-value pairs of posture attributes for the device. OAuth Scope: `devices:posture_attributes:read`. */
|
|
1955
|
+
export declare const getDevicePostureAttributes: API.OperationMethod<GetDevicePostureAttributesRequest, DevicePostureAttributes, GetDevicePostureAttributesError, TailscaleOpContext>;
|
|
1956
|
+
export type GetDnsConfigurationError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
1957
|
+
/** Get DNS configuration Retrieves the full DNS configuration for a tailnet, including global nameservers, split DNS routes, search paths, and MagicDNS configuration. */
|
|
1958
|
+
export declare const getDnsConfiguration: API.OperationMethod<GetDnsConfigurationRequest, DnsConfiguration, GetDnsConfigurationError, TailscaleOpContext>;
|
|
1959
|
+
export type GetDnsPreferencesError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
1960
|
+
/** Get DNS preferences Retrieves the DNS preferences that are currently set for the given tailnet. */
|
|
1961
|
+
export declare const getDnsPreferences: API.OperationMethod<GetDnsPreferencesRequest, DnsPreferences, GetDnsPreferencesError, TailscaleOpContext>;
|
|
1962
|
+
export type GetKeyError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
1963
|
+
/** Get key Returns a JSON object with information about a specific api access token, OAuth client, federated identity, or auth key, such as its creation and expiration dates and its capabilities. OAuth Scope: `api_access_tokens:read` grants access to personal API access tokens. OAuth Scope: `auth_keys:read` grants access to machine auth keys. OAuth Scope: `oauth_keys:read` grants access to OAuth clients and OAuth tokens. OAuth Scope: `federated_keys:read` grants access to federated identities. */
|
|
1964
|
+
export declare const getKey: API.OperationMethod<GetKeyRequest, Key, GetKeyError, TailscaleOpContext>;
|
|
1965
|
+
export type GetLogStreamingConfigurationError = NotFound | FeatureNotAvailable | TailnetNotFound | TailscaleOpError;
|
|
1966
|
+
/** Get log streaming configuration Retrieve the log streaming configuration for the provided log type. OAuth Scope: `log_streaming:read`. */
|
|
1967
|
+
export declare const getLogStreamingConfiguration: API.OperationMethod<GetLogStreamingConfigurationRequest, LogstreamEndpointConfigurationOutput, GetLogStreamingConfigurationError, TailscaleOpContext>;
|
|
1968
|
+
export type GetLogStreamingStatusError = NotFound | FeatureNotAvailable | TailnetNotFound | TailscaleOpError;
|
|
1969
|
+
/** Get log streaming status Retrieve the log streaming status for the provided log type. OAuth Scope: `log_streaming:read`. */
|
|
1970
|
+
export declare const getLogStreamingStatus: API.OperationMethod<GetLogStreamingStatusRequest, LogstreamEndpointPublishingStatus, GetLogStreamingStatusError, TailscaleOpContext>;
|
|
1971
|
+
export type GetOAuthAppError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1972
|
+
/** Get OAuth app Retrieve a specific OAuth app. OAuth Scope: `oauth_apps:read`. */
|
|
1973
|
+
export declare const getOAuthApp: API.OperationMethod<GetOAuthAppRequest, OAuthApp, GetOAuthAppError, TailscaleOpContext>;
|
|
1974
|
+
export type GetPolicyFileError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1975
|
+
/** Get policy file Retrieves the current policy file for the given tailnet; this includes the ACL along with the rules and tests that have been defined. This method can return the policy file as JSON or HuJSON, depending on the Accept header. The response also includes an `ETag` header, which can be optionally included when [setting the policy file](#tag/policyfile/post/tailnet/{tailnet}/acl) to avoid missed updates. Learn more about [policy file ACL syntax](https://tailscale.com/docs/reference/syntax/policy-file). OAuth Scope: `policy_file:read`. */
|
|
1976
|
+
export declare const getPolicyFile: API.OperationMethod<GetPolicyFileRequest, GetPolicyFileResponse, GetPolicyFileError, TailscaleOpContext>;
|
|
1977
|
+
export type GetPostureIntegrationError = NotFound | TailscaleOpError;
|
|
1978
|
+
/** Get a posture integration Gets the posture integration identified by `{id}`. OAuth Scope: `feature_settings:read`. */
|
|
1979
|
+
export declare const getPostureIntegration: API.OperationMethod<GetPostureIntegrationRequest, PostureIntegrationOutput, GetPostureIntegrationError, TailscaleOpContext>;
|
|
1980
|
+
export type GetPostureIntegrationsError = Forbidden | TailnetNotFound | TailscaleOpError;
|
|
1981
|
+
/** List all posture integrations List all of the posture integrations for a tailnet. OAuth Scope: `feature_settings:read`. */
|
|
1982
|
+
export declare const getPostureIntegrations: API.OperationMethod<GetPostureIntegrationsRequest, GetPostureIntegrationsResponse, GetPostureIntegrationsError, TailscaleOpContext>;
|
|
1983
|
+
export type GetServiceError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1984
|
+
/** Get a Service Retrieve the details for the specified Service. OAuth Scope: `services:read`. */
|
|
1985
|
+
export declare const getService: API.OperationMethod<GetServiceRequest, VIPServiceInfo, GetServiceError, TailscaleOpContext>;
|
|
1986
|
+
export type GetServiceDeviceApprovalError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1987
|
+
/** Get approval status of Service on a device Retrieve the approval status of the specified Service on a specific device. OAuth Scope: `services`, `devices:core`. */
|
|
1988
|
+
export declare const getServiceDeviceApproval: API.OperationMethod<GetServiceDeviceApprovalRequest, VIPServiceApproval, GetServiceDeviceApprovalError, TailscaleOpContext>;
|
|
1989
|
+
export type GetSplitDnsError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
1990
|
+
/** Get split DNS Retrieves the split DNS settings, which is a map from domains to lists of nameservers, that is currently set for the given tailnet. */
|
|
1991
|
+
export declare const getSplitDns: API.OperationMethod<GetSplitDnsRequest, GetSplitDnsResponse, GetSplitDnsError, TailscaleOpContext>;
|
|
1992
|
+
export type GetTailnetSettingsError = BadRequest | NotFound | TailnetNotFound | TailscaleOpError;
|
|
1993
|
+
/** Get tailnet settings Retrieve the settings for a specific tailnet. OAuth Scope: `feature_settings:read` - required to view all settings except those governed by the below scopes. OAuth Scope: `logs:network:read` - required to view the `networkFlowLoggingOn` setting. OAuth Scope: `networking_settings:read` - required to view the `httpsCertificates` setting. OAuth Scope: `policy_file:read` - required to view the `aclsExternallyManagedOn` & `aclsExternalLink` settings. */
|
|
1994
|
+
export declare const getTailnetSettings: API.OperationMethod<GetTailnetSettingsRequest, TailnetSettings, GetTailnetSettingsError, TailscaleOpContext>;
|
|
1995
|
+
export type GetUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
1996
|
+
/** Get a user Retrieve details about the specified user. OAuth Scope: `users:read`. */
|
|
1997
|
+
export declare const getUser: API.OperationMethod<GetUserRequest, User, GetUserError, TailscaleOpContext>;
|
|
1998
|
+
export type GetUserInviteError = NotFound | TailscaleOpError;
|
|
1999
|
+
/** Get a user invite Retrieve a specific user invite. */
|
|
2000
|
+
export declare const getUserInvite: API.OperationMethod<GetUserInviteRequest, UserInvite, GetUserInviteError, TailscaleOpContext>;
|
|
2001
|
+
export type GetWebhookError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2002
|
+
/** Get webhook Retrieve a specific webhook. OAuth Scope: `webhooks:read`. */
|
|
2003
|
+
export declare const getWebhook: API.OperationMethod<GetWebhookRequest, Webhook, GetWebhookError, TailscaleOpContext>;
|
|
2004
|
+
export type ListConfigurationAuditLogsError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2005
|
+
/** List configuration audit logs List all configuration audit logs for a tailnet. OAuth Scope: `logs:configuration:read`. */
|
|
2006
|
+
export declare const listConfigurationAuditLogs: API.OperationMethod<ListConfigurationAuditLogsRequest, ListConfigurationAuditLogsResponse, ListConfigurationAuditLogsError, TailscaleOpContext>;
|
|
2007
|
+
export type ListDeviceInvitesError = NotFound | TailscaleOpError;
|
|
2008
|
+
/** List device invites List all share invites for a device. OAuth Scope: `device_invites:read`. */
|
|
2009
|
+
export declare const listDeviceInvites: API.OperationMethod<ListDeviceInvitesRequest, ListDeviceInvitesResponse, ListDeviceInvitesError, TailscaleOpContext>;
|
|
2010
|
+
export type ListDeviceRoutesError = NotFound | TailscaleOpError;
|
|
2011
|
+
/** List device routes Retrieve the list of subnet routes that a device is advertising, as well as those that are enabled for it. Routes must be both advertised and enabled for a device to act as a subnet router or exit node. If a device has advertised routes, they are not exposed to traffic until they are enabled. Conversely, if routes are enabled before they are advertised, they are not available for routing until the device in question has advertised them. Learn more about [subnet routers](/docs/features/subnet-routers) and [exit nodes](/docs/features/exit-nodes). OAuth Scope: `devices:routes:read`. */
|
|
2012
|
+
export declare const listDeviceRoutes: API.OperationMethod<ListDeviceRoutesRequest, DeviceRoutes, ListDeviceRoutesError, TailscaleOpContext>;
|
|
2013
|
+
export type ListDnsNameserversError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2014
|
+
/** List DNS nameservers Lists the global DNS nameservers for a tailnet. */
|
|
2015
|
+
export declare const listDnsNameservers: API.OperationMethod<ListDnsNameserversRequest, ListDnsNameserversResponse, ListDnsNameserversError, TailscaleOpContext>;
|
|
2016
|
+
export type ListDnsSearchPathsError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2017
|
+
/** List DNS search paths Retrieves the list of search paths, also referred to as *search domains*, that is currently set for the given tailnet. */
|
|
2018
|
+
export declare const listDnsSearchPaths: API.OperationMethod<ListDnsSearchPathsRequest, DnsSearchPaths, ListDnsSearchPathsError, TailscaleOpContext>;
|
|
2019
|
+
export type ListNetworkFlowLogsError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2020
|
+
/** List network flow logs List all network flow logs for a tailnet. OAuth Scope: `logs:network:read`. */
|
|
2021
|
+
export declare const listNetworkFlowLogs: API.OperationMethod<ListNetworkFlowLogsRequest, ListNetworkFlowLogsResponse, ListNetworkFlowLogsError, TailscaleOpContext>;
|
|
2022
|
+
export type ListOAuthAppsError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2023
|
+
/** List OAuth apps List all OAuth apps for a tailnet. OAuth Scope: `oauth_apps:read`. */
|
|
2024
|
+
export declare const listOAuthApps: API.OperationMethod<ListOAuthAppsRequest, ListOAuthAppsResponse, ListOAuthAppsError, TailscaleOpContext>;
|
|
2025
|
+
export type ListOrganizationTailnetsError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2026
|
+
/** List tailnets List all tailnets in the organization, including the original tailnet and any [API-only tailnets](https://tailscale.com/docs/features/tailnet-creation-api) created with the tailnet creation API. OAuth Scope: `tailnets:read`. */
|
|
2027
|
+
export declare const listOrganizationTailnets: API.PaginatedOperationMethod<ListOrganizationTailnetsRequest, ListOrganizationTailnetsResponse, ListOrganizationTailnetsError, TailscaleOpContext, OrganizationTailnet>;
|
|
2028
|
+
export type ListServiceHostsError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2029
|
+
/** List devices hosting a Service List all devices that are hosting the specified Service. OAuth Scope: `services`, `devices:core`. */
|
|
2030
|
+
export declare const listServiceHosts: API.OperationMethod<ListServiceHostsRequest, ListServiceHostsResponse, ListServiceHostsError, TailscaleOpContext>;
|
|
2031
|
+
export type ListServicesError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2032
|
+
/** List all Services List all Services configured for the tailnet. This includes all Services in the "advertised" tab of the Services page in the Tailscale admin console. OAuth Scope: `services:read`. */
|
|
2033
|
+
export declare const listServices: API.OperationMethod<ListServicesRequest, ListServicesResponse, ListServicesError, TailscaleOpContext>;
|
|
2034
|
+
export type ListTailnetDevicesError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2035
|
+
/** List tailnet devices Lists the devices in a tailnet. OAuth Scope: `devices:core:read`. */
|
|
2036
|
+
export declare const listTailnetDevices: API.OperationMethod<ListTailnetDevicesRequest, ListTailnetDevicesResponse, ListTailnetDevicesError, TailscaleOpContext>;
|
|
2037
|
+
export type ListTailnetKeysError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2038
|
+
/** List tailnet keys Returns a list of active auth keys, API access tokens and trust credentials. If the parameter {all} was not specified, the set of keys returned depends on the access token used to make the request: - If the API call is made with a user-owned API access token, this returns only the keys owned by that user. - If the API call is made with an access token derived from an OAuth client, this returns all OAuth clients for the tailnet. - If the API call is made with an access token derived from a federated identity, this returns all federated identities for the tailnet. OAuth Scope: `api_access_tokens:read` grants access to personal API access tokens. OAuth Scope: `auth_keys:read` grants access to machine auth keys. OAuth Scope: `oauth_keys:read` grants access to OAuth clients and OAuth tokens. OAuth Scope: `federated_keys:read` grants access to federated identities. */
|
|
2039
|
+
export declare const listTailnetKeys: API.OperationMethod<ListTailnetKeysRequest, ListTailnetKeysResponse, ListTailnetKeysError, TailscaleOpContext>;
|
|
2040
|
+
export type ListUserInvitesError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2041
|
+
/** List user invites List all open (not yet accepted) user invites to the tailnet. */
|
|
2042
|
+
export declare const listUserInvites: API.OperationMethod<ListUserInvitesRequest, ListUserInvitesResponse, ListUserInvitesError, TailscaleOpContext>;
|
|
2043
|
+
export type ListUsersError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2044
|
+
/** List users List all users of a tailnet. OAuth Scope: `users:read`. */
|
|
2045
|
+
export declare const listUsers: API.OperationMethod<ListUsersRequest, ListUsersResponse, ListUsersError, TailscaleOpContext>;
|
|
2046
|
+
export type ListWebhooksError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2047
|
+
/** List webhooks List all webhooks for a tailnet. OAuth Scope: `webhooks:read`. */
|
|
2048
|
+
export declare const listWebhooks: API.OperationMethod<ListWebhooksRequest, ListWebhooksResponse, ListWebhooksError, TailscaleOpContext>;
|
|
2049
|
+
export type PreviewRuleMatchesError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2050
|
+
/** Preview rule matches When given a user or IP port to match against, returns the tailnet policy rules that apply to that resource, without saving the policy file to the server. */
|
|
2051
|
+
export declare const previewRuleMatches: API.OperationMethod<PreviewRuleMatchesRequest, PreviewRuleMatchesResponse, PreviewRuleMatchesError, TailscaleOpContext>;
|
|
2052
|
+
export type ResendContactVerificationEmailError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2053
|
+
/** Resend verification email Resends the verification email for this contact, if and only if verification is still pending. OAuth Scope: `account_settings`. */
|
|
2054
|
+
export declare const resendContactVerificationEmail: API.OperationMethod<ResendContactVerificationEmailRequest, ResendContactVerificationEmailResponse, ResendContactVerificationEmailError, TailscaleOpContext>;
|
|
2055
|
+
export type ResendDeviceInviteError = NotFound | TailscaleOpError;
|
|
2056
|
+
/** Resend a device invite Resend a device invite by email. You can only use this if the specified invite was originally created with an email specified. Refer to [creating device invites for a device](#tag/deviceinvites/post/device/{deviceId}/device-invites). Note: Invite resends are rate limited to one per minute. Note that device invites cannot be resent using an API access token generated from an OAuth client as the shared device is scoped to a user. */
|
|
2057
|
+
export declare const resendDeviceInvite: API.OperationMethod<ResendDeviceInviteRequest, ResendDeviceInviteResponse, ResendDeviceInviteError, TailscaleOpContext>;
|
|
2058
|
+
export type ResendUserInviteError = NotFound | TailscaleOpError;
|
|
2059
|
+
/** Resend a user invite Resend a user invite by email. You can only use this if the specified invite was originally created with an email specified. Refer to [creating user invites for a tailnet](#tag/userinvites/post/tailnet/{tailnet}/user-invites). Note: Invite resends are rate limited to one per minute. > U+24D8 Only permitted for user-owned keys, because invites require an inviting user. */
|
|
2060
|
+
export declare const resendUserInvite: API.OperationMethod<ResendUserInviteRequest, ResendUserInviteResponse, ResendUserInviteError, TailscaleOpContext>;
|
|
2061
|
+
export type RestoreUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2062
|
+
/** Restore a user Restores a suspended user's access to their tailnet. Learn more about [restoring users](/docs/features/sharing/how-to/remove-team-members#restoring-users). OAuth Scope: `users`. > U+24D8 User-based access tokens cannot restore their own user. */
|
|
2063
|
+
export declare const restoreUser: API.OperationMethod<RestoreUserRequest, RestoreUserResponse, RestoreUserError, TailscaleOpContext>;
|
|
2064
|
+
export type RotateWebhookSecretError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2065
|
+
/** Rotate webhook secret Rotate and generate a new secret for a specific webhook. This secret is used for generating the `Tailscale-Webhook-Signature` header in requests sent to the endpoint URL. Learn more about [verifying webhook event signatures](/docs/features/webhooks#verifying-an-event-signature). OAuth Scope: `webhooks`. */
|
|
2066
|
+
export declare const rotateWebhookSecret: API.OperationMethod<RotateWebhookSecretRequest, Webhook, RotateWebhookSecretError, TailscaleOpContext>;
|
|
2067
|
+
export type SetCustomDevicePostureAttributesError = NotFound | FeatureNotAvailable | TailscaleOpError;
|
|
2068
|
+
/** Set custom device posture attributes Create or update a custom posture attribute on the specified device. User-managed attributes must be in the custom namespace, which is indicated by prefixing the attribute key with `custom:`. OAuth Scope: `devices:posture_attributes`. */
|
|
2069
|
+
export declare const setCustomDevicePostureAttributes: API.OperationMethod<SetCustomDevicePostureAttributesRequest, DevicePostureAttributes, SetCustomDevicePostureAttributesError, TailscaleOpContext>;
|
|
2070
|
+
export type SetDeviceIpError = BadRequest | NotFound | TailscaleOpError;
|
|
2071
|
+
/** Set device IPv4 address When a device is added to a tailnet, its Tailscale IPv4 address is set at random either from the CGNAT range, or a subset of the CGNAT range specified by an [ip pool](https://tailscale.com/docs/reference/ip-pool). This endpoint can be used to replace the existing IPv4 address with a specific value. This action will break any existing connections to this machine. You will need to reconnect to this machine using the new IP address. You may also need to flush your DNS cache. OAuth Scope: `devices:core`. */
|
|
2072
|
+
export declare const setDeviceIp: API.OperationMethod<SetDeviceIpRequest, SetDeviceIpResponse, SetDeviceIpError, TailscaleOpContext>;
|
|
2073
|
+
export type SetDeviceNameError = NotFound | TailscaleOpError;
|
|
2074
|
+
/** Set device name When a device is added to a tailnet, its Tailscale [device name](https://tailscale.com/docs/concepts/machine-names) (also sometimes referred to as machine name) is generated from its OS hostname. The device name is the canonical name for the device on your tailnet. Device name changes immediately get propogated through your tailnet, so be aware that any existing [Magic DNS](https://tailscale.com/docs/features/magicdns) URLs using the old name will no longer work. OAuth Scope: `devices:core`. */
|
|
2075
|
+
export declare const setDeviceName: API.OperationMethod<SetDeviceNameRequest, SetDeviceNameResponse, SetDeviceNameError, TailscaleOpContext>;
|
|
2076
|
+
export type SetDeviceRoutesError = NotFound | TailscaleOpError;
|
|
2077
|
+
/** Set device routes Set a device's enabled subnet routes by replacing the existing list of subnet routes with the supplied parameters. [Advertised routes](/docs/features/subnet-routers#advertise-subnet-routes) cannot be set through the API, since they must be set directly on the device. Routes must be both advertised and enabled for a device to act as a subnet router or exit node. If a device has advertised routes, they are not exposed to traffic until they are enabled. Conversely, if routes are enabled before they are advertised, they are not available for routing until the device in question has advertised them. Learn more about [subnet routers](/docs/features/subnet-routers) and [exit nodes](/docs/features/exit-nodes). OAuth Scope: `devices:routes`. */
|
|
2078
|
+
export declare const setDeviceRoutes: API.OperationMethod<SetDeviceRoutesRequest, DeviceRoutes, SetDeviceRoutesError, TailscaleOpContext>;
|
|
2079
|
+
export type SetDeviceTagsError = BadRequest | TailscaleOpError;
|
|
2080
|
+
/** Set device tags Tags let you assign an identity to a device that is separate from human users, and use that identity as part of an ACL to restrict access. Tags are similar to role accounts, but more flexible. Tags are created in the tailnet policy file by defining the tag and an owner of the tag. Once a device is tagged, the tag is the owner of that device. A single node can have multiple tags assigned. Consult the policy file for your tailnet in the [admin console](https://login.tailscale.com/admin/acls) for the list of tags that have been created for your tailnet. Learn more about [tags](https://tailscale.com/docs/features/tags). OAuth Scope: `devices:core`. */
|
|
2081
|
+
export declare const setDeviceTags: API.OperationMethod<SetDeviceTagsRequest, SetDeviceTagsResponse, SetDeviceTagsError, TailscaleOpContext>;
|
|
2082
|
+
export type SetDnsConfigurationError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2083
|
+
/** Set DNS configuration Replaces the DNS configuration for the given tailnet. - `nameservers` defines the global resolvers to use when `preferences.overrideLocalDNS` is true. - `splitDNS` maps DNS name suffixes (domains) to lists of resolvers for Split DNS. - `searchPaths` sets custom DNS search domain paths. - `preferences.overrideLocalDNS` controls whether resolvers in `nameservers` override the local OS configuration (true) or are used or local resolvers are used (false). Defaults to false. - `preferences.magicDNS` enables MagicDNS. Defaults to false. */
|
|
2084
|
+
export declare const setDnsConfiguration: API.OperationMethod<SetDnsConfigurationRequest, DnsConfiguration, SetDnsConfigurationError, TailscaleOpContext>;
|
|
2085
|
+
export type SetDnsNameserversError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2086
|
+
/** Set DNS nameservers Replaces the list of global DNS nameservers for the given tailnet with the list supplied in the request. Note that changing the list of DNS nameservers may also affect the status of MagicDNS (if MagicDNS is on; learn about [MagicDNS](https://tailscale.com/docs/features/magicdns)). If all nameservers have been removed, MagicDNS will be automatically disabled (until explicitly turned back on by the user). */
|
|
2087
|
+
export declare const setDnsNameservers: API.OperationMethod<SetDnsNameserversRequest, SetDnsNameserversResponse, SetDnsNameserversError, TailscaleOpContext>;
|
|
2088
|
+
export type SetDnsPreferencesError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2089
|
+
/** Set DNS preferences Set the DNS preferences for a tailnet; specifically, the MagicDNS setting. Note that MagicDNS is dependent on DNS servers. Learn about [MagicDNS](https://tailscale.com/docs/features/magicdns). If there is at least one DNS server, then MagicDNS can be enabled. Otherwise, it returns an error. Note that removing all nameservers will turn off MagicDNS. To reenable it, nameservers must be added back, and MagicDNS must be explicitly turned on. */
|
|
2090
|
+
export declare const setDnsPreferences: API.OperationMethod<SetDnsPreferencesRequest, DnsPreferences, SetDnsPreferencesError, TailscaleOpContext>;
|
|
2091
|
+
export type SetDnsSearchPathsError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2092
|
+
/** Set DNS search paths Replaces the list of search paths for the given tailnet. */
|
|
2093
|
+
export declare const setDnsSearchPaths: API.OperationMethod<SetDnsSearchPathsRequest, DnsSearchPaths, SetDnsSearchPathsError, TailscaleOpContext>;
|
|
2094
|
+
export type SetKeyError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2095
|
+
/** Set key Set the configuration for an existing OAuth client or federated identity. OAuth Scope: `oauth_keys` grants access to OAuth clients. OAuth Scope: `federated_keys` grants access to federated identities. */
|
|
2096
|
+
export declare const setKey: API.OperationMethod<SetKeyRequest, Key, SetKeyError, TailscaleOpContext>;
|
|
2097
|
+
export type SetLogStreamingConfigurationError = BadRequest | Forbidden | NotFound | FeatureNotAvailable | TailnetNotFound | TailscaleOpError;
|
|
2098
|
+
/** Set log streaming configuration Set the log streaming configuration for the provided log type. OAuth Scope: `log_streaming`. `device_invites` and `policy_file` are also required if streaming to a [private endpoint](https://tailscale.com/docs/features/logging/log-streaming#private-endpoints). */
|
|
2099
|
+
export declare const setLogStreamingConfiguration: API.OperationMethod<SetLogStreamingConfigurationRequest, SetLogStreamingConfigurationResponse, SetLogStreamingConfigurationError, TailscaleOpContext>;
|
|
2100
|
+
export type SetPolicyFileError = BadRequest | Forbidden | NotFound | PreconditionFailed | TailnetNotFound | TailscaleOpError;
|
|
2101
|
+
/** Set policy file Sets the ACL for the given tailnet. HuJSON and JSON are both accepted inputs. An `If-Match` header can be set to avoid missed updates. On success, returns the updated ACL in JSON or HuJSON according to the `Accept` header. Otherwise, errors are returned for incorrectly defined ACLs, ACLs with failing tests on attempted updates, and mismatched `If-Match` header and `ETag`. Learn more about [policy file ACL syntax](https://tailscale.com/docs/reference/syntax/policy-file). OAuth Scope: `policy_file`. */
|
|
2102
|
+
export declare const setPolicyFile: API.OperationMethod<SetPolicyFileRequest, SetPolicyFileResponse, SetPolicyFileError, TailscaleOpContext>;
|
|
2103
|
+
export type SetSplitDnsError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2104
|
+
/** Set split DNS Replaces the split DNS settings for a given tailnet. Setting the value of a mapping to `null` clears the nameservers for that domain. Sending an empty object clears nameservers for all domains. */
|
|
2105
|
+
export declare const setSplitDns: API.OperationMethod<SetSplitDnsRequest, SetSplitDnsResponse, SetSplitDnsError, TailscaleOpContext>;
|
|
2106
|
+
export type SuspendUserError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2107
|
+
/** Suspend a user Suspends a user from their tailnet. Learn more about [suspending users](/docs/features/sharing/how-to/remove-team-members#suspending-users). OAuth Scope: `users`. > U+24D8 User-based access tokens cannot suspend their own user. */
|
|
2108
|
+
export declare const suspendUser: API.OperationMethod<SuspendUserRequest, SuspendUserResponse, SuspendUserError, TailscaleOpContext>;
|
|
2109
|
+
export type TestWebhookError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2110
|
+
/** Test a webhook Test a specific webhook by sending out a test event to the endpoint URL. This endpoint queues the event which is sent out asynchronously. If your webhook is configured correctly, within a few seconds your webhook endpoint should receive an event with type of "test". OAuth Scope: `webhooks`. */
|
|
2111
|
+
export declare const testWebhook: API.OperationMethod<TestWebhookRequest, TestWebhookResponse, TestWebhookError, TailscaleOpContext>;
|
|
2112
|
+
export type UpdateContactError = Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2113
|
+
/** Update contact Update the preferences for this type of contact. If the email address has changed, the system will send a verification email to confirm the change. OAuth Scope: `account_settings`. */
|
|
2114
|
+
export declare const updateContact: API.OperationMethod<UpdateContactRequest, UpdateContactResponse, UpdateContactError, TailscaleOpContext>;
|
|
2115
|
+
export type UpdateDeviceKeyError = NotFound | TailscaleOpError;
|
|
2116
|
+
/** Update device key When a device is added to a tailnet, its key expiry is set according to the tailnet's key expiry setting. If the key is not refreshed and expires, the device can no longer communicate with other devices in the tailnet. OAuth Scope: `devices:core`. */
|
|
2117
|
+
export declare const updateDeviceKey: API.OperationMethod<UpdateDeviceKeyRequest, UpdateDeviceKeyResponse, UpdateDeviceKeyError, TailscaleOpContext>;
|
|
2118
|
+
export type UpdateOAuthAppError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2119
|
+
/** Update OAuth app Update a specific OAuth app. The client secret is not regenerated and is not returned in this response. OAuth Scope: `oauth_apps`. */
|
|
2120
|
+
export declare const updateOAuthApp: API.OperationMethod<UpdateOAuthAppRequest, OAuthApp, UpdateOAuthAppError, TailscaleOpContext>;
|
|
2121
|
+
export type UpdatePostureIntegrationError = Forbidden | NotFound | TailscaleOpError;
|
|
2122
|
+
/** Update a posture integration Updates the posture integration identified by `{id}`. You may omit the `clientSecret` from your request to retain the previously configured `clientSecret`. OAuth Scope: `feature_settings`. */
|
|
2123
|
+
export declare const updatePostureIntegration: API.OperationMethod<UpdatePostureIntegrationRequest, PostureIntegrationOutput, UpdatePostureIntegrationError, TailscaleOpContext>;
|
|
2124
|
+
export type UpdateServiceError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2125
|
+
/** Update a Service Update or create the specified Service. If the Service does not exist, it will create a Service with the provided details. When creating a new Service, the name in the request body must match the serviceName path parameter. When updating an existing Service, the path parameter is the current name of the Service, and the name in the request body can be used to rename the Service. OAuth Scope: `services`. */
|
|
2126
|
+
export declare const updateService: API.OperationMethod<UpdateServiceRequest, VIPServiceInfo, UpdateServiceError, TailscaleOpContext>;
|
|
2127
|
+
export type UpdateServiceDeviceApprovalError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2128
|
+
/** Update approval status of Service on a device Update the approval status of the specified Service on a specific device. OAuth Scope: `services`, `devices:core`. */
|
|
2129
|
+
export declare const updateServiceDeviceApproval: API.OperationMethod<UpdateServiceDeviceApprovalRequest, VIPServiceApproval, UpdateServiceDeviceApprovalError, TailscaleOpContext>;
|
|
2130
|
+
export type UpdateSplitDnsError = NotFound | TailnetNotFound | TailscaleOpError;
|
|
2131
|
+
/** Update split DNS Performs partial updates of the split DNS settings for a given tailnet. Only domains specified in the request map will be modified. Setting the value of a mapping to `null` clears the nameservers for that domain. */
|
|
2132
|
+
export declare const updateSplitDns: API.OperationMethod<UpdateSplitDnsRequest, UpdateSplitDnsResponse, UpdateSplitDnsError, TailscaleOpContext>;
|
|
2133
|
+
export type UpdateTailnetSettingsError = BadRequest | NotFound | FeatureNotAvailable | TailnetNotFound | TailscaleOpError;
|
|
2134
|
+
/** Update tailnet settings Update the settings for a specific tailnet. OAuth Scope: `feature_settings` - required to update all settings except those governed by the below scopes. OAuth Scope: `logs:network` - required to update the `networkFlowLoggingOn` setting. OAuth Scope: `networking_settings` - required to update the `httpsCertificates` setting. OAuth Scope: `policy_file` - required to update the `aclsExternallyManagedOn` & `aclsExternalLink` settings. */
|
|
2135
|
+
export declare const updateTailnetSettings: API.OperationMethod<UpdateTailnetSettingsRequest, TailnetSettings, UpdateTailnetSettingsError, TailscaleOpContext>;
|
|
2136
|
+
export type UpdateUserRoleError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2137
|
+
/** Update user role Update the role for the specified user. Learn more about [user roles](/docs/reference/user-roles). OAuth Scope: `users`. > U+24D8 User-based access tokens cannot update their own user's role. */
|
|
2138
|
+
export declare const updateUserRole: API.OperationMethod<UpdateUserRoleRequest, UpdateUserRoleResponse, UpdateUserRoleError, TailscaleOpContext>;
|
|
2139
|
+
export type UpdateWebhookError = BadRequest | Forbidden | NotFound | TailscaleOpError;
|
|
2140
|
+
/** Update webhook Update a specific webhook. OAuth Scope: `webhooks`. */
|
|
2141
|
+
export declare const updateWebhook: API.OperationMethod<UpdateWebhookRequest, Webhook, UpdateWebhookError, TailscaleOpContext>;
|
|
2142
|
+
export type ValidateAndTestPolicyFileError = BadRequest | Forbidden | NotFound | TailnetNotFound | TailscaleOpError;
|
|
2143
|
+
/** Validate and test policy file This endpoint works in one of two modes, neither of which modifies your current tailnet policy file: - Run ACL tests: When the request body contains ACL tests as a JSON array, Tailscale runs ACL tests against the tailnet's current policy file. Learn more about [ACL tests](https://tailscale.com/docs/reference/syntax/policy-file#tests). - Validate a new policy file: When the request body is a JSON object, Tailscale interprets the body as a hypothetical new tailnet policy file with new ACLs, including any new rules and tests. It validates that the policy file is parsable and runs tests to validate the existing rules. In either case, this method does not modify the tailnet policy file in any way. OAuth Scope: `policy_file:read`. */
|
|
2144
|
+
export declare const validateAndTestPolicyFile: API.OperationMethod<ValidateAndTestPolicyFileRequest, ValidateAndTestPolicyFileResponse, ValidateAndTestPolicyFileError, TailscaleOpContext>;
|
|
2145
|
+
export type ValidateAwsExternalIdError = Forbidden | NotFound | UnprocessableEntity | TailnetNotFound | TailscaleOpError;
|
|
2146
|
+
/** Validate external ID integration with IAM role trust policy Validate that Tailscale can assume your IAM role with (and only with) this external ID. OAuth Scope: `log_streaming`. */
|
|
2147
|
+
export declare const validateAwsExternalId: API.OperationMethod<ValidateAwsExternalIdRequest, ValidateAwsExternalIdResponse, ValidateAwsExternalIdError, TailscaleOpContext>;
|
|
2148
|
+
//# sourceMappingURL=tailscale.d.ts.map
|