| Constructor and Description |
|---|
ZonesEndpoint(HttpEndpointClient client) |
| Modifier and Type | Method and Description |
|---|---|
CreateZoneRecordResponse |
createZoneRecord(String accountId,
String zoneId,
Map<String,Object> attributes)
Create a record in a zone.
|
DeleteZoneRecordResponse |
deleteZoneRecord(String accountId,
String zoneId,
String recordId)
Delete a record from a zone.
|
GetZoneResponse |
getZone(String accountId,
String zoneId)
Get a specific zone associated to an account using the zone's name or ID.
|
GetZoneFileResponse |
getZoneFile(String accountId,
String zoneId)
Get the zone file associated to an account using the zone's name or ID.
|
GetZoneRecordResponse |
getZoneRecord(String accountId,
String zoneId,
String recordId)
Get a specific record associated to a zone using the zone's name or ID.
|
ListZoneRecordsResponse |
listZoneRecords(String accountId,
String zoneId)
Lists the records in the zone.
|
ListZoneRecordsResponse |
listZoneRecords(String accountId,
String zoneId,
Map<String,Object> options)
Lists the records in the zone.
|
ListZonesResponse |
listZones(String accountId)
Lists the zones in the account.
|
ListZonesResponse |
listZones(String accountId,
Map<String,Object> options)
Lists the zones in the account.
|
UpdateZoneRecordResponse |
updateZoneRecord(String accountId,
String zoneId,
String recordId,
Map<String,Object> attributes)
Update a record in a zone.
|
public ZonesEndpoint(HttpEndpointClient client)
public ListZonesResponse listZones(String accountId) throws DnsimpleException, IOException
ZoneslistZones in interface ZonesaccountId - The account IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListZonesResponse listZones(String accountId, Map<String,Object> options) throws DnsimpleException, IOException
ZoneslistZones in interface ZonesaccountId - The account IDoptions - A Map of options to pass to the zones APIDnsimpleException - Any API errorsIOException - Any IO errorspublic GetZoneResponse getZone(String accountId, String zoneId) throws DnsimpleException, IOException
ZonesgetZone in interface ZonesaccountId - The account IDzoneId - The zone name or IDDnsimpleException - Any API errorsIOException - Any IO errorspublic GetZoneFileResponse getZoneFile(String accountId, String zoneId) throws DnsimpleException, IOException
ZonesgetZoneFile in interface ZonesaccountId - The account IDzoneId - The zone name or IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListZoneRecordsResponse listZoneRecords(String accountId, String zoneId) throws DnsimpleException, IOException
ZoneslistZoneRecords in interface ZonesaccountId - The account IDzoneId - The zone name or IDDnsimpleException - Any API errorsIOException - Any IO errorspublic ListZoneRecordsResponse listZoneRecords(String accountId, String zoneId, Map<String,Object> options) throws DnsimpleException, IOException
ZoneslistZoneRecords in interface ZonesaccountId - The account IDzoneId - The zone name or IDoptions - A Map of options to pass to the zones APIDnsimpleException - Any API errorsIOException - Any IO errorspublic GetZoneRecordResponse getZoneRecord(String accountId, String zoneId, String recordId) throws DnsimpleException, IOException
ZonesgetZoneRecord in interface ZonesaccountId - The account IDzoneId - The zone name or IDrecordId - The zone record IDDnsimpleException - Any API errorsIOException - Any IO errorspublic CreateZoneRecordResponse createZoneRecord(String accountId, String zoneId, Map<String,Object> attributes) throws DnsimpleException, IOException
ZonescreateZoneRecord in interface ZonesaccountId - The account IDzoneId - The zone name or IDattributes - The zone attributesDnsimpleException - Any API errorsIOException - Any IO errorspublic UpdateZoneRecordResponse updateZoneRecord(String accountId, String zoneId, String recordId, Map<String,Object> attributes) throws DnsimpleException, IOException
ZonesupdateZoneRecord in interface ZonesaccountId - The account IDzoneId - The zone name or IDrecordId - The zone record IDattributes - The zone attributesDnsimpleException - Any API errorsIOException - Any IO errorspublic DeleteZoneRecordResponse deleteZoneRecord(String accountId, String zoneId, String recordId) throws DnsimpleException, IOException
ZonesdeleteZoneRecord in interface ZonesaccountId - The account IDzoneId - The zone name or IDrecordId - The zone record IDDnsimpleException - Any API errorsIOException - Any IO errorsCopyright © 2017 DNSimple. All rights reserved.