Get IP Allowlist
curl --request GET \
--url https://app.launchdarkly.com/api/v2/account/ip-allowlist \
--header 'Authorization: <api-key>'import requests
url = "https://app.launchdarkly.com/api/v2/account/ip-allowlist"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.launchdarkly.com/api/v2/account/ip-allowlist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.launchdarkly.com/api/v2/account/ip-allowlist",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.launchdarkly.com/api/v2/account/ip-allowlist"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.launchdarkly.com/api/v2/account/ip-allowlist")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/account/ip-allowlist")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"entries": [
{
"_createdAt": 0,
"ipAddress": "203.0.113.0/24",
"description": "Office network",
"_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"_updatedAt": 6,
"_createdByMemberId": "507f1f77bcf86cd799439011"
},
{
"_createdAt": 0,
"ipAddress": "203.0.113.0/24",
"description": "Office network",
"_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"_updatedAt": 6,
"_createdByMemberId": "507f1f77bcf86cd799439011"
}
],
"apiTokenAllowlistEnabled": false,
"_links": {
"self": {
"href": "href",
"type": "type"
}
},
"sessionAllowlistEnabled": true,
"totalCount": 42
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Get IP Allowlist
Get the current IP allowlist configuration and entries.
GET
/
api
/
v2
/
account
/
ip-allowlist
Get IP Allowlist
curl --request GET \
--url https://app.launchdarkly.com/api/v2/account/ip-allowlist \
--header 'Authorization: <api-key>'import requests
url = "https://app.launchdarkly.com/api/v2/account/ip-allowlist"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.launchdarkly.com/api/v2/account/ip-allowlist', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.launchdarkly.com/api/v2/account/ip-allowlist",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.launchdarkly.com/api/v2/account/ip-allowlist"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.launchdarkly.com/api/v2/account/ip-allowlist")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/account/ip-allowlist")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"entries": [
{
"_createdAt": 0,
"ipAddress": "203.0.113.0/24",
"description": "Office network",
"_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"_updatedAt": 6,
"_createdByMemberId": "507f1f77bcf86cd799439011"
},
{
"_createdAt": 0,
"ipAddress": "203.0.113.0/24",
"description": "Office network",
"_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"_updatedAt": 6,
"_createdByMemberId": "507f1f77bcf86cd799439011"
}
],
"apiTokenAllowlistEnabled": false,
"_links": {
"self": {
"href": "href",
"type": "type"
}
},
"sessionAllowlistEnabled": true,
"totalCount": 42
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Authorizations
Query Parameters
A case-insensitive substring to filter entries by. Matches against the IP address or CIDR block and the description.
The number of entries to return. Defaults to 20. Maximum is 100.
The number of entries to skip. Used for pagination.
Response
IP allowlist configuration and entries
Example:
true
Example:
false
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
{ "self": { "href": "href", "type": "type" } }
The total number of entries matching the query, before pagination.
Example:
42