Mengkueri konfigurasi layanan Cloud Assistant.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeCloudAssistantSettings |
list |
*ServiceSettings
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SettingType |
array |
Yes |
Daftar konfigurasi layanan yang akan dikueri. |
|
|
string |
No |
Jenis konfigurasi layanan yang akan dikueri. Nilai yang valid:
|
SessionManagerDelivery |
|
| RegionId |
string |
Yes |
ID region. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| OssDeliveryConfigs |
object |
||
| OssDeliveryConfig |
array<object> |
Daftar konfigurasi pengiriman OSS. |
|
|
object |
Informasi konfigurasi pengiriman OSS. |
||
| EncryptionType |
string |
The OSS encryption method. Valid values:
|
Inherit |
| EncryptionAlgorithm |
string |
The OSS encryption algorithm. Valid values:
|
AES256 |
| DeliveryType |
string |
The type of items to be delivered. Valid values:
|
SessionManager |
| Enabled |
boolean |
Indicates whether to deliver the specified items to OSS. |
false |
| BucketName |
string |
The name of the OSS bucket. |
example-bucket |
| Prefix |
string |
The prefix of the OSS bucket directory. |
sessionmanager/audit |
| EncryptionKeyId |
string |
The ID of the customer master key (CMK) when EncryptionType is set to KMS. |
a807****7a70e |
| SlsDeliveryConfigs |
object |
||
| SlsDeliveryConfig |
array<object> |
Daftar konfigurasi pengiriman SLS. |
|
|
object |
Informasi konfigurasi pengiriman SLS. |
||
| DeliveryType |
string |
The type of items to be delivered. Valid values:
|
SessionManager |
| LogstoreName |
string |
The name of the Logstore. |
example-logstore |
| Enabled |
boolean |
Indicates whether to deliver the specified items to Simple Log Service. |
false |
| ProjectName |
string |
The name of the Simple Log Service project. |
example-project |
| AgentUpgradeConfig |
object |
Konfigurasi peningkatan Cloud Assistant Agent. |
|
| Enabled |
boolean |
Menunjukkan apakah konfigurasi peningkatan Agent kustom diaktifkan. Jika hasil kueri false atau kosong, sistem secara default mencoba melakukan peningkatan setiap 30 menit. |
true |
| AllowedUpgradeWindows |
object |
||
| AllowedUpgradeWindow |
array |
The time windows during which Cloud Assistant Agent can be upgraded. |
|
|
string |
The time windows during which Cloud Assistant Agent can be upgraded. |
[ "02:00-03:00", "05:00-06:00" ] |
|
| TimeZone |
string |
Zona waktu untuk jendela waktu peningkatan yang diizinkan. |
Asia/Shanghai |
| BootstrapUpgrade |
boolean |
Menunjukkan apakah akan langsung memeriksa dan melakukan pembaruan saat Cloud Assistant Agent dimulai. |
true |
| DisableUpgrade |
boolean |
Menunjukkan apakah akan menonaktifkan Cloud Assistant Agent dari memeriksa dan melakukan pembaruan. |
true |
| ResourceUsageConfig |
object |
Konfigurasi penggunaan sumber daya Cloud Assistant. |
|
| CpuLimit |
integer |
Batas penggunaan CPU maksimum yang diizinkan untuk proses utama Cloud Assistant Agent. |
20 |
| MemoryLimit |
string |
Batas penggunaan memori maksimum yang diizinkan untuk proses utama Cloud Assistant Agent. |
35MB |
| OverloadLimit |
integer |
Batas atas jumlah kejadian berturut-turut ketika penggunaan sumber daya CPU atau memori melebihi batas. Setelah batas atas tercapai, Cloud Assistant Agent secara otomatis berhenti. |
3 |
| LogFileCountLimit |
integer |
Jumlah maksimum file log Cloud Assistant yang dipertahankan. |
30 |
| LogSizeLimit |
string |
Batas ukuran file log Cloud Assistant. |
100MB |
| KeepScriptFile |
boolean |
Menunjukkan apakah akan mempertahankan file skrip di direktori Cloud Assistant setelah perintah dieksekusi. |
false |
| SessionManagerConfig |
object |
Konfigurasi fitur sesi Cloud Assistant. |
|
| SessionManagerEnabled |
boolean |
Sakelar fitur sesi Cloud Assistant. Nilai yang valid:
Catatan:
|
true |
Contoh
Respons sukses
JSONformat
{
"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
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SettingType | The specified parameter SettingType is not valid. | |
| 500 | InternalError | An error occurred when you dispatched the request. | |
| 404 | InvalidRegionId.NotFound | The specified parameter RegionId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.