# HivelocityApi.DomainsApi

All URIs are relative to *https://localhost/api/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteARecordIdResource**](DomainsApi.md#deleteARecordIdResource) | **DELETE** /domains/{domainID}/a-record/{recordId} | Delete a single A Record value for given zone
[**deleteAaaaRecordIdResource**](DomainsApi.md#deleteAaaaRecordIdResource) | **DELETE** /domains/{domainID}/aaaa-record/{recordId} | Delete an AAAA Record for given zone
[**deleteDomainIdResource**](DomainsApi.md#deleteDomainIdResource) | **DELETE** /domains/{domainId} | Delete domain for given id
[**deleteMxRecordIdResource**](DomainsApi.md#deleteMxRecordIdResource) | **DELETE** /domains/{domainID}/mx-record/{recordId} | Delete an MX Record for given zone
[**getARecordIdResource**](DomainsApi.md#getARecordIdResource) | **GET** /domains/{domainID}/a-record/{recordId} | Return Single A Records found for given id
[**getARecordResource**](DomainsApi.md#getARecordResource) | **GET** /domains/{domainID}/a-record | Return all A Records found for given zone
[**getAaaaRecordIdResource**](DomainsApi.md#getAaaaRecordIdResource) | **GET** /domains/{domainID}/aaaa-record/{recordId} | Return Single AAAA Records found for given id
[**getAaaaRecordResource**](DomainsApi.md#getAaaaRecordResource) | **GET** /domains/{domainID}/aaaa-record | Return all AAAA Records found for given zone
[**getDomainIdResource**](DomainsApi.md#getDomainIdResource) | **GET** /domains/{domainId} | Return a domain for given id
[**getDomainResource**](DomainsApi.md#getDomainResource) | **GET** /domains/ | Return the domains of a client
[**getMxRecordIdResource**](DomainsApi.md#getMxRecordIdResource) | **GET** /domains/{domainID}/mx-record/{recordId} | Return Single MX Records found for given id
[**getMxRecordResource**](DomainsApi.md#getMxRecordResource) | **GET** /domains/{domainID}/mx-record | Return all MX Records found for given zone
[**getPtrRecordIdResource**](DomainsApi.md#getPtrRecordIdResource) | **GET** /domains/ptr/{recordId} | 
[**getPtrRecordResource**](DomainsApi.md#getPtrRecordResource) | **GET** /domains/ptr | Return the PTR records of a client
[**postARecordResource**](DomainsApi.md#postARecordResource) | **POST** /domains/{domainID}/a-record | Create a new A Record for given zone
[**postAaaaRecordResource**](DomainsApi.md#postAaaaRecordResource) | **POST** /domains/{domainID}/aaaa-record | Create a new AAAA Record for given zone
[**postDomainResource**](DomainsApi.md#postDomainResource) | **POST** /domains/ | Create a new domain
[**postMxRecordResource**](DomainsApi.md#postMxRecordResource) | **POST** /domains/{domainID}/mx-record | Create a new MX Record for given zone
[**putARecordIdResource**](DomainsApi.md#putARecordIdResource) | **PUT** /domains/{domainID}/a-record/{recordId} | Update an A Record for given zone
[**putAaaaRecordIdResource**](DomainsApi.md#putAaaaRecordIdResource) | **PUT** /domains/{domainID}/aaaa-record/{recordId} | Update an AAAA Record for given id
[**putMxRecordIdResource**](DomainsApi.md#putMxRecordIdResource) | **PUT** /domains/{domainID}/mx-record/{recordId} | Update an MX Record for given zone
[**putPtrRecordIdResource**](DomainsApi.md#putPtrRecordIdResource) | **PUT** /domains/ptr/{recordId} | 


<a name="deleteARecordIdResource"></a>
# **deleteARecordIdResource**
> deleteARecordIdResource(domainID, recordId)

Delete a single A Record value for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="deleteAaaaRecordIdResource"></a>
# **deleteAaaaRecordIdResource**
> deleteAaaaRecordIdResource(domainID, recordId)

Delete an AAAA Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="deleteDomainIdResource"></a>
# **deleteDomainIdResource**
> deleteDomainIdResource(domainId)

Delete domain for given id

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainId = 56; // Number | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainId** | **Number**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="deleteMxRecordIdResource"></a>
# **deleteMxRecordIdResource**
> deleteMxRecordIdResource(domainID, recordId)

Delete an MX Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 

### Return type

null (empty response body)

### Authorization

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

### HTTP request headers

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

<a name="getARecordIdResource"></a>
# **getARecordIdResource**
> ARecordReturn getARecordIdResource(domainID, recordId, opts)

Return Single A Records found for given id

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getARecordIdResource(domainID, recordId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**ARecordReturn**](ARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getARecordResource"></a>
# **getARecordResource**
> [ARecordReturn] getARecordResource(domainID, , opts)

Return all A Records found for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getARecordResource(domainID, , opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**[ARecordReturn]**](ARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getAaaaRecordIdResource"></a>
# **getAaaaRecordIdResource**
> AAAARecordReturn getAaaaRecordIdResource(domainID, recordId, opts)

Return Single AAAA Records found for given id

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getAaaaRecordIdResource(domainID, recordId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**AAAARecordReturn**](AAAARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getAaaaRecordResource"></a>
# **getAaaaRecordResource**
> [AAAARecordReturn] getAaaaRecordResource(domainID, , opts)

Return all AAAA Records found for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getAaaaRecordResource(domainID, , opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**[AAAARecordReturn]**](AAAARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getDomainIdResource"></a>
# **getDomainIdResource**
> DomainReturn getDomainIdResource(domainId, opts)

Return a domain for given id

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainId = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getDomainIdResource(domainId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainId** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**DomainReturn**](DomainReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getDomainResource"></a>
# **getDomainResource**
> [DomainReturn] getDomainResource(opts)

Return the domains of a client

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**[DomainReturn]**](DomainReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getMxRecordIdResource"></a>
# **getMxRecordIdResource**
> MXRecordReturn getMxRecordIdResource(domainID, recordId, opts)

Return Single MX Records found for given id

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getMxRecordIdResource(domainID, recordId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**MXRecordReturn**](MXRecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getMxRecordResource"></a>
# **getMxRecordResource**
> [MXRecordReturn] getMxRecordResource(domainID, , opts)

Return all MX Records found for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getMxRecordResource(domainID, , opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**[MXRecordReturn]**](MXRecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getPtrRecordIdResource"></a>
# **getPtrRecordIdResource**
> PTRRecordReturn getPtrRecordIdResource(recordId, , opts)



### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var recordId = 56; // Number | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getPtrRecordIdResource(recordId, , opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **recordId** | **Number**|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**PTRRecordReturn**](PTRRecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="getPtrRecordResource"></a>
# **getPtrRecordResource**
> [PTRRecordReturn] getPtrRecordResource(opts)

Return the PTR records of a client

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**[PTRRecordReturn]**](PTRRecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="postARecordResource"></a>
# **postARecordResource**
> ARecordReturn postARecordResource(domainID, payload, opts)

Create a new A Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var payload = new HivelocityApi.ARecordCreate(); // ARecordCreate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postARecordResource(domainID, payload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **payload** | [**ARecordCreate**](ARecordCreate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**ARecordReturn**](ARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="postAaaaRecordResource"></a>
# **postAaaaRecordResource**
> AAAARecordReturn postAaaaRecordResource(domainID, payload, opts)

Create a new AAAA Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var payload = new HivelocityApi.AAAARecordCreate(); // AAAARecordCreate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postAaaaRecordResource(domainID, payload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **payload** | [**AAAARecordCreate**](AAAARecordCreate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**AAAARecordReturn**](AAAARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="postDomainResource"></a>
# **postDomainResource**
> DomainReturn postDomainResource(payload, opts)

Create a new domain

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var payload = new HivelocityApi.DomainCreate(); // DomainCreate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postDomainResource(payload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **payload** | [**DomainCreate**](DomainCreate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**DomainReturn**](DomainReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="postMxRecordResource"></a>
# **postMxRecordResource**
> MXRecordReturn postMxRecordResource(domainID, payload, opts)

Create a new MX Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var payload = new HivelocityApi.MXRecordCreate(); // MXRecordCreate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postMxRecordResource(domainID, payload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **payload** | [**MXRecordCreate**](MXRecordCreate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**MXRecordReturn**](MXRecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="putARecordIdResource"></a>
# **putARecordIdResource**
> ARecordReturn putARecordIdResource(domainID, recordIdpayload, opts)

Update an A Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 

var payload = new HivelocityApi.ARecordUpdate(); // ARecordUpdate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.putARecordIdResource(domainID, recordIdpayload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 
 **payload** | [**ARecordUpdate**](ARecordUpdate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**ARecordReturn**](ARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="putAaaaRecordIdResource"></a>
# **putAaaaRecordIdResource**
> AAAARecordReturn putAaaaRecordIdResource(domainID, recordIdpayload, opts)

Update an AAAA Record for given id

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 

var payload = new HivelocityApi.AAAARecordUpdate(); // AAAARecordUpdate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.putAaaaRecordIdResource(domainID, recordIdpayload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 
 **payload** | [**AAAARecordUpdate**](AAAARecordUpdate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**AAAARecordReturn**](AAAARecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="putMxRecordIdResource"></a>
# **putMxRecordIdResource**
> MXRecordReturn putMxRecordIdResource(domainID, recordIdpayload, opts)

Update an MX Record for given zone

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var domainID = 56; // Number | 

var recordId = 56; // Number | 

var payload = new HivelocityApi.MXRecordUpdate(); // MXRecordUpdate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.putMxRecordIdResource(domainID, recordIdpayload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **domainID** | **Number**|  | 
 **recordId** | **Number**|  | 
 **payload** | [**MXRecordUpdate**](MXRecordUpdate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**MXRecordReturn**](MXRecordReturn.md)

### Authorization

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

### HTTP request headers

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

<a name="putPtrRecordIdResource"></a>
# **putPtrRecordIdResource**
> PTRRecordReturn putPtrRecordIdResource(recordId, payload, opts)



### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

var apiInstance = new HivelocityApi.DomainsApi();

var recordId = 56; // Number | 

var payload = new HivelocityApi.PTRRecordUpdate(); // PTRRecordUpdate | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.putPtrRecordIdResource(recordId, payload, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **recordId** | **Number**|  | 
 **payload** | [**PTRRecordUpdate**](PTRRecordUpdate.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**PTRRecordReturn**](PTRRecordReturn.md)

### Authorization

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

### HTTP request headers

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

