DescribeSlsDeliveryConfig
Queries the Simple Log Service (SLS) delivery configurations of the current account.
Operation description
Query description
Queries existing delivery configurations under the current account without creating or modifying configurations.
You can filter by SLS region, project name, Logstore name, and product type. If multiple conditions are specified, they take effect together.
If no filter conditions are specified, all delivery configurations under the current account are queried. If no configurations match, an empty list is returned.
The returned results are displayed hierarchically by project, Logstore, and delivery scope.
Example description
The examples of names and retention periods are used to demonstrate the format. Refer to the actual configurations. The retention period examples do not represent default values or upper limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:DescribeSlsDeliveryConfig |
get |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DeliveryScopes |
array<object> |
No |
Filters delivery scopes by the product type to which the logs belong. If this parameter is omitted or an empty list is passed, delivery scopes are not filtered by product type. |
[{"ProductType":"WuyingServer"}] |
|
object |
No |
A product delivery scope. |
||
| ProductType |
string |
Yes |
The query condition for the product type to which the logs belong. If specified, delivery scopes are filtered by this product type, which must be consistent with the existing delivery configurations. For example, |
WuyingServer |
| SlsRegionId |
string |
No |
The ID of the region where the SLS project is located. Exact match. If this parameter is omitted, delivery scopes are not filtered by region. |
cn-hangzhou |
| ProjectName |
string |
No |
The name of the SLS project. Exact match. If this parameter is omitted, delivery scopes are not filtered by project name. |
wuying-audit-cn-hangzhou |
| LogStoreName |
string |
No |
The name of the SLS Logstore. Exact match. If this parameter is omitted, delivery scopes are not filtered by Logstore name. |
wuying-session-audit |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The log delivery configuration query results. |
||
| RequestId |
string |
The request ID, which is used to locate this call. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| DeliveryConfigs |
array<object> |
The list of delivery configurations that match the filter conditions. If no configurations match, an empty list is returned. |
|
|
array<object> |
The delivery configuration of an SLS project. |
||
| ProjectName |
string |
The name of the destination SLS project. |
wuying-audit-cn-hangzhou |
| SlsRegionId |
string |
The ID of the region where the destination SLS project is located. |
cn-hangzhou |
| LogStores |
array<object> |
The list of Logstore delivery configurations under the project. |
|
|
array<object> |
The delivery configuration of a Logstore. |
||
| LogStoreName |
string |
The name of the destination SLS Logstore. |
wuying-session-audit |
| Ttl |
integer |
The data retention period configured for the destination Logstore, in days. |
30 |
| DeliveryScopes |
array<object> |
The product delivery scopes of the Logstore and the delivery status of each scope. |
|
|
object |
The delivery configuration of a product scope. |
||
| ProductType |
string |
The product type of the delivery scope. For example, |
WuyingServer |
| Status |
string |
The current status of the delivery configuration. Valid values:
Valid values:
|
Enabled |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"DeliveryConfigs": [
{
"ProjectName": "wuying-audit-cn-hangzhou",
"SlsRegionId": "cn-hangzhou",
"LogStores": [
{
"LogStoreName": "wuying-session-audit",
"Ttl": 30,
"DeliveryScopes": [
{
"ProductType": "WuyingServer",
"Status": "Enabled"
}
]
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.