Update a Database Vault realm
patch
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/databases/{databaseId}/dbVaultRealms/{dbVaultRealmId}
Applies the supplied changes to the realm identified by dbVaultRealmId.
Request
Path Parameters
-
databaseId(required): string
ID of the target database.
-
dbVaultRealmId(required): integer(int32)
ID of the realm to retrieve, update, or delete.
Header Parameters
-
ORCL-EM-DBTARGET-AUTHORIZATION(required): string
Authorization credentials for the Enterprise Manager database target.
Supported Media Types
- application/json+merge-patch
Root Schema : schema
Type:
objectProperties used to update 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 update in the realm.
-
realmName: string
Unique name of the realm.Example:
HR Apps -
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 update in the realm.
Nested Schema : realmAuthorizations
Type:
arrayAuthorizations to update in 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 update in 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
Supported Media Types
- application/json
200 Response
Realm updated.
Root Schema : DbVaultRealm
Type:
objectDetailed representation of a Database Vault realm.
Show Source
-
associatedPolicy: string
Name of the associated policy, or null when the realm has no policy.Example:
PolicyName -
auditOptions(required): string
Minimum Length:
1Maximum Length:1Allowed Values:[ "0", "1", "2", "3" ]Traditional realm audit option: 0 for no auditing, 1 for failures, 2 for successes, or 3 for both. -
createdBy: string
Username of the realm creator.Example:
dbv_acctmgr_backup -
hasPolicyAssociated: boolean
Whether the realm has an associated policy.
-
realmAuthorizationObject(required): array
realmAuthorizationObject
Authorizations for the realm.
-
realmCondition(required): string
Realm condition returned by the target Database Vault view.
-
realmDescription: string
Description of the realm.Example:
Defines the realm for administrators who create and manage database accounts and profiles -
realmId(required): string
Unique realm identifier.Example:
123 -
realmName(required): string
Name of the realm.Example:
Database Vault Account Management -
realmSecureObject(required): array
realmSecureObject
Secured objects in the realm.
-
realmType(required): string
Minimum Length:
1Maximum Length:1Allowed Values:[ "0", "1" ]Realm type: 0 for a regular realm or 1 for a mandatory realm. -
timeCreated: string
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?$Local date and time when the realm was created; timezone is unavailable.Example:2021-07-16T19:20:00 -
timeUpdated: string
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?$Local date and time when the realm was last updated; timezone is unavailable.Example:2022-03-21T15:22:00 -
updatedBy: string
Username of the last user to update the realm.Example:
example_realm_updater_name -
version(required): string
Oracle Database Vault version in which the realm was created.Example:
1
Match All
Detailed representation of a Database Vault realm.
Show Source
Nested Schema : realmAuthorizationObject
Type:
arrayAuthorizations for the realm.
Show Source
-
Array of:
object DbVaultRealmAuthorizations
Authorization to access or manage a Database Vault realm.
Nested Schema : realmSecureObject
Type:
arraySecured objects in the realm.
Show Source
-
Array of:
object DbVaultRealmSecureObj
Secured object protected by a Database Vault realm.
Nested Schema : Links
Type:
objectRepresents the array of links
Show Source
-
next: object
Link
A link referencing to another api
-
previous: object
Link
A link referencing to another api
-
self: object
Link
A link referencing to another api
Nested Schema : DbVaultRealmAuthorizations
Type:
objectAuthorization to access or manage a Database Vault realm.
Show Source
-
authorizationCode(required): integer
Allowed Values:
[ 0, 1 ]Authorization option: 0 for participant, 1 for owner. -
authorizationScope: integer
Authorization scope returned by Database Vault.
-
authorizationType(required): string
Meaning of the authorization option returned by Database Vault.Example:
Owner -
createdBy: string
Username of the authorization creator.Example:
dbv_acctmgr_backup -
grantee(required): string
Name of the user or role authorized as a realm owner or participant.Example:
DV_ADMIN -
id: string
Authorization ID, or null when the policy-owner view does not expose it.Example:
123 -
realmId(required): string
ID of the realm to which the authorization applies.Example:
123 -
realmName(required): string
Name of the realm.Example:
Performance Statistics -
ruleSet: string
Rule set evaluated at runtime.Example:
CONFIGURE_DV -
ruleSetName: string
Name of the rule set associated with this authorization.Example:
Not allow to set OPTIMIZER_SECURE_VIEW_MERGING to True -
timeCreated: string
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?$Local date and time when the authorization was created; timezone is unavailable.Example:2021-07-16T19:20:00 -
timeUpdated: string
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?$Local date and time when the authorization was last updated; timezone is unavailable.Example:2022-03-21T15:22:00 -
updatedBy: string
Username of the last user to update the authorization.Example:
example_commandRule_updater_name -
version(required): string
Oracle Database Vault version in which the realm was created.Example:
1
Match All
Authorization to access or manage a Database Vault realm.
Show Source
Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Nested Schema : DbVaultRealmSecureObj
Type:
objectSecured object protected by a Database Vault realm.
Show Source
-
createdBy: string
Username of the secured-object record creator.Example:
dbv_acctmgr_backup -
id: string
Secured-object ID, or null when the policy-owner view does not expose it.Example:
123 -
objectName(required): string
Name of the secured object.Example:
CONFIGURE_DV -
objectOwner(required): string
Database user that owns the secured object.Example:
DVSYS -
objectType(required): string
Type of the secured object.Example:
SYNONYM -
realmId(required): string
ID of the realm that protects the secured object.Example:
123 -
realmName(required): string
Name of the realm.Example:
Performance Statistics -
timeCreated: string
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?$Local date and time when the secured-object record was created; timezone is unavailable.Example:2021-07-16T19:20:00 -
timeUpdated: string
Pattern:
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?$Local date and time when the secured-object record was last updated; timezone is unavailable.Example:2022-03-21T15:22:00 -
updatedBy: string
Username of the last user to update the secured-object record.Example:
example_commandRule_updater_name -
version(required): string
Oracle Database Vault version in which the realm was created.Example:
1
Match All
Secured object protected by a Database Vault realm.
Show Source
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