All Products
Search
Document Center

Elastic Compute Service:DescribeCloudAssistantSettings

Last Updated:Apr 30, 2024

Queries the configurations of Cloud Assistant features.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SettingTypearrayYes

The Cloud Assistant features.

stringYes

The Cloud Assistant feature. Valid values:

  • SessionManagerDelivery: the Session Record Delivery feature
  • InvocationDelivery: the Operation Content and Result Delivery feature
  • AgentUpgradeConfig: the Upgrade Cloud Assistant Agent feature
SessionManagerDelivery
RegionIdstringYes

The region ID.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****
OssDeliveryConfigsobject []

The configurations for delivering items to Object Storage Service (OSS).

EncryptionTypestring

The OSS encryption method. Valid values:

  • Inherit: the encryption method used by the specified bucket.
  • OssManaged: server-side encryption by using OSS-managed keys (SSE-OSS).
  • KMS: server-side encryption by using Key Management Service managed keys (SSE-KMS).
Inherit
EncryptionAlgorithmstring

The OSS encryption algorithm. Valid values:

  • AES256
  • SM4
AES256
DeliveryTypestring

The type of items to be delivered. Valid values:

  • SessionManager: session records
  • Invocation: task execution records
SessionManager
Enabledboolean

Indicates whether to deliver the specified items to OSS.

false
BucketNamestring

The name of the OSS bucket.

example-bucket
Prefixstring

The prefix of the OSS bucket directory.

sessionmanager/audit
EncryptionKeyIdstring

The ID of the customer master key (CMK) when EncryptionType is KMS.

a807****7a70e
SlsDeliveryConfigsobject []

The configurations for delivering items to Simple Log Service.

DeliveryTypestring

The type of items to be delivered. Valid values:

  • SessionManager: session records
  • Invocation: task execution records
SessionManager
LogstoreNamestring

The name of the Logstore.

example-logstore
Enabledboolean

Indicates whether to deliver the specified items to Simple Log Service.

false
ProjectNamestring

The name of the Simple Log Service project.

example-project
AgentUpgradeConfigobject

The configurations for upgrading Cloud Assistant Agent.

Enabledboolean

Indicates whether custom upgrade is enabled for Cloud Assistant Agent. If the value is false or empty, an upgrade attempt is performed for Cloud Assistant Agent every 30 minutes.

true
AllowedUpgradeWindowsarray

The time windows during which Cloud Assistant Agent can be upgraded.

string

The time window during which Cloud Assistant Agent can be upgraded.

[ "02:00-03:00", "05:00-06:00" ]
TimeZonestring

The time zone of the time window.

Asia/Shanghai

Examples

Sample success responses

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"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.SettingTypeThe specified parameter SettingType is not valid.The specified parameter SettingType is illegal.
404InvalidRegionId.NotFoundThe specified parameter RegionId does not exist.-
500InternalErrorAn error occurred when you dispatched the request.An error occurred while sending the request, please try again later.

For a list of error codes, visit the Service error codes.