# Validate IP address lies in a specified range or not Checks whether the IP address is allowed or not. It also supports checking against a specific IP block range. Endpoint: GET /v1/ip-allowlist/validate/ip-address Version: 1.0 Security: x-api-key ## Header parameters: - `Harness-Account` (string) Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped. ## Query parameters: - `ip_address` (string, required) This is the IP address that needs to be checked if allowed or not - `custom_ip_address_block` (string) This is the IP address or block of IP address against which we need to verify if a given IP address is allowed or not. If not passed we do the validation against the IP configs within Harness. - `include_disabled_configs` (boolean) This setting controls the visibility of IP allowlist configurations. When set to 'true', it displays both enabled and disabled configurations. When set to 'false' or left unset, it displays only the enabled configurations. ## Response 200 fields (application/json): - `allowed_for_custom_block` (boolean) This indicates if given IP Address lies in range of custom IP block or not. - `allowlisted_configs` (array) This is the list of IP configs configured in Harness from which IP address is allowed. This is empty in case of custom IP address block. - `allowlisted_configs.ip_allowlist_config` (object, required) This contains data for a config set in Harness to allow selected IPs - `allowlisted_configs.ip_allowlist_config.name` (string, required) Name of the IP Config defined in Harness - `allowlisted_configs.ip_allowlist_config.identifier` (string, required) Identifier of the IP Config - `allowlisted_configs.ip_allowlist_config.description` (string) Description of the entity - `allowlisted_configs.ip_allowlist_config.enabled` (boolean) If true, it will allow all the IPs that are part of the config and block others. - `allowlisted_configs.ip_allowlist_config.tags` (object) IP Allowlist tags - `allowlisted_configs.ip_allowlist_config.allowed_source_type` (array) Enum: "UI", "API" - `allowlisted_configs.ip_allowlist_config.ip_address` (string, required) - `allowlisted_configs.created` (integer, required) Creation timestamp for the IP Allowlist config. - `allowlisted_configs.updated` (integer, required) Last modification timestamp for IP Allowlist config. - `allowed_for_ui` (boolean) This indicates if a given IP is allowlisted in Harness for UI requests - `allowed_for_api` (boolean) This indicates if a given IP is allowlisted in Harness for API requests - `disabled_allowlisted_configs` (array) This is the list of IP configs configured in Harness from which IP address is allowed but the config is disabled. This is empty in case of custom IP address block.