Package org.openstack4j.api.dns.v2
Interface RecordsetService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
RecordsetServiceImpl
public interface RecordsetService extends RestService
Designate V2 Recordset Service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Recordsetcreate(String zoneId, String name, String type, List<String> records)create a new recordsetRecordsetcreate(String zoneId, Recordset recordSet)create a new recordsetActionResponsedelete(String zoneId, String recordsetId)delete a recordset within a zoneRecordsetget(String zoneId, String recordsetId)gets detailed information about a specified recordset in a zone by idList<? extends Recordset>list()list all recordsets owned by projectList<? extends Recordset>list(String zoneId)list recordsets in a zoneRecordsetupdate(String zoneId, Recordset recordset)updates an existing recordset
-
-
-
Method Detail
-
create
Recordset create(String zoneId, Recordset recordSet)
create a new recordset- Parameters:
zoneId- the identifier of the zonerecordSet- the Recordset- Returns:
- the newly created Recordset
-
create
Recordset create(String zoneId, String name, String type, List<String> records)
create a new recordset- Parameters:
zoneId- the identifier for the zonename- the DNS name for the recordsettype- the RRTYPE of the recordsetrecords- a list of data for this recordset. Each item will be a separate record in Designate These items should conform to the DNS spec for the record type - e.g. A records must be IPv4 addresses, CNAME records must be a hostname.- Returns:
- the newly created Recordset
-
get
Recordset get(String zoneId, String recordsetId)
gets detailed information about a specified recordset in a zone by id- Parameters:
zoneId- the uui of the zonerecordsetId- the uuid of the recordset- Returns:
- the recordset
-
update
Recordset update(String zoneId, Recordset recordset)
updates an existing recordset- Parameters:
zoneId- the identifier of the zonerecordset- the recordset set to update- Returns:
- the updated recordset
-
delete
ActionResponse delete(String zoneId, String recordsetId)
delete a recordset within a zone- Parameters:
zoneId- the uuid of the zonerecordsetId- the uuid of the recordset- Returns:
- the action response
-
list
List<? extends Recordset> list()
list all recordsets owned by project- Returns:
- list of recordsets
-
-