{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-database-tools-database-api-gateway-config-global-schema.json",
  "title": "DatabaseToolsDatabaseApiGatewayConfigGlobal",
  "description": "The content of a Database Tools database API gateway config global resource.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-databasetoolsruntime-api-openapi.yml#/components/schemas/DatabaseToolsDatabaseApiGatewayConfigGlobal",
  "properties": {
    "advancedProperties": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Advanced global properties.",
      "type": "object"
    },
    "certificateBundle": {
      "$ref": "#/$defs/DatabaseApiGatewayConfigCertificateBundle"
    },
    "databaseApiStatus": {
      "default": "ENABLED",
      "description": "ORDS database API is a database management and monitoring REST API. Database Actions requires this feature.",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "type": "string"
    },
    "documentRoot": {
      "description": "The location of the static resources to be served under the / root server path.",
      "maxLength": 4096,
      "minLength": 0,
      "type": "string"
    },
    "httpPort": {
      "default": 0,
      "description": "Specifies the HTTP listen port. 0 disables HTTP. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024–65535) is recommended.",
      "maximum": 65535,
      "minimum": 0,
      "type": "integer"
    },
    "httpsPort": {
      "default": 8443,
      "description": "Specifies the HTTPS listen port. 0 disables HTTPS. Use of ports below 1024 requires elevated (root) privileges and is generally discouraged; deployment on non-privileged ports (1024–65535) is recommended. ORDS will use a self-signed certificate if a certificate bundle is not provided.",
      "maximum": 65535,
      "minimum": 0,
      "type": "integer"
    },
    "key": {
      "description": "A string that uniquely identifies a Database Tools database API gateway config global settings resource.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "metadataSource": {
      "description": "The RESTful service definition location.",
      "enum": [
        "DATABASE",
        "CLOUD"
      ],
      "type": "string"
    },
    "poolRoute": {
      "default": "PATH",
      "description": "How the target pool route value is determined for a HTTP request.",
      "enum": [
        "PATH",
        "HEADER"
      ],
      "type": "string"
    },
    "poolRoutingHeader": {
      "description": "The request header name providing the pool route value.",
      "maxLength": 255,
      "minLength": 0,
      "type": "string"
    },
    "timeCreated": {
      "description": "The time the resource was created. An RFC3339 formatted datetime string.",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time the resource was updated. An RFC3339 formatted datetime string.",
      "format": "date-time",
      "type": "string"
    },
    "type": {
      "description": "The type of the Database Tools database API gateway config global settings resource.",
      "enum": [
        "DEFAULT"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/DatabaseApiGatewayConfigType"
    }
  },
  "required": [
    "key",
    "type",
    "timeCreated",
    "timeUpdated"
  ],
  "type": "object",
  "$defs": {
    "DatabaseApiGatewayConfigCertificateBundle": {
      "description": "The certificate bundle that describes the SSL certicicate. Ignored if the httpsPort is 0.",
      "properties": {
        "type": {
          "description": "The type of the certificate.",
          "enum": [
            "FILENAME",
            "SELF_SIGNED"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  }
}