Tüm Ürünler
Search
Belge Merkezi

:LookupEvents

Son Güncelleme:Sep 30, 2026

Ayrıntılı geçmiş yönetim olaylarını getirir.

Operation description

Not

Bu işlemi sık sık çağırmayın. Yönetim olaylarını Simple Log Service'e (SLS) iletmek için bir iz oluşturabilir ve yönetim olaylarını neredeyse gerçek zamanlı olarak getirmek için SLS'nin gerçek zamanlı tüketim özelliğini kullanabilirsiniz. Daha fazla bilgi için Tek hesaplı iz oluşturma, Çok hesaplı iz oluşturma ve Gerçek zamanlı tüketim konularına bakın.

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:LookupEvents

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

NextToken

string

No

Sonraki sonuç sayfasını istemek için kullanılan belirteç.

Not

İstek parametreleri, önceki istekteki parametrelerle aynı olmalıdır.

eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****

MaxResults

string

No

Döndürülecek maksimum sonuç sayısı. Geçerli değerler: 1 ila 50.

20

StartTime

string

No

Sorgulanacak zaman aralığının başlangıç zamanı. Zaman, ISO 8601 standardına uyar ve UTC cinsindendir. Biçim: YYYY-MM-DDThh:mm:ssZ.

Not

StartTime ve EndTime parametrelerinin her ikisi de belirtilmeli veya her ikisi de boş bırakılmalıdır. Belirtilmezlerse, StartTime varsayılan olarak mevcut zamandan 7 gün öncesine ayarlanır.

2020-10-08T11:00:00Z

EndTime

string

No

Sorgulanacak zaman aralığının bitiş zamanı. Zaman, ISO 8601 standardına uyar ve UTC cinsindendir. Biçim: YYYY-MM-DDThh:mm:ssZ.

Not

StartTime ve EndTime parametrelerinin her ikisi de belirtilmeli veya her ikisi de boş bırakılmalıdır. Belirtilmezlerse, EndTime varsayılan olarak mevcut zamana ayarlanır.

2020-10-15T11:00:00Z

Direction

string

No

Olayların getirilme sırası. Geçerli değerler:

  • FORWARD: Kronolojik sıra.

  • BACKWARD (varsayılan): Ters kronolojik sıra.

BACKWARD

LookupAttribute

array<object>

No

Sorgu koşulları.

Not

Tek seferde yalnızca bir veya iki sorgu koşulu belirtebilirsiniz. Daha fazla bilgi için Sınırlar konusuna bakın.

object

No

Key

string

No

Sorgu koşulunun anahtarı. Daha fazla bilgi için Olayları getirmek için LookupEvents işlemini çağırırken LookupAttribute parametresini nasıl ayarlarım? konusuna bakın.

ServiceName

Value

string

No

Sorgu koşulunun değeri. Daha fazla bilgi için Olayları getirmek için LookupEvents işlemini çağırırken LookupAttribute parametresini nasıl ayarlarım? konusuna bakın.

Ecs

Ortak istek parametreleri hakkında daha fazla bilgi için Ortak parametreler konusuna bakın.

Response elements

Element

Type

Description

Example

object

EndTime

string

Bu sorguda kullanılan zaman aralığının gerçek bitiş zamanı. Zaman, ISO 8601 standardına uyar ve UTC cinsindendir. Biçim: yyyy-MM-dd'T'HH:mm:ss'Z'.

2020-07-22T14:00:00Z

Events

array<object>

Getirilen olayların listesi.

object

Getirilen olayların listesi.

Olay listesindeki olay alanları hakkında daha fazla bilgi için Yönetim olayı yapısı konusuna bakın.

{ "eventId": "6EEC3A76-C207-5075-889D-A909E62F****", "eventVersion": 1, "eventName": "GetTemplate" }

NextToken

string

Sonraki sonuç sayfasını istemek için kullanılan belirteç.

Not

Daha fazla sonuç yoksa bu alan döndürülmez.

eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****

RequestId

string

İstek kimliği.

FD79665A-CE8B-49D4-82E6-5EE2E0E7****

StartTime

string

Bu sorguda kullanılan zaman aralığının gerçek başlangıç zamanı. Zaman, ISO 8601 standardına uyar ve UTC cinsindendir. Biçim: yyyy-MM-dd'T'HH:mm:ss'Z'.

2020-07-15T14:00:00Z

Examples

Success response

JSON format

{
  "EndTime": "2020-07-22T14:00:00Z",
  "Events": [
    {
      "eventId": "6EEC3A76-C207-5075-889D-A909E62F****",
      "eventVersion": 1,
      "eventName": "GetTemplate"
    }
  ],
  "NextToken": "eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****",
  "RequestId": "FD79665A-CE8B-49D4-82E6-5EE2E0E7****",
  "StartTime": "2020-07-15T14:00:00Z"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IncompleteSignature The request signature does not conform to Alibaba Cloud standards.
400 InvalidParameterCombination The end time must be later than the start time.
400 InvalidQueryParameter The specified query parameter is invalid.
400 InvalidParameterEndTime The specified EndTime is invalid.
400 InvalidParameterStartTime The specified StartTime is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.