Skip to content

GET Sensitive Data Summary for Virtual Host.

POST
/api/ml/data/namespaces/{namespace}/virtual_hosts/{name}/api_endpoints/summary/top_sensitive_data
curl --request POST \
--url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/ml/data/namespaces/example/virtual_hosts/example/api_endpoints/summary/top_sensitive_data \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "apiep_category": [ "APIEP_CATEGORY_DISCOVERED" ], "domains": [ "example" ], "name": "example", "namespace": "example", "topk": 1 }'

GET sensitive data summary for the given Virtual Host. For each sensitive data type (e.g. SSN, CC, Email) we count the number of APIEPs having the respective sensitive data type and return top k (max 10) types with maximum APIEPs.

Examples of this operation.

namespace
required
string

Namespace Namespace of the virtual host for current request.

name
required
string

Virtual Host Name Virtual Host name for current request.

Media typeapplication/json
GetTopSensitiveDataReq

Request model for GetTopSensitiveDataReq API.

object
apiep_category
APIEP Category

Category of API endpoints. Can be DISCOVERED, INVENTORY or SHADOW API.

Array<string>
Allowed values: APIEP_CATEGORY_DISCOVERED APIEP_CATEGORY_SWAGGER APIEP_CATEGORY_INVENTORY APIEP_CATEGORY_SHADOW APIEP_CATEGORY_DEPRECATED APIEP_CATEGORY_NON_API
domains
List of Domain

List of domains for which top API endpoints summary should be returned. Optional filter by domains. If absent, endpoints for all domains are considered.

Array<string>
<= 5 items
name
Virtual Host Name

Virtual Host name for current request.

string
>= 6 characters <= 1024 characters
namespace
Namespace

Namespace of the virtual host for current request.

string
>= 6 characters <= 1024 characters
topk
topk

Number of top API endpoints to return in the response.

integer format: int64

A successful response.

Media typeapplication/json
GetTopSensitiveDataRsp

Response model for GetTopSensitiveDataRsp API.

object
top_sensitive_data
top_sensitive_data

Top k (max 10) sensitive data types with highest APIs count.

Array<object>
SensitiveDataCount

Response model for GetTopSensitiveDataRsp API.

object
count
count

Number of APIEP detected this sensitive data type.

integer format: int32
sensitive_data_type
string
default: SENSITIVE_DATA_TYPE_CCN
Allowed values: SENSITIVE_DATA_TYPE_CCN SENSITIVE_DATA_TYPE_SSN SENSITIVE_DATA_TYPE_IP SENSITIVE_DATA_TYPE_EMAIL SENSITIVE_DATA_TYPE_PHONE SENSITIVE_DATA_TYPE_CREDENTIALS SENSITIVE_DATA_TYPE_APP_INFO_LEAKAGE SENSITIVE_DATA_TYPE_MASKED_PII SENSITIVE_DATA_TYPE_LOCATION
type
sensitive_data_type

The type of sensitive data detected in APIs.

string
<= 1024 characters
Example
{
"top_sensitive_data": [
{
"sensitive_data_type": "SENSITIVE_DATA_TYPE_CCN"
}
]
}

Returned when operation is not authorized.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when there is no permission to access resource.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when resource is not found.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when operation on resource is conflicting with current value.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when operation has been rejected as it is happening too frequently.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when server encountered an error in processing API.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when service is unavailable temporarily.

Media typeapplication/json
string format: string
Examplegenerated
example

Returned when server timed out processing request.

Media typeapplication/json
string format: string
Examplegenerated
example