Cloud Assistant の設定を変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:ModifyCloudAssistantSettings |
update |
*ServiceSettings
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
リージョン ID。 |
cn-hangzhou |
| SettingType |
string |
必須 |
サービス設定のタイプ。有効な値:
|
SessionManagerDelivery |
| OssDeliveryConfig |
object |
任意 |
OSS への記録の配信設定。 |
|
| Enabled |
boolean |
任意 |
OSS への記録の配信機能を有効にするかどうかを指定します。デフォルト値: false。 |
false |
| BucketName |
string |
任意 |
OSS バケット名。 |
example-bucket |
| Prefix |
string |
任意 |
OSS バケット内のディレクトリのプレフィックス。次の制限があります:
注:バケットのルートディレクトリに記録を配信する場合は、「""」と入力します。以前に設定したプレフィックスをクリアするには、「""」と入力します。 |
sessionmanager/audit |
| EncryptionType |
string |
任意 |
OSS の暗号化モード。有効な値:
|
Inherit |
| EncryptionAlgorithm |
string |
任意 |
OSS の暗号化アルゴリズム。有効な値:
|
AES256 |
| EncryptionKeyId |
string |
任意 |
KMS 暗号化を使用する場合のカスタマーマスターキー (CMK) ID。 |
a807****7a70e |
| SlsDeliveryConfig |
object |
任意 |
SLS への記録の配信設定。 |
|
| Enabled |
boolean |
任意 |
SLS への記録の配信機能を有効にするかどうかを指定します。デフォルト値: false。 |
false |
| ProjectName |
string |
任意 |
SLS プロジェクト名。 |
example-project |
| LogstoreName |
string |
任意 |
SLS ログストア名。 |
example-logstore |
| AgentUpgradeConfig |
object |
任意 |
Cloud Assistant エージェントのアップグレード設定。 |
|
| Enabled |
boolean |
任意 |
エージェントのカスタムアップグレード設定を有効にするかどうかを指定します。このパラメーターを false に設定した場合、エージェントはデフォルトで 30 分ごとにアップグレードを試みます。 デフォルト値: false。 |
true |
| AllowedUpgradeWindow |
array |
任意 |
エージェントのアップグレードが許可される時間ウィンドウのリスト。時間ウィンドウは分単位で、デフォルトのタイムゾーンは UTC です。 連続する 2 つの時間ウィンドウの間隔は 1 時間以上である必要があります。 フォーマット: StartTime(HH:mm)-EndTime(HH:mm)。 例:[ "02:00-03:00", "05:00-06:00" ] は、エージェントが毎日 UTC の 2:00 から 3:00 と 5:00 から 6:00 にアップグレードできることを示します。 |
|
|
string |
任意 |
エージェントのアップグレードが許可される時間ウィンドウのリスト。時間ウィンドウは分単位で、デフォルトのタイムゾーンは UTC です。 連続する 2 つの時間ウィンドウの間隔は 1 時間以上である必要があります。 フォーマット: StartTime(HH:mm)-EndTime(HH:mm)。 例:[ "02:00-03:00", "05:00-06:00" ] は、エージェントが毎日 UTC の 2:00 から 3:00 と 5:00 から 6:00 にアップグレードできることを示します。 |
[ "02:00-03:00", "05:00-06:00" ] |
|
| TimeZone |
string |
任意 |
エージェントアップグレードの時間ウィンドウのタイムゾーン。デフォルト値: UTC。 タイムゾーンは、次の形式をサポートします:
|
Asia/Shanghai |
| BootstrapUpgrade |
boolean |
任意 |
Cloud Assistant エージェントの起動時に、即座にバージョンを確認して更新を実行するかどうかを指定します。デフォルト値: true。 この設定は、Cloud Assistant エージェントのバージョンが次のバージョン以降の場合にのみ有効です:
|
true |
| DisableUpgrade |
boolean |
任意 |
Cloud Assistant エージェントによる更新の確認や実行を禁止するかどうかを指定します。デフォルト値: false。 この設定は、Cloud Assistant エージェントのバージョンが次のバージョン以降の場合にのみ有効です:
|
false |
| ResourceUsageConfig |
object |
任意 |
Cloud Assistant のリソース使用量の設定。この設定は、Cloud Assistant エージェントのバージョンが次のバージョン以降の場合にのみ有効です:
|
|
| CpuLimit |
integer |
任意 |
Cloud Assistant エージェントのメインプロセスで許容される最大の CPU 使用率。
|
20 |
| MemoryLimit |
string |
任意 |
Cloud Assistant エージェントのメインプロセスで許容される最大のメモリ使用量。単位 (B、KB、MB) を指定する必要があります。
|
50MB |
| OverloadLimit |
integer |
任意 |
CPU またはメモリの使用量が指定された制限を連続して超えることができる最大回数。指定された回数連続して制限を超えた場合、Cloud Assistant エージェントは自動的に停止します。
|
3 |
| LogFileCountLimit |
integer |
任意 |
保持できる Cloud Assistant ログファイルの最大数。
|
30 |
| LogSizeLimit |
string |
任意 |
Cloud Assistant ログファイル 1 つあたりの最大サイズ。単位 (B、KB、MB) を指定する必要があります。
|
10MB |
| KeepScriptFile |
boolean |
任意 |
コマンドの実行完了後に、Cloud Assistant ディレクトリにコマンドのスクリプトファイルを保持するかどうかを指定します。デフォルト値: false。 |
false |
| SessionManagerConfig |
object |
任意 |
Cloud Assistant セッションマネージャーの設定。 |
|
| SessionManagerEnabled |
boolean |
任意 |
Cloud Assistant セッションマネージャー機能の有効/無効スイッチ。有効な値:
注:
|
true |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ResourceBusy.SlrCreation | The ServiceLinkedRole is still being created or has not taken effect yet. Please try again later. | |
| 400 | InvalidParameter.SettingType | The specified parameter SettingType is not valid. | |
| 400 | InvalidParameter.OssEncryptionType | The specified parameter OssDeliveryConfig.EncryptionType is not valid. | |
| 400 | InvalidParameter.OssEncryptionAlgorithm | The specified parameter OssDeliveryConfig.EncryptionAlgorithm is not valid. | |
| 400 | InvalidParameter.OssEncryptionKeyId | The specified parameter OssDeliveryConfig.EncryptionKeyId is not valid. | |
| 400 | InvalidParameter.OssBucketName | The specified parameter OssDeliveryConfig.BucketName is not valid. | |
| 400 | InvalidParameter.OssPrefix | The specified parameter OssDeliveryConfig.Prefix is not valid. | |
| 400 | InvalidOssBucketName.InOtherRegion | The specified parameter OssDeliveryConfig.BucketName is in another region. | |
| 400 | InvalidParameter.SlsProjectName | The specified parameter SlsDeliveryConfig.ProjectName is not valid. | |
| 400 | InvalidParameter.SlsLogstoreName | The specified parameter SlsDeliveryConfig.LogstoreName is not valid. | |
| 400 | InvalidParameter.AllowedUpgradeWindow | The specified parameter AgentUpgradeConfig.AllowedUpgradeWindow is not valid. | |
| 400 | InvalidAllowedUpgradeWindow.DurationTooShort | The duration of the specified parameter AgentUpgradeConfig.AllowedUpgradeWindow cannot be less than one hour. | |
| 400 | InvalidParameter.TimeZone | The specified parameter AgentUpgradeConfig.TimeZone is not valid. | |
| 400 | InvalidAllowedUpgradeWindow.Required | The specified parameter AgentUpgradeConfig.AllowedUpgradeWindow is required. | |
| 400 | InvalidParameter.CpuLimit | The specified parameter CpuLimit is not valid. | |
| 400 | InvalidParameter.MemoryLimit | The specified parameter MemoryLimit is not valid. | |
| 400 | InvalidParameter.OverloadLimit | The specified parameter OverloadLimit is not valid. | |
| 400 | InvalidParameter.LogFileCountLimit | The specified parameter LogFileCountLimit is not valid. | |
| 400 | InvalidParameter.LogSizeLimit | The specified parameter LogSizeLimit is not valid. | |
| 500 | InternalError | An error occurred when you dispatched the request. | |
| 403 | InvalidOssBucketName.AccessDenied | The error message returned by the OSS API is: %s | |
| 403 | CreateServiceLinkedRole.NoPermission | You do not have permission to create ServiceLinkedRole. | |
| 403 | InvalidOperation.OssEncryptionUnsupported | The configuration of OSS Encryption is not supported. | |
| 403 | InvalidAllowedUpgradeWindow.CountLimitExceeded | The count of the parameter AgentUpgradeConfig.AllowedUpgradeWindow exceeds the limit of 5. | |
| 403 | InvalidOperation.SessionManagerDeliveryUnsupported | The delivery configuration of Session Manager is not supported. | |
| 403 | InvalidDisableUpgrade.Conflict | The parameter DisableUpgrade cannot be specified with parameter BootstrapUpgrade. | |
| 404 | InvalidSlsProjectName.NotFound | The specified parameter SlsDeliveryConfig.ProjectName does not exist. | |
| 404 | InvalidSlsLogstoreName.NotFound | The specified parameter SlsDeliveryConfig.LogstoreName does not exist. | |
| 404 | InvalidOssBucketName.NotFound | The specified parameter OssDeliveryConfig.BucketName does not exist. | |
| 404 | InvalidRegionId.NotFound | The specified parameter RegionId does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。