Endpoint

/v1/dns/lookup-override-config

GET

List the DNS lookup overrides configured on the cluster. These rules override any lookup results from the configured DNS servers and serve as static mappings between IP address and hostname

Parameters

This resource has no parameters.

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "api_dns_lookup_override_config",
  "type": "object",
  "properties": {
    "lookup_overrides": {
      "type": "array",
      "items": {
        "description": "lookup_overrides",
        "type": "object",
        "properties": {
          "ip_address": {
            "description": "ip_address",
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "description": "aliases",
              "type": "string"
            }
          }
        }
      }
    }
  }
}

PUT

Overwrite the DNS lookup overrides configured on the cluster. These rules override any lookup results from the configured DNS servers and serve as static mappings between IP address and hostname

Parameters

Name Description Required
If-Match ETag for expected version No

Request

Schema

{
  "description": "api_dns_lookup_override_config",
  "type": "object",
  "properties": {
    "lookup_overrides": {
      "type": "array",
      "items": {
        "description": "lookup_overrides",
        "type": "object",
        "properties": {
          "ip_address": {
            "description": "ip_address",
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "description": "aliases",
              "type": "string"
            }
          }
        }
      }
    }
  }
}

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "api_dns_lookup_override_config",
  "type": "object",
  "properties": {
    "lookup_overrides": {
      "type": "array",
      "items": {
        "description": "lookup_overrides",
        "type": "object",
        "properties": {
          "ip_address": {
            "description": "ip_address",
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "description": "aliases",
              "type": "string"
            }
          }
        }
      }
    }
  }
}