Problem description
The format of the XML body of the access tracking configuration request is invalid.
Causes
The XML body of the PutBucketAccessMonitor request is not in a valid format. For example, the configuration does not use a valid XML structure or the root node is not AccessMonitorConfiguration
.
Examples
For example, you initiate the following request:
PUT /?accessmonitor HTTP/1.1
Host: BucketName.oss.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<Status>Enabled</Status>
The error is returned for the sample request because the root node of the XML request body is not AccessMonitorConfiguration
.
Solutions
Make sure that XML configuration in your request uses a valid format. For a valid PutBucketAccessMonitor sample request, see the examples provided in this topic.
PUT /?accessmonitor HTTP/1.1
Host: BucketName.oss.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<AccessMonitorConfiguration>
<Status>Enabled</Status>
</AccessMonitorConfiguration>