Oracle · Schema

Session

A bastion session resource. A bastion session lets authorized users connect to a target resource using a Secure Shell (SSH) for a predetermined amount of time.

OracleCloudDatabaseEnterpriseInfrastructureSoftware-as-a-ServiceFortune 100

Properties

Name Type Description
bastionId string The unique identifier (OCID) of the bastion that is hosting this session.
bastionName string The name of the bastion that is hosting this session.
bastionPublicHostKeyInfo string The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.
bastionUserName string The username that the session uses to connect to the target resource.
displayName string The name of the session.
id string The unique identifier (OCID) of the session, which can't be changed after creation.
keyDetails object
keyType string The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.
lifecycleDetails string A message describing the current session state in more detail.
lifecycleState string The current state of the session.
sessionTtlInSeconds integer The amount of time the session can remain active.
sshMetadata object The connection message for the session.
targetResourceDetails object
timeCreated string The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
timeUpdated string The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2020-01-25T21:10:29.600Z`
View JSON Schema on GitHub

JSON Schema

oracle-session-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/oracle/main/json-schema/oracle-session-schema.json",
  "title": "Session",
  "description": "A bastion session resource. A bastion session lets authorized users connect to a target resource using a Secure Shell (SSH) for a predetermined amount of time.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-bastion-api-openapi.yml#/components/schemas/Session",
  "properties": {
    "bastionId": {
      "description": "The unique identifier (OCID) of the bastion that is hosting this session.",
      "type": "string"
    },
    "bastionName": {
      "description": "The name of the bastion that is hosting this session.",
      "type": "string"
    },
    "bastionPublicHostKeyInfo": {
      "description": "The public key of the bastion host. You can use this to verify that you're connecting to the correct bastion.",
      "type": "string"
    },
    "bastionUserName": {
      "description": "The username that the session uses to connect to the target resource.",
      "type": "string"
    },
    "displayName": {
      "description": "The name of the session.",
      "type": "string"
    },
    "id": {
      "description": "The unique identifier (OCID) of the session, which can't be changed after creation.",
      "type": "string"
    },
    "keyDetails": {
      "$ref": "#/$defs/PublicKeyDetails"
    },
    "keyType": {
      "default": "PUB",
      "description": "The type of the key used to connect to the session. PUB is a standard public key in OpenSSH format.",
      "enum": [
        "PUB"
      ],
      "type": "string"
    },
    "lifecycleDetails": {
      "description": "A message describing the current session state in more detail.",
      "type": "string",
      "x-default-description": "null"
    },
    "lifecycleState": {
      "description": "The current state of the session.",
      "enum": [
        "CREATING",
        "ACTIVE",
        "DELETING",
        "DELETED",
        "FAILED"
      ],
      "type": "string",
      "x-obmcs-top-level-enum": "#/definitions/SessionLifecycleState"
    },
    "sessionTtlInSeconds": {
      "description": "The amount of time the session can remain active.",
      "type": "integer"
    },
    "sshMetadata": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "The connection message for the session.",
      "type": "object"
    },
    "targetResourceDetails": {
      "$ref": "#/$defs/TargetResourceDetails"
    },
    "timeCreated": {
      "description": "The time the session was created. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339).\nExample: `2020-01-25T21:10:29.600Z`\n",
      "format": "date-time",
      "type": "string"
    },
    "timeUpdated": {
      "description": "The time the session was updated. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339).\nExample: `2020-01-25T21:10:29.600Z`\n",
      "format": "date-time",
      "type": "string",
      "x-default-description": "null"
    }
  },
  "required": [
    "id",
    "bastionId",
    "bastionName",
    "keyDetails",
    "lifecycleState",
    "timeCreated",
    "sessionTtlInSeconds",
    "targetResourceDetails"
  ],
  "type": "object",
  "$defs": {
    "PublicKeyDetails": {
      "description": "Public key details for a bastion session.",
      "properties": {
        "publicKeyContent": {
          "description": "The public key in OpenSSH format of the SSH key pair for the session. When you connect to the session, you must provide the private key of the same SSH key pair.",
          "type": "string"
        }
      },
      "required": [
        "publicKeyContent"
      ],
      "type": "object"
    },
    "TargetResourceDetails": {
      "description": "Details about a bastion session's target resource.",
      "properties": {
        "sessionType": {
          "description": "The Bastion service recognizes three types of sessions, managed SSH sessions, SSH port forwarding sessions, and Dynamic SSH port forwarding sessions. Managed SSH sessions require that the target resource has an OpenSSH server and the Oracle Cloud Agent both running.",
          "enum": [
            "MANAGED_SSH",
            "PORT_FORWARDING",
            "DYNAMIC_PORT_FORWARDING"
          ],
          "type": "string",
          "x-obmcs-top-level-enum": "#/definitions/SessionType"
        }
      },
      "required": [
        "sessionType"
      ],
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/oracle-session"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.