# VegaOsApi.NtpApi

All URIs are relative to *http://218.108.7.113:8080/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**ntpEnableGet**](NtpApi.md#ntpEnableGet) | **GET** /ntp/enable | Return NTP enable configuration
[**ntpEnablePut**](NtpApi.md#ntpEnablePut) | **PUT** /ntp/enable | Set NTP enable configuration
[**ntpGet**](NtpApi.md#ntpGet) | **GET** /ntp | Return NTP configurations
[**ntpPatch**](NtpApi.md#ntpPatch) | **PATCH** /ntp | Modify NTP configurations
[**ntpServersDelete**](NtpApi.md#ntpServersDelete) | **DELETE** /ntp/servers | Delete NTP servers
[**ntpServersGet**](NtpApi.md#ntpServersGet) | **GET** /ntp/servers | Return NTP servers configuration
[**ntpServersPost**](NtpApi.md#ntpServersPost) | **POST** /ntp/servers | Add NTP servers
[**ntpServersPut**](NtpApi.md#ntpServersPut) | **PUT** /ntp/servers | Set NTP servers


<a name="ntpEnableGet"></a>
# **ntpEnableGet**
> ntpEnableGet()

Return NTP enable configuration

Return NTP enable configuration

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpEnableGet(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpEnablePut"></a>
# **ntpEnablePut**
> ntpEnablePut()

Set NTP enable configuration

Set NTP enable configuration

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpEnablePut(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpGet"></a>
# **ntpGet**
> ntpGet()

Return NTP configurations

Return NTP configurations

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpGet(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpPatch"></a>
# **ntpPatch**
> ntpPatch()

Modify NTP configurations

Modify NTP configurations

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpPatch(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpServersDelete"></a>
# **ntpServersDelete**
> ntpServersDelete()

Delete NTP servers

Delete NTP servers

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpServersDelete(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpServersGet"></a>
# **ntpServersGet**
> ntpServersGet()

Return NTP servers configuration

Return NTP servers configuration

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpServersGet(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpServersPost"></a>
# **ntpServersPost**
> ntpServersPost()

Add NTP servers

Add NTP servers

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpServersPost(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="ntpServersPut"></a>
# **ntpServersPut**
> ntpServersPut()

Set NTP servers

Set NTP servers

### Example
```javascript
var VegaOsApi = require('vega_os_api');
var defaultClient = VegaOsApi.ApiClient.default;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new VegaOsApi.NtpApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.ntpServersPut(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

