All Products
Search
Document Center

Simple Application Server:DescribeCloudAssistantAttributes

Last Updated:Oct 30, 2024

Queries the Command Assistant information of simple application servers.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
swas-open:DescribeCloudAssistantAttributesget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-hangzhou
PageNumberintegerNo

The page number.

Pages start from page 1.

Default value: 1.

1
PageSizeintegerNo

The number of entries per page.

10
InstanceIdsarrayYes

The IDs of the simple application servers.

stringYes

The ID of the simple application server.

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

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

30637AD6-D977-4833-A54C-CC89483E****
CloudAssistantarray<object>

The Command Assistant information.

statusobject
InstanceIdstring

The ID of the simple application server.

85dbe3e7cc7b49e1a3df4af3bfa4ebbf
CloudAssistantStatusstring

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
LastInvokedTimestring

The time when commands were last run.

2021-03-15T08:00:00Z
CloudAssistantVersionstring

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
ActiveTaskCountlong

The number of active tasks in Command Assistant.

0
InvocationCountlong

The number of completed tasks in Command Assistant.

4
LastHeartbeatTimestring

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
OSTypestring

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

  • Windows
  • Linux
  • FreeBSD
Linux
SupportSessionManagerboolean

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
TotalCountinteger

The total number of entries.

4
PageSizeinteger

The number of entries per page.

10
PageNumberinteger

The page number.

1

Examples

Sample success responses

JSONformat

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

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