Membuat aturan event.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mns:PutEventNotifications |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProductName |
string |
Yes |
Nama produk Alibaba Cloud untuk menerima notifikasi event. |
oss |
| RuleName |
string |
Yes |
Nama aturan event. |
rule-xsXDW |
| EventTypes |
array |
Yes |
Daftar tipe event. |
|
|
string |
No |
The event type. |
ObjectCreated:PutObject |
|
| MatchRules |
array |
Yes |
Daftar aturan pencocokan. Hubungan logis antaraturan adalah OR. |
|
|
array |
No |
A list of sub-rules. The logical relationship between the sub-rules is AND. |
||
| EventMatchRule |
No |
The atomic event matching rule object. |
||
| Endpoints |
array<object> |
No |
Parameter ini tidak digunakan lagi. Gunakan Endpoint sebagai gantinya. |
|
|
object |
No |
|||
| EndpointType |
string |
No |
Deprecated. Use Endpoint.EndpointType instead. Valid values:
|
http |
| EndpointValue |
string |
No |
Deprecated. Use Endpoint.EndpointValue instead. |
test-xxx-queue |
| ClientToken |
string |
No |
Token klien untuk memastikan idempotensi permintaan. Buat nilai unik untuk parameter ini dari klien Anda untuk setiap permintaan. |
06273500-249F-5863-121D-74D51123**** |
| Endpoint |
object |
No |
Titik akhir yang menerima Paket untuk langganan ini. |
|
| EndpointType |
string |
No |
The endpoint type. Valid values:
|
topic |
| EndpointValue |
string |
No |
The value of the endpoint. |
test-topic |
| DeliveryMode |
string |
No |
Parameter ini tidak digunakan lagi. |
-- |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
06273500-249F-5863-121D-74D51123**** |
| Code |
integer |
The response code. |
200 |
| Status |
string |
The status of the response. |
Success |
| Message |
string |
The response message. |
operation success |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
string |
The response data. If the rule is created successfully, the name of the rule is returned. |
rule-xsXDW |
Contoh
Respons sukses
JSONformat
{
"RequestId": "06273500-249F-5863-121D-74D51123****",
"Code": 200,
"Status": "Success",
"Message": "operation success",
"Success": true,
"Data": "rule-xsXDW"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.