Enables log storage. This operation supports only the POST method.

Note The maximum number of times that each user can call this operation per second is 100.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateDcdnDomainOfflineLogDelivery

The operation that you want to perform. Set the value to CreateDcdnDomainOfflineLogDelivery.

DomainName String Yes example.com

The domain names. You can specify one or more domain names. Separate multiple domain names with commas (,). You can call the DescribeDcdnUserDomains operation to query the domain names in your account.

RegionId String Yes cn-hangzhou,cn-shanghai

The regions in which logs are stored. Separate multiple regions with commas (,). You can call the DescribeDcdnOfflineLogDeliveryRegions operation to query regions in which log storage is supported.

FieldId String Yes time,unixtime

The log fields that are supported by log storage. Separate multiple log fields with commas (,). You can call the DescribeDcdnOfflineLogDeliveryField operation to query log fields that are supported by log storage.

Response parameters

Parameter Type Example Description
RequestId String C370DAF1-C838-4288-A1A0-9A87633D248E

The ID of the request.

Examples

Sample requests

http://dcdn.aliyuncs.com?Action=CreateDcdnDomainOfflineLogDelivery
&DomainName=example.com
&RegionId=cn-hangzhou,cn-shanghai
&FieldId=time,unixtime
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateDcdnDomainOfflineLogDeliveryResponse>
    <RequestId>C370DAF1-C838-4288-A1A0-9A87633D248E</RequestId>
</CreateDcdnDomainOfflineLogDeliveryResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "C370DAF1-C838-4288-A1A0-9A87633D248E"
}

Error codes

For a list of error codes, visit the API Error Center.