From 49b8fbdd67e2ffd9816172ad84ec6cce2dbb2881 Mon Sep 17 00:00:00 2001 From: Matthew Fine Date: Wed, 6 Sep 2017 11:44:32 -0500 Subject: [PATCH] adding getRequestBodyV6 method to the Route53 class adding getRequestBodyV6 method to add AAAA rtype to Route53 class. --- src/etc/inc/r53.class | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/etc/inc/r53.class b/src/etc/inc/r53.class index 4ec4cd9af7..d1b0d40635 100644 --- a/src/etc/inc/r53.class +++ b/src/etc/inc/r53.class @@ -99,6 +99,23 @@ class Route53 return $xmlreq; } + public function getRequestBodyV6($fqdn, $ip, $ttl){ + $xmlreq = ""; + $xmlreq .= ""; + $xmlreq .= ""; + $xmlreq .= "UPSERT"; + $xmlreq .= ""; + $xmlreq .= sprintf("%s", $fqdn); + $xmlreq .= "AAAA"; + $xmlreq .= sprintf("%d", $ttl); + $xmlreq .= sprintf("%s", $ip); + $xmlreq .= ""; + $xmlreq .= ""; + $xmlreq .= ""; + + return $xmlreq; + } + /** * Return API URL *