You can call ModifyScalingConfigItemV2 operation to modify a scaling configuration items.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyScalingConfigItemV2

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Valid values: ModifyScalingConfigItemV2.

ConfigItemBizId String Yes SCB-232423A****

Scaling group configuration items ID. You can call ListScalingConfigItemV2 View the auto scaling configuration items ID.

ConfigItemInformation String Yes {"ruleName": "triggered by payload", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "cooltime": 100, "ruleParam": { "metricName": "YarnFreeCores", "period": 10, "statistics": "xxx", "comparisonOperator": "\u003e\u003d", "threshold": 10, "evaluationCount": 1 }, "adjustmentValue": 1, "ruleType": "BY_LOAD", "configItemType": "SCALING_RULE"}
Configuration Items value in the JSON format varies with different types. Valid values:
  • SCALING_RULE:
    • Trigger by load {"ruleName": "triggered by payload", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "cooltime": 100, "ruleParam": { "metricName": "YarnFreeCores", "period": 10, "statistics": "xxx", "comparisonOperator": "\u003e\u003d", "threshold": 10, "evaluationCount": 1 }, "adjustmentValue": 1, "ruleType": "BY_LOAD", "configItemType": "SCALING_RULE"}
    • time-based schedule {"ruleName": "timed scheduling", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "cooltime": 100, "ruleParam": { "recurrenceType": "Daily", "recurrenceValue": "1", "recurrenceEndTime": "2020-07-22T03:01Z", "launchtme": "" 2020-07-22T03:07Z ", " launchExpirationTime ": 0 }, " adjustmentValue ": 1, " ruleType ": "SCHEDULED", "configItemType": "SCALING_RULE"}
    • Fixed-point execution {"ruleName": "scheduled execution", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "coolDownTime": 100, "ruleParam": { "launchTime": "2020-07-22T03:09Z", "launchExpirationTime": 1 }, "adjustmentValue": 1, "ruleType": "BY_TIME_ONCE", "configItemType": "SCALING_RULE"}
  • SCALING_STRATEGY: { "spotStrategy": "NoSpot", "spotPriceLimits": 0.01, "instanceTypeList": [], "sysDiskCategory": "cloud_essd", "sysDiskSize": { "value": 40.0, "unit": "GIGABYTE" }, "dataDiskCategory": "cloud_essd", "dataDiskSize": { "value": 40.0, "unit": "GIGABYTE" }, "dataDiskCount": 4, "scalingMaxSize": 1, "scalingMinSize": 1, "defaultCoolDownTime": 0, "scalingTimeoutPolice": { "timeoutPolicy": "ROLLBACK" }, "nodeOfflineMode": "NORMAL", "nodeOfflineModeParam": { "timeoutMs": 0 }, "triggerMode": "Scheduled", "multiAvailablePolicy": "PRIORITY", "multiAvailablePolicyParam": { "onDemandBaseCapacity": 0, "onDemandPercentageAboveBaseCapacity": 0, "spotInstanceRemedy": 0, "spotInstance": false }, "configItemType": "SCALING_STRATEGY" }
ConfigItemType String Yes SCALING_RULE

The type of the configuration parameters. Valid values:

  • SCALING_RULE: scaling rule
  • SCALING_STRATEGY: scaling policy
RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions Interface 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 scaling group ID.

ResourceGroupId String No rg-acfmv6jutt6****

The ID of the resource group. You can call ListResourceGroups View the resource group ID.

Response parameters

Parameter Type Example Description
Data Boolean true

Indicates whether SQL audit was disabled for the DRDS database. Valid values:

  • true: The operation was successful.
  • false: The operation failed.
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"
}