REST API Reference

REST API Reference

POST Advanceruleassignments

POST Advanceruleassignments

The POST advanceruleassignments request assigns an advanced masking rule to a column.

Resource URL

/tdm/v1/projects/{projectId}/columns/advanceruleassignments

HTTP Request

POST http(s)://
<host>
:
<port>
/api/public/tdm/v1/projects/{projectId}/columns/advanceruleassignments

Request Header

The request header includes the following headers:
Header
Description
accept
Use the following value:
application/json
Authorization
Required. Use the following value:
Basic <user name>

Request Path Parameters

The request includes the following path parameter:
Parameter
Description
projectId
ID of the project that contains the job.

Request Body

The request body includes the following property values:
Property
Data Type
Description
id
Integer
Existing rule assignment ID.
name
String
Name of the advanced masking rule that you want to assign.
rule_id
Integer
Required. Rule ID number.
policy
Integer
Policy ID number. The policy must contain the rule you want to use. If you enter the policy name, you do not need to enter the rule ID.
join_condition
String
Required to perform expression cascade if you include columns from more than one source input tables.
input_map port id
Integer
Required. Column ID number of the source column.
input_map rule_port_id
Integer
Required. Rule port ID number of the input column that you want to mask.
output_map port id
Integer
Required. Column ID number of the target column.
output_map rule_port_id
Integer
Required. Rule port ID number of the output column.

Sample Request

POST http://<host>:6605/api/public/tdm/v1/projects/5/columns/advanceruleassignments

Sample Request Body

{ "id": 0, "name": "Fk", "rule_id": 605, "policy": 0, "join_condition": "string", "input_map": [ { "port_id": 3618, "rule_port_id": 409 } ], "output_map": [ { "port_id": 3618, "rule_port_id": 408 } ] }

Sample Response

{ "id": 5, "name": null, "policy": 201, "rule_id": 604, "join_condition": "", "input_map": [ { "port_id": 3618, "rule_port_id": 406 } ], "output_map": [ { "port_id": 3618, "rule_port_id": 407 } ] }
You can verify the rule assignment in Test Data Manager.

0 COMMENTS

We’d like to hear from you!