Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Returns a list of all NTP in the system, with its main configuration data.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/ntp/config
Example Request
GET
Code Block | ||
---|---|---|
| ||
{ "data": [ { "uuid": "79aba7c7-d17b-4d4f-a54d-04a44132f563", "label": "NTP", "ip_address": "192.168.0.1", "network": null, "modified": "2021-07-04T07:46:08.869Z", "created": "2021-07-04T07:46:08.869Z" }, { "uuid": "ffdc8974-02f9-4a43-aa3f-bbc7f73a333a", "label": "test", "ip_address": "192.168.0.3", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2", "modified": "2021-09-21T05:15:37.734Z", "created": "2021-09-21T05:15:18.309Z" }, { "uuid": "0e1355d1-fd65-4e01-918e-e2bb68d95695", "label": "test_Ntp", "ip_address": "192.168.0.2", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2", "modified": "2021-09-21T05:15:05.822Z", "created": "2021-09-21T05:15:05.822Z" } ], "metadata": { "item_count": 3, "total_items": 3, "current_page": 1, "sort_by": [ { "field": "label", "direction": "ASC" } ], "links": { "current": "https://192.168.0.22/api/5.0/ntp/config" } } } |
GET ntp/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns an extended single NTP configuration view, specified by the required {uuid} parameter.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/ntp/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | bytestring | The UUID of the desired encoderntp. |
Example Request
GET
Code Block | ||
---|---|---|
| ||
{ "data": [ { "uuid": "0e1355d1-fd65-4e01-918e-e2bb68d95695", "label": "test_Ntp", "created": "2021-09-21T05:15:05.822Z", "modified": "2021-09-21T05:15:05.822Z", "ip_address": "192.168.0.2", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2" } ], "metadata": {} } |
GET ntp/config/meta
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | GET |
Returns all meta data used by NTP configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/ntp/config/meta
Example Request
GET
Code Block | ||
---|---|---|
| ||
{} |
DELETE ntp/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | DELETE |
Delete a specific NTP configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/ntp/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | bytestring | The UUID of the output ntp to be deleted. |
Example Request
DELETE
Code Block | ||
---|---|---|
| ||
{ "data": [ { "success": true } ], "metadata": {} } |
PUT ntp/config/{uuid}
Resource Information
Requires Authentication? | |
Response Formats | json |
HTTP Methods | PUT |
Edit a NTP configuration.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/ntp/config/{{uuid}}
Parameters
Parameter | Data Type | Description |
---|---|---|
uuid | bytestring | The UUID of the encoder ntp to be edited. |
Example Request
PUT
Body
Code Block | ||
---|---|---|
| ||
{ "label": "test_NTP", "ip_address": "192.168.0.3", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2" } |
Response
Code Block | ||
---|---|---|
| ||
{ "data": [ { "uuid": "ffdc8974-02f9-4a43-aa3f-bbc7f73a333a", "label": "test_NTP", "created": "2021-09-21T05:15:18.309Z", "modified": "2021-09-21T05:24:46.105Z", "ip_address": "192.168.0.3", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2" } ], "metadata": {} } |
Add a new NTP, configured according to the attached data request.
Resource URL
https://{{ip_address}}:{{port}}/api/{{version}}/ntp/config
Example Request
POST
Body
Code Block | ||
---|---|---|
| ||
{ "label": "NTP new", "ip_address": "192.168.0.1", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2" } |
Response
Code Block | ||
---|---|---|
| ||
{ "data": [ { "uuid": "6a14b85d-9c0a-44e3-954c-db71bd10e839", "label": "NTP new", "created": "2021-09-21T05:29:06.310Z", "modified": "2021-09-21T05:29:06.310Z", "ip_address": "192.168.0.1", "network": "c39393d6-3826-4e2f-9e8e-08e2c25e99a2" } ], "metadata": {} } |