Create a Database Vault realm

post

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/databases/{databaseId}/dbVaultRealms

Creates a Database Vault realm with the specified properties.

Request

Path Parameters
Header Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Properties used to create a Database Vault realm.
Show Source
  • Minimum Length: 1
    Maximum Length: 1
    Allowed Values: [ "0", "1", "2", "3" ]
    Specify one of the following options for traditional realm auditing. If unified auditing is enabled, create a unified audit policy instead of using auditOptions. - '0' disables auditing of the realm (default). - '1' records realm violations. - '2' records authorized activities on protected objects. - '3' records both authorized and unauthorized activities. On Oracle Database 23c and later, only '0' is supported.
  • Minimum Length: 0
    Maximum Length: 1024
    Purpose of the realm, up to 1024 characters in mixed case.
    Example: Realm to protect the HR schema
  • Minimum Length: 1
    Maximum Length: 1
    Pattern: ^[YyNnSs]$
    Specify one of the following options to set the realm state. - Y to enable realm checking (default). - N to disable all realm checking, including the capture of violations in the simulation log. - S to allow SQL statements to execute while recording violations in the simulation log.
  • Minimum Length: 4
    Maximum Length: 5
    Pattern: ^(?:[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee])$
    When simulation mode is enabled, specifies whether to record the PL/SQL stack for failed operations. TRUE records the stack; FALSE does not. The default is FALSE.
  • realmAuthorizations
    Authorizations to add to the realm.
  • Unique name of the realm to be created.
    Example: HR Apps
  • Default Value: 1
    Allowed Values: [ 1, 2 ]
    In a multitenant environment, determines the realm scope. The default is local. - 1: Create a local realm in the current PDB. - 2: Create a common realm in the application root and duplicate it in the associated PDBs. Synchronize the application to make a common realm created in an application root visible to its associated PDBs.
  • Minimum Length: 1
    Maximum Length: 1
    Allowed Values: [ "0", "1" ]
    Specify one of the following options: - 0: Disable mandatory realm checking (default). - 1: Enable mandatory realm checking for realm objects. Only realm owners or participants can access objects in the realm; object owners and users with object privileges who are not realm owners or participants cannot access them.
  • securedObjects
    Secured objects to add to the realm.
Nested Schema : realmAuthorizations
Type: array
Authorizations to add to the realm.
Show Source
Nested Schema : securedObjects
Type: array
Secured objects to add to the realm.
Show Source
Nested Schema : RealmAuthorization
Type: object
Authorization for a database user or role to manage or access objects protected by a realm.
Show Source
Nested Schema : RealmSecuredObj
Type: object
A schema object, database object, or role protected by a realm.
Show Source
Back to Top

Response

201 Response

Realm created.

400 Response

Bad Request
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

404 Response

Not Found
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

409 Response

Duplicate Resource
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

Default Response

Unexpected error.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported
Back to Top