Creates or updates an image baseline strategy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:SaveImageBaselineStrategy |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BaselineItemList |
string |
Yes |
The baseline items. Note
You can call the DescribeImageBaselineStrategy API to obtain the value of this parameter. |
ak_leak |
| StrategyId |
integer |
No |
The ID of the baseline check strategy. Note
You can call the DescribeImageBaselineStrategy API to obtain the value of this parameter. |
8639 |
| StrategyName |
string |
No |
The name of the baseline check strategy. |
default |
| Lang |
string |
No |
The language of the request and response. Default value: zh. Valid values:
|
zh |
| Source |
string |
No |
The data source. If you do not specify this parameter, the operation queries image baseline strategies by default. Valid values:
|
agentless |
| ImageVulClean |
integer |
No |
The baseline risk retention period, in days. |
90 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9AB5D3DE-6E0F-5633-AA71-4B90C724**** |
Examples
Success response
JSON format
{
"RequestId": "9AB5D3DE-6E0F-5633-AA71-4B90C724****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.