Queries the callback method, callback URL, and event types of event notifications.
Operation description
For more information, see Event notification development guide.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetMessageCallback |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
The application ID. If this parameter is not specified, the ID of the system default application is used. The fixed value is app-1000000. |
app-1000000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
272A222A-F7F7-4A3E-****-F531574F1234 |
| MessageCallback |
object |
The event notification configuration. |
|
| CallbackType |
string |
The callback method. Valid values:
|
HTTP |
| CallbackURL |
string |
The callback URL when the callback method is set to HTTP. |
http://test.com/test |
| EventTypeList |
string |
The callback event types. |
FileUploadComplete,StreamTranscodeComplete,TranscodeComplete,SnapshotComplete,AIComplete,AddLiveRecordVideoComplete,CreateAuditComplete,UploadByURLComplete,ProduceMediaComplete,LiveRecordVideoComposeStart,ImageUploadComplete,VideoAnalysisComplete |
| AppId |
string |
The application ID. |
app-1000000 |
| MnsQueueName |
string |
The name of the MSMQ when the callback method is set to MNS. |
vodcallback |
| AuthKey |
string |
The authentication key when the callback method is set to HTTP. |
12345678abc |
| AuthSwitch |
string |
The callback authentication switch when the callback method is set to HTTP. Valid values:
|
on |
| MnsEndpoint |
string |
The public endpoint of the MSMQ when the callback method is set to MNS. |
http://1234567.mns.cn-shanghai-internal.aliyuncs.com/ |
Examples
Success response
JSON format
{
"RequestId": "272A222A-F7F7-4A3E-****-F531574F1234",
"MessageCallback": {
"CallbackType": "HTTP",
"CallbackURL": "http://test.com/test",
"EventTypeList": "FileUploadComplete,StreamTranscodeComplete,TranscodeComplete,SnapshotComplete,AIComplete,AddLiveRecordVideoComplete,CreateAuditComplete,UploadByURLComplete,ProduceMediaComplete,LiveRecordVideoComposeStart,ImageUploadComplete,VideoAnalysisComplete",
"AppId": "app-1000000",
"MnsQueueName": "vodcallback",
"AuthKey": "12345678abc",
"AuthSwitch": "on",
"MnsEndpoint": "http://1234567.mns.cn-shanghai-internal.aliyuncs.com/"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.