Bulk delete allowed IP address ranges
curl --request POST \
--url https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowedIpAddressRangeIds": [
"clm9sq6s0000008kz7uvl7yz7",
"clm9sq6s0000108kz8ybn9r1c"
]
}
'import requests
url = "https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete"
payload = { "allowedIpAddressRangeIds": ["clm9sq6s0000008kz7uvl7yz7", "clm9sq6s0000108kz8ybn9r1c"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowedIpAddressRangeIds: ['clm9sq6s0000008kz7uvl7yz7', 'clm9sq6s0000108kz8ybn9r1c']
})
};
fetch('https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete', 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://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'allowedIpAddressRangeIds' => [
'clm9sq6s0000008kz7uvl7yz7',
'clm9sq6s0000108kz8ybn9r1c'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete"
payload := strings.NewReader("{\n \"allowedIpAddressRangeIds\": [\n \"clm9sq6s0000008kz7uvl7yz7\",\n \"clm9sq6s0000108kz8ybn9r1c\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"allowedIpAddressRangeIds\": [\n \"clm9sq6s0000008kz7uvl7yz7\",\n \"clm9sq6s0000108kz8ybn9r1c\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowedIpAddressRangeIds\": [\n \"clm9sq6s0000008kz7uvl7yz7\",\n \"clm9sq6s0000108kz8ybn9r1c\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}Allowed IP Address Range
Bulk delete allowed IP address ranges
Delete up to 1000 allowed IP address ranges for the organization in one request. The whole batch is deleted atomically. Unknown or duplicate IDs are accepted and ignored; matching rows for this organization are deleted.
POST
/
organizations
/
{organizationId}
/
allowed-ip-address-ranges
/
bulk-delete
Bulk delete allowed IP address ranges
curl --request POST \
--url https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowedIpAddressRangeIds": [
"clm9sq6s0000008kz7uvl7yz7",
"clm9sq6s0000108kz8ybn9r1c"
]
}
'import requests
url = "https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete"
payload = { "allowedIpAddressRangeIds": ["clm9sq6s0000008kz7uvl7yz7", "clm9sq6s0000108kz8ybn9r1c"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowedIpAddressRangeIds: ['clm9sq6s0000008kz7uvl7yz7', 'clm9sq6s0000108kz8ybn9r1c']
})
};
fetch('https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete', 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://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'allowedIpAddressRangeIds' => [
'clm9sq6s0000008kz7uvl7yz7',
'clm9sq6s0000108kz8ybn9r1c'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete"
payload := strings.NewReader("{\n \"allowedIpAddressRangeIds\": [\n \"clm9sq6s0000008kz7uvl7yz7\",\n \"clm9sq6s0000108kz8ybn9r1c\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"allowedIpAddressRangeIds\": [\n \"clm9sq6s0000008kz7uvl7yz7\",\n \"clm9sq6s0000108kz8ybn9r1c\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.astronomer.io/v1/organizations/{organizationId}/allowed-ip-address-ranges/bulk-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowedIpAddressRangeIds\": [\n \"clm9sq6s0000008kz7uvl7yz7\",\n \"clm9sq6s0000108kz8ybn9r1c\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}{
"message": "<string>",
"requestId": "<string>",
"statusCode": 500,
"fieldErrors": [
{
"code": "<string>",
"field": "<string>",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the Organization where you want to delete the allowed IP address ranges.
Body
application/json
The request body containing the list of allowed IP address range IDs to delete.
The allowed IP address range IDs to delete. Duplicate and unknown IDs are accepted; existing matching rows are deleted atomically.
Required array length:
1 - 1000 elementsExample:
[
"clm9sq6s0000008kz7uvl7yz7",
"clm9sq6s0000108kz8ybn9r1c"
]
Response
Was this page helpful?
⌘I