DescribeComputeEnvActivities

Last updated: 2019-07-08 20:38:14

1. API Description

API request domain name: batch.tencentcloudapi.com.

This API is used to query the information about activities in the compute environment

Default API request frequency limit: 2 times/second.

2. Input Parameters

The following list of request parameters lists only the API request parameters and some common parameters. For the complete list of common parameters, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the value for this API: DescribeComputeEnvActivities
Version Yes String Common parameter; the value for this API: 2017-03-12
Region Yes String Common parameters; for details, see the Region List supported by the product.
EnvId Yes String Compute environment ID
Offset No Integer Offset
Limit No Integer Max number of entries returned
Filters No Filter Filters

3. Output Parameters

Parameter name Type Description
ActivitySet Array of Activity List of activities in the compute environment
TotalCount Integer Number of activities
RequestId String The unique request ID which is returned for each request. The RequestId for the current request needs to be provided when troubleshooting.

4. Examples

Example 1. Querying List of Activities in Compute Environment

Input

https://batch.tencentcloudapi.com/?Action=DescribeComputeEnvActivities
&EnvId=env-lcpcej85
&<Common request parameter>

Output

{
  "Response": {
    "ActivitySet": [
      {
        "ActivityId": "act-83xvnt5p",
        "ActivityState": "SUCCEED",
        "Cause": "ModifyComputeEnv: increase the capacity from 1 to 2",
        "ComputeNodeActivityType": "CREATE_COMPUTE_NODE",
        "ComputeNodeId": "node-9yzd5jei",
        "EndTime": "2018-03-09T13:15:44Z",
        "EnvId": "env-lcpcej85",
        "StartTime": "2018-03-09T13:14:34Z",
        "StateReason": ""
      },
      {
        "ActivityId": "act-ezle9e7v",
        "ActivityState": "SUCCEED",
        "Cause": "CreateComputeEnv: the capacity is 1",
        "ComputeNodeActivityType": "CREATE_COMPUTE_NODE",
        "ComputeNodeId": "node-noa8vefu",
        "EndTime": "2018-03-08T11:49:17Z",
        "EnvId": "env-lcpcej85",
        "StartTime": "2018-03-08T11:48:43Z",
        "StateReason": ""
      }
    ],
    "RequestId": "ecfeec77-6ec1-4daf-8730-1dd00c742252",
    "TotalCount": 2
  }
}

5. Developer Resources

It is recommended to use API 3.0 Explorer. This tool provides various capabilities such as online debugging, signature verification, SDK code generation and quick API retrieval that significantly reduce the difficulty of using cloud APIs.

Cloud API 3.0 comes with a set of complementary development tools that make it easier to call the API.

6. Error Codes

Only the error codes related to this API are listed below. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error
InvalidParameter.ComputeNodeIdMalformed Invalid compute node ID format.
InvalidParameter.EnvIdMalformed Invalid compute environment ID format.
ResourceNotFound.ComputeEnv The specified compute environment does not exist.
UnknownParameter Unknown parameter error