All Products
Search
Document Center

Simple Application Server:DescribeCloudAssistantAttributes

Last Updated:Jan 15, 2026

Queries the Command Assistant information of simple application servers.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

swas-open:DescribeCloudAssistantAttributes

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID of the specified simple application server. You can call the ListRegions operation to query the most recent region list.

cn-hangzhou

PageNumber

integer

No

The page number.

Pages start from page 1.

Default value: 1.

1

PageSize

integer

No

The number of entries per page.

10

InstanceIds

array

Yes

The IDs of the simple application servers.

string

No

The ID of the simple application server.

["2ad1ae67295445f598017499dc****", "2ad1ae67295445f598017123dc****"]

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

30637AD6-D977-4833-A54C-CC89483E****

CloudAssistant

array<object>

The Command Assistant information.

object

InstanceId

string

The ID of the simple application server.

85dbe3e7cc7b49e1a3df4af3bfa4ebbf

CloudAssistantStatus

string

Indicates whether Command Assistant is running. Valid values:

true: Heartbeats are detected in the last 2 minutes.

false: Heartbeats are not detected in the last 2 minutes.

true

LastInvokedTime

string

The time when commands were last run.

2021-03-15T08:00:00Z

CloudAssistantVersion

string

The version number of the Command Assistant agent. Null is returned if the Command Assistant agent is not installed or is not running.

2.2.0.106

ActiveTaskCount

integer

The number of active tasks in Command Assistant.

0

InvocationCount

integer

The number of completed tasks in Command Assistant.

4

LastHeartbeatTime

string

The time when the last heartbeat of Command Assistant was detected. The value is updated every minute on average. The interval can be 55, 60, or 65 seconds.

2021-03-15T09:00:00Z

OSType

string

The OS type of the simple application server. Valid values:

  • Windows

  • Linux

  • FreeBSD

Linux

SupportSessionManager

boolean

Indicates whether Command Assistant supports session management. If Command Assistant does not support session management, the version of the Command Assistant agent is too earlier. We recommend that you update your Command Assistant agent to the latest version.

To use the session management feature, you must make sure that the version of your Command Assistant agent meets one of the following requirements:

If your simple application server runs Linux, the version of the Command Assistant agent on the server must be 2.2.3.189 or later. If your simple application server runs Windows, the version of the Command Assistant agent on the server must be 2.1.3.189 or later.

true

TotalCount

integer

The total number of entries.

4

PageSize

integer

The number of entries per page.

10

PageNumber

integer

The page number.

1

Examples

Success response

JSON format

{
  "RequestId": "30637AD6-D977-4833-A54C-CC89483E****",
  "CloudAssistant": [
    {
      "InstanceId": "85dbe3e7cc7b49e1a3df4af3bfa4ebbf",
      "CloudAssistantStatus": "true",
      "LastInvokedTime": "2021-03-15T08:00:00Z\n",
      "CloudAssistantVersion": "2.2.0.106\n",
      "ActiveTaskCount": 0,
      "InvocationCount": 4,
      "LastHeartbeatTime": "2021-03-15T09:00:00Z\n",
      "OSType": "Linux",
      "SupportSessionManager": true
    }
  ],
  "TotalCount": 4,
  "PageSize": 10,
  "PageNumber": 1
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.