From 072d17a8d643f94540f6e003a898ae246f566cbe Mon Sep 17 00:00:00 2001 From: Dustin Mowcomber and Jovel Crisostomo Date: Tue, 27 Jan 2015 14:28:21 -0800 Subject: [PATCH 1/2] Update GET all IPs endpoint and add new GET assigned ips --- .../Web_API_v3/IP_Management/ip_addresses.md | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md b/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md index 26adbcf43b..7179439542 100644 --- a/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md +++ b/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md @@ -36,7 +36,8 @@ HTTP/1.1 201 OK {% anchor h2 %} GET {% endanchor %} -See a list of all IPs, including warm up status and pools. +See a list of all assigned and unassigned IPs. Response includes warm up status, pools, assigned subusers, and whitelabel info. +The start_date field corresponds to when warmup started for that IP. {% apiv3example get GET https://api.sendgrid.com/v3/ips %} {% v3response %} @@ -47,7 +48,32 @@ HTTP/1.1 200 OK "ip":"167.89.21.3", "pools":["new_test5"], "warmup":true, - "start_date":1409616000 + "start_date":1409616000, + "subusers": ["username1", "username2"], + "rdns": "01.email@test.com", + "pools": ["pool1", "pool2"] + } +] +{% endv3response %} +{% endapiv3example %} + +* * * * * + +{% anchor h2 %} +GET +{% endanchor %} +See only *assigned* IPs. + +{% apiv3example get GET https://api.sendgrid.com/v3/ips/assigned %} +{% v3response %} +HTTP/1.1 200 OK + +[ + { + "ip":"167.89.21.3", + "pools":["new_test5"], + "warmup":true, + "start_date":1409616000, } ] {% endv3response %} From 600fffa6a6f6f3799deff8e306c8d7d85c7bfdbc Mon Sep 17 00:00:00 2001 From: Dustin Mowcomber and Jovel Crisostomo Date: Tue, 27 Jan 2015 14:39:45 -0800 Subject: [PATCH 2/2] Minor fix --- source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md b/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md index 7179439542..c90ae6788e 100644 --- a/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md +++ b/source/API_Reference/Web_API_v3/IP_Management/ip_addresses.md @@ -50,7 +50,7 @@ HTTP/1.1 200 OK "warmup":true, "start_date":1409616000, "subusers": ["username1", "username2"], - "rdns": "01.email@test.com", + "rdns": "01.email.test.com", "pools": ["pool1", "pool2"] } ]