Create a Database Vault policy
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/databases/{databaseId}/dbVaultPolicies
Creates a policy with the supplied properties in the specified database.
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 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 -
mode: string
Minimum Length:
4Maximum Length:5Default Value:FALSEPattern:^(?:[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee])$Whether to record the PL/SQL stack in simulation mode. TRUE and FALSE are accepted without case sensitivity. -
name(required): 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
201 Response
Policy 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
403 Response
Forbidden
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