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

Volcengine Kubernetes Engine

Copy page
Download PDF
Inspection and diagnosis
UpdateInspectionPolicy
Copy page
Download PDF
UpdateInspectionPolicy
Updates the configuration of an inspection policy.​
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=UpdateInspectionPolicy&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​
UpdateInspectionPolicy​
The API name. The API name is UpdateInspectionPolicy.​
Version​
String​
Yes​
2022-05-12​
The API version. The current version of the API is 2022-05-12.​
Id​
String​
Yes​
R202604****​
The inspection policy ID.​
You can call the ListInspectionPolicies API to obtain the inspection policy ID.​
Name​
String​
No​
policy-test​
The inspection policy name.​
ResourceIds​
Array of String​
No​
["ccbm7****", "ccdhm****"]​
The inspection object IDs.​
You can call the ListClusters API to obtain cluster IDs.​
Enabled​
Boolean​
No​
true​
Whether to enable the inspection policy. Valid values:​
  • true: Yes.​
  • false: Disable it.​
Schedule​
String​
No​
0 0 13 * 5​
The inspection schedule. The standard crontab command is required. For example, 0 0 13 * 5 means it will be executed at midnight on the 13th of every month and every Friday.​
ClientToken​
String​
No​
BC028527-33B9-4990-A633-84E9F9****​
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.​
​
Sample requests​
​
POST https://vke.cn-beijing.volcengineapi.com?Action=UpdateInspectionPolicy&Version=2022-05-12​
Content-Type: application/json​
{​
"Id": "R2026******",​
"Name": "policy-test",​
"ResourceIds": [​
"ccbm7****",​
"ccdhm****"​
],​
"Enabled": true,​
"Schedule": "0 0 13 * 5",​
"ClientToken": "BC028527-33B9-4990-A633-84E9F9****"​
}
​
Response parameter​
There are no proprietary response parameters for this API. See Response results for details about public response parameters.​
Sample responses​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "UpdateInspectionPolicy",​
"Version": "2022-05-12",​
"Service": "vke",​
"Region": "cn-beijing"​
}​
}
​
Error code​
There are no proprietary error codes for this API. See Public error codes for details about public error codes.​
Last updated: 2026.09.15 10:26:28