You can call the ModifyScalingConfigItemV2 operation to modify the scaling configuration items.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyScalingConfigItemV2 |
The operation that you want to perform. Set the value to ModifyScalingConfigItemV2. |
ConfigItemBizId | String | Yes | SCB-232423A**** |
The ID of the scaling configuration items. You can call ListScalingConfigItemV2 View the ID of the scaling configuration items. |
ConfigItemInformation | String | Yes | { "ruleName": "Triggered by Load", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "coolDownTime": 100, "ruleParam": { "metricName": "YarnFreeCores", "period": 10, "statistics": "xxx", "comparisonOperator": "\u003e\u003d", "threshold": 10, "evaluationCount": 1 }, "adjustmentValue": 1, "ruleType": "BY_LOAD", "configItemType": "SCALING_RULE" } |
The JSON format of the configuration items value varies with the type. Valid values:
|
ConfigItemType | String | Yes | SCALING_RULE |
The type of the configuration parameters. Valid values:
|
RegionId | String | Yes | cn-hangzhou |
The region ID of the instance. You can call DescribeRegions You can call this operation to view the latest list of Alibaba Cloud regions. |
ScalingGroupBizId | String | Yes | SGB-1232423AB**** |
The ID of the scaling group. You can call ListScalingGroupV2 View the ID of the scaling group. |
ResourceGroupId | String | No | rg-acfmv6jutt6**** |
The ID of the resource group. You can call ListResourceGroups View the ID of the resource group. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Boolean | true |
Indicates whether SQL audit was disabled for the DRDS database. Valid values:
|
RequestId | String | 7B804810-3C11-4927-B116-1D1A98A60BDD |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyScalingConfigItemV2
&ConfigItemBizId=SCB-232423A****
&ConfigItemInformation=
&ConfigItemType=SCALING_RULE
&RegionId=cn-hangzhou
&ScalingGroupBizId=SGB-1232423AB****
&<common request parameters>
Sample success responses
XML
format
<RequestId>7B804810-3C11-4927-B116-1D1A98A60BDD</RequestId>
<Data>true</Data>
JSON
Syntax
{
"RequestId":"7B804810-3C11-4927-B116-1D1A98A60BDD",
"Data":"true"
}