Sha256: 9741907ac54ecec45a1c13270e37c7123b4c5f18cba310dd9fdc727084ae0570

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

# DatadogAPIClient::V1::IPRangesAPI

All URIs are relative to *https://api.datadoghq.com*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**get_ip_ranges**](IPRangesAPI.md#get_ip_ranges) | **GET** / | List IP Ranges |


## get_ip_ranges

> <IPRanges> get_ip_ranges

Get information about Datadog IP ranges.

### Examples

```ruby
require 'datadog_api_client'
api_instance = DatadogAPIClient::V1::IPRangesAPI.new

begin
  # List IP Ranges
  result = api_instance.get_ip_ranges
  p result
rescue DatadogAPIClient::V1::APIError => e
  puts "Error when calling IPRangesAPI->get_ip_ranges: #{e}"
end
```

#### Using the get_ip_ranges_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<IPRanges>, Integer, Hash)> get_ip_ranges_with_http_info

```ruby
begin
  # List IP Ranges
  data, status_code, headers = api_instance.get_ip_ranges_with_http_info
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <IPRanges>
rescue DatadogAPIClient::V1::APIError => e
  puts "Error when calling IPRangesAPI->get_ip_ranges_with_http_info: #{e}"
end
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**IPRanges**](IPRanges.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
datadog_api_client-1.4.0 docs/v1/IPRangesAPI.md
datadog_api_client-1.3.0 docs/v1/IPRangesAPI.md
datadog_api_client-1.2.0 docs/v1/IPRangesAPI.md