CreateApsWebhook
Creates a webhook for a specified database cluster and task type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateApsWebhook |
none |
*DBClusterLakeVersion
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
amv-bp11q28kvl688**** |
| RegionId |
string |
Yes |
The region ID of the cluster. |
cn-hangzhou |
| JobType |
string |
Yes |
The task type. Valid values: ResultExport: SLS/OSS export task. |
ResultExport |
| Webhook |
array<object> |
No |
The webhook array. |
|
|
object |
No |
The webhook information. |
||
| WebhookType |
string |
Yes |
The notification method. Valid values:
|
dingtalk |
| Url |
string |
Yes |
The request URL. |
https://example.com/webhook |
| Key |
string |
No |
The signing key. |
*** |
| Name |
string |
No |
The webhook name. |
MyWebhookName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response. |
||
| RequestId |
string |
The request ID. |
1234567890abcdef |
| Data |
string |
The returned data. |
[] |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The returned message. |
OK |
| Code |
string |
The response code. |
200 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"RequestId": "1234567890abcdef",
"Data": "[]",
"HttpStatusCode": 200,
"Message": "OK",
"Code": "200",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.