Create a Database Vault command rule
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/databases/{databaseId}/dbVaultCommandRules
Creates a command rule 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 command rule.
Show Source
-
actionName: string
Action qualifier for the command rule.Example:
% -
clauseName: string
Clause qualifier for the command rule.Example:
% -
command(required): string
Minimum Length:
1Pattern:\SSQL command governed by the command rule.Example:ANALYZE INDEX -
componentName: string
Component qualifier for the command rule.Example:
% -
condition(required): string
Minimum Length:
3Maximum 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]|[Ff][Uu][Ll][Ll]|[Ss][Qq][Ll])$Command-rule condition. Accepted values are Enabled, Disabled, Simulation, Full, and SQL, without case sensitivity. -
eventName: string
Event qualifier for the command rule.Example:
% -
objectName(required): string
Object governed by the command rule. The % wildcard is allowed.Example:
% -
objectOwner(required): string
Database schema to which the command rule applies. The % wildcard is allowed except for SELECT, INSERT, UPDATE, DELETE, and EXECUTE statements.Example:
% -
parameterName: string
Parameter qualifier for the command rule.Example:
% -
privilegeScope(required): string
Privilege scope of the command rule.Example:
-
ruleSetName(required): string
Name of the rule set associated with the command rule.Example:
Disabled
Response
201 Response
Command rule 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