Documentation Invantiveune partie de Invantive cloud
Forums d'Invantive SupportConnectez-vous/inscrivez-vous

Configuration de la validation IP

Exemples

Le JSON suivant est un exemple pour ce composant de configuration standardisé :

{ "UseAllowed": true
, "UseDisallowed": true
, "IncludeDefaultAllowed": false
, "IncludeDefaultDisallowed": true
, "DefaultIsAccepted": false
, "UseCustomerService": true
, "AllowedIpV6Addresses":
  [ "1.2.3.4"
  , "5.6.7.8"
  ]
}

Définition

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/IpValidationConfig.schema.json",
  "title": "IpValidationConfig",
  "description": "Generic IP validation configuration.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "UseCustomerService": {
      "type": "boolean",
      "description": "Whether to check against Invantive Customer Service."
    },
    "DefaultIsAccepted": {
      "type": "boolean",
      "description": "Whether default is accepted when no other check is executed or returns an answer.",
      "default": false
    },
    "UseAllowed": {
      "type": "boolean",
      "description": "Whether to check against the allowed list.",
      "default": true
    },
    "UseDisallowed": {
      "type": "boolean",
      "description": "Whether to check against the disallowed list.",
      "default": true
    },
    "IncludeDefaultAllowed": {
      "type": "boolean",
      "description": "Whether default allowed IPv6-addresses should be included.",
      "default": true
    },
    "IncludeDefaultDisallowed": {
      "type": "boolean",
      "description": "Whether default disallowed IPv6-addresses should be included.",
      "default": true
    },
    "AllowedIpV6Addresses": {
      "type": ["array", "null"],
      "items": { "type": "string" },
      "description": "Additional IPv6-addresses that are explicitly whitelisted."
    },
    "DisallowedIpV6Addresses": {
      "type": ["array", "null"],
      "items": { "type": "string" },
      "description": "Additional IPv6-addresses that are explicitly blacklisted."
    },
    "EarlierAcceptanceHours": {
      "type": "integer",
      "description": "Number of hours an earlier acceptance of a client IP address is used without validating it again. Zero or less keeps no acceptance.",
      "default": 24
    },
    "EarlierRefusalMinutes": {
      "type": "integer",
      "description": "Number of minutes an earlier refusal of a client IP address is used without validating it again. A refusal for a technical reason, such as a validation that failed, is never kept. Zero or less keeps no refusal.",
      "default": 60
    }
  }
}