Package com.dnsimple.endpoints
Class Zones
- java.lang.Object
-
- com.dnsimple.endpoints.Zones
-
public class Zones extends java.lang.ObjectProvides access to the DNSimple Zones API.- See Also:
- https://developer.dnsimple.com/v2/zones
-
-
Constructor Summary
Constructors Constructor Description Zones(HttpEndpointClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleResponse<ZoneDistribution>checkZoneDistribution(java.lang.Number account, java.lang.String zone)Checks if a zone change is fully distributed to all our nameservers across the globe.SimpleResponse<ZoneDistribution>checkZoneRecordDistribution(java.lang.Number account, java.lang.String zone, java.lang.Number record)Checks if a zone record change is fully distributed to all our nameservers of our regions.SimpleResponse<ZoneRecord>createZoneRecord(java.lang.Number account, java.lang.String zone, ZoneRecordOptions options)Create a record in a zone.EmptyResponsedeleteZoneRecord(java.lang.Number account, java.lang.String zone, java.lang.Number record)Delete a record from a zone.SimpleResponse<Zone>getZone(java.lang.Number account, java.lang.String zone)Get a specific zone associated to an account using the zone's name or ID.SimpleResponse<ZoneFile>getZoneFile(java.lang.Number account, java.lang.String zone)Get the zone file associated to an account using the zone's name or ID.SimpleResponse<ZoneRecord>getZoneRecord(java.lang.Number account, java.lang.String zone, java.lang.Number record)Get a specific record associated to a zone using the zone's name or ID.PaginatedResponse<ZoneRecord>listZoneRecords(java.lang.Number account, java.lang.String zone)Lists the records in the zone.PaginatedResponse<ZoneRecord>listZoneRecords(java.lang.Number account, java.lang.String zone, ListOptions options)Lists the records in the zone.PaginatedResponse<Zone>listZones(java.lang.Number account)Lists the zones in the account.PaginatedResponse<Zone>listZones(java.lang.Number account, ListOptions options)Lists the zones in the account.SimpleResponse<ZoneRecord>updateZoneRecord(java.lang.Number account, java.lang.String zone, java.lang.Number record, ZoneRecordUpdateOptions options)Update a record in a zone.
-
-
-
Constructor Detail
-
Zones
public Zones(HttpEndpointClient client)
-
-
Method Detail
-
listZones
public PaginatedResponse<Zone> listZones(java.lang.Number account)
Lists the zones in the account.- Parameters:
account- The account ID- Returns:
- The list zones response
- See Also:
- https://developer.dnsimple.com/v2/zones/#listZones
-
listZones
public PaginatedResponse<Zone> listZones(java.lang.Number account, ListOptions options)
Lists the zones in the account.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list zones response
- See Also:
- https://developer.dnsimple.com/v2/zones/#listZones
-
getZone
public SimpleResponse<Zone> getZone(java.lang.Number account, java.lang.String zone)
Get a specific zone associated to an account using the zone's name or ID.- Parameters:
account- The account IDzone- The zone name- Returns:
- The get zone response
- See Also:
- https://developer.dnsimple.com/v2/zones/#getZone
-
getZoneFile
public SimpleResponse<ZoneFile> getZoneFile(java.lang.Number account, java.lang.String zone)
Get the zone file associated to an account using the zone's name or ID.- Parameters:
account- The account IDzone- The zone name- Returns:
- The get zone file response
- See Also:
- https://developer.dnsimple.com/v2/zones/#getZoneFile
-
checkZoneDistribution
public SimpleResponse<ZoneDistribution> checkZoneDistribution(java.lang.Number account, java.lang.String zone)
Checks if a zone change is fully distributed to all our nameservers across the globe.- Parameters:
account- The account IDzone- The zone name- Returns:
- The result of the check
- See Also:
- https://developer.dnsimple.com/v2/zones/#checkZoneDistribution
-
listZoneRecords
public PaginatedResponse<ZoneRecord> listZoneRecords(java.lang.Number account, java.lang.String zone)
Lists the records in the zone.- Parameters:
account- The account IDzone- The zone name- Returns:
- The list zone records response
- See Also:
- https://developer.dnsimple.com/v2/zones/records/#listZoneRecords
-
listZoneRecords
public PaginatedResponse<ZoneRecord> listZoneRecords(java.lang.Number account, java.lang.String zone, ListOptions options)
Lists the records in the zone.- Parameters:
account- The account IDzone- The zone nameoptions- The options for the list request- Returns:
- The list zone records response
- See Also:
- https://developer.dnsimple.com/v2/zones/records/#listZoneRecords
-
createZoneRecord
public SimpleResponse<ZoneRecord> createZoneRecord(java.lang.Number account, java.lang.String zone, ZoneRecordOptions options)
Create a record in a zone.- Parameters:
account- The account IDzone- The zone nameoptions- Options for the Zone record- Returns:
- The create zone record response
- See Also:
- https://developer.dnsimple.com/v2/zones/records/#createZoneRecord
-
getZoneRecord
public SimpleResponse<ZoneRecord> getZoneRecord(java.lang.Number account, java.lang.String zone, java.lang.Number record)
Get a specific record associated to a zone using the zone's name or ID.- Parameters:
account- The account IDzone- The zone namerecord- The zone record ID- Returns:
- The get zone record response
- See Also:
- https://developer.dnsimple.com/v2/zones/records/#getZoneRecord
-
updateZoneRecord
public SimpleResponse<ZoneRecord> updateZoneRecord(java.lang.Number account, java.lang.String zone, java.lang.Number record, ZoneRecordUpdateOptions options)
Update a record in a zone.- Parameters:
account- The account IDzone- The zone namerecord- The zone record IDoptions- The options to update the Zone record- Returns:
- The update zone record response
- See Also:
- https://developer.dnsimple.com/v2/zones/records/#updateZoneRecord
-
deleteZoneRecord
public EmptyResponse deleteZoneRecord(java.lang.Number account, java.lang.String zone, java.lang.Number record)
Delete a record from a zone.- Parameters:
account- The account IDzone- The zone namerecord- The zone record ID- Returns:
- The delete zone record response
- See Also:
- https://developer.dnsimple.com/v2/zones/records/#deleteZoneRecord
-
checkZoneRecordDistribution
public SimpleResponse<ZoneDistribution> checkZoneRecordDistribution(java.lang.Number account, java.lang.String zone, java.lang.Number record)
Checks if a zone record change is fully distributed to all our nameservers of our regions.- Parameters:
account- The account IDzone- The zone namerecord- The zone record ID- Returns:
- The result of the check
- See Also:
- https://developer.dnsimple.com/v2/zones/#checkZoneRecordDistribution
-
-