Tüm Ürünler
Search
Belge Merkezi

:GetTrailStatus

Son Güncelleme:Sep 30, 2026

Bir iz durumunu sorgular.

Operation description

Bu konu, tek hesaplı trail-test izinin durumunu sorgulamaya yönelik bir örnek sunar.

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

get

*Trail

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

None None

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

İz adı.\nAd 6 ila 36 karakter uzunluğunda olmalıdır, küçük bir harfle başlamalıdır ve küçük harfler, rakamlar, tire (-) ve alt çizgi (_) içerebilir.\n\n> İz adları bir hesap dahilinde benzersiz olmalıdır.

trail-test

IsOrganizationTrail

boolean

No

Çok hesaplı bir iz durumunun sorgulanıp sorgulanmayacağını belirtir. Geçerli değerler:\n\n- true: Çok hesaplı bir iz durumunu sorgular.\n\n- false (varsayılan): Tek hesaplı bir iz durumunu sorgular.

false

Ortak istek parametreleri hakkında daha fazla bilgi için Ortak parametreler bölümüne bakın.

Response elements

Element

Type

Description

Example

object

IsLogging

boolean

Günlük kaydının etkin olup olmadığını gösterir. Geçerli değerler:\n\n- true: Etkin.\n- false: Devre dışı.

true

LatestDeliveryError

string

En son iz istisnasına ait günlük bilgileri.

write sls failed, exception: the parent of sub user must be project owner, itemscount: 1

LatestDeliveryLogServiceError

string

Simple Log Service'e teslim sırasında oluşan en son hataya ait hata mesajı.

write sls failed, exception: the parent of sub user must be project owner, itemscount: 1

LatestDeliveryLogServiceTime

string

İz olaylarının Simple Log Service'e teslim edildiği en son zaman. Bu zaman, UTC diliminde yyyy-MM-dd'T'HH:mm:ss'Z' formatında ISO 8601 standardına uygundur.

2021-02-26T09:19:44Z

LatestDeliveryTime

string

Olayların başarıyla teslim edildiği en son zaman. Bu zaman, UTC diliminde yyyy-MM-dd'T'HH:mm:ss'Z' formatında ISO 8601 standardına uygundur.

2021-02-26T09:19:44Z

OssBucketStatus

boolean

OSS bucket'ın kullanılabilir olup olmadığını gösterir. Geçerli değerler:\n\n- true: Kullanılabilir.\n- false: Kullanılabilir değil.

true

RequestId

string

İstek kimliği.

8067369B-B923-4D26-85BC-61BF33922505

SlsLogStoreStatus

boolean

SLS Logstore'un kullanılabilir olup olmadığını gösterir. Geçerli değerler:\n\n- true: Kullanılabilir.\n- false: Kullanılabilir değil.

true

StartLoggingTime

string

İz olaylarının günlüğe kaydedilmeye başlandığı en son zaman. Bu zaman, UTC diliminde yyyy-MM-dd'T'HH:mm:ss'Z' formatında ISO 8601 standardına uygundur.

2021-02-24T09:19:44Z

StopLoggingTime

string

İz olaylarının günlüğe kaydedilmesinin durdurulduğu en son zaman. Bu zaman, UTC diliminde yyyy-MM-dd'T'HH:mm:ss'Z' formatında ISO 8601 standardına uygundur.

2021-02-25T09:19:44Z

Examples

Success response

JSON format

{
  "IsLogging": true,
  "LatestDeliveryError": "write sls failed, exception: the parent of sub user must be project owner, itemscount: 1",
  "LatestDeliveryLogServiceError": "write sls failed, exception: the parent of sub user must be project owner, itemscount: 1",
  "LatestDeliveryLogServiceTime": "2021-02-26T09:19:44Z",
  "LatestDeliveryTime": "2021-02-26T09:19:44Z",
  "OssBucketStatus": true,
  "RequestId": "8067369B-B923-4D26-85BC-61BF33922505",
  "SlsLogStoreStatus": true,
  "StartLoggingTime": "2021-02-24T09:19:44Z",
  "StopLoggingTime": "2021-02-25T09:19:44Z"
}

Error codes

HTTP status code

Error code

Error message

Description

404 TrailNotFoundException The specified Trail does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.