Bulk protect
Use the /v1/protectbulk
API to protect bulk data. This API uses the POST
method.
Prerequisites
This section assumes you have fulfilled the prerequisites.
Syntax
Here, ip
is the IP of the host machine where CRDP container is deployed and <port>
is the port of CRDP container.
Request Parameters
Request Parameter | Description |
---|---|
protection_policy_name | Protection policy to be used during the protect operation. |
data_array | An array of data to be protected. |
Response Parameters
Response Parameter | Description |
---|---|
status | Overall status of the bulk protect operations. |
total_count | Total count of data to be protected. |
success_count | Total count of successful operations. |
error_count | Total count of failed operations. |
protected_data_array | Contains the array of protected data. |
Examples for ProtectBulk
Request
Response
This example uses internal versioned policy (testpp-internal-versioned
) to protect data. In response, version header bytes+ ciphertexts are returned in the protected_data_array
field. The protection policy is configured to protect only lower alphabets, the numbers and special characters are preserved as it is.
Request
Response
This example uses external versioned policy (testpp-external-versioned
) to protect data. In response, ciphertexts are returned in the protected_data_array
field. The external_version
field holds the version bytes. The protection policy is configured to protect only lower alphabets, the numbers and special characters are preserved as it is.
Request
Response
This example uses disabled policy (testpp-disabled-versioned
) to protect data. In response, only ciphertexts are returned in the protected_data_array
field. The protection policy is configured to protect only lower alphabets, the numbers and special characters are preserved as it is.