All Products
Search
Document Center

Enterprise Distributed Application Service:DisableApplicationScalingRule

Last Updated:Nov 29, 2024

Disables an auto scaling policy for an application.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ManageApplicationupdate
*Application
acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}/application/{#AppId}
    none
none

Request syntax

PUT /pop/v1/eam/scale/disable_application_scaling_rule HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The ID of the application. You can call the ListApplication operation to query the application ID. For more information, see ListApplication .

78194c76-3dca-418e-a263-cccd1ab4****
ScalingRuleNamestringNo

The name of the auto scaling policy.

cron-trigger

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code.

200
Messagestring

The returned message.

success
RequestIdstring

The ID of the request.

5d6fa0bc-cc3**********
AppScalingRuleobject

The information about the auto scaling policy.

UpdateTimelong

The time when the auto scaling policy was last modified.

23212323123
CreateTimelong

The time when the auto scaling policy was created.

23212323123
AppIdstring

The ID of the application to which the auto scaling policy belongs.

78194c76-3dca-418e-a263-cccd1ab4****
LastDisableTimelong

The time when the auto scaling policy was last disabled.

23212323123
MaxReplicasinteger

This parameter is deprecated.

1
ScaleRuleEnabledboolean

Indicates whether the auto scaling policy is enabled. Valid values:

  • true: The auto scaling policy is enabled.
  • false: The auto scaling policy is disabled.
true
ScaleRuleTypestring

The type of the auto scaling policy. The value is fixed to trigger.

trigger
MinReplicasinteger

This parameter is deprecated.

1
ScaleRuleNamestring

The name of the auto scaling policy.

cron-trigger
Metricobject

This parameter is deprecated.

MinReplicasinteger

This parameter is deprecated.

1
MaxReplicasinteger

This parameter is deprecated.

12
Metricsarray<object>

This parameter is deprecated.

Metricobject
MetricTargetAverageUtilizationinteger

This parameter is deprecated.

1
MetricTypestring

This parameter is deprecated.

1
Triggerobject

The configurations of the trigger.

MinReplicasinteger

The minimum number of replicas. The lower limit is 0.

1
MaxReplicasinteger

The maximum number of replicas. The upper limit is 1000.

12
Triggersarray<object>

The information about the trigger.

Triggerobject
Typestring

The type of the trigger. Valid values: cron and app_metric.

cron
MetaDatastring

The metadata of the trigger.

{"dryRun":true}
Namestring

The name of the trigger.

cron-trigger

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "5d6fa0bc-cc3**********",
  "AppScalingRule": {
    "UpdateTime": 23212323123,
    "CreateTime": 23212323123,
    "AppId": "78194c76-3dca-418e-a263-cccd1ab4****",
    "LastDisableTime": 23212323123,
    "MaxReplicas": 1,
    "ScaleRuleEnabled": true,
    "ScaleRuleType": "trigger",
    "MinReplicas": 1,
    "ScaleRuleName": "cron-trigger",
    "Metric": {
      "MinReplicas": 1,
      "MaxReplicas": 12,
      "Metrics": [
        {
          "MetricTargetAverageUtilization": 1,
          "MetricType": "1"
        }
      ]
    },
    "Trigger": {
      "MinReplicas": 1,
      "MaxReplicas": 12,
      "Triggers": [
        {
          "Type": "cron",
          "MetaData": "{\"dryRun\":true}",
          "Name": "cron-trigger"
        }
      ]
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history