You need to enable JavaScript to run this app.
Volcengine Kubernetes Engine

Volcengine Kubernetes Engine

Copy page
Download PDF
Inspection and diagnosis
ListInspectionPolicies
Copy page
Download PDF
ListInspectionPolicies
Queries the inspection policy list.​
Request description​
VKE has deployed services in multiple regions globally to provide a stable and low-latency access experience. You can refer to the Service addresses topic and select the most suitable access point based on the region where your business is located.​
  • Request method: POST​
  • Request URL: https://vke.cn-beijing.volcengineapi.com?Action=ListInspectionPolicies&Version=2022-05-12​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameter​
The following table describes the API request parameters. You also need to provide public parameters when calling this API. For details about public request parameters, see Public parameters.​
​
Parameter​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
ListInspectionPolicies​
The API name. The API name is ListInspectionPolicies.​
Version​
String​
Yes​
May 12, 2022​
The API version. The API version is 2022-05-12.​
Filter​
No​
-​
The inspection object filter. It intersects the value ranges of query parameters and returns matching results.​
PageNumber​
Long​
No​
1​
The starting page number for paginated queries. The value starts at 1 and defaults to 1.​
PageSize​
Long​
No​
10​
The number of results per page:​
  • Minimum value: 1​
  • Maximum value: 100​
  • Default value: 10​
​
InspectionConfigFilter​
​
Parameter​
Type​
Required​
Sample value​
Description​
Ids​
Array of String​
No​
R202604****​
The inspection policy ID.​
Name​
String​
No​
policy-test​
The inspection policy name.​
Types​
Array of String​
No​
ClusterInspection​
The inspection type. You can only set the value to ClusterInspection, which indicates that a regular inspection is initiated for the inspection object.​
ClusterIds​
Array of String​
No​
ccbm7****​
Cluster ID.​
You can call the ListClusters API to obtain cluster IDs.​
ResourceIds​
Array of String​
No​
["ccbm7****", "ccdhm****"]​
The inspection object IDs.​
ResourceType​
String​
No​
VkeCluster​
The inspection object type. You can only set the value to VkeCluster, which indicates a cluster inspection.​
​
Sample requests​
​
POST https://vke.cn-beijing.volcengineapi.com?Action=ListInspectionPolicies&Version=2022-05-12​
Content-Type: application/json​
{​
"Filter": {​
"Ids": [​
""​
],​
"Name": "policy-test",​
"Types": [​
""​
],​
"ClusterIds": [​
"ccbm7****"​
],​
"ResourceIds": [​
"ccbm7****",​
"ccdhm****"​
],​
"ResourceType": "VkeCluster"​
},​
"PageNumber": 1,​
"PageSize": 10​
}​
​
Response parameter​
The following table contains the response parameters of this API. See Response results for details about public response parameters.​
​
Parameter​
Type​
Sample value​
Description​
Items​
-​
The inspection and self-healing configurations.​
PageNumber​
Long​
1​
The current page number.​
PageSize​
Long​
10​
Number of tasks displayed per page.​
TotalCount​
Long​
178​
The total number of data entries that match the query conditions.​
​
InspectionConfigResult​
​
Parameter​
Type​
Sample value​
Description​
Id​
String​
R2026******​
The inspection policy ID.​
Name​
String​
policy-test​
The inspection policy name.​
Type​
String​
ClusterInspection​
The inspection type. You can only set the value to ClusterInspection, which indicates that a regular inspection is initiated for the inspection object.​
Enabled​
Boolean​
true​
Whether the inspection policy is enabled. Valid values:​
  • true: The policy is enabled.​
  • false: The policy is disabled.​
Schedule​
String​
0 0 13 * 5​
The inspection schedule in standard crontab format. For example, 0 0 13 * 5 means the task runs at 00:00 on the 13th of each month and at 00:00 every Friday.​
ClusterId​
String​
ccbm*****​
Cluster ID.​
CreateTime​
String​
2021-01-01T00:00:00Z​
The time when the inspection policy was created.​
UTC+0 time in standard RFC3339 format.​
UpdateTime​
String​
2021-01-01T00:00:00Z​
The time when the inspection policy was updated.​
UTC+0 time in standard RFC3339 format.​
ClientToken​
String​
BC028527-33B9-4990-A633-84E9F9xxxx​
A string used to ensure the idempotency of the request. This string is passed in by the caller and must be unique across different requests. ClientToken is case-sensitive and can consist of 64 ASCII characters at most.​
ResourceIds​
Array of String​
["ccbm7****", "ccdhm****"]​
The inspection object IDs.​
ResourceType​
String​
VkeCluster​
The inspection object type. You can only set the value to VkeCluster, which indicates a cluster inspection.​
​
Sample responses​
​
{​
"ResponseMetadata": {​
"RequestId": "202306041104********",​
"Action": "ListInspectionPolicies",​
"Version": "2022-05-12",​
"Service": "vke",​
"Region": "cn-beijing"​
},​
"Result": {​
"Items": [​
{​
"Id": "R2026******",​
"Name": "policy-test",​
"Type": "ClusterInspection",​
"Enabled": true,​
"Schedule": "0 0 13 * 5",​
"ClusterId": "ccbm*****",​
"CreateTime": "2021-01-01T00:00:00Z",​
"UpdateTime": "2021-01-01T00:00:00Z",​
"ClientToken": "BC028527-33B9-4990-A633-84E9F9xxxx",​
"ResourceIds": [​
"ccbm7****",​
"ccdhm****"​
],​
"ResourceType": "VkeCluster"​
}​
],​
"PageNumber": 1,​
"PageSize": 10,​
"TotalCount": 178​
}​
}​
​
Error code​
This API has no API-specific error codes. For details about common error codes, see Common error codes.​
​
Last updated: 2026.09.17 17:39:20