https://wiki.offerit.com/index.php?title=Offerit_REST_API_Remove_Global_Void_Ip&feed=atom&action=history
Offerit REST API Remove Global Void Ip - Revision history
2024-03-29T10:18:12Z
Revision history for this page on the wiki
MediaWiki 1.27.5
https://wiki.offerit.com/index.php?title=Offerit_REST_API_Remove_Global_Void_Ip&diff=4092&oldid=prev
OfferitRob: /* POST /config/remove_global_void_ip */
2022-08-05T21:03:36Z
<p><span dir="auto"><span class="autocomment">POST /config/remove_global_void_ip</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 21:03, 5 August 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4" >Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== '''POST /config/remove_global_void_ip''' ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== '''POST /config/remove_global_void_ip''' ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Description'''  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Description'''  </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*The api/config/remove_global_void_ip action removes a provided ip from the Config -> Security, Global <del class="diffchange diffchange-inline">Host and Post </del>Allowed IPs</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*The api/config/remove_global_void_ip action removes a provided ip from the Config -> Security, Global <ins class="diffchange diffchange-inline">Void </ins>Allowed IPs</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Resource URL'''</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Resource URL'''</div></td></tr>
</table>
OfferitRob
https://wiki.offerit.com/index.php?title=Offerit_REST_API_Remove_Global_Void_Ip&diff=4091&oldid=prev
OfferitRob at 21:02, 5 August 2022
2022-08-05T21:02:21Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 21:02, 5 August 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4" >Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== '''POST /config/remove_global_void_ip''' ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== '''POST /config/remove_global_void_ip''' ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Description'''  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Description'''  </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*The api/config/remove_global_void_ip action <del class="diffchange diffchange-inline">adds </del>a <del class="diffchange diffchange-inline">valid </del>ip <del class="diffchange diffchange-inline">to </del>the Config->Security<del class="diffchange diffchange-inline">-></del>Global <del class="diffchange diffchange-inline">Postback </del>Allowed IPs</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*The api/config/remove_global_void_ip action <ins class="diffchange diffchange-inline">removes </ins>a <ins class="diffchange diffchange-inline">provided </ins>ip <ins class="diffchange diffchange-inline">from </ins>the Config -> Security<ins class="diffchange diffchange-inline">, </ins>Global <ins class="diffchange diffchange-inline">Host and Post </ins>Allowed IPs</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Resource URL'''</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Resource URL'''</div></td></tr>
</table>
OfferitRob
https://wiki.offerit.com/index.php?title=Offerit_REST_API_Remove_Global_Void_Ip&diff=4090&oldid=prev
OfferitRob: Created page with "{{Offerit Manual | show_rest_api_section = true }} == '''POST /config/remove_global_void_ip''' == '''Description''' *The api/config/remove_global_void_ip action adds a valid..."
2022-08-05T18:43:28Z
<p>Created page with "{{Offerit Manual | show_rest_api_section = true }} == '''POST /config/remove_global_void_ip''' == '''Description''' *The api/config/remove_global_void_ip action adds a valid..."</p>
<p><b>New page</b></p><div>{{Offerit Manual<br />
| show_rest_api_section = true<br />
}}<br />
== '''POST /config/remove_global_void_ip''' ==<br />
'''Description''' <br />
*The api/config/remove_global_void_ip action adds a valid ip to the Config->Security->Global Postback Allowed IPs<br />
<br />
'''Resource URL'''<br />
*<nowiki>https://domain/api/config/remove_global_void_ip</nowiki><br />
*Replace domain with the Offerit domain<br />
<br />
'''[[Offerit_REST_API_Overview#Allowed_HTTP_Request_Methods|Request Method''']]<br />
*POST<br />
<br />
'''Response Format'''<br />
*JSON<br />
<br />
'''[[Offerit_REST_API_Overview#Authentication|Authentication]]'''<br />
*HTTP headers<br />
<br />
== '''Parameters''' ==<br />
'''Parameters must be sent with the request body. The examples below show the parameters sent as x-www-form-urlencoded'''<br />
<br />
*ip<br />
**'''''type: string'''''<br />
**'''required'''<br />
**ipv4 or ipv6 format<br />
<br />
<br />
== '''Example Request''' ==<br />
<br />
'''POST'''<br />
<br />
<nowiki>https://domain/api/config/remove_global_void_ip</nowiki><br />
<br />
*Response: <br />
<pre><br />
{<br />
"result": "success",<br />
"data": "Ip removed / not in list / list not set"<br />
}<br />
<br />
{<br />
"result": "error",<br />
"data": "Invalid ip"<br />
}<br />
</pre><br />
<br />
== '''Example Code''' ==<br />
<br />
'''PHP'''<br />
<pre><br />
<?php<br />
$curl = curl_init();<br />
<br />
$data = array(<br />
'ip' => '73.279.112.30',<br />
);<br />
<br />
$url = 'https://domain/api/config/remove_global_void_ip';<br />
<br />
$headers = array(<br />
'api-key: 44b5498dbcb481a0d00b404c0169af62',<br />
'api-username: offerit_admin'<br />
);<br />
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");<br />
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);<br />
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);<br />
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));<br />
curl_setopt($curl, CURLOPT_URL, $url);<br />
<br />
$resp = curl_exec($curl);<br />
//dumps an associative array representation of the json<br />
var_dump(json_decode($resp, true));<br />
// Close request to clear up some resources<br />
curl_close($curl);<br />
?><br />
</pre><br />
<br />
<br />
<br />
[[Category:Offerit API Articles]]</div>
OfferitRob