Deletes custom field configurations from the user_defined_log_fields element in bucket real-time logs.
Notes
To call the DeleteUserDefinedLogFieldsConfig operation, you must have the oss:DeleteUserDefinedLogFieldsConfig permission. For more information, see Grant a custom policy.
Request syntax
DELETE /?userDefinedLogFieldsConfig HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue
当您在OSS ON云盒中调用该接口时,您需要将Host替换为云盒Endpoint。更多信息,请参见云盒Endpoint。
Request headers
DescribeRegions uses only common request headers. For more information, see Common request headers.
Response headers
The response contains only common response headers. For more information, see Common response headers.
Examples
Sample request
DELETE /?userDefinedLogFieldsConfig HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue
Sample response
HTTP/1.1 204 OK
x-oss-request-id: 534B371674125A4D8906008B
Date: Date
Content-Length: 0
Connection: keep-alive
Server: AliyunOSS
OSS SDKs
You can call the DeleteUserDefinedLogFieldsConfig operation by using OSS SDKs for the following programming languages:
ossutil
For the ossutil command that corresponds to this operation, see delete-user-defined-log-fields-config.