Changes the status of a real-time log delivery task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:UpdateSiteDeliveryTaskStatus |
none |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskName |
string |
Yes |
The name of the delivery task. |
cdn-test-task |
| SiteId |
integer |
No |
The site ID. |
123456**** |
| Method |
string |
Yes |
Whether to enable the delivery task. |
online |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
34DCBC8A-****-****-****-6DAA11D7DDBD |
| TaskName |
string |
The name of the delivery task. |
cdn-test-task |
| Status |
string |
The status of the delivery task. Valid values:
|
online |
Examples
Success response
JSON format
{
"RequestId": "34DCBC8A-****-****-****-6DAA11D7DDBD",
"TaskName": "cdn-test-task",
"Status": "online"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | InternalError | An internal exception occurred, please try again later. | An inner exception was triggered. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.