/policyengine/v1/regex/<regex_name>: GET
Retrieves a single regular expression detail from the Data Cataloging system.
The following table shows the roles that can perform read operation on the endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
✓ | ✓ | ✓ | Χ | Χ |
Synopsis of the request URL
curl -k -H "Authorization: Bearer ${TOKEN}" https://$SDHOST/policyengine/v1/regex/$REGEXNAME -H "Content-type:application/json" -X GET
Supported request types and response formats
Supported request types:
- GET
Supported response formats:
- JSON
Examples
The following example returns the single regular expression detail registered for which you have
read permission.
- Issue the following request in one
line.
curl -k -H "Authorization: Bearer ${TOKEN}" https://$SDHOST/policyengine/v1/regex/EmailID -H "Content-type:application/json" -X GET
- The following response is returned.
200(OK)
{ "regex_id": "EmailID", "pattern": "\\b[\\w\\.=-]+@[\\w\\.-]+\\.[\\w]{2,3}\\b", "description": "Matching Email IDs like : John.Smith@example.com" }