Modifies the cleanup configuration for offline hosts. Only non-Alibaba Cloud hosts are supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyAssetCleanConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AssetCleanConfigs |
array<object> |
No |
The list of asset cleanup configurations. |
|
|
object |
No |
The details of the asset cleanup configuration. |
||
| Type |
integer |
No |
The type of host to clean up. Valid values:
|
1 |
| CleanDays |
integer |
No |
The number of offline days after which non-Alibaba Cloud hosts are automatically cleaned up. Valid values: integers from 1 to 30. |
7 |
| Status |
integer |
No |
Specifies whether to enable automatic cleanup of offline non-Alibaba Cloud hosts. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
952776BD-5546-59FC-8AF3-B54EBAD57*** |
| Data |
boolean |
The processing result. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "952776BD-5546-59FC-8AF3-B54EBAD57***",
"Data": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.