Call the RestartCollector to restart the collector.
Debugging
Request header
This operation uses only the common request header. For more information, see Common request parameters.
Request structure
POST /openapi/collectors/[ResId]/actions/restart HTTP/1.1
Request parameters
| Parameter | Type | Position | Required | Example | Description |
|---|---|---|---|---|---|
| ResId | String | Path | Yes | ct-cn-77uqof2s7rg5c**** |
The collector instance ID. |
| ClientToken | String | Query | No | 5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
This parameter is used to ensure the idempotence of the request. The value of this parameter is generated by the client and is unique among different requests. The maximum length is 64 ASCII characters. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 84B4038A-AF38-4BF4-9FAD-EA92A4FFF00A |
The ID of the request. |
| Result | Boolean | true |
The returned result supports:
|
Examples
Sample requests
POST /openapi/collectors/ct-cn-tfv81t7vs8608 **** /actions/restart HTTP/1.1 public request header
Sample success responses
JSON format
{ "Result": true, "RequestId": "84B4038A-AF38-4BF4-9FAD-EA92A4FFF00A" }
Error codes
For a list of error codes, visit the API Error Center.