Method | Endpoint | Description |
|---|---|---|
GET | <baseApiUrl><prefix>/data-protections | Retrieve the list of all published data protections. |
GET | <baseApiUrl><prefix>/data-protections/{ID} | Retrieve the draft or published version of a specified data protection. |
Parameter | Type | Description |
|---|---|---|
offset | Integer | Optional. Specify the record number from which to begin returning assets. The default value is zero. |
limit | Integer | Optional. Specify the total number of records to return. The default value is 500. |
fetchDraft | Boolean | Optional. Retrieve the draft version of a specified data protection. When using the <baseApiUrl><prefix>/data-protections/{ID} endpoint, use fetchDraft=true.The default value is false. Note: To retrieve the draft version of all data protections, see Retrieve assets in the catalog. |
Method | Endpoint | Description |
|---|---|---|
POST | <baseApiUrl><prefix>/data-protections | Create new data protections. |
Parameter | Type | Description |
|---|---|---|
name | String | Required. Specify the name of the asset. |
externalId | String | Optional. Specify the external identifier of the asset. |
description | String | Optional. Specify the description of the asset. |
stakeholders | Object | Optional. Specify the following attributes to add a stakeholder to the asset. stakeholderId: The internal ID of the stakeholder. You can find this ID by looking at the URL of the stakeholder page in Data Governance and Catalog. roleId: The internal ID of the role for the stakeholder. You can find this ID in the role details in Administrator. Navigate to the User Roles page, open the user role, and copy the ID at the end of the URL. stakeholderType: Specify whether the stakeholder is a USER or GROUP. |
dataProtectionTechniques | Object | Required. Specify the data de-identification technique. dataProtectionTechniqueType: String. The data de-identification technique. appliesToDataType: String. The data type for the selected data de-identification technique. parameters: String. Additional required parameters for the selected data de-identification technique. |
Data De-identification Technique | Supported Data Types | Required Parameters |
|---|---|---|
CONSTANT_TEXT_VALUE_FUNCTION |
| "value": "****" |
GENERALIZE_DATE_FUNCTION |
| "preserve_date_type": "YEAR|MONTH" |
HASH_FUNCTION | STRING | "hash_algorithm": "<HASHING_FUNCTION>" "compatibility_mode": true|false |
NUMERIC_TOKENISE_FUNCTION | INTEGER | "regex": "" "consistent": true|false |
REDACT_WITH_NULL_FUNCTION |
| none |
RETAIN_FUNCTION |
| none |
SUBSTITUTE_FUNCTION | STRING | "filename": "<FILENAME>" "consistent": true|false |
TOKENISE_FUNCTION | STRING | "regex": "" "consistent": true|false |
TRUNCATE_FUNCTION | STRING | "length": "", "behaviour": "PRESERVE_FIRST_FEW_CHARACTERS" |
Method | Endpoint | Description |
|---|---|---|
PUT | <baseApiUrl><prefix>/data-protections/{ID} | Replace a specified data protection. |
Parameter | Type | Description |
|---|---|---|
name | String | Required. Specify the name of the asset. |
externalId | String | Optional. Specify the external identifier of the asset. |
description | String | Optional. Specify the description of the asset. |
stakeholders | Object | Optional. Specify the following attributes to add a stakeholder to the asset. stakeholderId: The internal ID of the stakeholder. You can find this ID by looking at the URL of the stakeholder page in Data Governance and Catalog. roleId: The internal ID of the role for the stakeholder. You can find this ID in the role details in Administrator. Navigate to the User Roles page, open the user role, and copy the ID at the end of the URL. stakeholderType: Specify whether the stakeholder is a USER or GROUP. |
dataProtectionTechniques | Object | Required. Specify the data de-identification technique. dataProtectionTechniqueType: String. The data de-identification technique. appliesToDataType: String. The data type for the selected data de-identification technique. parameters: String. Additional required parameters for the selected data de-identification technique. |
Method | Endpoint | Description |
|---|---|---|
DELETE | <baseApiUrl><prefix>/data-protections/{ID} | Delete a specified data protection. |