@knowttl/technitium-axi 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,178 @@
1
+ import { readFile } from 'node:fs/promises';
2
+ import { randomBytes } from 'node:crypto';
3
+ import { homedir } from 'node:os';
4
+ import { dirname, isAbsolute, join, resolve } from 'node:path';
5
+ import { Ajv } from 'ajv';
6
+ import { PrivateFiles } from './private-file.js';
7
+ import { invalid, ToolError } from './errors.js';
8
+ const profileName = '^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$';
9
+ const files = new PrivateFiles();
10
+ const fields = { origin: 'ORIGIN', auth: 'AUTH', tokenKind: 'TOKEN_KIND', token: 'TOKEN', username: 'USERNAME', caFile: 'CA_FILE', tlsServerName: 'TLS_SERVER_NAME' };
11
+ export function configPath(explicit) {
12
+ const base = process.platform === 'win32' ? process.env.APPDATA ?? join(homedir(), 'AppData', 'Roaming')
13
+ : process.env.XDG_CONFIG_HOME && isAbsolute(process.env.XDG_CONFIG_HOME) ? process.env.XDG_CONFIG_HOME : join(homedir(), '.config');
14
+ return resolve(explicit ?? process.env.TECHNITIUM_AXI_CONFIG ?? join(base, 'technitium-axi', 'config.json'));
15
+ }
16
+ function statePath() {
17
+ const base = process.platform === 'win32' ? process.env.LOCALAPPDATA ?? join(homedir(), 'AppData', 'Local')
18
+ : process.env.XDG_STATE_HOME && isAbsolute(process.env.XDG_STATE_HOME) ? process.env.XDG_STATE_HOME : join(homedir(), '.local', 'state');
19
+ return join(base, 'technitium-axi', 'credentials.json');
20
+ }
21
+ function binding(profile) {
22
+ return { origin: profile.origin, username: profile.username ?? null, tokenKind: profile.tokenKind,
23
+ tlsServerName: profile.tlsServerName ?? null, caFile: profile.caFile ?? null };
24
+ }
25
+ async function storedCredentials() {
26
+ try {
27
+ return JSON.parse(await files.read(statePath()));
28
+ }
29
+ catch (error) {
30
+ if (error.code !== 'ENOENT')
31
+ throw error;
32
+ return {};
33
+ }
34
+ }
35
+ export async function storeSession(name, profile, token) {
36
+ const stored = await storedCredentials();
37
+ stored[name] = { binding: binding(profile), token };
38
+ await files.write(statePath(), JSON.stringify(stored));
39
+ }
40
+ export async function removeSession(name, profile, token) {
41
+ const stored = await storedCredentials();
42
+ if (!stored[name] || stored[name].token !== token || JSON.stringify(stored[name].binding) !== JSON.stringify(binding(profile)))
43
+ return false;
44
+ delete stored[name];
45
+ await files.write(statePath(), JSON.stringify(stored));
46
+ return true;
47
+ }
48
+ export async function acquisitionKey() {
49
+ const path = join(dirname(statePath()), 'acquisition-key');
50
+ try {
51
+ await files.create(path, randomBytes(32).toString('hex'));
52
+ }
53
+ catch (error) {
54
+ if (error.code !== 'EEXIST')
55
+ throw error;
56
+ }
57
+ return files.read(path);
58
+ }
59
+ export function readOnly() {
60
+ const value = process.env.TECHNITIUM_AXI_READ_ONLY?.toLowerCase();
61
+ if (value === undefined || ['0', 'false'].includes(value))
62
+ return false;
63
+ if (['1', 'true'].includes(value))
64
+ return true;
65
+ return invalid('TECHNITIUM_AXI_READ_ONLY must be a boolean');
66
+ }
67
+ async function validator() {
68
+ const schema = JSON.parse(await readFile(new URL('../axi-credential.schema.json', import.meta.url), 'utf8'));
69
+ const ajv = new Ajv({ strict: true });
70
+ ajv.addKeyword({ keyword: 'x-secret', schemaType: 'boolean' });
71
+ return { profile: ajv.compile(schema), config: ajv.compile({
72
+ type: 'object', additionalProperties: false, required: ['version', 'profiles'],
73
+ properties: { version: { const: 1 }, defaultProfile: { type: 'string', pattern: profileName },
74
+ profiles: { type: 'object', propertyNames: { pattern: profileName }, additionalProperties: schema } },
75
+ }) };
76
+ }
77
+ export async function loadConfig(path, explicit = false) {
78
+ let raw;
79
+ try {
80
+ raw = await files.read(path, false);
81
+ }
82
+ catch (error) {
83
+ if (error.code !== 'ENOENT')
84
+ throw error;
85
+ if (explicit)
86
+ invalid('Selected config file does not exist');
87
+ return { version: 1, profiles: {} };
88
+ }
89
+ let config;
90
+ try {
91
+ config = JSON.parse(raw);
92
+ }
93
+ catch {
94
+ invalid('Config must contain valid JSON');
95
+ }
96
+ if (!(await validator()).config(config))
97
+ invalid('Invalid config, profile fields or SecretRef');
98
+ for (const profile of Object.values(config.profiles)) {
99
+ validateOrigin(profile);
100
+ if (profile.caFile)
101
+ profile.caFile = resolve(dirname(path), profile.caFile);
102
+ }
103
+ if (config.defaultProfile && !Object.hasOwn(config.profiles, config.defaultProfile))
104
+ invalid('Default profile does not exist');
105
+ return config;
106
+ }
107
+ export async function selectProfile(options) {
108
+ readOnly();
109
+ const path = configPath(options.config);
110
+ const config = await loadConfig(path, options.config !== undefined || process.env.TECHNITIUM_AXI_CONFIG !== undefined);
111
+ const requested = options.profile ?? process.env.TECHNITIUM_AXI_PROFILE;
112
+ const envFields = Object.entries(fields).filter(([, field]) => process.env[`TECHNITIUM_AXI_${field}`] !== undefined);
113
+ let name;
114
+ let source;
115
+ let profile;
116
+ if (requested !== undefined) {
117
+ if (!new RegExp(profileName).test(requested))
118
+ invalid('Invalid profile name');
119
+ const selected = config.profiles[requested];
120
+ if (!selected)
121
+ throw new ToolError('PROFILE_NOT_FOUND', 'Selected profile does not exist', 'Run technitium-axi profile list');
122
+ name = requested;
123
+ source = options.profile !== undefined ? 'flag' : 'profile-env';
124
+ profile = selected;
125
+ }
126
+ else if (envFields.length) {
127
+ const value = Object.fromEntries(envFields.map(([field, suffix]) => [field, field === 'token'
128
+ ? { env: 'TECHNITIUM_AXI_TOKEN' } : process.env[`TECHNITIUM_AXI_${suffix}`]]));
129
+ if (!(await validator()).profile(value))
130
+ invalid('Incomplete or invalid environment profile');
131
+ if (value.caFile && !isAbsolute(value.caFile))
132
+ invalid('Environment caFile must be an absolute path');
133
+ name = 'env';
134
+ source = 'environment';
135
+ profile = value;
136
+ }
137
+ else {
138
+ const names = Object.keys(config.profiles);
139
+ const selected = config.defaultProfile ?? (names.length === 1 ? names[0] : undefined);
140
+ if (!selected)
141
+ throw new ToolError(names.length ? 'PROFILE_AMBIGUOUS' : 'PROFILE_REQUIRED', 'Select a credential profile', 'Use --config <file> --profile <name>');
142
+ name = selected;
143
+ source = config.defaultProfile ? 'default' : 'sole';
144
+ profile = config.profiles[name];
145
+ }
146
+ validateOrigin(profile);
147
+ const tokenRef = profile.token ?? { env: 'TECHNITIUM_AXI_TOKEN' };
148
+ const tokenSource = 'env' in tokenRef ? { env: tokenRef.env } : 'file' in tokenRef ? { file: tokenRef.file } : { stored: statePath() };
149
+ return { name, source, path, profile, tokenSource, async token() {
150
+ let token;
151
+ if ('env' in tokenRef)
152
+ token = process.env[tokenRef.env];
153
+ else if ('file' in tokenRef)
154
+ token = (await files.read(tokenRef.file)).replace(/^\uFEFF/, '').trimEnd();
155
+ else {
156
+ const stored = await storedCredentials();
157
+ const entry = stored[name];
158
+ if (entry && JSON.stringify(entry.binding) === JSON.stringify(binding(profile)))
159
+ token = entry.token;
160
+ }
161
+ if (!token)
162
+ throw new ToolError('AUTH_REQUIRED', 'A supplied token is required', 'Set the environment variable or protected file named by the selected token SecretRef', 1);
163
+ if (/[\s\x00-\x1f\x7f]/.test(token))
164
+ invalid('Token contains invalid header characters');
165
+ return token;
166
+ } };
167
+ }
168
+ function validateOrigin(profile) {
169
+ let url;
170
+ try {
171
+ url = new URL(profile.origin);
172
+ }
173
+ catch {
174
+ invalid('Invalid HTTPS origin');
175
+ }
176
+ if (url.origin !== profile.origin || url.protocol !== 'https:')
177
+ invalid('Use a canonical HTTPS origin without a path, query or userinfo');
178
+ }
package/dist/errors.js ADDED
@@ -0,0 +1,14 @@
1
+ export class ToolError extends Error {
2
+ code;
3
+ hint;
4
+ exitCode;
5
+ constructor(code, message, hint, exitCode = 2) {
6
+ super(message);
7
+ this.code = code;
8
+ this.hint = hint;
9
+ this.exitCode = exitCode;
10
+ }
11
+ }
12
+ export function invalid(message) {
13
+ throw new ToolError('CONFIG_INVALID', message, 'Run technitium-axi schema --json to inspect valid profile fields');
14
+ }
@@ -0,0 +1,137 @@
1
+ import { constants } from 'node:fs';
2
+ import { lstat, mkdir, open, realpath, rename, rm } from 'node:fs/promises';
3
+ import { dirname, isAbsolute, resolve } from 'node:path';
4
+ import { randomUUID } from 'node:crypto';
5
+ import { ToolError } from './errors.js';
6
+ export class PrivateFiles {
7
+ platform;
8
+ constructor(platform = process.platform) {
9
+ this.platform = platform;
10
+ }
11
+ requireFileProtection() {
12
+ if (this.platform === 'win32')
13
+ throw new ToolError('CONFIG_INSECURE', 'Windows file ownership and ACL verification is PENDING', 'Use an environment-only profile with an env SecretRef and no config or result file');
14
+ }
15
+ insecure(path) {
16
+ throw new ToolError('CONFIG_INSECURE', 'Unsafe file ownership, permissions or redirected path', `Use an owned regular file and chmod 600 ${path}`);
17
+ }
18
+ insecureDirectory(path) {
19
+ throw new ToolError('CONFIG_INSECURE', 'Unsafe directory ownership, permissions or redirected path', `Use an owned directory and chmod 700 ${path}`);
20
+ }
21
+ requireAbsolute(path) {
22
+ if (!isAbsolute(path))
23
+ throw new ToolError('CONFIG_INSECURE', `Path must be absolute: ${path}`, 'Use an absolute path');
24
+ }
25
+ async direct(path) {
26
+ this.requireAbsolute(path);
27
+ if ((await lstat(path)).isSymbolicLink() || await realpath(path) !== resolve(path))
28
+ this.insecure(path);
29
+ }
30
+ async read(path, secret = true) {
31
+ return (await this.readBytes(path, secret)).toString('utf8');
32
+ }
33
+ async readBytes(path, secret = true, maxBytes = 16 * 1024 * 1024) {
34
+ this.requireAbsolute(path);
35
+ const before = await lstat(path);
36
+ this.requireFileProtection();
37
+ await this.direct(path);
38
+ if (!before.isFile() || before.isSymbolicLink())
39
+ this.insecure(path);
40
+ if (before.uid !== process.getuid?.() || (before.mode & (secret ? 0o077 : 0o022)) !== 0)
41
+ this.insecure(path);
42
+ const handle = await open(path, constants.O_RDONLY | constants.O_NOFOLLOW);
43
+ try {
44
+ const opened = await handle.stat();
45
+ if (opened.dev !== before.dev || opened.ino !== before.ino)
46
+ this.insecure(path);
47
+ if (opened.uid !== process.getuid?.() || (opened.mode & (secret ? 0o077 : 0o022)) !== 0)
48
+ this.insecure(path);
49
+ if (opened.size > maxBytes)
50
+ throw new ToolError('INPUT_LIMIT', 'Protected file exceeds the input size limit', 'Use a smaller protected file');
51
+ const bytes = await handle.readFile();
52
+ if (bytes.length > maxBytes)
53
+ throw new ToolError('INPUT_LIMIT', 'Protected file exceeds the input size limit', 'Use a smaller protected file');
54
+ return bytes;
55
+ }
56
+ finally {
57
+ await handle.close();
58
+ }
59
+ }
60
+ async destination(path) {
61
+ this.requireFileProtection();
62
+ this.requireAbsolute(path);
63
+ const directory = dirname(path);
64
+ await mkdir(directory, { recursive: true, mode: 0o700 });
65
+ await this.direct(directory);
66
+ const parent = await lstat(directory);
67
+ if (!parent.isDirectory() || parent.uid !== process.getuid?.() || (parent.mode & 0o022) !== 0)
68
+ this.insecureDirectory(directory);
69
+ try {
70
+ await this.direct(path);
71
+ const before = await lstat(path);
72
+ if (!before.isFile() || before.uid !== process.getuid?.() || (before.mode & 0o077) !== 0)
73
+ this.insecure(path);
74
+ const handle = await open(path, constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK);
75
+ try {
76
+ const stat = await handle.stat();
77
+ if (!stat.isFile() || stat.dev !== before.dev || stat.ino !== before.ino || stat.uid !== process.getuid?.() || (stat.mode & 0o077) !== 0)
78
+ this.insecure(path);
79
+ }
80
+ finally {
81
+ await handle.close();
82
+ }
83
+ }
84
+ catch (error) {
85
+ if (error.code !== 'ENOENT')
86
+ throw error;
87
+ }
88
+ }
89
+ async write(path, bytes) {
90
+ await this.destination(path);
91
+ const directory = dirname(path);
92
+ const temporary = `${path}.${randomUUID()}.tmp`;
93
+ const handle = await open(temporary, 'wx', 0o600);
94
+ try {
95
+ await handle.writeFile(bytes);
96
+ await handle.sync();
97
+ await handle.close();
98
+ await rename(temporary, path);
99
+ const parent = await open(directory, constants.O_RDONLY | constants.O_DIRECTORY);
100
+ try {
101
+ await parent.sync();
102
+ }
103
+ finally {
104
+ await parent.close();
105
+ }
106
+ }
107
+ finally {
108
+ await handle.close();
109
+ await rm(temporary, { force: true });
110
+ }
111
+ }
112
+ async create(path, bytes) {
113
+ this.requireFileProtection();
114
+ this.requireAbsolute(path);
115
+ const directory = dirname(path);
116
+ await mkdir(directory, { recursive: true, mode: 0o700 });
117
+ await this.direct(directory);
118
+ const parentStat = await lstat(directory);
119
+ if (parentStat.uid !== process.getuid?.() || (parentStat.mode & 0o077) !== 0)
120
+ this.insecureDirectory(directory);
121
+ const handle = await open(path, constants.O_WRONLY | constants.O_CREAT | constants.O_EXCL | constants.O_NOFOLLOW, 0o600);
122
+ try {
123
+ await handle.writeFile(bytes);
124
+ await handle.sync();
125
+ }
126
+ finally {
127
+ await handle.close();
128
+ }
129
+ const parent = await open(directory, constants.O_RDONLY | constants.O_DIRECTORY);
130
+ try {
131
+ await parent.sync();
132
+ }
133
+ finally {
134
+ await parent.close();
135
+ }
136
+ }
137
+ }
@@ -0,0 +1,58 @@
1
+ // Contracts reviewed against Technitium DNS Server API at 0dd592aad21eced4221a9a46204cb1a299972ca0.
2
+ // Only documented fields are eligible for ordinary output; unknown fields stay in protected results.
3
+ // Union of every rData field Technitium emits per record type; enum-like and numeric fields vary between names and numbers.
4
+ const recordData = { "ipAddress": "string", "nameServer": "string", "primaryNameServer": "string", "responsiblePerson": "string", "serial": "number", "refresh": "number", "retry": "number", "expire": "number", "minimum": "number", "typeCovered": "string", "algorithm": "string-or-number", "labels": "number", "originalTtl": "number", "signatureExpiration": "string", "signatureInception": "string", "keyTag": "number", "signersName": "string", "signature": "string", "flags": "string-or-number", "protocol": "string-or-number", "publicKey": "string", "computedKeyTag": "number", "dnsKeyState": "string", "computedDigests": { "array": { "digestType": "string", "digest": "string" } }, "dnsKeyStateReadyBy": "string", "hashAlgorithm": "string", "iterations": "number", "salt": "string", "nextHashedOwnerName": "string", "types": { "array": "string" }, "digestType": "string-or-number", "digest": "string", "cname": "string", "text": "string", "splitText": "boolean", "characterStringsBase64": { "array": "string" }, "forwarder": "string", "forwarderPriority": "number", "dnssecValidation": "boolean", "proxyType": "string", "proxyAddress": "string", "proxyPort": "number", "proxyUsername": "nullable",
5
+ "dname": "string", "aname": "string", "ptrName": "string", "preference": "number", "exchange": "string", "mailbox": "string", "txtDomain": "string", "priority": "number", "weight": "number", "port": "number", "target": "string",
6
+ "order": "number", "services": "string", "regexp": "string", "replacement": "string",
7
+ "fingerprintType": "string-or-number", "fingerprint": "string",
8
+ "certificateUsage": "string-or-number", "selector": "string-or-number", "matchingType": "string-or-number", "certificateAssociationData": "string",
9
+ "svcPriority": "number", "svcTargetName": "string", "svcParams": "json", "uri": "string", "tag": "string", "value": "string",
10
+ "appName": "string", "classPath": "string", "data": "string" };
11
+ export const readContracts = [
12
+ { "id": "OP-001", "command": "status", "path": "/api/status", "kind": "json", "confidential": false, "parameters": [], "response": { "hasDefaultCredentials": "boolean", "ssoEnabled": "boolean", "server": "string", "status": "string" } },
13
+ { "id": "OP-006", "command": "user session get", "path": "/api/user/session/get", "kind": "json", "confidential": true, "parameters": [], "response": { "username": "string", "info": { "version": "string", "permissions": {} } } },
14
+ { "id": "OP-012", "command": "user profile get", "path": "/api/user/profile/get", "kind": "json", "confidential": false, "parameters": [], "response": { "displayName": "string", "username": "string", "isSsoUser": "boolean", "totpEnabled": "boolean", "disabled": "boolean", "previousSessionLoggedOn": "string", "previousSessionRemoteAddress": "string", "recentSessionLoggedOn": "string", "recentSessionRemoteAddress": "string", "sessionTimeoutSeconds": "number", "memberOfGroups": { "array": "string" }, "sessions": { "array": { "username": "string", "isCurrentSession": "boolean", "type": "string", "lastSeen": "string", "lastSeenRemoteAddress": "string", "lastSeenUserAgent": "nullable", "partialToken": "string", "tokenName": "nullable" } } } },
15
+ { "id": "OP-014", "command": "user check-for-update", "path": "/api/user/checkForUpdate", "kind": "json", "confidential": false, "parameters": [], "response": { "updateAvailable": "boolean", "updateVersion": "nullable", "currentVersion": "string", "updateTitle": "nullable", "updateMessage": "nullable", "downloadLink": "nullable", "instructionsLink": "nullable", "changeLogLink": "nullable" } },
16
+ { "id": "OP-015", "command": "dashboard metrics json", "path": "/api/dashboard/metrics/json", "kind": "json", "confidential": false, "parameters": [], "response": { "uptimestamp": "string", "uptimeSeconds": "number", "lifetimeCounters": { "totalQueries": "number", "totalNoError": "number", "totalServerFailure": "number", "totalNxDomain": "number", "totalRefused": "number", "totalAuthoritative": "number", "totalRecursive": "number", "totalCached": "number", "totalBlocked": "number", "totalDropped": "number", "totalClients": "number" } } },
17
+ { "id": "OP-016", "command": "dashboard metrics text", "path": "/api/dashboard/metrics/text", "kind": "prometheus-text", "confidential": false, "parameters": [], "response": {} },
18
+ { "id": "OP-017", "command": "dashboard stats get", "path": "/api/dashboard/stats/get", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "type", "flag": "--type", "type": "string", "required": false, "location": "form", "values": ["LastHour", "LastDay", "LastWeek", "LastMonth", "LastYear", "Custom"] }, { "name": "utc", "flag": "--utc", "type": "boolean", "required": false, "location": "form" }, { "name": "dontTrimQueryTypeData", "flag": "--dont-trim-query-type-data", "type": "boolean", "required": false, "location": "form" }, { "name": "start", "flag": "--start", "type": "date", "required": false, "location": "form" }, { "name": "end", "flag": "--end", "type": "date", "required": false, "location": "form" }], "response": { "stats": { "totalQueries": "number", "totalNoError": "number", "totalServerFailure": "number", "totalNxDomain": "number", "totalRefused": "number", "totalAuthoritative": "number", "totalRecursive": "number", "totalCached": "number", "totalBlocked": "number", "totalDropped": "number", "totalClients": "number", "zones": "number", "cachedEntries": "number", "allowedZones": "number", "blockedZones": "number", "allowListZones": "number", "blockListZones": "number" }, "mainChartData": { "labelFormat": "string", "labels": { "array": "string" }, "datasets": { "array": { "label": "string", "backgroundColor": "string", "borderColor": "string", "borderWidth": "number", "fill": "boolean", "data": { "array": "number" } } } }, "queryResponseChartData": { "labels": { "array": "string" }, "datasets": { "array": { "data": { "array": "number" }, "backgroundColor": { "array": "string" } } } }, "queryTypeChartData": { "labels": { "array": "string" }, "datasets": { "array": { "data": { "array": "number" }, "backgroundColor": { "array": "string" } } } }, "protocolTypeChartData": { "labels": { "array": "string" }, "datasets": { "array": { "data": { "array": "number" }, "backgroundColor": { "array": "string" } } } }, "topClients": { "array": { "name": "string", "domain": "string", "hits": "number", "rateLimited": "boolean" } }, "topDomains": { "array": { "name": "string", "hits": "number" } }, "topBlockedDomains": { "array": { "name": "string", "hits": "number" } } } },
19
+ { "id": "OP-018", "command": "dashboard stats get-top", "path": "/api/dashboard/stats/getTop", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "type", "flag": "--type", "type": "string", "required": false, "location": "form", "values": ["LastHour", "LastDay", "LastWeek", "LastMonth", "LastYear", "custom"] }, { "name": "start", "flag": "--start", "type": "date", "required": false, "location": "form" }, { "name": "end", "flag": "--end", "type": "date", "required": false, "location": "form" }, { "name": "statsType", "flag": "--stats-type", "type": "string", "required": true, "location": "form", "values": ["TopClients", "TopDomains", "TopBlockedDomains"] }, { "name": "limit", "flag": "--limit", "type": "integer", "required": false, "location": "form" }, { "name": "noReverseLookup", "flag": "--no-reverse-lookup", "type": "boolean", "required": false, "location": "form" }, { "name": "onlyRateLimitedClients", "flag": "--only-rate-limited-clients", "type": "boolean", "required": false, "location": "form" }], "response": { "topClients": { "array": { "name": "string", "domain": "nullable", "hits": "number", "rateLimited": "boolean" } }, "topDomains": { "array": { "name": "string", "hits": "number" } }, "topBlockedDomains": { "array": { "name": "string", "hits": "number" } } } },
20
+ { "id": "OP-020", "command": "zone list", "path": "/api/zones/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "filterName", "flag": "--filter-name", "type": "string", "required": false, "location": "form" }, { "name": "filterType", "flag": "--filter-type", "type": "string", "required": false, "location": "form", "values": ["Primary", "Secondary", "Stub", "Forwarder", "SecondaryForwarder", "Catalog", "SecondaryCatalog"] }, { "name": "pageNumber", "flag": "--page-number", "type": "integer", "required": false, "location": "form" }, { "name": "zonesPerPage", "flag": "--zones-per-page", "type": "integer", "required": false, "location": "form" }], "response": { "pageNumber": "number", "totalPages": "number", "totalZones": "number", "zones": { "array": { "name": "string", "type": "string", "dnssecStatus": "string", "soaSerial": "number", "expiry": "string", "isExpired": "boolean", "syncFailed": "boolean", "lastModified": "string", "disabled": "boolean", "internal": "boolean", "notifyFailed": "boolean", "notifyFailedFor": { "array": "string" } } } } },
21
+ { "id": "OP-021", "command": "zone catalog list", "path": "/api/zones/catalogs/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "catalogZoneNames": { "array": "string" } } },
22
+ { "id": "OP-024", "command": "zone export", "path": "/api/zones/export", "kind": "zone-text", "confidential": true, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "zone", "flag": "--zone", "type": "string", "required": true, "location": "form" }], "response": {} },
23
+ { "id": "OP-031", "command": "zone options get", "path": "/api/zones/options/get", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "zone", "flag": "--zone", "type": "string", "required": true, "location": "form" }, { "name": "includeAvailableCatalogZoneNames", "flag": "--include-available-catalog-zone-names", "type": "boolean", "required": false, "location": "form" }, { "name": "includeAvailableTsigKeyNames", "flag": "--include-available-tsig-key-names", "type": "boolean", "required": false, "location": "form" }], "response": { "name": "string", "type": "string", "internal": "boolean", "dnssecStatus": "string", "notifyFailed": "boolean", "notifyFailedFor": { "array": "string" }, "disabled": "boolean", "catalog": "nullable", "overrideCatalogQueryAccess": "boolean", "overrideCatalogZoneTransfer": "boolean", "overrideCatalogNotify": "boolean", "queryAccess": "string", "queryAccessNetworkACL": { "array": "string" }, "zoneTransfer": "string", "zoneTransferNetworkACL": { "array": "string" }, "zoneTransferTsigKeyNames": { "array": "string" }, "notify": "string", "notifyNameServers": { "array": "string" }, "update": "string", "updateNetworkACL": { "array": "string" }, "updateSecurityPolicies": { "array": { "tsigKeyName": "string", "domain": "string", "allowedTypes": { "array": "string" } } }, "availableCatalogZoneNames": { "array": "string" }, "availableTsigKeyNames": { "array": "string" } } },
24
+ { "id": "OP-033", "command": "zone permission get", "path": "/api/zones/permissions/get", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "zone", "flag": "--zone", "type": "string", "required": true, "location": "form" }, { "name": "includeUsersAndGroups", "flag": "--include-users-and-groups", "type": "boolean", "required": false, "location": "form" }], "response": { "section": "string", "subItem": "string", "userPermissions": { "array": { "username": "string", "canView": "boolean", "canModify": "boolean", "canDelete": "boolean" } }, "groupPermissions": { "array": { "name": "string", "canView": "boolean", "canModify": "boolean", "canDelete": "boolean" } }, "users": { "array": "string" }, "groups": { "array": "string" } } },
25
+ { "id": "OP-037", "command": "zone dnssec view-ds", "path": "/api/zones/dnssec/viewDS", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "zone", "flag": "--zone", "type": "string", "required": true, "location": "form" }], "response": { "name": "string", "type": "string", "internal": "boolean", "disabled": "boolean", "dnssecStatus": "string", "dsRecords": { "array": { "keyTag": "number", "dnsKeyState": "string", "dnsKeyStateReadyBy": "string", "algorithm": "string", "publicKey": "string", "digests": { "array": { "digestType": "string", "digest": "string" } } } } } },
26
+ { "id": "OP-038", "command": "zone dnssec properties get", "path": "/api/zones/dnssec/properties/get", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "zone", "flag": "--zone", "type": "string", "required": true, "location": "form" }], "response": { "name": "string", "type": "string", "internal": "boolean", "disabled": "boolean", "dnssecStatus": "string", "nsec3Iterations": "number", "nsec3SaltLength": "number", "dnsKeyTtl": "number", "dnssecPrivateKeys": { "array": { "keyTag": "number", "keyType": "string", "algorithm": "string", "algorithmNumber": "number", "state": "string", "stateChangedOn": "string", "stateReadyBy": "string", "isRetiring": "boolean", "rolloverDays": "number" } } } },
27
+ { "id": "OP-050", "command": "zone record get", "path": "/api/zones/records/get", "kind": "json", "confidential": true, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "domain", "flag": "--domain", "type": "string", "required": true, "location": "form" }, { "name": "zone", "flag": "--zone", "type": "string", "required": false, "location": "form" }, { "name": "listZone", "flag": "--list-zone", "type": "boolean", "required": false, "location": "form" }], "response": { "zone": { "name": "string", "type": "string", "internal": "boolean", "dnssecStatus": "string", "disabled": "boolean" }, "records": { "array": { "disabled": "boolean", "name": "string", "type": "string", "ttl": "number", "rData": recordData, "dnssecStatus": "string", "lastUsedOn": "string" } } } },
28
+ { "id": "OP-053", "command": "cache list", "path": "/api/cache/list", "kind": "json", "confidential": false, "parameters": [{ "name": "domain", "flag": "--domain", "type": "string", "required": false, "location": "form" }, { "name": "direction", "flag": "--direction", "type": "string", "required": false, "location": "form", "values": ["up", "down"] }], "response": { "domain": "string", "zones": { "array": "string" }, "records": { "array": { "name": "string", "type": "string", "ttl": "string-or-number", "rData": { ...recordData, "dataType": "string" } } } } },
29
+ { "id": "OP-056", "command": "allowed list", "path": "/api/allowed/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "domain", "flag": "--domain", "type": "string", "required": false, "location": "form" }, { "name": "direction", "flag": "--direction", "type": "string", "required": false, "location": "form", "values": ["up", "down"] }], "response": { "domain": "string", "zones": { "array": "string" }, "records": { "array": { "name": "string", "type": "string", "ttl": "string-or-number", "rData": recordData } } } },
30
+ { "id": "OP-061", "command": "allowed export", "path": "/api/allowed/export", "kind": "plain-text", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": {} },
31
+ { "id": "OP-062", "command": "blocked list", "path": "/api/blocked/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "domain", "flag": "--domain", "type": "string", "required": false, "location": "form" }, { "name": "direction", "flag": "--direction", "type": "string", "required": false, "location": "form", "values": ["up", "down"] }], "response": { "domain": "string", "zones": { "array": "string" }, "records": { "array": { "name": "string", "type": "string", "ttl": "string-or-number", "rData": recordData } } } },
32
+ { "id": "OP-067", "command": "blocked export", "path": "/api/blocked/export", "kind": "plain-text", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": {} },
33
+ { "id": "OP-068", "command": "app list", "path": "/api/apps/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "apps": { "array": { "name": "string", "version": "string", "dnsApps": { "array": { "classPath": "string", "description": "string", "isAppRecordRequestHandler": "boolean", "isRequestController": "boolean", "isAuthoritativeRequestHandler": "boolean", "isRequestBlockingHandler": "boolean", "isQueryLogger": "boolean", "isPostProcessor": "boolean", "recordDataTemplate": "nullable" } } } } } },
34
+ { "id": "OP-069", "command": "app list-store-apps", "path": "/api/apps/listStoreApps", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "storeApps": { "array": { "name": "string", "version": "string", "description": "string", "url": "string", "size": "string", "installed": "boolean", "installedVersion": "string", "updateAvailable": "boolean" } } } },
35
+ { "id": "OP-075", "command": "app config get", "path": "/api/apps/config/get", "kind": "json", "confidential": true, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "name", "flag": "--name", "type": "string", "required": true, "location": "form" }], "response": { "config": "string" } },
36
+ { "id": "OP-078", "command": "dns-client health-check", "path": "/api/dnsClient/healthCheck", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "domain", "flag": "--domain", "type": "string", "required": false, "location": "form" }, { "name": "type", "flag": "--type", "type": "string", "required": false, "location": "form" }], "response": { "server": "string", "status": "string" } },
37
+ { "id": "OP-079", "command": "settings get", "path": "/api/settings/get", "kind": "json", "confidential": true, "parameters": [], "response": { "version": "string", "hasDnssecPrivateKeys": "boolean", "uptimestamp": "string", "clusterInitialized": "boolean", "dnsServerDomain": "string", "dnsServerLocalEndPoints": { "array": "string" }, "dnsServerIPv4SourceAddresses": { "array": "string" }, "dnsServerIPv6SourceAddresses": { "array": "string" }, "defaultRecordTtl": "number", "defaultNsRecordTtl": "number", "defaultSoaRecordTtl": "number", "defaultResponsiblePerson": "nullable", "useSoaSerialDateScheme": "boolean", "minSoaRefresh": "number", "minSoaRetry": "number", "zoneTransferAllowedNetworks": { "array": "string" }, "notifyAllowedNetworks": { "array": "string" }, "dnsServerEnableCheckForUpdate": "boolean", "dnsAppsEnableAutomaticUpdate": "boolean", "ipv6Mode": "string", "preferIPv6": "boolean", "enableUdpSocketPool": "boolean", "socketPoolExcludedPorts": { "array": "number" }, "udpPayloadSize": "number", "dnssecValidation": "boolean", "eDnsClientSubnet": "boolean", "eDnsClientSubnetIPv4PrefixLength": "number", "eDnsClientSubnetIPv6PrefixLength": "number", "eDnsClientSubnetIpv4Override": "nullable", "eDnsClientSubnetIpv6Override": "nullable", "qpmPrefixLimitsIPv4": { "array": { "prefix": "number", "udpLimit": "number", "tcpLimit": "number" } }, "qpmPrefixLimitsIPv6": { "array": { "prefix": "number", "udpLimit": "number", "tcpLimit": "number" } }, "qpmLimitSampleMinutes": "number", "qpmLimitUdpTruncationPercentage": "number", "qpmLimitBypassList": { "array": "string" }, "clientTimeout": "number", "tcpSendTimeout": "number", "tcpReceiveTimeout": "number", "quicIdleTimeout": "number", "quicMaxInboundStreams": "number", "listenBacklog": "number", "udpSendBufferSizeKB": "number", "udpReceiveBufferSizeKB": "number", "maxConcurrentResolutionsPerCore": "number", "webServiceLocalAddresses": { "array": "string" }, "webServiceHttpPort": "number", "webServiceEnableHttpUnixSocket": "boolean", "webServiceHttpUnixSocket": "nullable", "webServiceEnableTlsUnixSocket": "boolean", "webServiceTlsUnixSocket": "nullable", "webServiceEnableTls": "boolean", "webServiceEnableHttp3": "boolean", "webServiceHttpToTlsRedirect": "boolean", "webServiceUseSelfSignedTlsCertificate": "boolean", "webServiceTlsPort": "number", "webServiceReverseProxyAddresses": { "array": "string" }, "webServiceRealIpHeader": "string", "webServiceCspFrameAncestorsHeader": "string", "webServiceTlsCertificatePath": "nullable", "enableEDnsClientSubnetSourceAddress": "boolean", "enableDnsOverUdpProxy": "boolean", "enableDnsOverTcpProxy": "boolean", "enableDnsOverHttp": "boolean", "enableDnsOverHttpUnixSocket": "boolean", "enableDnsOverHttpsUnixSocket": "boolean", "enableDnsOverTls": "boolean", "enableDnsOverHttps": "boolean", "enableDnsOverHttp3": "boolean", "enableDnsOverQuic": "boolean", "enableDnsOverHttpHelpRedirect": "boolean", "dnsOverUdpProxyPort": "number", "dnsOverTcpProxyPort": "number", "dnsOverHttpPort": "number", "dnsOverHttpUnixSocket": "nullable", "dnsOverHttpsUnixSocket": "nullable", "dnsOverTlsPort": "number", "dnsOverHttpsPort": "number", "dnsOverQuicPort": "number", "dnsReverseProxyNetworkACL": { "array": "string" }, "dnsOverHttpRealIpHeader": "string", "dnsTlsCertificatePath": "nullable", "tsigKeys": { "array": { "keyName": "string", "algorithmName": "string" } }, "recursion": "string", "recursionNetworkACL": { "array": "string" }, "randomizeName": "boolean", "qnameMinimization": "boolean", "locallyServedDnsZones": "boolean", "resolverRetries": "number", "resolverTimeout": "number", "resolverConcurrency": "number", "resolverMaxStackCount": "number", "saveCache": "boolean", "serveStale": "boolean", "serveStaleTtl": "number", "serveStaleAnswerTtl": "number", "serveStaleResetTtl": "number", "serveStaleMaxWaitTime": "number", "cacheMaximumEntries": "number", "cacheMinimumRecordTtl": "number", "cacheMaximumRecordTtl": "number", "cacheNegativeRecordTtl": "number", "cacheFailureRecordTtl": "number", "enableCachePrefetch": "boolean", "cachePrefetchEligibility": "number", "cachePrefetchTrigger": "number", "enableBlocking": "boolean", "allowTxtBlockingReport": "boolean", "blockingBypassList": { "array": "string" }, "blockingType": "string", "blockingAnswerTtl": "number", "customBlockingAddresses": { "array": "string" }, "blockListUrls": { "array": "string" }, "blockListUpdateIntervalHours": "number", "blockListNextUpdatedOn": "string", "proxy": { "type": "string", "address": "string", "port": "number", "username": "nullable" }, "forwarders": { "array": "string" }, "forwarderProtocol": "string", "concurrentForwarding": "boolean", "forwarderRetries": "number", "forwarderTimeout": "number", "forwarderConcurrency": "number", "enableLogging": "boolean", "loggingType": "string", "ignoreResolverLogs": "boolean", "logQueries": "boolean", "noStackTrace": "boolean", "useLocalTime": "boolean", "logFolder": "string", "maxLogFileDays": "number", "enableInMemoryStats": "boolean", "maxStatFileDays": "number" } },
38
+ { "id": "OP-081", "command": "settings get-tsig-key-names", "path": "/api/settings/getTsigKeyNames", "kind": "json", "confidential": false, "parameters": [], "response": { "tsigKeyNames": { "array": "string" } } },
39
+ { "id": "OP-084", "command": "settings backup", "path": "/api/settings/backup", "kind": "zip", "confidential": true, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "authConfig", "flag": "--auth-config", "type": "boolean", "required": false, "location": "form" }, { "name": "clusterConfig", "flag": "--cluster-config", "type": "boolean", "required": false, "location": "form" }, { "name": "webServiceSettings", "flag": "--web-service-settings", "type": "boolean", "required": false, "location": "form" }, { "name": "dnsSettings", "flag": "--dns-settings", "type": "boolean", "required": false, "location": "form" }, { "name": "logSettings", "flag": "--log-settings", "type": "boolean", "required": false, "location": "form" }, { "name": "zones", "flag": "--zones", "type": "boolean", "required": false, "location": "form" }, { "name": "allowedZones", "flag": "--allowed-zones", "type": "boolean", "required": false, "location": "form" }, { "name": "blockedZones", "flag": "--blocked-zones", "type": "boolean", "required": false, "location": "form" }, { "name": "blockLists", "flag": "--block-lists", "type": "boolean", "required": false, "location": "form" }, { "name": "apps", "flag": "--apps", "type": "boolean", "required": false, "location": "form" }, { "name": "scopes", "flag": "--scopes", "type": "boolean", "required": false, "location": "form" }, { "name": "stats", "flag": "--stats", "type": "boolean", "required": false, "location": "form" }, { "name": "logs", "flag": "--logs", "type": "boolean", "required": false, "location": "form" }], "response": {} },
40
+ { "id": "OP-086", "command": "dhcp lease list", "path": "/api/dhcp/leases/list", "kind": "json", "confidential": false, "parameters": [], "response": { "leases": { "array": { "scope": "string", "type": "string", "hardwareAddress": "string", "clientIdentifier": "string", "address": "string", "hostName": "nullable", "leaseObtained": "string", "leaseExpires": "string" } } } },
41
+ { "id": "OP-090", "command": "dhcp scope list", "path": "/api/dhcp/scopes/list", "kind": "json", "confidential": false, "parameters": [], "response": { "scopes": { "array": { "name": "string", "enabled": "boolean", "startingAddress": "string", "endingAddress": "string", "subnetMask": "string", "networkAddress": "string", "broadcastAddress": "string" } } } },
42
+ { "id": "OP-091", "command": "dhcp scope get", "path": "/api/dhcp/scopes/get", "kind": "json", "confidential": false, "parameters": [{ "name": "name", "flag": "--name", "type": "string", "required": true, "location": "form" }], "response": { "name": "string", "startingAddress": "string", "endingAddress": "string", "subnetMask": "string", "leaseTimeDays": "number", "leaseTimeHours": "number", "leaseTimeMinutes": "number", "offerDelayTime": "number", "pingCheckEnabled": "boolean", "pingCheckTimeout": "number", "pingCheckRetries": "number", "domainName": "string", "domainSearchList": { "array": "string" }, "dnsUpdates": "boolean", "dnsOverwriteForDynamicLease": "boolean", "dnsTtl": "number", "serverAddress": "string", "serverHostName": "string", "bootFileName": "string", "routerAddress": "string", "useThisDnsServer": "boolean", "dnsServers": { "array": "string" }, "winsServers": { "array": "string" }, "ntpServers": { "array": "string" }, "ntpServerDomainNames": { "array": "string" }, "staticRoutes": { "array": { "destination": "string", "subnetMask": "string", "router": "string" } }, "vendorInfo": { "array": { "identifier": "string", "information": "string" } }, "capwapAcIpAddresses": { "array": "string" }, "tftpServerAddresses": { "array": "string" }, "genericOptions": { "array": { "code": "number", "value": "string" } }, "exclusions": { "array": { "startingAddress": "string", "endingAddress": "string" } }, "reservedLeases": { "array": { "hostName": "nullable", "hardwareAddress": "string", "address": "string", "comments": "nullable" } }, "allowOnlyReservedLeases": "boolean", "blockLocallyAdministeredMacAddresses": "boolean", "ignoreClientIdentifierOption": "boolean" } },
43
+ { "id": "OP-098", "command": "admin session list", "path": "/api/admin/sessions/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "sessions": { "array": { "username": "string", "isCurrentSession": "boolean", "type": "string", "lastSeen": "string", "lastSeenRemoteAddress": "string", "lastSeenUserAgent": "nullable", "partialToken": "string", "tokenName": "nullable" } } } },
44
+ { "id": "OP-101", "command": "admin user list", "path": "/api/admin/users/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "users": { "array": { "displayName": "string", "username": "string", "isSsoUser": "boolean", "disabled": "boolean", "previousSessionLoggedOn": "string", "previousSessionRemoteAddress": "string", "recentSessionLoggedOn": "string", "recentSessionRemoteAddress": "string" } } } },
45
+ { "id": "OP-103", "command": "admin user get", "path": "/api/admin/users/get", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "user", "flag": "--user", "type": "string", "required": true, "location": "form" }, { "name": "includeGroups", "flag": "--include-groups", "type": "boolean", "required": false, "location": "form" }], "response": { "displayName": "string", "username": "string", "isSsoUser": "boolean", "totpEnabled": "boolean", "disabled": "boolean", "previousSessionLoggedOn": "string", "previousSessionRemoteAddress": "string", "recentSessionLoggedOn": "string", "recentSessionRemoteAddress": "string", "sessionTimeoutSeconds": "number", "memberOfGroups": { "array": "string" }, "sessions": { "array": { "username": "string", "isCurrentSession": "boolean", "type": "string", "lastSeen": "string", "lastSeenRemoteAddress": "string", "lastSeenUserAgent": "nullable", "partialToken": "string", "tokenName": "nullable" } }, "groups": { "array": "string" } } },
46
+ { "id": "OP-106", "command": "admin group list", "path": "/api/admin/groups/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "groups": { "array": { "name": "string", "description": "string" } } } },
47
+ { "id": "OP-108", "command": "admin group get", "path": "/api/admin/groups/get", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "group", "flag": "--group", "type": "string", "required": true, "location": "form" }, { "name": "includeUsers", "flag": "--include-users", "type": "boolean", "required": false, "location": "form" }], "response": { "name": "string", "description": "string", "members": { "array": "string" }, "users": { "array": "string" } } },
48
+ { "id": "OP-111", "command": "admin permission list", "path": "/api/admin/permissions/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "permissions": { "array": { "section": "string", "userPermissions": { "array": { "username": "string", "canView": "boolean", "canModify": "boolean", "canDelete": "boolean" } }, "groupPermissions": { "array": { "name": "string", "canView": "boolean", "canModify": "boolean", "canDelete": "boolean" } } } } } },
49
+ { "id": "OP-112", "command": "admin permission get", "path": "/api/admin/permissions/get", "kind": "json", "confidential": false, "parameters": [{ "name": "section", "flag": "--section", "type": "string", "required": true, "location": "form" }, { "name": "includeUsersAndGroups", "flag": "--include-users-and-groups", "type": "boolean", "required": false, "location": "form" }], "response": { "section": "string", "userPermissions": { "array": { "username": "string", "canView": "boolean", "canModify": "boolean", "canDelete": "boolean" } }, "groupPermissions": { "array": { "name": "string", "canView": "boolean", "canModify": "boolean", "canDelete": "boolean" } }, "users": { "array": "string" }, "groups": { "array": "string" } } },
50
+ { "id": "OP-114", "command": "admin sso get", "path": "/api/admin/sso/get", "kind": "json", "confidential": false, "parameters": [{ "name": "includeGroups", "flag": "--include-groups", "type": "boolean", "required": false, "location": "form" }], "response": { "ssoEnabled": "boolean", "ssoAuthority": "nullable", "ssoClientId": "nullable", "ssoMetadataAddress": "nullable", "ssoAllowSignup": "boolean", "ssoAllowSignupOnlyForMappedUsers": "boolean", "ssoGroupMap": { "array": { "remoteGroup": "string", "localGroup": "string" } }, "localGroups": { "array": "string" }, "ssoScopes": { "array": "string" } } },
51
+ { "id": "OP-118", "command": "admin cluster state", "path": "/api/admin/cluster/state", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "includeServerIpAddresses", "flag": "--include-server-ip-addresses", "type": "boolean", "required": false, "location": "form" }], "response": { "clusterInitialized": "boolean", "dnsServerDomain": "string", "version": "string", "clusterDomain": "string", "heartbeatRefreshIntervalSeconds": "number", "heartbeatRetryIntervalSeconds": "number", "configRefreshIntervalSeconds": "number", "configRetryIntervalSeconds": "number", "configLastSynced": "string", "clusterNodes": { "array": { "id": "number", "name": "string", "url": "string", "type": "string", "state": "string", "version": "string", "lastSeen": "string", "ipAddresses": { "array": "string" }, "upSince": "string", "configLastSynced": "string" } }, "serverIpAddresses": { "array": "string" } } },
52
+ { "id": "OP-125", "command": "admin cluster primary transfer-config", "path": "/api/admin/cluster/primary/transferConfig", "kind": "zip", "confidential": true, "parameters": [{ "name": "includeZones", "flag": "--include-zones", "type": "zone-list", "required": false, "location": "form" }, { "name": "If-Modified-Since", "flag": "--if-modified-since", "type": "http-date", "required": false, "location": "header" }], "response": {} },
53
+ { "id": "OP-134", "command": "log list", "path": "/api/logs/list", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }], "response": { "logFiles": { "array": { "fileName": "string", "size": "string" } } } },
54
+ { "id": "OP-135", "command": "log download", "path": "/api/logs/download", "kind": "log-text", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "fileName", "flag": "--file-name", "type": "string", "required": true, "location": "form" }, { "name": "limit", "flag": "--limit", "type": "integer", "required": false, "location": "form" }], "response": {} },
55
+ { "id": "OP-138", "command": "log query", "path": "/api/logs/query", "kind": "json", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "name", "flag": "--name", "type": "string", "required": true, "location": "form" }, { "name": "classPath", "flag": "--class-path", "type": "string", "required": true, "location": "form" }, { "name": "pageNumber", "flag": "--page-number", "type": "integer", "required": false, "location": "form" }, { "name": "entriesPerPage", "flag": "--entries-per-page", "type": "integer", "required": false, "location": "form" }, { "name": "descendingOrder", "flag": "--descending-order", "type": "boolean", "required": false, "location": "form" }, { "name": "start", "flag": "--start", "type": "date", "required": false, "location": "form" }, { "name": "end", "flag": "--end", "type": "date", "required": false, "location": "form" }, { "name": "clientIpAddress", "flag": "--client-ip-address", "type": "string", "required": false, "location": "form" }, { "name": "protocol", "flag": "--protocol", "type": "string", "required": false, "location": "form", "values": ["Udp", "Tcp", "Tls", "Https", "Quic"] }, { "name": "responseType", "flag": "--response-type", "type": "string", "required": false, "location": "form", "values": ["Authoritative", "Recursive", "Cached", "Blocked", "UpstreamBlocked", "CacheBlocked"] }, { "name": "rcode", "flag": "--rcode", "type": "string", "required": false, "location": "form" }, { "name": "qname", "flag": "--qname", "type": "string", "required": false, "location": "form" }, { "name": "qtype", "flag": "--qtype", "type": "string", "required": false, "location": "form" }, { "name": "qclass", "flag": "--qclass", "type": "string", "required": false, "location": "form" }], "response": { "pageNumber": "number", "totalPages": "number", "totalEntries": "number", "entries": { "array": { "rowNumber": "number", "timestamp": "string", "clientIpAddress": "string", "protocol": "string", "responseType": "string", "responseRtt": "nullable-number", "rcode": "string", "qname": "nullable", "qtype": "nullable", "qclass": "nullable", "answer": "nullable" } } } },
56
+ { "id": "OP-139", "command": "log export", "path": "/api/logs/export", "kind": "csv", "confidential": false, "parameters": [{ "name": "node", "flag": "--node", "type": "string", "required": false, "location": "form" }, { "name": "name", "flag": "--name", "type": "string", "required": true, "location": "form" }, { "name": "classPath", "flag": "--class-path", "type": "string", "required": true, "location": "form" }, { "name": "start", "flag": "--start", "type": "date", "required": false, "location": "form" }, { "name": "end", "flag": "--end", "type": "date", "required": false, "location": "form" }, { "name": "clientIpAddress", "flag": "--client-ip-address", "type": "string", "required": false, "location": "form" }, { "name": "protocol", "flag": "--protocol", "type": "string", "required": false, "location": "form", "values": ["Udp", "Tcp", "Tls", "Https", "Quic"] }, { "name": "responseType", "flag": "--response-type", "type": "string", "required": false, "location": "form", "values": ["Authoritative", "Recursive", "Cached", "Blocked", "UpstreamBlocked", "CacheBlocked"] }, { "name": "rcode", "flag": "--rcode", "type": "string", "required": false, "location": "form" }, { "name": "qname", "flag": "--qname", "type": "string", "required": false, "location": "form" }, { "name": "qtype", "flag": "--qtype", "type": "string", "required": false, "location": "form" }, { "name": "qclass", "flag": "--qclass", "type": "string", "required": false, "location": "form" }], "response": {} },
57
+ { "id": "OP-141", "command": "admin ldap get", "path": "/api/admin/ldap/get", "kind": "json", "confidential": false, "parameters": [{ "name": "includeGroups", "flag": "--include-groups", "type": "boolean", "required": false, "location": "form" }], "response": { "ldapEnabled": "boolean", "ldapServer": "nullable", "ldapPort": "number", "ldapSslOption": "string", "ldapIgnoreSslErrors": "boolean", "ldapBindUsername": "nullable", "ldapSearchBase": "nullable", "ldapUserSearchFilter": "nullable", "ldapGroupAttribute": "nullable", "ldapAllowSignup": "boolean", "ldapAllowSignupOnlyForMappedUsers": "boolean", "ldapGroupMap": { "array": { "remoteGroup": "string", "localGroup": "string" } }, "localGroups": { "array": "string" } } }
58
+ ];