Overview of the Cloud Assistant service configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeCloudAssistantSettings |
list |
*ServiceSettings
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SettingType |
array |
Yes |
The types of service configurations to query. |
|
|
string |
No |
A type of service configuration. Valid values:
|
SessionManagerDelivery |
|
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| OssDeliveryConfigs |
object |
||
| OssDeliveryConfig |
array<object> |
A list of OSS delivery configurations. |
|
|
object |
An OSS delivery configuration. |
||
| EncryptionType |
string |
The encryption type for the OSS delivery. Valid values:
|
Inherit |
| EncryptionAlgorithm |
string |
The encryption algorithm for the OSS delivery. Valid values:
|
AES256 |
| DeliveryType |
string |
The delivery type. Valid values:
|
SessionManager |
| Enabled |
boolean |
Indicates whether delivery to OSS is enabled. |
false |
| BucketName |
string |
The name of the OSS bucket. |
example-bucket |
| Prefix |
string |
The directory prefix in the OSS bucket. |
sessionmanager/audit |
| EncryptionKeyId |
string |
The ID of the Customer Master Key (CMK) when |
a807****7a70e |
| SlsDeliveryConfigs |
object |
||
| SlsDeliveryConfig |
array<object> |
A list of SLS delivery configurations. |
|
|
object |
The SLS delivery configuration. |
||
| DeliveryType |
string |
The delivery type. Valid values:
|
SessionManager |
| LogstoreName |
string |
The name of the SLS Logstore. |
example-logstore |
| Enabled |
boolean |
Indicates whether delivery to SLS is enabled. |
false |
| ProjectName |
string |
The name of the SLS Project. |
example-project |
| AgentUpgradeConfig |
object |
The Cloud Assistant agent upgrade configuration. |
|
| Enabled |
boolean |
Indicates whether custom agent upgrade settings are enabled. If this parameter is |
true |
| AllowedUpgradeWindows |
object |
||
| AllowedUpgradeWindow |
array |
The allowed upgrade time windows. |
|
|
string |
An upgrade time window. |
[ "02:00-03:00", "05:00-06:00" ] |
|
| TimeZone |
string |
The time zone for the allowed upgrade time windows. |
Asia/Shanghai |
| BootstrapUpgrade |
boolean |
Indicates whether the Cloud Assistant agent checks for and performs an upgrade upon startup. |
true |
| DisableUpgrade |
boolean |
Indicates whether to disable automatic upgrades for the Cloud Assistant agent. |
true |
| ResourceUsageConfig |
object |
The Cloud Assistant resource usage configuration. |
|
| CpuLimit |
integer |
The maximum CPU usage limit for the main Cloud Assistant agent process. |
20 |
| MemoryLimit |
string |
The maximum memory usage limit for the main Cloud Assistant agent process. |
35MB |
| OverloadLimit |
integer |
The maximum number of consecutive times that CPU or memory usage can exceed the specified limits. If this number is reached, the Cloud Assistant agent stops. |
3 |
| LogFileCountLimit |
integer |
The maximum number of Cloud Assistant log files to retain. |
30 |
| LogSizeLimit |
string |
The size limit for each Cloud Assistant log file. |
100MB |
| KeepScriptFile |
boolean |
Indicates whether to keep the script file in the Cloud Assistant directory after a command finishes execution. |
false |
| SessionManagerConfig |
object |
The Cloud Assistant Session Manager configuration. |
|
| SessionManagerEnabled |
boolean |
Indicates whether Session Manager is enabled. Valid values:
Note:
|
true |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"OssDeliveryConfigs": {
"OssDeliveryConfig": [
{
"EncryptionType": "Inherit",
"EncryptionAlgorithm": "AES256",
"DeliveryType": "SessionManager",
"Enabled": false,
"BucketName": "example-bucket",
"Prefix": "sessionmanager/audit",
"EncryptionKeyId": "a807****7a70e"
}
]
},
"SlsDeliveryConfigs": {
"SlsDeliveryConfig": [
{
"DeliveryType": "SessionManager",
"LogstoreName": "example-logstore",
"Enabled": false,
"ProjectName": "example-project"
}
]
},
"AgentUpgradeConfig": {
"Enabled": true,
"AllowedUpgradeWindows": {
"AllowedUpgradeWindow": [
"[\n\"02:00-03:00\",\n\"05:00-06:00\"\n]"
]
},
"TimeZone": "Asia/Shanghai",
"BootstrapUpgrade": true,
"DisableUpgrade": true
},
"ResourceUsageConfig": {
"CpuLimit": 20,
"MemoryLimit": "35MB",
"OverloadLimit": 3,
"LogFileCountLimit": 30,
"LogSizeLimit": "100MB",
"KeepScriptFile": false
},
"SessionManagerConfig": {
"SessionManagerEnabled": true
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SettingType | The specified parameter SettingType is not valid. | The specified parameter SettingType is illegal. |
| 500 | InternalError | An error occurred when you dispatched the request. | An error occurred while sending the request, please try again later. |
| 404 | InvalidRegionId.NotFound | The specified parameter RegionId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.