DescribeSlsDeliveryConfig

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 indicates Enterprise Edition workstations.

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 indicates Enterprise Edition workstations.

WuyingServer

Status

string

The current status of the delivery configuration. Valid values:

  • Stopped: Delivery is stopped.

  • Enabled: Delivery is enabled.

  • AbnormalLogstoreDeleted: The destination Logstore is deleted, causing a delivery exception.

  • AbnormalProjectDeleted: The destination project is deleted, causing a delivery exception.

Valid values:

  • AbnormalProjectDeleted :

    The destination project is deleted.

  • Stopped :

    Delivery is stopped.

  • AbnormalLogstoreDeleted :

    The destination Logstore is deleted.

  • Enabled :

    Delivery is enabled.

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.