"""
List IP Ranges returns "OK" response
"""fromdatadog_api_clientimportApiClient,Configurationfromdatadog_api_client.v1.api.ip_ranges_apiimportIPRangesApiconfiguration=Configuration()withApiClient(configuration)asapi_client:api_instance=IPRangesApi(api_client)response=api_instance.get_ip_ranges()print(response)
// List IP Ranges returns "OK" response
packagemainimport("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")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())configuration:=datadog.NewConfiguration()apiClient:=datadog.NewAPIClient(configuration)api:=datadogV1.NewIPRangesApi(apiClient)resp,r,err:=api.GetIPRanges(ctx)iferr!=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)}
// List IP Ranges returns "OK" responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v1.api.IpRangesApi;importcom.datadog.api.client.v1.model.IPRanges;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();IpRangesApiapiInstance=newIpRangesApi(defaultClient);try{IPRangesresult=apiInstance.getIPRanges();System.out.println(result);}catch(ApiExceptione){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();}}}
// List IP Ranges returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV1::api_ip_ranges::IPRangesAPI;#[tokio::main]asyncfnmain(){letconfiguration=datadog::Configuration::new();letapi=IPRangesAPI::with_config(configuration);letresp=api.get_ip_ranges().await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comddog-gov.com"cargo run
/**
* List IP Ranges returns "OK" response
*/import{client,v1}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration();constapiInstance=newv1.IPRangesApi(configuration);apiInstance.getIPRanges().then((data: v1.IPRanges)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));