# Unlock a VDB.

Endpoint: POST /vdbs/{vdbId}/unlock
Version: 3.18.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header Authorization

## Path parameters:

  - `vdbId` (string, required)
    The ID of the VDB.

## Response 200:

  - `200` (unknown)
    VDB is unlocked.

## Response 200 fields (application/json):

  - `id` (string)
    The VDB object entity ID.
    Example: vdb-123

  - `database_type` (string)
    The database type of this VDB.
    Example: Oracle

  - `name` (string)
    The logical name of this VDB.
    Example: prod01-copy01

  - `database_name` (string)
    The name of the database on the target environment or in the database management system.
    Example: prod01-copy01-dbname

  - `namespace_id` (string)
    The namespace id of this VDB.
    Example: 1-NAMESPACE-1

  - `namespace_name` (string)
    The namespace name of this VDB.
    Example: test-engine-1

  - `is_replica` (boolean)
    Is this a replicated object.
    Example: true

  - `is_locked` (boolean)
    Is this VDB locked.
    Example: true

  - `locked_by` (integer)
    The ID of the account that locked this VDB.
    Example: 1

  - `locked_by_name` (string)
    The name of the account that locked this VDB.
    Example: user-1

  - `database_version` (string)
    The database version of this VDB.
    Example: 10.2.0.5.0

  - `jdbc_connection_string` (string)
    The JDBC connection URL for this VDB.
    Example: jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=broken)(ADDRESS=(PROTOCOL=tcp)(HOST=10.43.47.94)(PORT=1521))(CONNECT_DATA=(UR=A)(SID=production01)))

  - `size` (integer)
    The total size of this VDB, in bytes.
    Example: 339292672

  - `storage_size` (integer)
    The actual space used by this VDB, in bytes.
    Example: 12345678

  - `engine_id` (string)
    A reference to the Engine that this VDB belongs to.
    Example: engine-123

  - `status` (string)
    The runtime status of the VDB. 'Unknown' if all attempts to connect to the dataset failed.
    Example: RUNNING

  - `masked` (boolean)
    The VDB is masked or not.
    Example: false

  - `content_type` (string)
    The content type of the vdb.
    Example: PDB

  - `parent_timeflow_timestamp` (string)
    The timestamp for parent timeflow.
    Example: 2021-05-01T08:51:34.148Z

  - `parent_timeflow_timezone` (string)
    The timezone for parent timeflow.
    Example: America/Los_Angeles

  - `environment_id` (string)
    A reference to the Environment that hosts this VDB.
    Example: environment-123

  - `ip_address` (string)
    The IP address of the VDB's host.
    Example: 192.0.2.0

  - `fqdn` (string)
    The FQDN of the VDB's host.
    Example: virtual-dbs.myhost.com

  - `parent_id` (string)
    A reference to the parent dataset of this VDB.
    Example: vdb-122

  - `parent_dsource_id` (string)
    A reference to the parent dSource of this VDB.
    Example: dsource-id

  - `root_parent_id` (string)
    A reference to the root parent dataset of this VDB which could be a VDB or a dSource.
    Example: vdb-121

  - `group_name` (string)
    The name of the group containing this VDB.
    Example: VDBs

  - `engine_name` (string)
    Name of the Engine where this VDB is hosted
    Example: engine-123-name

  - `cdb_id` (string)
    A reference to the CDB or VCDB associated with this VDB.
    Example: cdb-123

  - `tags` (array)

  - `tags.key` (string, required)
    Key of the tag
    Example: key-1

  - `tags.value` (string, required)
    Value of the tag
    Example: value-1

  - `creation_date` (string)
    The date this VDB was created.
    Example: 2021-05-01T08:51:34.148Z

  - `hooks` (object)
    VDB operation hooks.

  - `hooks.pre_refresh` (array)
    The commands to execute on the target environment before refreshing the VDB.

  - `hooks.pre_refresh.name` (string)
    Example: Print the current user

  - `hooks.pre_refresh.command` (string, required)
    Example: whoami

  - `hooks.pre_refresh.shell` (string)
    Enum: "bash", "shell", "expect", "ps", "psd"

  - `hooks.pre_refresh.element_id` (string)
    Example: 0

  - `hooks.pre_refresh.has_credentials` (boolean)
    Example: false

  - `hooks.post_refresh` (array)
    The commands to execute on the target environment after refreshing the VDB.

  - `hooks.pre_self_refresh` (array)
    The commands to execute on the target environment before refreshing the VDB with data from itself.

  - `hooks.post_self_refresh` (array)
    The commands to execute on the target environment after refreshing the VDB with data from itself.

  - `hooks.pre_rollback` (array)
    The commands to execute on the target environment before rewinding the VDB.

  - `hooks.post_rollback` (array)
    The commands to execute on the target environment after rewinding the VDB.

  - `hooks.configure_clone` (array)
    The commands to execute on the target environment when the VDB is created or refreshed.

  - `hooks.pre_snapshot` (array)
    The commands to execute on the target environment before snapshotting a virtual source. These commands can quiesce any data prior to snapshotting.

  - `hooks.post_snapshot` (array)
    The commands to execute on the target environment after snapshotting a virtual source.

  - `hooks.pre_start` (array)
    The commands to execute on the target environment before starting a virtual source.

  - `hooks.post_start` (array)
    The commands to execute on the target environment after starting a virtual source.

  - `hooks.pre_stop` (array)
    The commands to execute on the target environment before stopping a virtual source.

  - `hooks.post_stop` (array)
    The commands to execute on the target environment after stopping a virtual source.

  - `appdata_source_params` (object)
    The JSON payload conforming to the DraftV4 schema based on the type of application data being manipulated.
    Example: {"param":"value","param2":"value2"}

  - `template_id` (string)
    A reference to the Database Template.
    Example: DATABASE_TEMPLATE-1

  - `config_params` (object)
    Database configuration parameter overrides.
    Example: {"param":"value","param2":"value2"}

  - `additional_mount_points` (array)
    Specifies additional locations on which to mount a subdirectory of an AppData container. Can only be updated while the VDB is disabled.

  - `additional_mount_points.shared_path` (string)
    Relative path within the container of the directory that should be mounted.
    Example: /

  - `additional_mount_points.mount_path` (string)
    Absolute path on the target environment were the filesystem should be mounted
    Example: /work/ws1

  - `additional_mount_points.environment_id` (string)
    The entity ID of the environment on which the file system will be mounted.
    Example: environment-123

  - `appdata_config_params` (object)
    The parameters specified by the source config schema in the toolkit
    Example: {"foo":"bar"}

  - `mount_point` (string)
    Mount point for the VDB (Oracle, ASE, AppData).
    Example: /var/mnt

  - `current_timeflow_id` (string)
    A reference to the currently active timeflow for this VDB.
    Example: timeflow-456

  - `previous_timeflow_id` (string)
    A reference to the previous timeflow for this VDB.
    Example: timeflow-123

  - `last_refreshed_date` (string)
    The date this VDB was last refreshed.
    Example: 2023-04-15T02:11:14.248Z

  - `vdb_restart` (boolean)
    Indicates whether the Engine should automatically restart this vdb when target host reboot is detected.
    Example: true

  - `is_appdata` (boolean)
    Indicates whether this VDB has an AppData database.
    Example: true

  - `exported_data_directory` (string)
    ZFS exported data directory path.
    Example: domain0/oracle_db_container-30/oracle_timeflow-32/datafile

  - `vcdb_exported_data_directory` (string)
    ZFS exported data directory path of the virtual CDB container (vCDB).
    Example: domain0/oracle_db_container-29/oracle_timeflow-31/datafile

  - `toolkit_id` (string)
    The ID of the toolkit associated with this VDB.
    Example: toolkit-1

  - `plugin_version` (string)
    The version of the plugin associated with this VDB.
    Example: 1.0.0

  - `primary_object_id` (string)
    The ID of the parent object from which replication was done.
    Example: 1-CONTAINER-1

  - `primary_engine_id` (string)
    The ID of the parent engine from which replication was done.
    Example: 1

  - `primary_engine_name` (string)
    The name of the parent engine from which replication was done.
    Example: source-engine

  - `replicas` (array)
    The list of replicas replicated from this object.

  - `replicas.replica_id` (string)
    The ID of the replicated object.
    Example: replica-1

  - `replicas.replica_engine_id` (string)
    The ID of the replicated object's engine.
    Example: 1

  - `replicas.replica_engine_name` (string)
    The name of the replicated object's engine.
    Example: replica-e1

  - `replicas.replica_namespace_id` (string)
    The namespace id of the replicated object.
    Example: namespace-1

  - `invoke_datapatch` (boolean)
    Indicates whether datapatch should be invoked.

  - `enabled` (boolean)
    True if VDB is enabled false if VDB is disabled.
    Example: true

  - `node_listeners` (array)
    The list of node listeners for this VDB.

  - `instance_name` (string)
    The instance name name of this single instance VDB.
    Example: VDBSID

  - `instance_number` (integer)
    The instance number of this single instance VDB.

  - `instances` (array)

  - `instances.instance_name` (string)
    The name of this instance.

  - `instances.instance_number` (integer)
    The number of this instance.

  - `instances.node_reference` (string)
    The reference to the cluster node which the instance is running on.

  - `oracle_services` (array)

  - `oracle_services.discovered` (boolean)
    Represents whether this jdbc connection string is auto discovered or not.

  - `oracle_services.jdbc_connection_string` (string)
    The jdbc connection string used to connect with the database.
    Example: jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=broken)(ADDRESS=(PROTOCOL=tcp)(HOST=10.110.230.197)(PORT=1521))(CONNECT_DATA=(UR=A)(SERVICE_NAME=VDBOMSRBBDC6C_UJG)))

  - `repository_id` (string)
    The repository id of this VDB.
    Example: 1-ORACLE_INSTALL-1

  - `container_mode` (boolean)
    Whether the database is running inside a container.
    Example: false

