# Alibaba Cloud Application High Availability Service API

> Alibaba Cloud Application High Availability Service API on Apizie: 43 endpoints (Creates a circuit breaking rule by calling the CreateDegradeRule operation, Creates a flow control rule by calling the CreateFlowRule operation, Creates exception items for a hot parameter rule by calling the CreateHotParamItems operation, Creates a hot parameter rule by calling the CreateHotParamRule operation, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:aliyun-ahas-openapi`
- Category: Cloud
- Status: byok
- Source: https://api.alibabacloud.com/product/ahas-openapi
- Page: https://www.apizie.tech/api/cloud/aliyun-ahas-openapi
- OpenAPI: https://www.apizie.tech/api/cloud/aliyun-ahas-openapi/openapi.json

Alibaba Cloud OpenAPI for Application High Availability Service (ahas-openapi, version 2019-09-01). Calls are signed with ACS3-HMAC-SHA256 using your AccessKey ID and secret.

## Endpoints

### Creates a circuit breaking rule by calling the CreateDegradeRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-degrade-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The AHAS namespace. Default value: default. You can create different namespaces in the console for logically isolated environments |
| AppName | string | yes | The application name (do not use Chinese characters). If the application is an Enterprise Distributed Application Service (EDAS)… |
| Resource | string | yes | The name of the REST or RPC interface. The name must conform to the REST or RPC interface format specification |
| Strategy | integer | yes | The threshold type, which specifies the circuit breaking strategy. Valid values: 0: slow call ratio. 1: exception ratio |
| Threshold | number | yes | The circuit breaking threshold corresponding to the threshold type. Circuit breaking is triggered for the interface when this value is… |
| Enable | string | no | Specifies whether to enable the rule. Default value: false |
| RecoveryTimeoutMs | integer | yes | The circuit breaking duration. During this period, all requests to the interface fail immediately. Unit: milliseconds |
| StatDurationMs | integer | no | The statistical window duration. Unit: milliseconds. Default value: 1000 |
| SlowRtMs | integer | no | The slow call response time (RT). A request is counted as a slow call if its response time exceeds this value. This parameter is required… |
| MinRequestAmount | integer | no | The minimum number of requests required to trigger circuit breaking. If the number of requests in the current statistical window is less… |
| HalfOpenBaseAmountPerStep | integer | no | The minimum number of requests allowed per step during circuit breaking recovery. Default value: 5 |
| HalfOpenRecoveryStepNum | integer | no | The number of steps in the circuit breaking recovery phase. Default value: 1 |
| AhasRegionId | string | no | The region ID |

### Creates a flow control rule by calling the CreateFlowRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-flow-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID on… |
| RelationStrategy | integer | yes | The statistical dimension. Valid values: 0: current interface. 1: associated interface. 2: chain entrance |
| Threshold | number | yes | The threshold of the flow control rule. The value must be an integer greater than or equal to 0 |
| Enable | string | no | Specifies whether to enable the rule. Default value: false |
| Resource | string | yes | The resource name. The value cannot exceed 1024 characters and must correspond to the resource name on the interface details page |
| LimitOrigin | string | no | The source application. Default value: default |
| RefResource | string | no | The associated interface name or entrance resource name. This parameter is required when RelationStrategy is set to 1 (associated… |
| ControlBehavior | integer | yes | The flow control effect. Valid values: 0: fast failure. 1: warm-up. 2: queuing |
| WarmUpPeriodSec | integer | no | The warm-up period, in seconds. This parameter is required when ControlBehavior is set to 1 (warm-up) |
| MaxQueueingTimeMs | integer | no | The timeout period, in milliseconds. This parameter is required when ControlBehavior is set to 2 (queuing) |
| AhasRegionId | string | no | The region ID |
| ThresholdMode | integer | no | The threshold mode for flow control |

### Creates exception items for a hot parameter rule by calling the CreateHotParamItems operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-hot-param-items` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the hot parameter rule |
| Items | string | yes | The hot parameter exception items |
| AhasRegionId | string | no | The region ID |

### Creates a hot parameter rule by calling the CreateHotParamRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-hot-param-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID on… |
| MetricType | integer | yes | The statistical dimension. Valid values: 0: concurrency 1: pass request count |
| Threshold | number | yes | The threshold for each hot parameter in the hot parameter rule. The value must be an integer greater than or equal to 0 |
| Enable | string | no | Specifies whether to enable the rule. Default value: false |
| Resource | string | yes | The resource name. The name can be up to 1024 characters in length and must correspond to the resource name on the API details page |
| ParamIdx | integer | yes | The index of the parameter position, which is the index position of the parameter passed in through instrumentation. This corresponds to… |
| StatDurationSec | integer | yes | The statistical period, in seconds |
| ControlBehavior | integer | yes | The throttling behavior. Valid values: 0: fast failure 2: queuing |
| BurstCount | integer | no | The number of burst requests. This parameter is required when the throttling behavior is set to fast failure |
| MaxQueueingTimeMs | integer | no | The timeout period, in milliseconds. This parameter is required when the throttling behavior is set to queuing |
| AhasRegionId | string | no | The region |

### Creates an isolation rule by calling the CreateIsolationRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-isolation-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID on the… |
| RelationStrategy | integer | yes | The statistical dimension. Valid values: 0: current interface. 1: associated interface. 2: chain entry |
| Threshold | number | yes | The concurrency threshold. The value must be an integer greater than or equal to 0 |
| Enable | string | no | Specifies whether to enable the rule. Default value: false |
| Resource | string | yes | The resource name. The name cannot exceed 1024 characters and must correspond to the resource name on the interface details page |
| LimitOrigin | string | no | The source application. Default value: default |
| RefResource | string | no | The associated interface name or callstack entry name. This parameter is required when the statistical dimension is set to associated… |
| AhasRegionId | string | no | The region |

### Creates a system rule by calling the CreateSystemRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-system-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID in… |
| MetricType | integer | yes | The statistical dimension. Valid values: 0: Load. 1: average RT of inbound traffic. 2: thread count. 3: total inbound QPS. 4: CPU usage |
| Threshold | number | yes | The CPU threshold. Valid values: 0 to 1 |
| Enable | string | no | Specifies whether the rule is enabled |
| AhasRegionId | string | no | The region ID |

### Calls the DeleteDegradeRule operation to delete a circuit breaking rule
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/delete-degrade-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The rule ID |
| AhasRegionId | string | no | The region ID |

### Deletes a flow control rule by calling the DeleteFlowRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/delete-flow-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the flow control rule |
| AhasRegionId | string | no | The region ID |

### Deletes a hot parameter rule by calling the DeleteHotParamRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/delete-hot-param-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the hot parameter rule |
| AhasRegionId | string | no | The region ID |

### Calls the DeleteIsolationRule operation to delete an isolation rule
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/delete-isolation-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the isolation rule |
| AhasRegionId | string | no | The region ID |

### Deletes a system rule
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/delete-system-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the system rule |
| AhasRegionId | string | no | The region ID |

### DescribeRegions
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/describe-regions` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| AcceptLanguage | string | no | The AcceptLanguage |

### Disables a circuit breaking rule by calling the DisableDegradeRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/disable-degrade-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the circuit breaking rule |
| AhasRegionId | string | no | The region ID |

### Disables a throttling rule by calling the DisableFlowRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/disable-flow-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the throttling rule |
| AhasRegionId | string | no | The region |

### Disables a hot parameter rule by calling the DisableHotParamRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/disable-hot-param-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the hot parameter rule |
| AhasRegionId | string | no | The AhasRegionId |

### Disables an isolation rule by calling the DisableIsolationRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/disable-isolation-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the isolation rule |
| AhasRegionId | string | no | The region ID |

### Disables a system rule by calling the DisableSystemRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/disable-system-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the system rule |
| AhasRegionId | string | no | The region ID |

### Enables a circuit breaking rule by calling the EnableDegradeRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/enable-degrade-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the circuit breaking rule |
| AhasRegionId | string | no | The region ID |

### Enables a flow control rule by calling the EnableFlowRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/enable-flow-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the flow control rule |
| AhasRegionId | string | no | The AhasRegionId |

### Enables a hot parameter rule by calling the EnableHotParamRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/enable-hot-param-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the hot parameter rule |
| AhasRegionId | string | no | The region ID |

### Enables an isolation rule by calling the EnableIsolationRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/enable-isolation-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the isolation rule |
| AhasRegionId | string | no | The region ID |

### Enables a system rule by calling the EnableSystemRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/enable-system-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the system rule |
| AhasRegionId | string | no | The region ID |

### GetLicenseKey
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/get-license-key` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The Namespace |
| AhasRegionId | string | no | The AhasRegionId |

### Calls the GetMetricsOfApp operation to retrieve application monitoring metrics
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/get-metrics-of-app` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID on the… |
| StartTime | integer | no | The start time, in milliseconds |
| EndTime | integer | no | The end time, in milliseconds |
| AhasRegionId | string | no | The region ID |

### Calls the GetMetricsOfResource operation to retrieve metric data for a resource
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/get-metrics-of-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, AppName is the App ID in EDAS. You can view the corresponding ID in the… |
| Resource | string | yes | The resource name |
| StartTime | integer | no | The start time. The following formats are supported: UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970.… |
| EndTime | integer | no | The end time. The following formats are supported: UNIX timestamp: the number of milliseconds that have elapsed since January 1, 1970.… |
| AhasRegionId | string | no | The region |

### Queries the summary metrics of a Sentinel application
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/get-sentinel-app-sum-metric` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| AcceptLanguage | string | no | The language of the response. Valid values: zh-CN (default): Chinese. en-US: English |
| Namespace | string | no | The namespace of the application |
| AppName | string | yes | The name of the application |
| StartTime | string | yes | The beginning of the time range to query. The value is a UNIX timestamp in milliseconds |
| EndTime | string | yes | The end of the time range to query. The value is a UNIX timestamp in milliseconds |
| AhasRegionId | string | no | The region ID of the Application High Availability Service (AHAS) instance |

### ListActiveApps
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-active-apps` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The Namespace |
| AppType | integer | no | The AppType |
| AhasRegionId | string | no | The AhasRegionId |

### Calls the ListDegradeRulesOfApp operation to query the degradation rules of an application
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-degrade-rules-of-app` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, the value of this parameter is the application ID in EDAS. You can obtain… |
| PageIndex | integer | no | The number of the page to return. Default value: 1 |
| PageSize | integer | no | The number of entries to return on each page. Default value: 10 |
| AhasRegionId | string | no | The region ID |

### Retrieves the circuit breaking rules for a specified resource by calling the ListDegradeRulesOfResource…
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-degrade-rules-of-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID in the EDAS… |
| Resource | string | yes | The resource name |
| PageIndex | integer | no | The current page number |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region ID |

### Queries the list of flow control rules for an application by calling the ListFlowRulesOfApp operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-flow-rules-of-app` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the corresponding ID in… |
| PageIndex | integer | no | The page number for the paged query |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region ID |

### Queries the list of flow control rules for a specified resource by calling the ListFlowRulesOfResource…
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-flow-rules-of-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the… |
| Resource | string | yes | The resource name of the API |
| PageIndex | integer | no | The current page number |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region |

### Queries the hot parameter rules of an application by calling the ListHotParamRulesOfApp operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-hot-param-rules-of-app` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, set AppName to the App ID in… |
| PageIndex | integer | no | The current page number |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region |

### Calls the ListHotParamRulesOfResource operation to retrieve the hot parameter rules for a specified resource
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-hot-param-rules-of-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set AppName to the App ID in EDAS. You can view the App ID on the… |
| Resource | string | yes | The resource name |
| PageIndex | integer | no | The current page number |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region ID |

### Queries the isolation rules of an application by calling the ListIsolationRulesOfApp operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-isolation-rules-of-app` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an Enterprise Distributed Application Service (EDAS) application, set this parameter to the… |
| PageIndex | integer | no | The current page number |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region ID |

### Calls the ListIsolationRulesOfResource operation to retrieve the isolation rules for a specified resource
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-isolation-rules-of-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the… |
| Resource | string | yes | The resource name |
| PageIndex | integer | no | The current page number |
| PageSize | integer | no | The number of entries per page |
| AhasRegionId | string | no | The region ID |

### Queries system rules by calling the ListSystemRules operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/list-system-rules` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | yes | The namespace |
| AppName | string | yes | The application name. If the application is an EDAS application, set this parameter to the App ID in EDAS. You can view the App ID on the… |
| PageIndex | integer | no | The page number of the page to return |
| PageSize | integer | no | The number of entries to return on each page |
| AhasRegionId | string | no | The region ID |

### Modifies a circuit breaking rule by calling the ModifyDegradeRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/modify-degrade-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Strategy | integer | no | The threshold type, which specifies the circuit breaking strategy. A value of 0 indicates circuit breaking based on the slow request… |
| Threshold | number | no | The circuit breaking threshold corresponding to the threshold type. Circuit breaking is triggered for the API when this value is exceeded |
| RuleId | integer | yes | The ID of the circuit breaking rule |
| RecoveryTimeoutMs | integer | no | The circuit breaking duration. During this period, all requests to the API fail immediately. Unit: milliseconds |
| StatDurationMs | integer | no | The statistical window duration. Unit: milliseconds. Default value: 1000 |
| SlowRtMs | integer | no | The slow request response time (RT). A request whose response time exceeds this value is counted as a slow request. This parameter is… |
| MinRequestAmount | integer | no | The minimum number of requests required to trigger circuit breaking. If the number of requests in the current statistical window is less… |
| HalfOpenBaseAmountPerStep | integer | no | The minimum number of requests allowed to pass through per step during circuit breaking recovery. Default value: 5 |
| HalfOpenRecoveryStepNum | integer | no | The number of recovery steps during circuit breaking recovery. Default value: 1 |
| AhasRegionId | string | no | The region ID |

### Modifies a flow control rule by calling the ModifyFlowRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/modify-flow-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Namespace | string | no | The namespace |
| RuleId | integer | yes | The rule ID |
| RelationStrategy | integer | no | The statistical dimension. Valid values: 0: current interface. 1: associated interface. 2: chain entrance |
| Threshold | number | no | The flow control threshold |
| LimitOrigin | string | no | The source application |
| RefResource | string | no | The name of the associated interface or the entrance resource name. This parameter is required when RelationStrategy is set to 1… |
| ControlBehavior | string | no | The flow control behavior. Valid values: 0: fast fail. 1: warm-up. 2: queue waiting |
| WarmUpPeriodSec | integer | no | The warm-up period, in seconds. This parameter is required when ControlBehavior is set to 1 (warm-up) |
| MaxQueueingTimeMs | integer | no | The timeout period, in milliseconds. This parameter is required when ControlBehavior is set to 2 (queue waiting) |
| AhasRegionId | string | no | The region |
| ThresholdMode | integer | no | The flow control threshold mode |

### Modifies a hot parameter rule
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/modify-hot-param-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| MetricType | integer | no | The statistical dimension. Valid values: 0: concurrency. 1: passed requests |
| Threshold | number | no | The threshold for each hot parameter in the hot parameter rule. The value must be an integer greater than or equal to 0 |
| Enable | string | no | Specifies whether to enable the rule |
| RuleId | integer | yes | The rule ID |
| ParamIdx | integer | no | The index of the parameter position, which is the index of the parameter passed in the instrumentation point. The index corresponds to the… |
| StatDurationSec | integer | no | The statistical period, in seconds |
| ControlBehavior | integer | no | The throttling behavior. Valid values: 0: fast failure. 2: queuing |
| BurstCount | integer | no | The number of burst requests. This parameter is required when the throttling behavior is set to fast failure |
| MaxQueueingTimeMs | integer | no | The timeout period, in seconds. This parameter is required when the throttling behavior is set to queuing |
| AhasRegionId | string | no | The region ID |

### Modifies an isolation rule by calling the ModifyIsolationRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/modify-isolation-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| RuleId | integer | yes | The ID of the isolation rule |
| RelationStrategy | integer | no | The statistical dimension. A value of 0 indicates the current interface, 1 indicates the associated interface, and 2 indicates the call… |
| Threshold | number | no | The concurrency threshold |
| LimitOrigin | string | no | The source application |
| RefResource | string | no | The name of the associated interface or the call stack entry. This parameter is required when the statistical dimension is set to… |
| AhasRegionId | string | no | The region ID |

### Modifies a system rule by calling the ModifySystemRule operation
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/modify-system-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |
| Threshold | number | yes | The CPU threshold. Valid values: 0 to 1 |
| RuleId | integer | yes | The system rule ID |
| AhasRegionId | string | no | The region |

### Activates Application High Availability Service (AHAS)
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/open-ahas-service` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |

### version
`POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/version` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://ahas.ap-southeast-1.aliyuncs.com |

## Example
```
curl "https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-degrade-rule" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Alibaba Cloud Application High Availability Service API?
Create a free Apizie key, then send POST https://www.apizie.tech/v1/cloud:aliyun-ahas-openapi/create-degrade-rule with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Alibaba Cloud Application High Availability Service API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Alibaba Cloud Application High Availability Service itself also needs your own key from aliyuncs.com.

### Can AI agents use the Alibaba Cloud Application High Availability Service API?
Yes. Add the Apizie MCP server (https://www.apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:aliyun-ahas-openapi.

### What is the status of the Alibaba Cloud Application High Availability Service API?
Needs your own provider key (bring your own key)
