Package com.dnsimple.endpoints
Class Zones
java.lang.Object
com.dnsimple.endpoints.Zones
Provides access to the DNSimple Zones API.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivateDns(Number account, String zoneName) Activate DNS resolution for the zone in the account.checkZoneDistribution(Number account, String zone) Checks if a zone change is fully distributed to all our nameservers across the globe.checkZoneRecordDistribution(Number account, String zone, Number record) Checks if a zone record change is fully distributed to all our nameservers of our regions.createZoneRecord(Number account, String zone, ZoneRecordOptions options) Create a record in a zone.deactivateDns(Number account, String zoneName) Deactivate DNS resolution for the zone in the account.deleteZoneRecord(Number account, String zone, Number record) Delete a record from a zone.Get a specific zone associated to an account using the zone's name or ID.getZoneFile(Number account, String zone) Get the zone file associated to an account using the zone's name or ID.getZoneRecord(Number account, String zone, Number record) Get a specific record associated to a zone using the zone's name or ID.listZoneRecords(Number account, String zone) Lists the records in the zone.listZoneRecords(Number account, String zone, ListOptions options) Lists the records in the zone.Lists the zones in the account.listZones(Number account, ListOptions options) Lists the zones in the account.updateZoneRecord(Number account, String zone, Number record, ZoneRecordUpdateOptions options) Update a record in a zone.
-
Constructor Details
-
Zones
-
-
Method Details
-
activateDns
Activate DNS resolution for the zone in the account.- Parameters:
account- The account IDzoneName- The zone name- Returns:
- The zone
- See Also:
-
deactivateDns
Deactivate DNS resolution for the zone in the account.- Parameters:
account- The account IDzoneName- The zone name- Returns:
- The zone
- See Also:
-
listZones
Lists the zones in the account.- Parameters:
account- The account ID- Returns:
- The list zones response
- See Also:
-
listZones
Lists the zones in the account.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list zones response
- See Also:
-
getZone
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:
-
getZoneFile
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:
-
checkZoneDistribution
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:
-
listZoneRecords
Lists the records in the zone.- Parameters:
account- The account IDzone- The zone name- Returns:
- The list zone records response
- See Also:
-
listZoneRecords
public PaginatedResponse<ZoneRecord> listZoneRecords(Number account, 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:
-
createZoneRecord
public SimpleResponse<ZoneRecord> createZoneRecord(Number account, 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:
-
getZoneRecord
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:
-
updateZoneRecord
public SimpleResponse<ZoneRecord> updateZoneRecord(Number account, String zone, 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:
-
deleteZoneRecord
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:
-
checkZoneRecordDistribution
public SimpleResponse<ZoneDistribution> checkZoneRecordDistribution(Number account, String zone, 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:
-