Domain name for API request: csip.intl.tencentcloudapi.com.
Modify the client running policy group. This API is used to set custom policies and associate machine lists.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyAgentRunPolicy. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| MemberId.N | No | Array of String | Group account member id |
| CustomPolicy | No | CustomAgentRunModePolicy | Custom running policy (CPU/Memory/NetworkPps). No modification if not passed in |
| AdvanceModeInstanceIDs.N | No | Array of String | Advanced mode machine instance_id list, automatically convert to quuid for storage in the backend |
| CustomModeInstanceIDs.N | No | Array of String | List of instance_id in custom mode machines, automatically convert to quuid for storage by the backend |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyAgentRunPolicy
<Common request parameters>
{
"MemberId": [
"mem-tencent-54213b157ddf7170"
],
"CustomPolicy": {
"Memory": 0,
"Cpu": 40,
"NetworkPps": 200000
},
"AdvanceModeInstanceIDs": [
"ins-8l4a28x6"
],
"CustomModeInstanceIDs": [
"ins-fckanelo"
]
}
{
"Response": {
"RequestId": "8912eb2a-1205-441b-b358-78460df01d16"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
| ResourceNotFound | The resource does not exist. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback