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
Header Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Properties used to create a Database Vault policy.
Show Source
  • commandRules
    Command rules to associate with the policy.
  • Description of the policy.
    Example: This policy will accomplish its purpose with realms and command rules
  • Minimum Length: 4
    Maximum Length: 5
    Default Value: FALSE
    Pattern: ^(?:[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 of the policy.
    Example: Oracle Account Management Control
  • owners
    Owners to associate with the policy.
  • realms
    Realms to associate with the policy.
  • Minimum Length: 7
    Maximum Length: 10
    Pattern: ^(?:[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: array
Command rules to associate with the policy.
Show Source
Nested Schema : owners
Type: array
Owners to associate with the policy.
Show Source
Nested Schema : realms
Type: array
Realms to associate with the policy.
Show Source
Nested Schema : DbVaultPolicyCommandRuleDetails
Type: object
Identifies an existing command rule to associate with a policy.
Show Source
Nested Schema : DbVaultPolicyOwnerDetails
Type: object
Identifies an existing owner to associate with a policy.
Show Source
Nested Schema : DbVaultPolicyRealmDetails
Type: object
Identifies an existing realm to associate with a policy.
Show Source
Back to Top

Response

201 Response

Policy created.

400 Response

Bad Request
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

403 Response

Forbidden
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

404 Response

Not Found
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

409 Response

Duplicate Resource
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported

Default Response

Unexpected error.
Body ()
Root Schema : ErrorResponse
Type: object
Response sent back in the case of an error
Show Source
  • The status code of the error
    Example: IllegalArgument
  • A descriptive error message
    Example: The argument given is not supported
Back to Top