{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-sql-endpoint-schema.json",
  "title": "SqlEndpoint",
  "description": "The description of a SQL Endpoint.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-dataflow-api-openapi.yml#/components/schemas/SqlEndpoint",
  "properties": {
    "bannerMessage": {
      "description": "The SQL Endpoint message displayed as a banner to provide user with any action items required on the resource.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "compartmentId": {
      "description": "The OCID of a compartment.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only the String type is supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing a defined tag key and value, scoped to a namespace.\nExample: `{\"CostCenter\": \"42\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).\nExample: `{\"Operations\": {\"CostCenter\": \"42\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "The description of the SQL Endpoint.",
      "maxLength": 400,
      "minLength": 1,
      "type": "string"
    },
    "displayName": {
      "description": "The SQL Endpoint name, which can be changed.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "driverShape": {
      "description": "The shape of the SQL Endpoint driver instance.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "driverShapeConfig": {
      "$ref": "#/$defs/ShapeConfig"
    },
    "executorShape": {
      "description": "The shape of the SQL Endpoint executor instance.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "executorShapeConfig": {
      "$ref": "#/$defs/ShapeConfig"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.\nFor more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).\nExample: `{\"Department\": \"Finance\"}`\n",
      "type": "object"
    },
    "id": {
      "description": "The provision identifier that is immutable on creation.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "jdbcEndpointUrl": {
      "description": "The JDBC URL field. For example, jdbc:spark://{serviceFQDN}:443/default;SparkServerType=DFI",
      "format": "uri",
      "pattern": "^(?:jdbc:spark):\\/\\/([^:\\/]+)\\/default;SparkServerType=DFI;httpPath=cliservice",
      "type": "string"
    },
    "lakeId": {
      "description": "The OCID of OCI Lake.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lastAcceptedRequestToken": {
      "description": "This token is used by Splat, and indicates that the service accepts the request, and that the request is currently being processed.",
      "minLength": 0,
      "type": "string"
    },
    "lifecycleState": {
      "description": "The current state of the Sql Endpoint.",
      "enum": [
        "CREATING",
        "ACTIVE",
        "DELETING",
        "DELETED",
        "FAILED",
        "UPDATING",
        "NEEDS_ATTENTION"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/SqlEndpointLifecycleState"
    },
    "maxExecutorCount": {
      "description": "The maximum number of executors.",
      "type": "integer"
    },
    "metastoreId": {
      "description": "The OCID of OCI Hive Metastore.\n",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "minExecutorCount": {
      "default": 1,
      "description": "The minimum number of executors.",
      "minimum": 1,
      "type": "integer"
    },
    "networkConfiguration": {
      "$ref": "#/$defs/SqlEndpointNetworkConfiguration"
    },
    "sparkAdvancedConfigurations": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "The Spark configuration passed to the running process.\nSee https://spark.apache.org/docs/latest/configuration.html#available-properties.\nExample: { \"spark.app.name\" : \"My App Name\", \"spark.shuffle.io.maxRetries\" : \"4\" }\nNote: Not all Spark properties are permitted to be set.  Attempting to set a property that is\nnot allowed to be overwritten will cause a 400 status to be returned.\n",
      "type": "object"
    },
    "sqlEndpointVersion": {
      "description": "The version of SQL Endpoint.",
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    },
    "stateMessage": {
      "description": "A message describing the reason why the resource is in it's current state. Helps bubble up errors in state changes. For example, it can be used to provide actionable information for a resource in the Failed state.",
      "minLength": 0,
      "type": "string"
    },
    "systemTags": {
      "additionalProperties": {
        "additionalProperties": {
          "type": "object"
        },
        "type": "object"
      },
      "description": "The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces.\nFor more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\nExample: `{orcl-cloud: {free-tier-retain: true}}`\n",
      "type": "object"
    },
    "timeCreated": {
      "description": "The time the Sql Endpoint was created. An RFC3339 formatted datetime string.",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time the Sql Endpoint was updated. An RFC3339 formatted datetime string.",
      "format": "date-time",
      "type": "string"
    },
    "warehouseBucketUri": {
      "description": "The warehouse bucket URI. It is a Oracle Cloud Infrastructure Object Storage bucket URI as defined here https://docs.oracle.com/en/cloud/paas/atp-cloud/atpud/object-storage-uris.html",
      "format": "uri",
      "pattern": "^(?:oci):\\/\\/([^:\\/]+)@([^:\\/]+)",
      "type": "string"
    }
  },
  "required": [
    "id",
    "displayName",
    "compartmentId",
    "sqlEndpointVersion",
    "driverShape",
    "executorShape",
    "minExecutorCount",
    "maxExecutorCount",
    "metastoreId",
    "lakeId",
    "warehouseBucketUri",
    "description"
  ],
  "type": "object",
  "$defs": {
    "ShapeConfig": {
      "description": "This is used to configure the shape of the driver or executor if a flexible shape is used.\n",
      "properties": {
        "gpus": {
          "description": "The total number of GPUs used for the driver or executors.\nSee [here](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details.\n",
          "format": "int32",
          "minimum": 0,
          "type": "integer"
        },
        "memoryInGBs": {
          "description": "The amount of memory used for the driver or executors.\n",
          "format": "integer",
          "minimum": 16,
          "type": "number"
        },
        "ocpus": {
          "description": "The total number of OCPUs used for the driver or executors.\nSee [here](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details.\n",
          "format": "integer",
          "minimum": 1,
          "type": "number"
        }
      },
      "x-default-description": "null"
    },
    "SqlEndpointNetworkConfiguration": {
      "description": "The network configuration of a SQL Endpoint.",
      "properties": {
        "networkType": {
          "default": "SECURE_ACCESS",
          "description": "The type of network configuration.",
          "enum": [
            "VCN",
            "SECURE_ACCESS"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/NetworkType"
        }
      },
      "required": [
        "networkType"
      ],
      "type": "object"
    }
  }
}