Ver una clave de aplicación que pertenece al usuario actual
https://ip-ranges.datadoghq.com/https://ip-ranges.us3.datadoghq.com/https://ip-ranges.us5.datadoghq.com/https://ip-ranges.datadoghq.eu/https://ip-ranges.ap1.datadoghq.com/https://ip-ranges.ap2.datadoghq.com/https://ip-ranges.uk1.datadoghq.com/https://ip-ranges.ddog-gov.com/https://ip-ranges.us2.ddog-gov.com/Descripción general
Obtén información sobre los rangos de IP de Datadog.
Respuesta
OK
IP ranges.
agentsAvailable prefix information for the Agent endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
apiAvailable prefix information for the API endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
apmAvailable prefix information for the APM endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
globalAvailable prefix information for all Datadog endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
logsAvailable prefix information for the Logs endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
modifiedDate when last updated, in the form YYYY-MM-DD-hh-mm-ss.
orchestratorAvailable prefix information for the Orchestrator endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
processAvailable prefix information for the Process endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
remote-configurationAvailable prefix information for the Remote Configuration endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
syntheticsAvailable prefix information for the Synthetics endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv4_by_locationList of IPv4 prefixes by location.
<any-key>List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
prefixes_ipv6_by_locationList of IPv6 prefixes by location.
<any-key>List of IPv6 prefixes.
synthetics-private-locationsAvailable prefix information for the Synthetics Private Locations endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
versionVersion of the IP list.
webhooksAvailable prefix information for the Webhook endpoints.
prefixes_ipv4List of IPv4 prefixes.
prefixes_ipv6List of IPv6 prefixes.
{
"agents": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"api": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"apm": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"global": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"logs": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"modified": "2019-10-31-20-00-00",
"orchestrator": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"process": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"remote-configuration": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"synthetics": {
"prefixes_ipv4": [],
"prefixes_ipv4_by_location": {
"<any-key>": []
},
"prefixes_ipv6": [],
"prefixes_ipv6_by_location": {
"<any-key>": []
}
},
"synthetics-private-locations": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
},
"version": 11,
"webhooks": {
"prefixes_ipv4": [],
"prefixes_ipv6": []
}
}Too many requests
Error response object.
errors [required]Array of errors returned by the API.
{
"errors": [
"Bad Request"
]
}Ejemplo de código
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
curl -X GET "https://ip-ranges.${DD_SITE}/" \
-H "Accept: application/json"// List IP Ranges returns "OK" response
package main
import (
"context"
"encoding/json"
"fmt"
"os"
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
"github.com/DataDog/datadog-api-client-go/v2/api/datadogV1"
)
func main() {
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV1.NewIPRangesApi(apiClient)
resp, r, err := api.GetIPRanges(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IPRangesApi.GetIPRanges`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
responseContent, _ := json.MarshalIndent(resp, "", " ")
fmt.Fprintf(os.Stdout, "Response from `IPRangesApi.GetIPRanges`:\n%s\n", responseContent)
}
Instructions
First install the library and its dependencies and then save the example to main.go and run following commands:
DD_SITE="datadoghq.com" go run "main.go"DD_SITE="us3.datadoghq.com" go run "main.go"DD_SITE="us5.datadoghq.com" go run "main.go"DD_SITE="datadoghq.eu" go run "main.go"DD_SITE="ap1.datadoghq.com" go run "main.go"DD_SITE="ap2.datadoghq.com" go run "main.go"DD_SITE="uk1.datadoghq.com" go run "main.go"DD_SITE="ddog-gov.com" go run "main.go"DD_SITE="us2.ddog-gov.com" go run "main.go"// List IP Ranges returns "OK" response
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v1.api.IpRangesApi;
import com.datadog.api.client.v1.model.IPRanges;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
IpRangesApi apiInstance = new IpRangesApi(defaultClient);
try {
IPRanges result = apiInstance.getIPRanges();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling IpRangesApi#getIPRanges");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Instructions
First install the library and its dependencies and then save the example to Example.java and run following commands:
DD_SITE="datadoghq.com" java "Example.java"DD_SITE="us3.datadoghq.com" java "Example.java"DD_SITE="us5.datadoghq.com" java "Example.java"DD_SITE="datadoghq.eu" java "Example.java"DD_SITE="ap1.datadoghq.com" java "Example.java"DD_SITE="ap2.datadoghq.com" java "Example.java"DD_SITE="uk1.datadoghq.com" java "Example.java"DD_SITE="ddog-gov.com" java "Example.java"DD_SITE="us2.ddog-gov.com" java "Example.java""""
List IP Ranges returns "OK" response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.ip_ranges_api import IPRangesApi
configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = IPRangesApi(api_client)
response = api_instance.get_ip_ranges()
print(response)
Instructions
First install the library and its dependencies and then save the example to example.py and run following commands:
DD_SITE="datadoghq.com" python3 "example.py"DD_SITE="us3.datadoghq.com" python3 "example.py"DD_SITE="us5.datadoghq.com" python3 "example.py"DD_SITE="datadoghq.eu" python3 "example.py"DD_SITE="ap1.datadoghq.com" python3 "example.py"DD_SITE="ap2.datadoghq.com" python3 "example.py"DD_SITE="uk1.datadoghq.com" python3 "example.py"DD_SITE="ddog-gov.com" python3 "example.py"DD_SITE="us2.ddog-gov.com" python3 "example.py"# List IP Ranges returns "OK" response
require "datadog_api_client"
api_instance = DatadogAPIClient::V1::IPRangesAPI.new
p api_instance.get_ip_ranges()
Instructions
First install the library and its dependencies and then save the example to example.rb and run following commands:
DD_SITE="datadoghq.com" rb "example.rb"DD_SITE="us3.datadoghq.com" rb "example.rb"DD_SITE="us5.datadoghq.com" rb "example.rb"DD_SITE="datadoghq.eu" rb "example.rb"DD_SITE="ap1.datadoghq.com" rb "example.rb"DD_SITE="ap2.datadoghq.com" rb "example.rb"DD_SITE="uk1.datadoghq.com" rb "example.rb"DD_SITE="ddog-gov.com" rb "example.rb"DD_SITE="us2.ddog-gov.com" rb "example.rb"// List IP Ranges returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV1::api_ip_ranges::IPRangesAPI;
#[tokio::main]
async fn main() {
let configuration = datadog::Configuration::new();
let api = IPRangesAPI::with_config(configuration);
let resp = api.get_ip_ranges().await;
if let Ok(value) = resp {
println!("{:#?}", value);
} else {
println!("{:#?}", resp.unwrap_err());
}
}
Instructions
First install the library and its dependencies and then save the example to src/main.rs and run following commands:
DD_SITE="datadoghq.com" cargo runDD_SITE="us3.datadoghq.com" cargo runDD_SITE="us5.datadoghq.com" cargo runDD_SITE="datadoghq.eu" cargo runDD_SITE="ap1.datadoghq.com" cargo runDD_SITE="ap2.datadoghq.com" cargo runDD_SITE="uk1.datadoghq.com" cargo runDD_SITE="ddog-gov.com" cargo runDD_SITE="us2.ddog-gov.com" cargo run/**
* List IP Ranges returns "OK" response
*/
import { client, v1 } from "@datadog/datadog-api-client";
const configuration = client.createConfiguration();
const apiInstance = new v1.IPRangesApi(configuration);
apiInstance
.getIPRanges()
.then((data: v1.IPRanges) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));
Instructions
First install the library and its dependencies and then save the example to example.ts and run following commands:
DD_SITE="datadoghq.com" tsc "example.ts"DD_SITE="us3.datadoghq.com" tsc "example.ts"DD_SITE="us5.datadoghq.com" tsc "example.ts"DD_SITE="datadoghq.eu" tsc "example.ts"DD_SITE="ap1.datadoghq.com" tsc "example.ts"DD_SITE="ap2.datadoghq.com" tsc "example.ts"DD_SITE="uk1.datadoghq.com" tsc "example.ts"DD_SITE="ddog-gov.com" tsc "example.ts"DD_SITE="us2.ddog-gov.com" tsc "example.ts"