TerminateTasks

Last updated: 2019-07-22 16:53:15

1. API Description

API domain name: emr.tencentcloudapi.com.

This API terminates one or more task nodes.

Default API request rate limit: 20 requests/sec.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The name of this API: TerminateTasks
Version Yes String Common parameter. The version of this API: 2019-01-03
Region Yes String Common parameter. For more information, see the list of regions supported by the product.
InstanceId Yes String ID of the instance to which the terminated node belongs
ResourceIds.N Yes Array of String ID of the terminated node

3. Output Parameters

Parameter name Type Description
Result TerminateResult Termination result
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Examples

Example 1. Terminating a Node

Terminate a task node

Input Sample Code

https://emr.tencentcloudapi.com/?Action=TerminateTasks
&InstanceId=emr-4slr7ad7
&ResourceIds.0=emr-vm-xxx33tg
&<Common request parameter>

Output Sample Code

{
  "Response": {
    "Result": {
      "InstanceId": "emr-4slr7ad7",
      "ResourceIds": [
        "emr-vm-xxx33tg"
      ]
    },
    "RequestId": "4d701c1e-8507-47e1-8c69-a8f06a236f24"
  }
}

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API.

SDK

TencentCloud API 3.0 integrates software development toolkits (SDKs) that support various programming languages to make it easier for you to call the APIs.

TCCLI

6. Error Codes

This API has no error codes related to business logic. For other error codes, see Common Error Codes.