@@ -233,3 +233,242 @@ Api.user(1);
233233 username: ' fastuser' ,
234234 virtualhost_count: 0 } }
235235` ` `
236+
237+ # ## domains()
238+
239+ Получить список DNS-доменов
240+
241+ # ### Ввод:
242+
243+ ` ` ` js
244+ Api.domains ();
245+ ` ` `
246+
247+ # ### Вывод:
248+
249+ ` ` ` bash
250+ { data:
251+ [ { id: 1,
252+ owner_id: 5,
253+ owner: [Object],
254+ virtualhost_id: 2,
255+ certificate: null,
256+ name: ' billing.mayerdev.com' ,
257+ fallback: ' ' ,
258+ ips: [Array],
259+ mail_to: ' local' ,
260+ dkim: true,
261+ use_for_emails: true,
262+ ns: null,
263+ share: false,
264+ default: false,
265+ source: ' client' ,
266+ delegated_to: null,
267+ is_delegated: true,
268+ action: null,
269+ created_at: ' 2021-04-12T06:46:31.59321267Z' ,
270+ updated_at: ' 2021-04-12T06:46:32.544513189Z' }, ... ] }
271+ ` ` `
272+
273+ # ## domain(id домена)
274+
275+ Получить список DNS-записей домена
276+
277+ # ### Ввод:
278+
279+ ` ` ` js
280+ Api.domain(1);
281+ ` ` `
282+
283+ # ### Вывод:
284+
285+ ` ` ` bash
286+ { data:
287+ [ { id: 1,
288+ domain_id: 1,
289+ action: null,
290+ name: ' billing.mayerdev.com.' ,
291+ type: ' A' ,
292+ hash: ' ...' ,
293+ email: ' ' ,
294+ content: ' 84.201.***.***' ,
295+ hidden: false,
296+ ttl: 0,
297+ priority: 0,
298+ weight: 0,
299+ port: 0 },
300+ { id: 2,
301+ domain_id: 1,
302+ action: null,
303+ name: ' www.billing.mayerdev.com.' ,
304+ type: ' A' ,
305+ hash: ' ...' ,
306+ email: ' ' ,
307+ content: ' 84.201.***.***' ,
308+ hidden: false,
309+ ttl: 0,
310+ priority: 0,
311+ weight: 0,
312+ port: 0 },
313+ { id: 3,
314+ domain_id: 1,
315+ action: null,
316+ name: ' mail.billing.mayerdev.com.' ,
317+ type: ' A' ,
318+ hash: ' ...' ,
319+ email: ' ' ,
320+ content: ' 84.201.***.***' ,
321+ hidden: false,
322+ ttl: 0,
323+ priority: 0,
324+ weight: 0,
325+ port: 0 }, ... ] }
326+ ` ` `
327+
328+ # ## sites(максимальное количество, по умолчанию 30)
329+
330+ Получить список сайтов
331+
332+ # ### Ввод:
333+
334+ ` ` ` js
335+ Api.sites(1);
336+ ` ` `
337+
338+ # ### Вывод:
339+
340+ ` ` ` bash
341+ { data:
342+ [ { access_log: true,
343+ action: null,
344+ admin_email: ' admin@mayerdev.com' ,
345+ aliases: [Array],
346+ autosubdomains: false,
347+ awstats: false,
348+ backups: [],
349+ charset: ' UTF-8' ,
350+ created_at: ' 2021-04-11 07:38:21' ,
351+ databases_size: 0,
352+ domain: ' mayerdev.com' ,
353+ enabled: true,
354+ error_count: 1,
355+ error_log: true,
356+ expired: 0,
357+ fpm_workers_count: 2,
358+ generate_user: false,
359+ gzip: true,
360+ gzip_comp_level: 1,
361+ hsts: false,
362+ http2: false,
363+ id: 1,
364+ index_dir: ' /var/www/fastuser/data/www/mayerdev.com' ,
365+ index_page: ' index.php index.html' ,
366+ ips: [],
367+ is_scan_failed: false,
368+ log_period: ' daily' ,
369+ main_domain: null,
370+ manual_changes: true,
371+ mode: ' php_fpm' ,
372+ owner: [Object],
373+ php: true,
374+ php_version: 71,
375+ port: 80,
376+ redirect_to_https: false,
377+ rotate: 10,
378+ scan_status: false,
379+ settings: [Object],
380+ size: 0,
381+ ssi: ' ' ,
382+ ssi_value: ' ' ,
383+ static_extension:
384+ ' jpg,jpeg,gif,png,svg,js,css,mp3,ogg,mpeg,avi,zip,gz,bz2,rar,swf,ico,7z,doc,docx,map,ogg,otf,pdf,tff,tif,txt,wav,
385+ webp,woff,woff2,xls,xlsx,xml' ,
386+ static_file_handler: true,
387+ status: 200,
388+ sub_directory: ' ' ,
389+ temp_link_flag: true,
390+ update_state_date: ' 0001-01-01T00:00:00Z' } ],
391+ meta:
392+ { counts:
393+ { all: 3,
394+ scan_status: 0,
395+ not_available: 0,
396+ certificate_expires: 0,
397+ certificate_expired: 0,
398+ error: 3,
399+ frozen: 0,
400+ no_backup: 3,
401+ disabled: 0,
402+ query_count: 0 } } }
403+ ` ` `
404+
405+ # ## site(id сайта)
406+
407+ Получить информацию о сайте
408+
409+ # ### Ввод:
410+
411+ ` ` ` js
412+ Api.site(1);
413+ ` ` `
414+
415+ # ### Вывод:
416+
417+ ` ` ` bash
418+ { data:
419+ { access_log: true,
420+ action: null,
421+ admin_email: ' admin@mayerdev.com' ,
422+ aliases: [ [Object] ],
423+ autosubdomains: false,
424+ awstats: false,
425+ backups: [],
426+ charset: ' UTF-8' ,
427+ created_at: ' 2021-04-11 07:38:21' ,
428+ databases_size: 0,
429+ domain: ' mayerdev.com' ,
430+ enabled: true,
431+ error_count: 1,
432+ error_log: true,
433+ expired: 0,
434+ fpm_workers_count: 2,
435+ generate_user: false,
436+ gzip: true,
437+ gzip_comp_level: 1,
438+ hsts: false,
439+ http2: false,
440+ id: 1,
441+ index_dir: ' /var/www/fastuser/data/www/mayerdev.com' ,
442+ index_page: ' index.php index.html' ,
443+ ips: [ [Object] ],
444+ is_scan_failed: false,
445+ log_period: ' daily' ,
446+ main_domain: null,
447+ manual_changes: true,
448+ mode: ' php_fpm' ,
449+ owner: { id: 1, username: ' fastuser' },
450+ php: true,
451+ php_version: 71,
452+ port: 80,
453+ redirect_to_https: false,
454+ rotate: 10,
455+ scan_status: false,
456+ settings:
457+ { burst: 1,
458+ burst_flag: false,
459+ no_delay: false,
460+ req_limit: false,
461+ req_limit_rate: ' second' ,
462+ req_limit_value: 1 },
463+ size: 0,
464+ ssi: ' ' ,
465+ ssi_value: ' ' ,
466+ static_extension:
467+ ' jpg,jpeg,gif,png,svg,js,css,mp3,ogg,mpeg,avi,zip,gz,bz2,rar,swf,ico,7z,doc,docx,map,ogg,otf,pdf,tff,tif,txt,wav,we
468+ bp,woff,woff2,xls,xlsx,xml' ,
469+ static_file_handler: true,
470+ status: 200,
471+ sub_directory: ' ' ,
472+ temp_link_flag: true,
473+ update_state_date: ' 0001-01-01T00:00:00Z' } }
474+ ` ` `
0 commit comments