OpenAPI
Informationsâ
Versionâ
1.0
Contactâ
Content negotiationâ
URI Schemesâ
- http
Consumesâ
- application/json
- multipart/form-data
- text/plain
Producesâ
- application/json
- text/plain
All endpointsâ
clusterâ
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /rest-api/v1/cluster/{clusterName} | delete rest API v1 cluster cluster name | Delete removes a cluster resource by name. |
GET | /rest-api/v1/cluster/{clusterName} | get rest API v1 cluster cluster name | Get returns a cluster resource by name. |
GET | /rest-api/v1/clusters | get rest API v1 clusters | List lists all cluster resources. |
POST | /rest-api/v1/cluster/{clusterName} | post rest API v1 cluster cluster name | Create creates a cluster resource. |
POST | /rest-api/v1/cluster/config/file | post rest API v1 cluster config file | Upload kubeConfig file for cluster |
POST | /rest-api/v1/cluster/config/validate | post rest API v1 cluster config validate | Validate KubeConfig |
PUT | /rest-api/v1/cluster/{clusterName} | put rest API v1 cluster cluster name | Update updates the cluster metadata by name. |
debugâ
Method | URI | Name | Summary |
---|---|---|---|
GET | /endpoints | get endpoints | List all available endpoints |
insightâ
Method | URI | Name | Summary |
---|---|---|---|
GET | /rest-api/v1/insight/audit | get rest API v1 insight audit | Audit based on resource group. |
GET | /rest-api/v1/insight/detail | get rest API v1 insight detail | GetDetail returns a Kubernetes resource by name, namespace, cluster, apiVersion and kind. |
GET | /rest-api/v1/insight/events | get rest API v1 insight events | GetEvents returns events for a Kubernetes resource by name, namespace, cluster, apiVersion and kind. |
GET | /rest-api/v1/insight/score | get rest API v1 insight score | ScoreHandler calculates a score for the audited manifest. |
GET | /rest-api/v1/insight/stats | get rest API v1 insight stats | Get returns a global statistics info. |
GET | /rest-api/v1/insight/summary | get rest API v1 insight summary | Get returns a Kubernetes resource summary by name, namespace, cluster, apiVersion and kind. |
GET | /rest-api/v1/insight/topology | get rest API v1 insight topology | GetTopology returns a topology map for a Kubernetes resource by name, namespace, cluster, apiVersion and kind. |
resourcegroupâ
Method | URI | Name | Summary |
---|---|---|---|
GET | /rest-api/v1/resource-groups/{resourceGroupRuleName} | get rest API v1 resource groups resource group rule name | List lists all ResourceGroups by rule name. |
resourcegroupruleâ
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /rest-api/v1/resource-group-rule/{resourceGroupRuleName} | delete rest API v1 resource group rule resource group rule name | Delete removes a ResourceGroupRule by name. |
GET | /rest-api/v1/resource-group-rule/{resourceGroupRuleName} | get rest API v1 resource group rule resource group rule name | Get returns a ResourceGroupRule by name. |
GET | /rest-api/v1/resource-group-rules | get rest API v1 resource group rules | List lists all ResourceGroupRules. |
POST | /rest-api/v1/resource-group-rule | post rest API v1 resource group rule | Create creates a ResourceGroupRule. |
PUT | /rest-api/v1/resource-group-rule | put rest API v1 resource group rule | Update updates the ResourceGroupRule metadata by name. |
searchâ
Method | URI | Name | Summary |
---|---|---|---|
GET | /rest-api/v1/search | get rest API v1 search | SearchForResource returns an array of Kubernetes runtime Object matched using the query from context. |
Pathsâ
Delete removes a cluster resource by name. (DeleteRestAPIV1ClusterClusterName)â
DELETE /rest-api/v1/cluster/{clusterName}
This endpoint deletes the cluster resource by name.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
clusterName | path | string | string | â | The name of the cluster |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Operation status | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Operation statusâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Delete removes a ResourceGroupRule by name. (DeleteRestAPIV1ResourceGroupRuleResourceGroupRuleName)â
DELETE /rest-api/v1/resource-group-rule/{resourceGroupRuleName}
This endpoint deletes the ResourceGroupRule by name.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
resourceGroupRuleName | path | string | string | â | The name of the resource group rule |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Operation status | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Operation statusâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
List all available endpoints (GetEndpoints)â
GET /endpoints
List all registered endpoints in the router
Consumesâ
- text/plain
Producesâ
- text/plain
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Endpoints listed successfully | schema |
Responsesâ
200 - Endpoints listed successfullyâ
Status: OK
Schemaâ
Get returns a cluster resource by name. (GetRestAPIV1ClusterClusterName)â
GET /rest-api/v1/cluster/{clusterName}
This endpoint returns a cluster resource by name.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
clusterName | path | string | string | â | The name of the cluster | ||
format | query | string | string | The format of the response. Either in json or yaml |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
List lists all cluster resources. (GetRestAPIV1Clusters)â
GET /rest-api/v1/clusters
This endpoint lists all cluster resources.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
descending | query | boolean | bool | Whether to sort the list in descending order. Default to false | |||
orderBy | query | string | string | The order to list the cluster. Default to order by name | |||
summary | query | boolean | bool | Whether to display summary or not. Default to false |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | List of cluster objects | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - List of cluster objectsâ
Status: OK
Schemaâ
[][UnstructuredUnstructured](#unstructured-unstructured)
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Audit based on resource group. (GetRestAPIV1InsightAudit)â
GET /rest-api/v1/insight/audit
This endpoint audits based on the specified resource group.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
apiVersion | query | string | string | The specified apiVersion, such as 'apps/v1' | |||
cluster | query | string | string | The specified cluster name, such as 'example-cluster' | |||
forceNew | query | boolean | bool | Switch for forced scanning, default is 'false' | |||
kind | query | string | string | The specified kind, such as 'Deployment' | |||
name | query | string | string | The specified resource name, such as 'foo' | |||
namespace | query | string | string | The specified namespace, such as 'default' |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Audit results | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Audit resultsâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
GetDetail returns a Kubernetes resource by name, namespace, cluster, apiVersion and kind. (GetRestAPIV1InsightDetail)â
GET /rest-api/v1/insight/detail
This endpoint returns a Kubernetes resource by name, namespace, cluster, apiVersion and kind.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
apiVersion | query | string | string | The specified apiVersion, such as 'apps/v1'. Should be percent-encoded | |||
cluster | query | string | string | The specified cluster name, such as 'example-cluster' | |||
format | query | string | string | The format of the response. Either in json or yaml. Default to json | |||
kind | query | string | string | The specified kind, such as 'Deployment' | |||
name | query | string | string | The specified resource name, such as 'foo' | |||
namespace | query | string | string | The specified namespace, such as 'default' |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
GetEvents returns events for a Kubernetes resource by name, namespace, cluster, apiVersion and kind. (GetRestAPIV1InsightEvents)â
GET /rest-api/v1/insight/events
This endpoint returns events for a Kubernetes resource YAML by name, namespace, cluster, apiVersion and kind.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
apiVersion | query | string | string | The specified apiVersion, such as 'apps/v1'. Should be percent-encoded | |||
cluster | query | string | string | The specified cluster name, such as 'example-cluster' | |||
kind | query | string | string | The specified kind, such as 'Deployment' | |||
name | query | string | string | The specified resource name, such as 'foo' | |||
namespace | query | string | string | The specified namespace, such as 'default' |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | List of events | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - List of eventsâ
Status: OK
Schemaâ
[][UnstructuredUnstructured](#unstructured-unstructured)
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
ScoreHandler calculates a score for the audited manifest. (GetRestAPIV1InsightScore)â
GET /rest-api/v1/insight/score
This endpoint calculates a score for the provided manifest based on the number and severity of issues detected during the audit.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
apiVersion | query | string | string | The specified apiVersion, such as 'apps/v1' | |||
cluster | query | string | string | The specified cluster name, such as 'example-cluster' | |||
forceNew | query | boolean | bool | Switch for forced compute score, default is 'false' | |||
kind | query | string | string | The specified kind, such as 'Deployment' | |||
name | query | string | string | The specified resource name, such as 'foo' | |||
namespace | query | string | string | The specified namespace, such as 'default' |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Score calculation result | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Score calculation resultâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Get returns a global statistics info. (GetRestAPIV1InsightStats)â
GET /rest-api/v1/insight/stats
This endpoint returns a global statistics info.
Producesâ
- application/json
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Global statistics info | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Global statistics infoâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Get returns a Kubernetes resource summary by name, namespace, cluster, apiVersion and kind. (GetRestAPIV1InsightSummary)â
GET /rest-api/v1/insight/summary
This endpoint returns a Kubernetes resource summary by name, namespace, cluster, apiVersion and kind.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
apiVersion | query | string | string | The specified apiVersion, such as 'apps/v1'. Should be percent-encoded | |||
cluster | query | string | string | The specified cluster name, such as 'example-cluster' | |||
kind | query | string | string | The specified kind, such as 'Deployment' | |||
name | query | string | string | The specified resource name, such as 'foo' | |||
namespace | query | string | string | The specified namespace, such as 'default' |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Resource Summary | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Resource Summaryâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
GetTopology returns a topology map for a Kubernetes resource by name, namespace, cluster, apiVersion and kind. (GetRestAPIV1InsightTopology)â
GET /rest-api/v1/insight/topology
This endpoint returns a topology map for a Kubernetes resource by name, namespace, cluster, apiVersion and kind.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
apiVersion | query | string | string | The specified apiVersion, such as 'apps/v1'. Should be percent-encoded | |||
cluster | query | string | string | The specified cluster name, such as 'example-cluster' | |||
forceNew | query | boolean | bool | Force re-generating the topology, default is 'false' | |||
kind | query | string | string | The specified kind, such as 'Deployment' | |||
name | query | string | string | The specified resource name, such as 'foo' | |||
namespace | query | string | string | The specified namespace, such as 'default' |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | map from string to resource.ResourceTopology | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - map from string to resource.ResourceTopologyâ
Status: OK
Schemaâ
map of InsightResourceTopology
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Get returns a ResourceGroupRule by name. (GetRestAPIV1ResourceGroupRuleResourceGroupRuleName)â
GET /rest-api/v1/resource-group-rule/{resourceGroupRuleName}
This endpoint returns a ResourceGroupRule by name.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
resourceGroupRuleName | path | string | string | â | The name of the resource group rule |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
List lists all ResourceGroupRules. (GetRestAPIV1ResourceGroupRules)â
GET /rest-api/v1/resource-group-rules
This endpoint lists all ResourceGroupRules.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
descending | query | boolean | bool | Whether to sort the list in descending order. Default to false | |||
orderBy | query | string | string | The order to list the resourceGroupRule. Default to order by name | |||
summary | query | boolean | bool | Whether to display summary or not. Default to false |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | List of resourceGroupRule objects | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - List of resourceGroupRule objectsâ
Status: OK
Schemaâ
[][UnstructuredUnstructured](#unstructured-unstructured)
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
List lists all ResourceGroups by rule name. (GetRestAPIV1ResourceGroupsResourceGroupRuleName)â
GET /rest-api/v1/resource-groups/{resourceGroupRuleName}
This endpoint lists all ResourceGroups.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
resourceGroupRuleName | path | string | string | â | The name of the resource group rule |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | List of resourceGroup objects | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - List of resourceGroup objectsâ
Status: OK
Schemaâ
[][UnstructuredUnstructured](#unstructured-unstructured)
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
SearchForResource returns an array of Kubernetes runtime Object matched using the query from context. (GetRestAPIV1Search)â
GET /rest-api/v1/search
This endpoint returns an array of Kubernetes runtime Object matched using the query from context.
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
page | query | string | string | The current page to fetch. Default to 1 | |||
pageSize | query | string | string | The size of the page. Default to 10 | |||
pattern | query | string | string | â | The search pattern. Can be either sql or dsl. Required | ||
query | query | string | string | â | The query to use for search. Required |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Array of runtime.Object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Array of runtime.Objectâ
Status: OK
Schemaâ
[][interface{}](#interface)
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Create creates a cluster resource. (PostRestAPIV1ClusterClusterName)â
POST /rest-api/v1/cluster/{clusterName}
This endpoint creates a new cluster resource using the payload.
Consumesâ
- application/json
- text/plain
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
clusterName | path | string | string | â | The name of the cluster | ||
request | body | ClusterClusterPayload | models.ClusterClusterPayload | â | cluster to create (either plain text or JSON format) |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Upload kubeConfig file for cluster (PostRestAPIV1ClusterConfigFile)â
POST /rest-api/v1/cluster/config/file
Uploads a KubeConfig file for cluster, with a maximum size of 2MB.
Consumesâ
- multipart/form-data
Producesâ
- text/plain
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
description | formData | string | string | â | cluster description | ||
displayName | formData | string | string | â | cluster display name | ||
file | formData | file | io.ReadCloser | â | Upload file with field name 'file' | ||
name | formData | string | string | â | cluster name |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Returns the content of the uploaded KubeConfig file. | schema | |
400 | Bad Request | The uploaded file is too large or the request is invalid. | schema | |
500 | Internal Server Error | Internal server error. | schema |
Responsesâ
200 - Returns the content of the uploaded KubeConfig file.â
Status: OK
Schemaâ
400 - The uploaded file is too large or the request is invalid.â
Status: Bad Request
Schemaâ
500 - Internal server error.â
Status: Internal Server Error
Schemaâ
Validate KubeConfig (PostRestAPIV1ClusterConfigValidate)â
POST /rest-api/v1/cluster/config/validate
Validates the provided KubeConfig using cluster manager methods.
Consumesâ
- application/json
- text/plain
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
request | body | ClusterValidatePayload | models.ClusterValidatePayload | â | KubeConfig payload to validate |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Verification passed server version | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Verification passed server versionâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Create creates a ResourceGroupRule. (PostRestAPIV1ResourceGroupRule)â
POST /rest-api/v1/resource-group-rule
This endpoint creates a new ResourceGroupRule using the payload.
Consumesâ
- application/json
- text/plain
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
request | body | ResourcegroupruleResourceGroupRulePayload | models.ResourcegroupruleResourceGroupRulePayload | â | resourceGroupRule to create (either plain text or JSON format) |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Update updates the cluster metadata by name. (PutRestAPIV1ClusterClusterName)â
PUT /rest-api/v1/cluster/{clusterName}
This endpoint updates the display name and description of an existing cluster resource.
Consumesâ
- application/json
- text/plain
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
clusterName | path | string | string | â | The name of the cluster | ||
request | body | ClusterClusterPayload | models.ClusterClusterPayload | â | cluster to update (either plain text or JSON format) |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Update updates the ResourceGroupRule metadata by name. (PutRestAPIV1ResourceGroupRule)â
PUT /rest-api/v1/resource-group-rule
This endpoint updates the display name and description of an existing ResourceGroupRule.
Consumesâ
- application/json
- text/plain
Producesâ
- application/json
Parametersâ
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
request | body | ResourcegroupruleResourceGroupRulePayload | models.ResourcegroupruleResourceGroupRulePayload | â | resourceGroupRule to update (either plain text or JSON format) |
All responsesâ
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | Unstructured object | schema | |
400 | Bad Request | Bad Request | schema | |
401 | Unauthorized | Unauthorized | schema | |
404 | Not Found | Not Found | schema | |
405 | Method Not Allowed | Method Not Allowed | schema | |
429 | Too Many Requests | Too Many Requests | schema | |
500 | Internal Server Error | Internal Server Error | schema |
Responsesâ
200 - Unstructured objectâ
Status: OK
Schemaâ
400 - Bad Requestâ
Status: Bad Request
Schemaâ
401 - Unauthorizedâ
Status: Unauthorized
Schemaâ
404 - Not Foundâ
Status: Not Found
Schemaâ
405 - Method Not Allowedâ
Status: Method Not Allowed
Schemaâ
429 - Too Many Requestsâ
Status: Too Many Requests
Schemaâ
500 - Internal Server Errorâ
Status: Internal Server Error
Schemaâ
Modelsâ
cluster.ClusterPayloadâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
description | string | string | ClusterDescription is the description of cluster to be created | |||
displayName | string | string | ClusterDisplayName is the display name of cluster to be created | |||
kubeconfig | string | string | ClusterKubeConfig is the kubeconfig of cluster to be created |
cluster.UploadDataâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
content | string | string | ||||
fileName | string | string | ||||
fileSize | integer | int64 | ||||
sanitizedClusterContent | string | string |
cluster.ValidatePayloadâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
kubeConfig | string | string |
entity.ResourceGroupâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
annotations | map of string | map[string]string | ||||
apiVersion | string | string | ||||
cluster | string | string | ||||
kind | string | string | ||||
labels | map of string | map[string]string | ||||
name | string | string | ||||
namespace | string | string |
insight.ResourceSummaryâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
creationTimestamp | string | string | ||||
resource | EntityResourceGroup | EntityResourceGroup | ||||
resourceVersion | string | string | ||||
uid | string | string |
insight.ResourceTopologyâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
children | []string | []string | ||||
parents | []string | []string | ||||
resourceGroup | EntityResourceGroup | EntityResourceGroup |
insight.ScoreDataâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
issuesTotal | integer | int64 | IssuesTotal is the total count of all issues found during the audit. | |||
This count can be used to understand the overall number of problems | ||||||
that need to be addressed. | ||||||
resourceTotal | integer | int64 | ResourceTotal is the count of unique resources audited during the scan. | |||
score | number | float64 | Score represents the calculated score of the audited manifest based on | |||
the number and severity of issues. It provides a quantitative measure | ||||||
of the security posture of the resources in the manifest. | ||||||
severityStatistic | map of integer | map[string]int64 | SeverityStatistic is a mapping of severity levels to their respective | |||
number of occurrences. It allows for a quick overview of the distribution | ||||||
of issues across different severity categories. |
insight.Statisticsâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
clusterCount | integer | int64 | ||||
resourceCount | integer | int64 | ||||
resourceGroupRuleCount | integer | int64 |
resourcegrouprule.ResourceGroupRulePayloadâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
description | string | string | ||||
fields | []string | []string | ||||
name | string | string |
scanner.AuditDataâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
bySeverity | map of integer | map[string]int64 | ||||
issueGroups | [][ScannerIssueGroup](#scanner-issue-group) | []*ScannerIssueGroup | ||||
issueTotal | integer | int64 | ||||
resourceTotal | integer | int64 |
scanner.Issueâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
message | string | string | Message provides a detailed human-readable description of the issue. | |||
scanner | string | string | Scanner is the name of the scanner that discovered the issue. | |||
severity | integer | int64 | Severity indicates how critical the issue is, using the IssueSeverityLevel constants. | |||
title | string | string | Title is a brief summary of the issue. |
scanner.IssueGroupâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
issue | ScannerIssue | ScannerIssue | ||||
resourceGroups | [][EntityResourceGroup](#entity-resource-group) | []*EntityResourceGroup |
unstructured.Unstructuredâ
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
object | interface{} | interface{} | Object is a JSON compatible map with string, float, int, bool, []interface{}, or | |||
map[string]interface{} | ||||||
children. |