List Database Instances
curl --request POST \
--url https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances \
--header 'Content-Type: */*' \
--data '
{
"account_ids": [
"<string>"
]
}
'import requests
url = "https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances"
payload = { "account_ids": ["<string>"] }
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify({account_ids: ['<string>']})
};
fetch('https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances', 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://use.hoop.dev/api/integrations/aws/rds/describe-db-instances",
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([
'account_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$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://use.hoop.dev/api/integrations/aws/rds/describe-db-instances"
payload := strings.NewReader("{\n \"account_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances")
.header("Content-Type", "*/*")
.body("{\n \"account_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"account_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"account_id": "123456789012",
"arn": "arn:aws:rds:us-west-2:123456789012:db:my-postgres-db",
"availability_zone": "us-west-2a",
"connection_resources": [
"pgtest1",
"pgtest2"
],
"engine": "postgres",
"error": "IAM account does not have permission to list db instances in this account",
"name": "my-postgres-db",
"status": "available",
"vpc_id": "vpc-0123456789abcdef0"
}
]
}{
"message": "the error description"
}{
"message": "the error description"
}AWS
List Database Instances
It list RDS Database Instances
POST
/
integrations
/
aws
/
rds
/
describe-db-instances
List Database Instances
curl --request POST \
--url https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances \
--header 'Content-Type: */*' \
--data '
{
"account_ids": [
"<string>"
]
}
'import requests
url = "https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances"
payload = { "account_ids": ["<string>"] }
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify({account_ids: ['<string>']})
};
fetch('https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances', 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://use.hoop.dev/api/integrations/aws/rds/describe-db-instances",
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([
'account_ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$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://use.hoop.dev/api/integrations/aws/rds/describe-db-instances"
payload := strings.NewReader("{\n \"account_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances")
.header("Content-Type", "*/*")
.body("{\n \"account_ids\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/integrations/aws/rds/describe-db-instances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"account_ids\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"account_id": "123456789012",
"arn": "arn:aws:rds:us-west-2:123456789012:db:my-postgres-db",
"availability_zone": "us-west-2a",
"connection_resources": [
"pgtest1",
"pgtest2"
],
"engine": "postgres",
"error": "IAM account does not have permission to list db instances in this account",
"name": "my-postgres-db",
"status": "available",
"vpc_id": "vpc-0123456789abcdef0"
}
]
}{
"message": "the error description"
}{
"message": "the error description"
}Was this page helpful?
⌘I