Create Mask
Create mask for the CCN.
What you are doing
Creating the mask that is applied to the unprotection permission of a data element to customize how data is displayed. The mask is to be used later on de_ccn_token.
Why it matters
Creating a mask defines what characters are displayed in the clear when the data is unprotected. The mask is optionally applied to an unprotection to display only a certain value to a consumer of the data.
CLI Code
pim create masks --name "clear_mask" --from-left 0 --from-right 4 --character "*"
CLI Actual Output
## Name Description Fromleft Fromright Masked Character Uid
clear_mask 0 4 False * 1
API Code
curl -k \
-H "Authorization: Bearer ${TOKEN}" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-X POST "https://${GW_HOST}/pty/v2/pim/masks" \
-d '{
"name": "clear_mask",
"masked": true,
"fromLeft": 0,
"fromRight": 4,
"character": "*"
}'
API Endpoint
POST /pim/masks
API Actual Output
{"uid":"1","name":"clear_mask","description":"","fromLeft":0,"fromRight":4,"masked":true,"character":"*"}
Feedback
Was this page helpful?