Creates CreateQualityFollower a subscriber to a partition expression.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Required | CreateQualityFollower |
The operation that you want to perform. |
AlarmMode | Integer | Yes | 1 |
You can subscribe to anti-bot instances by mail, DingTalk (1, 2, and 4), or 5 (DingTalk chatbot @ ALL). |
EntityId | Long | Yes | 12345 |
The ID of the partition filter expression. |
Follower | String | Required | 123 |
The account ID of the subscriber. |
ProjectName | String | Required | autotest |
The name of the database engine or data source. |
RegionId | String | Required | cn-shanghai |
The ID of the region where your project resides. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Data | Integer | 12345 |
The ID of the new subscription. |
ErrorCode | String | 401 |
The error code. |
ErrorMessage | String | You have no permission. |
The returned message. |
HttpStatusCode | Integer | 200 |
Bad Request message. |
RequestId | String | ecb967ec-c137-48**** |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call is successful. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateQualityFollower
&AlarmMode=1
&EntityId=12345
&Follower=123
&ProjectName=autotest
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<RequestId>ecb967ec-c137-48****</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>12345</Data>
<ErrorCode>401</ErrorCode>
<ErrorMessage>You have no permission. </ErrorMessage>
<Success>true</Success>
JSON
format
{
"RequestId": "ecb967ec-c137-48****",
"HttpStatusCode": 200,
"Data": 12345,
"ErrorCode": 401,
"ErrorMessage": "You have no permission.",
"Success": true
}
Errors
For a list of error codes, visit the API Error Center.