Creates a real-time log delivery project.
Operation description
Note
You can call this operation up to 100 times per second per account.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProjectName | string | Yes | The name of a real-time log delivery project. | example |
DomainName | string | Yes | The domain names from which logs were collected. You can specify one or more domain names. Separate multiple domain names with commas (,). | example.com |
SamplingRate | string | No | The sampling rate. | 1.0 |
SLSRegion | string | Yes | The region to which real-time logs are delivered. | cn-hangzhou |
SLSProject | string | Yes | The name of the Log Service project. | aliyundoc |
SLSLogStore | string | Yes | The name of the Log Service Logstore. | demo |
DataCenter | string | Yes | The data center. Valid values:
| cn |
BusinessType | string | No | The type of the collected logs. Default value: cdn_log_access_l1. Valid values:
| cdn_log_access_l1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F32C57AA-7BF8-49AE-A2CC-9F42390F5A19",
"Content": {
"Domains": [
{
"Status": "success",
"DomainName": "example.com",
"Region": "cn",
"Desc": "ok"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | Unauthorized | RealtimeLogDelivery service is not authorized. | Real-time log delivery does not have the required permissions. |
For a list of error codes, visit the Service error codes.