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
-
databaseId(required): string
ID of the target database.
Header Parameters
-
ORCL-EM-DBTARGET-AUTHORIZATION(required): string
Authorization credentials for the Enterprise Manager database target.
Supported Media Types
- application/json
Root Schema : schema
Type:
objectProperties used to create a Database Vault realm.
Show Source
-
auditOptions: string
Minimum Length:
1Maximum Length:1Allowed 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. -
description: string
Minimum Length:
0Maximum Length:1024Purpose of the realm, up to 1024 characters in mixed case.Example:Realm to protect the HR schema -
enabled: string
Minimum Length:
1Maximum Length:1Pattern:^[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. -
mode: string
Minimum Length:
4Maximum Length:5Pattern:^(?:[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: array
realmAuthorizations
Authorizations to add to the realm.
-
realmName(required): string
Unique name of the realm to be created.Example:
HR Apps -
realmScope: integer
(int32)
Default Value:
1Allowed 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. -
realmType: string
Minimum Length:
1Maximum Length:1Allowed 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: array
securedObjects
Secured objects to add to the realm.
Nested Schema : realmAuthorizations
Type:
arrayAuthorizations to add to the realm.
Show Source
-
Array of:
object RealmAuthorization
Authorization for a database user or role to manage or access objects protected by a realm.
Nested Schema : securedObjects
Type:
arraySecured objects to add to the realm.
Show Source
-
Array of:
object RealmSecuredObj
A schema object, database object, or role protected by a realm.
Nested Schema : RealmAuthorization
Type:
objectAuthorization for a database user or role to manage or access objects protected by a realm.
Show Source
-
authorizationCode: integer(int32)Allowed Values:[ 0, 1 ]Deprecated alias for authorizationOptions. If both are supplied, their values must agree. -
authorizationOptions: string
Minimum Length:
1Maximum Length:1Default Value:0Allowed Values:[ "0", "1" ]Specify one of the following options to authorize the realm: - 0: Participant - 1: Owner -
authorizationScope: integer
(int32)
Default Value:
1Allowed Values:[ 1, 2 ]Authorization scope: 1 for local or 2 for common. -
grantee(required): string
Name of the user or role to authorize as a realm owner or participant.Example:
SYSADM -
ruleSetName: string
Optional rule set evaluated before authorization. Authorization is allowed when the rule set evaluates to TRUE.Example:
Check Conf Access
Nested Schema : RealmSecuredObj
Type:
objectA schema object, database object, or role protected by a realm.
Show Source
-
objectName(required): string
Name of the secured object. The % wildcard is allowed.Example:
GATHER_SYSTEM_STATISTICS -
objectOwner(required): string
Database user that owns the secured object.Example:
SYS -
objectType(required): string
Type of the secured object, such as TABLE, INDEX, or ROLE. The % wildcard is allowed.Example:
ROLE
Response
201 Response
Realm created.
400 Response
Bad Request
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
401 Response
Unauthorized
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
404 Response
Not Found
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
409 Response
Duplicate Resource
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
500 Response
Internal Server Error
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
503 Response
Service Unavailable
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported
Default Response
Unexpected error.
Root Schema : ErrorResponse
Type:
objectResponse sent back in the case of an error
Show Source
-
code: string
The status code of the errorExample:
IllegalArgument -
message: string
A descriptive error messageExample:
The argument given is not supported