Update a Database Vault policy
patch
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/databases/{databaseId}/dbVaultPolicies/{dbVaultPolicyId}
Applies the supplied changes to the policy identified by dbVaultPolicyId.
Request
Path Parameters
-
databaseId(required): string
ID of the target database.
-
dbVaultPolicyId(required): integer(int32)
ID of the policy 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 policy.
Show Source
-
commandRules: array
commandRules
Command rules to associate with the policy.
-
description: string
Description of the policy.Example:
This policy will accomplish its purpose with realms and command rules -
name: string
Name of the policy.Example:
Oracle Account Management Control -
owners: array
owners
Owners to associate with the policy.
-
realms: array
realms
Realms to associate with the policy.
-
state: string
Minimum Length:
7Maximum Length:10Pattern:^(?:[Ee][Nn][Aa][Bb][Ll][Ee][Dd]|[Dd][Ii][Ss][Aa][Bb][Ll][Ee][Dd]|[Ss][Ii][Mm][Uu][Ll][Aa][Tt][Ii][Oo][Nn]|[Pp][Aa][Rr][Tt][Ii][Aa][Ll])$State of the policy: Enabled enforces the policy; Disabled disables it; Simulation logs realm and command-rule violations; Partial allows the enforcement state of associated realms and command rules to be changed individually.
Nested Schema : commandRules
Type:
arrayCommand rules to associate with the policy.
Show Source
-
Array of:
object DbVaultPolicyCommandRuleDetails
Identifies an existing command rule to associate with a policy.
Nested Schema : owners
Type:
arrayOwners to associate with the policy.
Show Source
-
Array of:
object DbVaultPolicyOwnerDetails
Identifies an existing owner to associate with a policy.
Nested Schema : realms
Type:
arrayRealms to associate with the policy.
Show Source
-
Array of:
object DbVaultPolicyRealmDetails
Identifies an existing realm to associate with a policy.
Nested Schema : DbVaultPolicyCommandRuleDetails
Type:
objectIdentifies an existing command rule to associate with a policy.
Show Source
-
actionName: string
Action qualifier of the command rule.
-
clauseName: string
Clause qualifier of the command rule.
-
command(required): string
SQL command governed by the command rule.
-
componentName: string
Component qualifier of the command rule.
-
eventName: string
Event qualifier of the command rule.
-
objectName: string
Name of the object governed by the command rule.
-
objectOwner: string
Owner of the object governed by the command rule.
-
parameterName: string
Parameter qualifier of the command rule.
Nested Schema : DbVaultPolicyOwnerDetails
Type:
objectIdentifies an existing owner to associate with a policy.
Show Source
-
name(required): string
Database username of the existing owner.
Nested Schema : DbVaultPolicyRealmDetails
Type:
objectIdentifies an existing realm to associate with a policy.
Show Source
-
realmName(required): string
Name of the existing realm.
Response
Supported Media Types
- application/json
200 Response
Policy updated.
Root Schema : DbVaultPolicy
Type:
objectDetailed representation of a Database Vault policy.
Show Source
-
commandRules: array
commandRules
Command rules associated with the policy.
-
description: string
Description of the policy.Example:
This policy will accomplish its purpose with realms and command rules -
isOracleSupplied(required): boolean
Whether the policy is Oracle-supplied.Example:
true -
name(required): string
Name of the policy.Example:
Oracle Account Management Control -
owners: array
owners
Owners associated with the policy.
-
policyId(required): string
Unique policy identifier.Example:
123 -
realms: array
realms
Realms associated with the policy.
-
state(required): string
Minimum Length:
7Maximum Length:10Pattern:^(?:[Ee][Nn][Aa][Bb][Ll][Ee][Dd]|[Dd][Ii][Ss][Aa][Bb][Ll][Ee][Dd]|[Ss][Ii][Mm][Uu][Ll][Aa][Tt][Ii][Oo][Nn]|[Pp][Aa][Rr][Tt][Ii][Aa][Ll])$State of the policy: Enabled enforces the policy; Disabled disables it; Simulation logs realm and command-rule violations; Partial allows the enforcement state of associated realms and command rules to be changed individually.
Match All
Detailed representation of a Database Vault policy.
Show Source
Nested Schema : commandRules
Type:
arrayCommand rules associated with the policy.
Show Source
-
Array of:
object DatabaseVaultCommandRuleSummary
Summary of a Database Vault command rule.
Nested Schema : owners
Type:
arrayOwners associated with the policy.
Show Source
-
Array of:
object Owners
Owner associated with a Database Vault policy.
Nested Schema : realms
Type:
arrayRealms associated with the policy.
Show Source
-
Array of:
object DatabaseVaultRealmSummary
Summary of 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 : DatabaseVaultCommandRuleSummary
Type:
objectSummary of a Database Vault command rule.
Show Source
-
actionName: string
Action qualifier for an ALTER SYSTEM or ALTER SESSION command rule.Example:
example_action_name -
clauseName: string
Clause qualifier for the command rule.Example:
SET -
command(required): string
SQL command governed by the command rule.Example:
ALTER SYSTEM -
commandRuleId(required): string
Unique command-rule identifier.Example:
14529 -
componentName: string
Component qualifier for an ALTER SYSTEM or ALTER SESSION command rule.Example:
ALTER SYSTEM -
condition(required): string
Minimum Length:
3Maximum Length:8Allowed Values:[ "Full", "Disabled", "SQL" ]Command-rule condition: Full enables enforcement, Disabled disables enforcement and simulation logging, and SQL permits SQL statements while logging violations in the simulation log. -
eventName: string
Event qualifier for an ALTER SYSTEM or ALTER SESSION command rule.Example:
ALTER SYSTEM -
objectName(required): string
Name of the database object governed by the command rule.Example:
dvvault -
objectOwner(required): string
Database user that owns the governed object.Example:
dbv_owner_backup -
parameterName: string
Parameter qualifier for an ALTER SYSTEM or ALTER SESSION command rule.Example:
LOG_ARCHIVE_TRACE -
ruleSetName(required): string
Name of the rule set associated with this command rule.Example:
Not allow to set OPTIMIZER_SECURE_VIEW_MERGING to True
Match All
Summary of a Database Vault command rule.
Show Source
Nested Schema : Link
Type:
objectA link referencing to another api
Show Source
-
href: string
the reference
Nested Schema : Owners
Type:
objectOwner associated with a Database Vault policy.
Show Source
-
name(required): string
Username of the policy owner.Example:
dv_owner_root -
status(required): string
Status of the policy owner.Example:
LOCKED
Nested Schema : DatabaseVaultRealmSummary
Type:
objectSummary 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. -
hasPolicyAssociated: boolean
Whether the realm has an associated policy.
-
isOracleSupplied(required): boolean
Whether the realm is Oracle-supplied.Example:
false -
realmCondition(required): string
Realm condition returned by the target Database Vault view.
-
realmDescription: string
Description of the realm.Example:
example of a description -
realmId(required): string
Unique realm identifier.Example:
14895 -
realmName(required): string
Name of the realm.Example:
Performance Statistics -
realmType(required): string
Minimum Length:
1Maximum Length:1Allowed Values:[ "0", "1" ]Realm type: 0 for a regular realm or 1 for a mandatory realm. -
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
Match All
Summary of 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