Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Update Data Masking

Hello, 

I triying Data Masking, with this documentation: https://cloud.google.com/apigee/docs/api-platform/security/data-masking

But, when I used "updateMask", the request is OK, but there is not any update in my data masking. Any suggestion about how I must use "updateMask"?

I sent:

curl "https://apigee.googleapis.com/v1/organizations/gdc-latam-apigee-internal-1/environments/dev/debugmas..." -X PATCH -H "Authorization: Bearer $TOKEN" -H "Content-type: application/json" -d '{
"requestJSONPaths": [
"$.store.book[*].date",
"$.store.book[*].version"
],
"variables": [
"request.header.via"
],
}'

  • Set the updateMask query parameter to specify a field mask that includes a comma-separated list of fully-qualified names of fields in the debug mask. For example: "requestJSONPaths"
Solved Solved
0 4 1,282
1 ACCEPTED SOLUTION

So, my question is what is the difference to send "updateMask" and not send it. 

I think that if you do not include a field in "updateMask" then the field will not be updated.  Right?  I think that's how the API is defined. I am assuming that's how the service endpoint knows how to apply the PATCH request.

View solution in original post

4 REPLIES 4