@FeignClient(name="direct-config-service",
url="${direct.config.service.url}",
configuration=org.nhindirect.common.rest.feign.DefaultFeignClientConfiguration.class)
public interface DNSClient
| Modifier and Type | Method and Description |
|---|---|
void |
addDNSRecord(org.nhindirect.config.model.DNSRecord record) |
Collection<org.nhindirect.config.model.DNSRecord> |
getDNSRecords(int type,
String name) |
void |
removeDNSRecordsByIds(String ids) |
void |
updateDNSRecord(org.nhindirect.config.model.DNSRecord updateRecord) |
@GetMapping(value="/dns") Collection<org.nhindirect.config.model.DNSRecord> getDNSRecords(@RequestParam(name="type",defaultValue="-1") int type, @RequestParam(name="name",defaultValue="") String name) throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@PutMapping(value="/dns",
consumes="application/json")
void addDNSRecord(@RequestBody
org.nhindirect.config.model.DNSRecord record)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@PostMapping(value="/dns",
consumes="application/json")
void updateDNSRecord(@RequestBody
org.nhindirect.config.model.DNSRecord updateRecord)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@DeleteMapping(value="/dns/{ids}")
void removeDNSRecordsByIds(@PathVariable(value="ids")
String ids)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceExceptionCopyright © 2021. All rights reserved.