Sha256: 39f090be8c78919b3b140250f0c35a821eb349353b83dcbe6c2339e2fc8ffb9d

Contents?: true

Size: 882 Bytes

Versions: 19

Compression:

Stored size: 882 Bytes

Contents

# Update IP Allowlist returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::IPAllowlistAPI.new

body = DatadogAPIClient::V2::IPAllowlistUpdateRequest.new({
  data: DatadogAPIClient::V2::IPAllowlistData.new({
    attributes: DatadogAPIClient::V2::IPAllowlistAttributes.new({
      entries: [
        DatadogAPIClient::V2::IPAllowlistEntry.new({
          data: DatadogAPIClient::V2::IPAllowlistEntryData.new({
            attributes: DatadogAPIClient::V2::IPAllowlistEntryAttributes.new({
              note: "Example-IP-Allowlist",
              cidr_block: "127.0.0.1",
            }),
            type: DatadogAPIClient::V2::IPAllowlistEntryType::IP_ALLOWLIST_ENTRY,
          }),
        }),
      ],
      enabled: false,
    }),
    type: DatadogAPIClient::V2::IPAllowlistType::IP_ALLOWLIST,
  }),
})
p api_instance.update_ip_allowlist(body)

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.27.1 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.26.1 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.26.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.25.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.24.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.22.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.21.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.20.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.19.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.18.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.17.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.16.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.15.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.14.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.13.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.12.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.11.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb
datadog_api_client-2.10.0 examples/v2/ip-allowlist/UpdateIPAllowlist.rb