- Home
- API Enriched
- Virtual
- config
- Suggest sensitive data rule.
Suggest sensitive data rule.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/config/namespaces/example/http_loadbalancers/example/data_exposure/suggestion';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"method":"ANY","name":"example","namespace":"example","path":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/config/namespaces/example/http_loadbalancers/example/data_exposure/suggestion \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "method": "ANY", "name": "example", "namespace": "example", "path": "example" }'Suggest sensitive data rule for a given path DEPRECATED. Use api_sec.rule_suggestion.rulesuggestionapi.getsuggestedsensitivedatarule.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace Namespace of the App type for current request.
Name HTTP load balancer for which this sensitive data rule applied.
Request Bodyrequired
Section titled “Request Bodyrequired”GET suggested sensitive data rule for a given path.
object
HTTP load balancer for which this sensitive data rule applied.
Namespace of the App type for current request.
Path to apply the senstive data to Required: YES.
Responses
Section titled “Responses”A successful response.
GET suggested sensitive data rule for a given path.
object
object
object
object
Methods to be matched.
Path to be matched Required: YES.
object
List of JSON Path field values. Use square brackets with an underscore [] to indicate array elements (e.g., person.emails[]). To reference JSON keys that contain spaces, enclose the entire path in double quotes. For example: “person.first name”. Required: YES.
object
object
Example
{ "rule": { "api_endpoint": { "methods": [ "ANY" ] } }}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example