RestartInstance

Last updated: 2019-09-09 21:30:37

1. API Description

API domain name: es.tencentcloudapi.com.

This API restarts the specified ES cluster instance (for system updates)

Default API request rate limit: 20 requests/sec.

Note: This API supports financial regions. As financial regions and non-financial regions are isolated, if a financial region, such as ap-shanghai-fsi, is assigned to the common parameter Region, we recommend you include that financial region in your domain name , such as es.ap-shanghai-fsi.tencentcloudapi.com.

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: RestartInstance
Version Yes String Common parameter. The version of this API: 2018-04-16
Region Yes String Common parameter. For more information, see the list of regions supported by the product.
InstanceId Yes String Instance ID
ForceRestart No Boolean Whether to force restart
  • true: Yes
  • false: No
  • false by default

    3. Output Parameters

    Parameter name Type Description
    RequestId String The unique ID of a request, which is required for each troubleshooting case.

    4. Examples

    Example 1. Restarting an ES Cluster Instance

    For activities such as system version update

    Input Sample Code

    https://es.tencentcloudapi.com/?Action=RestartInstance
    &InstanceId=es-qlpn5o2a
    &<Common request parameter>

    Output Sample Code

    {
      "Response": {
        "RequestId": "7f0e35a7-e03b-42cd-aa4f-0c1471121c56"
      }
    }

    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

    The following error codes are API business logic-related. For other error codes, see Common Error Codes.

    Error Code Description
    InternalError Internal error.
    InvalidParameter Incorrect parameter.
    ResourceInUse Resource is occupied.