|
7404 | 7404 | { |
7405 | 7405 | "name": "NTPD", |
7406 | 7406 | "item": [ |
| 7407 | + { |
| 7408 | + "name": "TIME_SERVER", |
| 7409 | + "item": [ |
| 7410 | + { |
| 7411 | + "name": "Create NTPd Time Server", |
| 7412 | + "request": { |
| 7413 | + "method": "POST", |
| 7414 | + "header": [], |
| 7415 | + "body": { |
| 7416 | + "mode": "raw", |
| 7417 | + "raw": "{\n \"timeserver\": \"ntp.pool.org\", \n \"ispool\": true, \n \"prefer\": true, \n \"noselect\": false\n}", |
| 7418 | + "options": { |
| 7419 | + "raw": { |
| 7420 | + "language": "json" |
| 7421 | + } |
| 7422 | + } |
| 7423 | + }, |
| 7424 | + "url": { |
| 7425 | + "raw": "https://{{$hostname}}/api/v1/services/ntpd/time_server?timeserver=string&ispool=boolean&noselect=boolean&prefer=boolean", |
| 7426 | + "protocol": "https", |
| 7427 | + "host": [ |
| 7428 | + "{{$hostname}}" |
| 7429 | + ], |
| 7430 | + "path": [ |
| 7431 | + "api", |
| 7432 | + "v1", |
| 7433 | + "services", |
| 7434 | + "ntpd", |
| 7435 | + "time_server" |
| 7436 | + ], |
| 7437 | + "query": [ |
| 7438 | + { |
| 7439 | + "key": "timeserver", |
| 7440 | + "value": "string", |
| 7441 | + "description": "Specify the IP or hostname of the NTP time server to add." |
| 7442 | + }, |
| 7443 | + { |
| 7444 | + "key": "ispool", |
| 7445 | + "value": "boolean", |
| 7446 | + "description": "Specify whether or not this time server represents an NTP server pool or a single NTP server. " |
| 7447 | + }, |
| 7448 | + { |
| 7449 | + "key": "noselect", |
| 7450 | + "value": "boolean", |
| 7451 | + "description": "Enable or disable this NTP time server from selection. If `true`, the time server will be eligible for selection. If `false, the NTP server will remain In the configuration but not used." |
| 7452 | + }, |
| 7453 | + { |
| 7454 | + "key": "prefer", |
| 7455 | + "value": "boolean", |
| 7456 | + "description": "Enable or disable this NTP time server as a preferred NTP time server. If `true`, this time server will take preference over other time servers." |
| 7457 | + } |
| 7458 | + ] |
| 7459 | + }, |
| 7460 | + "description": "Add a new NTP time server to the NTPd configuration.<br><br>\n\n_Requires at least one of the following privileges:_ [`page-all`, `page-services-ntpd`]" |
| 7461 | + }, |
| 7462 | + "response": [] |
| 7463 | + }, |
| 7464 | + { |
| 7465 | + "name": "Delete NTPd Time Server", |
| 7466 | + "request": { |
| 7467 | + "method": "DELETE", |
| 7468 | + "header": [], |
| 7469 | + "body": { |
| 7470 | + "mode": "raw", |
| 7471 | + "raw": "{\n \"timeserver\": \"ntp.pool.org\"\n}", |
| 7472 | + "options": { |
| 7473 | + "raw": { |
| 7474 | + "language": "json" |
| 7475 | + } |
| 7476 | + } |
| 7477 | + }, |
| 7478 | + "url": { |
| 7479 | + "raw": "https://{{$hostname}}/api/v1/services/ntpd/time_server?timeserver=string", |
| 7480 | + "protocol": "https", |
| 7481 | + "host": [ |
| 7482 | + "{{$hostname}}" |
| 7483 | + ], |
| 7484 | + "path": [ |
| 7485 | + "api", |
| 7486 | + "v1", |
| 7487 | + "services", |
| 7488 | + "ntpd", |
| 7489 | + "time_server" |
| 7490 | + ], |
| 7491 | + "query": [ |
| 7492 | + { |
| 7493 | + "key": "timeserver", |
| 7494 | + "value": "string", |
| 7495 | + "description": "Specify the IP or hostname of the NTP time server to delete. If more than one time server exists with this value, only the first match will be deleted. In the case that all time servers were deleted, the default time server `pool.ntp.org` will be written." |
| 7496 | + } |
| 7497 | + ] |
| 7498 | + }, |
| 7499 | + "description": "Delete an existing NTP time server from the NTPd configuration.<br><br>\n\n_Requires at least one of the following privileges:_ [`page-all`, `page-services-ntpd`]" |
| 7500 | + }, |
| 7501 | + "response": [] |
| 7502 | + } |
| 7503 | + ], |
| 7504 | + "description": "API endpoints that create, read, update and delete NTPd configuration." |
| 7505 | + }, |
7407 | 7506 | { |
7408 | 7507 | "name": "Start NTPd Service", |
7409 | 7508 | "request": { |
|
7436 | 7535 | }, |
7437 | 7536 | "response": [] |
7438 | 7537 | }, |
| 7538 | + { |
| 7539 | + "name": "Read NTPd Service", |
| 7540 | + "protocolProfileBehavior": { |
| 7541 | + "disableBodyPruning": true |
| 7542 | + }, |
| 7543 | + "request": { |
| 7544 | + "method": "GET", |
| 7545 | + "header": [], |
| 7546 | + "body": { |
| 7547 | + "mode": "raw", |
| 7548 | + "raw": "{\n \n}", |
| 7549 | + "options": { |
| 7550 | + "raw": { |
| 7551 | + "language": "json" |
| 7552 | + } |
| 7553 | + } |
| 7554 | + }, |
| 7555 | + "url": { |
| 7556 | + "raw": "https://{{$hostname}}/api/v1/services/ntpd", |
| 7557 | + "protocol": "https", |
| 7558 | + "host": [ |
| 7559 | + "{{$hostname}}" |
| 7560 | + ], |
| 7561 | + "path": [ |
| 7562 | + "api", |
| 7563 | + "v1", |
| 7564 | + "services", |
| 7565 | + "ntpd" |
| 7566 | + ] |
| 7567 | + }, |
| 7568 | + "description": "Read the ntpd service configuration.<br><br>\n\n_Requires at least one of the following privileges:_ [`page-all`, `page-services-ntpd`]" |
| 7569 | + }, |
| 7570 | + "response": [] |
| 7571 | + }, |
| 7572 | + { |
| 7573 | + "name": "Update NTPd Service", |
| 7574 | + "request": { |
| 7575 | + "method": "PUT", |
| 7576 | + "header": [], |
| 7577 | + "body": { |
| 7578 | + "mode": "raw", |
| 7579 | + "raw": "{\n \"interface\": [\"WAN\", \"lan\", \"lo0\"],\n \"orphan\": 15,\n \"logpeer\": true,\n \"logsys\": true,\n \"clockstats\": true,\n \"loopstats\": false,\n \"peerstats\": true,\n \"statsgraph\": true,\n \"timeservers\": [\n {\"timeserver\": \"ntp.pool.org\", \"ispool\": true, \"prefer\": true, \"noselect\": false}\n ]\n }", |
| 7580 | + "options": { |
| 7581 | + "raw": { |
| 7582 | + "language": "json" |
| 7583 | + } |
| 7584 | + } |
| 7585 | + }, |
| 7586 | + "url": { |
| 7587 | + "raw": "https://{{$hostname}}/api/v1/services/ntpd?interface=array&time_servers=array&orphan=integer&leapsec=string&statsgraph=boolean&logpeer=boolean&logsys=boolean&clockstats=boolean&loopstats=boolean&peerstats=boolean", |
| 7588 | + "protocol": "https", |
| 7589 | + "host": [ |
| 7590 | + "{{$hostname}}" |
| 7591 | + ], |
| 7592 | + "path": [ |
| 7593 | + "api", |
| 7594 | + "v1", |
| 7595 | + "services", |
| 7596 | + "ntpd" |
| 7597 | + ], |
| 7598 | + "query": [ |
| 7599 | + { |
| 7600 | + "key": "interface", |
| 7601 | + "value": "array", |
| 7602 | + "description": "Update the Interfaces NTPd will listen on. This must be an array of strings. You may specify either the physical Interface ID, the pfSense Interface ID or the descriptive Interface name. To match any Interface, simply pass In an empty array. e.g. `[\"wan\", \"em1\", \"lo0\", \"LAN\"]` (optional)" |
| 7603 | + }, |
| 7604 | + { |
| 7605 | + "key": "time_servers", |
| 7606 | + "value": "array", |
| 7607 | + "description": "Update the time servers used by the system. This must be an array of objects. Each object may use the parameters available In the /api/v1/services/ntpd/time_server endpoint. To revert to the default timeserver, you may pass In an empty array. Specifying this field will overwrite any existing time servers. To simply add or remove time servers, use the /api/v1/services/ntpd/time_server endpoint as it Is less taxing on the system. e.g. `[{\"timeserver\": \"pool.ntp.org\", \"ispool\": true\", \"prefer\": true, \"noselect\": false}]` (optional)" |
| 7608 | + }, |
| 7609 | + { |
| 7610 | + "key": "orphan", |
| 7611 | + "value": "integer", |
| 7612 | + "description": "Update the orphan mode value. This must be a value between `1` and `15`. Orphan mode allows the system clock to be used when no other clocks are available. The number here specifies the stratum reported during orphan mode and should normally be set to a number high enough to insure that any other servers available to clients are preferred over this server. (optional)" |
| 7613 | + }, |
| 7614 | + { |
| 7615 | + "key": "leapsec", |
| 7616 | + "value": "string", |
| 7617 | + "description": "Update the leap seconds configuration. This should be the contents of the leap seconds file received from the IERS. (optional)" |
| 7618 | + }, |
| 7619 | + { |
| 7620 | + "key": "statsgraph", |
| 7621 | + "value": "boolean", |
| 7622 | + "description": "Enable or disable RRD graphs of NTP metrics. (optional)" |
| 7623 | + }, |
| 7624 | + { |
| 7625 | + "key": "logpeer", |
| 7626 | + "value": "boolean", |
| 7627 | + "description": "Enable or disable the logging of peer messages. (optional)" |
| 7628 | + }, |
| 7629 | + { |
| 7630 | + "key": "logsys", |
| 7631 | + "value": "boolean", |
| 7632 | + "description": "Enable or disable the logging of system messages. (optional)" |
| 7633 | + }, |
| 7634 | + { |
| 7635 | + "key": "clockstats", |
| 7636 | + "value": "boolean", |
| 7637 | + "description": "Enable or disable the logging of reference clock statistics. (optional)" |
| 7638 | + }, |
| 7639 | + { |
| 7640 | + "key": "loopstats", |
| 7641 | + "value": "boolean", |
| 7642 | + "description": "Enable or disable the logging of clock discipline statistics. (optional)" |
| 7643 | + }, |
| 7644 | + { |
| 7645 | + "key": "peerstats", |
| 7646 | + "value": "boolean", |
| 7647 | + "description": "Enable or disable the logging of NTP peer statistics. (optional)" |
| 7648 | + } |
| 7649 | + ] |
| 7650 | + }, |
| 7651 | + "description": "Update the ntpd service configuration.<br><br>\n\n_Requires at least one of the following privileges:_ [`page-all`, `page-services-ntpd`]" |
| 7652 | + }, |
| 7653 | + "response": [] |
| 7654 | + }, |
7439 | 7655 | { |
7440 | 7656 | "name": "Restart NTPd Service", |
7441 | 7657 | "request": { |
|
0 commit comments