{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle/json-schema/oracle-database-tools-private-endpoint-schema.json",
  "title": "DatabaseToolsPrivateEndpoint",
  "description": "Allows the Database Tools service to connect to databases in a customer's virtual cloud network (VCN).",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-databasetools-api-openapi.yml#/components/schemas/DatabaseToolsPrivateEndpoint",
  "properties": {
    "additionalFqdns": {
      "description": "A list of additional FQDNs that can be also be used for the private endpoint.",
      "items": {
        "maxLength": 255,
        "minLength": 1,
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "compartmentId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the Database Tools private endpoint.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`\n",
      "type": "object"
    },
    "description": {
      "description": "A description of the Database Tools private endpoint.",
      "maxLength": 255,
      "minLength": 0,
      "type": "string"
    },
    "displayName": {
      "description": "A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "endpointFqdn": {
      "description": "Then FQDN to use for the private endpoint.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "endpointServiceId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the Database Tools Endpoint Service.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.\nExample: `{\"bar-key\": \"value\"}`\n",
      "type": "object"
    },
    "id": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the Database Tools private endpoint.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lifecycleDetails": {
      "description": "A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "lifecycleState": {
      "description": "The current state of the Database Tools private endpoint.",
      "enum": [
        "CREATING",
        "UPDATING",
        "ACTIVE",
        "DELETING",
        "DELETED",
        "FAILED",
        "INACTIVE"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/LifecycleState"
    },
    "locks": {
      "description": "Locks associated with this resource.",
      "items": {
        "$ref": "#/$defs/ResourceLock"
      },
      "maxItems": 2,
      "type": "array"
    },
    "nsgIds": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the network security groups\nthat the private endpoint's VNIC belongs to.  For more information about NSGs, see\n[NetworkSecurityGroup](#/en/iaas/20160918/NetworkSecurityGroup/).\n",
      "items": {
        "maxLength": 255,
        "minLength": 1,
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "privateEndpointIp": {
      "description": "The private IP address that represents the access point for the associated endpoint service.",
      "maxLength": 46,
      "minLength": 1,
      "type": "string"
    },
    "privateEndpointVnicId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the private endpoint's VNIC.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "reverseConnectionConfiguration": {
      "$ref": "#/$defs/DatabaseToolsPrivateEndpointReverseConnectionConfiguration"
    },
    "securityAttributes": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "Security Attribute value and mode. Only the String type is supported for value. (Mode is reserved and “enforce” in this release)\n",
          "type": "object"
        },
        "description": "Key-value pair representing a ZPR tag key and value, scoped to a namespace.\nExample: `{\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}`\n",
        "type": "object"
      },
      "description": "Zero trust Packet Routing (ZPR) Security Attributes for this resource. Each key is predefined and scoped to a namespace.\nFor more information, see [ZPR Artifacts](https://docs.oracle.com/en-us/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm).\nExample: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"audit\"}}}`\n",
      "type": "object"
    },
    "subnetId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the subnet that the private endpoint belongs to.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "systemTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing system tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`\n",
        "type": "object"
      },
      "description": "Usage of system tag keys. These predefined keys are scoped to namespaces.\nExample: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`\n",
      "type": "object"
    },
    "timeCreated": {
      "description": "The time the Database Tools private endpoint was created. An RFC3339 formatted datetime string",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time the Database Tools private endpoint was updated. An RFC3339 formatted datetime string",
      "format": "date-time",
      "type": "string"
    },
    "vcnId": {
      "description": "The [OCID](/Content/General/Concepts/identifiers.htm) of the VCN that the private endpoint belongs to.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "id",
    "compartmentId",
    "subnetId",
    "endpointServiceId",
    "timeCreated",
    "timeUpdated",
    "lifecycleState"
  ],
  "type": "object",
  "$defs": {
    "DatabaseToolsPrivateEndpointReverseConnectionConfiguration": {
      "description": "Reverse connection configuration details of the private endpoint.",
      "properties": {
        "reverseConnectionsSourceIps": {
          "description": "A list of IP addresses in the customer VCN to be used as the source IPs for reverse connection packets\ntraveling from the service's VCN to the customer's VCN.\n",
          "items": {
            "$ref": "#/$defs/DatabaseToolsPrivateEndpointReverseConnectionsSourceIp"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "DatabaseToolsPrivateEndpointReverseConnectionsSourceIp": {
      "description": "Source IP information for reverse connection configuration.",
      "properties": {
        "sourceIp": {
          "description": "The IP address in the customer's VCN to be used as the source IP for reverse connection packets\ntraveling from the customer's VCN to the service's VCN.\n",
          "maxLength": 46,
          "minLength": 8,
          "type": "string"
        }
      },
      "type": "object"
    },
    "ResourceLock": {
      "description": "Resource locks are used to prevent certain APIs from being called for the resource.\nA full lock prevents both updating the resource and deleting the resource. A delete\nlock prevents deleting the resource.\n",
      "properties": {
        "compartmentId": {
          "description": "The compartment ID of the lock.",
          "type": "string"
        },
        "message": {
          "description": "A message added by the creator of the lock. This is typically used to give an\nindication of why the resource is locked.\n",
          "type": "string"
        },
        "relatedResourceId": {
          "description": "The id of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.\n",
          "type": "string"
        },
        "timeCreated": {
          "description": "When the lock was created.",
          "format": "date-time",
          "type": "string"
        },
        "type": {
          "description": "Type of the lock.",
          "enum": [
            "FULL",
            "DELETE"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "compartmentId"
      ],
      "type": "object"
    }
  }
}