Get Kubernetes Registries used for Pod Vulnerability Scanning
This endpoint returns a list of all Kubernetes registries displayed in the Secure Workload cluster for a given VRF.
GET /openapi/kubernetes/{root_scope_name_or_id}/vulnerability_scanning/registry
Parameters: The JSON query body contains the following keys
Name |
Type |
Description |
---|---|---|
root_scope_name_or_id |
string |
Root scope name or ID |
Response object: Returns an array of registry objects with the following attributes
Attribute |
Type |
Description |
---|---|---|
id |
string |
ID of the registry |
clusters |
array |
Array of Kubernetes cluster objects using the registry |
connection_status |
string |
Defines registry connection status |
credential_status |
string |
Status stating if the credentials are provided |
last_scanned |
Int64 |
Last scanner at time in epoch |
url |
string |
URL of the registry |
Kubernetes cluster object
Attribute |
Type |
Description |
---|---|---|
id |
string |
ID of the Kubernetes cluster |
connector_id |
string |
ID of the connector used to onboard the Kubernetes cluster |
connector_type |
string |
Type of connector used to onboard the Kubernetes cluster |
name |
string |
Name of the Kubernetes cluster |
Sample python code
root_app_scope_name = 'Tetration'
restclient.get('/kubernetes/%s/vulnerability_scanning/registry' % root_app_scope_name)