# VegaOsApi.HostnameApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**hostnameGet**](HostnameApi.md#hostnameGet) | **GET** /hostname | Return hostname information
[**hostnamePut**](HostnameApi.md#hostnamePut) | **PUT** /hostname | Modify hostname information


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

Return hostname information

Return hostname information

### 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.HostnameApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.hostnameGet(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="hostnamePut"></a>
# **hostnamePut**
> hostnamePut()

Modify hostname information

Modify hostname information

### 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.HostnameApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.hostnamePut(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

