Updates a real-time log delivery project.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateDcdnSLSRealtimeLogDelivery |
The operation that you want to perform. Set the value to UpdateDcdnSLSRealtimeLogDelivery. |
DataCenter | String | Yes | cn |
The region from which logs are collected.
|
DomainName | String | Yes | example.com |
The domain names. You can specify one or more domain names. Separate multiple domain names with commas (,). |
ProjectName | String | Yes | example |
The name of the real-time log delivery project. |
SLSLogStore | String | Yes | example-cn |
The name of the Logstore. |
SLSProject | String | Yes | example-cn |
The name of the Log Service project. |
SLSRegion | String | Yes | cn-hangzhou |
The region to which logs are delivered. |
SamplingRate | String | No | 1.0 |
The sampling rate. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Content | Array of Domains |
The configuration results of the domain name. |
|
Domains | |||
Desc | String | created |
The description of the returned result. |
DomainName | String | example.com |
The domain name for which the real-time log delivery project was updated. |
Region | String | cn |
The region from which logs were collected. |
Status | String | success |
Indicates whether the real-time log delivery project was successfully updated. Valid values:
|
RequestId | String | F32C57AA-7BF8-49AE-A2CC-9F42390F5A19 |
The ID of the request. |
Examples
Sample requests
https://dcdn.aliyuncs.com?Action=UpdateDcdnSLSRealtimeLogDelivery
&DataCenter=cn
&DomainName=example.com
&ProjectName=example
&SLSLogStore=example-cn
&SLSProject=example-cn
&SLSRegion=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<UpdateDcdnSLSRealtimeLogDeliveryResponse>
<RequestId>F32C57AA-7BF8-49AE-A2CC-9F42390F5A19</RequestId>
<Content>
<Domains>
<DomainName>example.com</DomainName>
<Region>cn</Region>
<Status>success</Status>
<Desc>created</Desc>
</Domains>
<Domains>
<DomainName>example.org</DomainName>
<Region>sg</Region>
<Status>success</Status>
<Desc>created</Desc>
</Domains>
</Content>
</UpdateDcdnSLSRealtimeLogDeliveryResponse>
JSON
format
{
"RequestId": "F32C57AA-7BF8-49AE-A2CC-9F42390F5A19",
"Content": {
"Domains": [
{
"DomainName": "example.com",
"Region": "cn",
"Status": "success",
"Desc": "created"
},
{
"DomainName": "example.org",
"Region": "sg",
"Status": "success",
"Desc": "created"
}
]
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | Unauthorized | RealtimeLogDelivery service is not authorized. | The error message returned because you are not authorized to use real-time log delivery. |
For a list of error codes, visit the API Error Center.