Tüm Ürünler
Search
Belge Merkezi

:ListDataEventSelectors

Son Güncelleme:Sep 30, 2026

Tüm veri olayı seçicilerini listeler.

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

actiontrail:ListDataEventSelectors

get

*Trail

acs:actiontrail:{#regionId}:{#accountId}:trail/*

None None

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

NextToken

string

No

Sayfalama belirteci. Sonuçların bir sonraki sayfasını istemek için kullanılır.

  • İlk istek için bu parametreyi boş bırakın.

  • Sonraki istekler için, önceki yanıtta döndürülen NextToken değerini iletin.

VjE6dLbnNpVmbz06****

MaxResults

integer

No

Döndürülecek maksimum sonuç sayısı.

  • Geçerli değerler: 1 ile 100 arası.

  • Varsayılan değer: 20.

20

Response elements

Element

Type

Description

Example

object

Yanıt şeması.

Data

object

Döndürülen sonuçlar.

DataEventSelectorInfos

array<object>

Veri olayı seçici bilgilerinin listesi.

array<object>

EventSelectors

string

Veri olayı seçici yapılandırması. Maksimum 20 boyutunda bir JSON dizisi olarak temsil edilir.

JSON dizisindeki her öğe için alan açıklamaları:

  • ServiceName: Veri olaylarını destekleyen bulut hizmetinin adı.

  • ReadWriteType: Read, Write veya All.

  • EventName: Equals ve NotEquals olmak üzere iki alan içerir.

    Örneğin, aşağıdaki yapılandırma yalnızca GetObject, CopyObject ve AppendObject olaylarının teslim edildiğini belirtir:

    {"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]}}

    NotEquals kullanılırsa, GetObject, CopyObject ve AppendObject dışındaki olaylar teslim edilir.

  • ResourceArn: Aynı şekilde Equals ve NotEquals olmak üzere iki alan içerir. Kullanım için EventName alanına bakın. Örneğin:

    {"ResourceArn":{"Equals":[arn1,...,arnx]}}

[{"EventName":{"Equals":["GetObject","CopyObject","AppendObject"]},"ReadWriteType":"All","ServiceName":"Oss"}]

IsTrailAllRegion

boolean

İzlemenin tüm bölgeleri kapsayıp kapsamadığını gösterir.

true

SlsDeliveryConfigs

array<object>

Simple Log Service (SLS) teslimat yapılandırmalarının listesi.

object

SLS teslimat yapılandırma bilgileri.

CreateTime

string

SLS teslimat kaynağı başlatma kaydının mevcut bölgede oluşturulduğu zaman. Zaman, UTC'de ISO 8601 standardını takip eder. Biçim: yyyy-MM-dd'T'HH:mm:ss'Z'.

2023-09-30T16:11Z

ErrorCode

string

Kaynak başlatma işlemi başarısız olduğunda döndürülen hata kodu.

LogServiceException

ErrorMessage

string

Kaynak başlatma işlemi başarısız olduğunda döndürülen hata mesajı.

RequestError Web request failed.

RegionSlsProjectArn

string

İzlemenin bölgedeki olayları teslim ettiği SLS projesinin Alibaba Cloud Kaynak Adı (ARN).

acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai

Status

string

İzlemenin kaynak başlatma durumu.

success

TrailRegion

string

İzlemenin bölgesi.

cn-shanghai

TrailArn

string

İzlemenin ARN'si.

acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name

TrailName

string

İzleme adı.

trail-name

MaxResults

integer

Bu istekte döndürülen maksimum kayıt sayısı.

20

NextToken

string

Sorgu koşullarını karşılayan veriler tamamen okunmadığında sunucu tarafından döndürülen belirteç. Sonraki verileri okumaya devam etmek için bu NextToken değerini kullanabilirsiniz. Bu parametre ilk sorgu için gerekli değildir.

VjE6bHJlTGoxdm1M****

RequestId

string

İstek kimliği.

8A74FD2E-A9B9-461C-BCE9-D9668DF1****

EventName alanında, Equals ve NotEquals içindeki veri öğelerinin toplam sayısı 10'u aşamaz. Aynı sınır ResourceArn için de geçerlidir.

Examples

Success response

JSON format

{
  "Data": {
    "DataEventSelectorInfos": [
      {
        "EventSelectors": "[{\"EventName\":{\"Equals\":[\"GetObject\",\"CopyObject\",\"AppendObject\"]},\"ReadWriteType\":\"All\",\"ServiceName\":\"Oss\"}]",
        "IsTrailAllRegion": true,
        "SlsDeliveryConfigs": [
          {
            "CreateTime": "2023-09-30T16:11Z",
            "ErrorCode": "LogServiceException",
            "ErrorMessage": "RequestError Web request failed.",
            "RegionSlsProjectArn": "acs:log:cn-shanghai:159498693826****:project/actiontrail-log-159498693826****-cn-shanghai",
            "Status": "success",
            "TrailRegion": "cn-shanghai"
          }
        ],
        "TrailArn": "acs:actiontrail:cn-shanghai:159498693826****:trail/trail-name",
        "TrailName": "trail-name"
      }
    ],
    "MaxResults": 20,
    "NextToken": "VjE6bHJlTGoxdm1M****"
  },
  "RequestId": "8A74FD2E-A9B9-461C-BCE9-D9668DF1****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.