Memperbarui konfigurasi sebuah trail.
Deskripsi operasi
This topic shows you how to change the destination Object Storage Service (OSS) bucket of a sample trail named trail-test to audit-log.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
actiontrail:UpdateTrail |
update |
*Trail
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama trail yang konfigurasinya ingin Anda perbarui. Nama harus terdiri dari 6 hingga 36 karakter dan dapat berisi huruf kecil, digit, tanda hubung (-), dan garis bawah (_). Nama harus dimulai dengan huruf kecil. Catatan
Nama harus unik di dalam akun Alibaba Cloud. |
trail-test |
| OssBucketName |
string |
No |
Nama Bucket Object Storage Service (OSS) tempat Anda ingin mengirimkan event. Nama harus terdiri dari 3 hingga 63 karakter. Nama harus dimulai dengan huruf kecil atau digit dan dapat berisi huruf kecil, digit, dan tanda hubung (-). Catatan
Pastikan bucket sudah ada sebelum Anda memperbarui konfigurasi trail. |
audit-log |
| OssKeyPrefix |
string |
No |
Awalan file yang disimpan di Bucket OSS. Awalan harus terdiri dari 6 hingga 32 karakter. Awalan harus dimulai dengan huruf dan dapat berisi huruf, digit, tanda hubung (-), garis miring (/), dan garis bawah (_). |
at-product-account-audit-B |
| OssWriteRoleArn |
string |
No |
Nama Sumber Daya Alibaba Cloud (ARN) dari Peran RAM yang diasumsikan oleh ActionTrail untuk mengirimkan event ke Bucket OSS.
|
acs:ram::151266687691****:role/aliyunserviceroleforactiontrail |
| SlsProjectArn |
string |
No |
Nama Sumber Daya Alibaba Cloud (ARN) dari Proyek Log Service tempat Anda ingin mengirimkan event. |
acs:log:cn-shanghai:151266687691****:project/test-project |
| SlsWriteRoleArn |
string |
No |
Nama Sumber Daya Alibaba Cloud (ARN) dari Peran RAM yang diasumsikan oleh ActionTrail untuk mengirimkan event ke Proyek Log Service.
|
acs:ram::151266687691****:role/aliyunserviceroleforactiontrail |
| EventRW |
string |
No |
Tipe baca/tulis event yang akan dikirimkan. Nilai valid:
|
All |
| TrailRegion |
string |
No |
Wilayah trail.
Anda juga dapat menentukan wilayah tertentu. Anda dapat memanggil operasi DescribeRegions untuk mengkueri semua wilayah yang didukung. |
All |
| MaxComputeProjectArn |
string |
No |
Nama Sumber Daya Alibaba Cloud (ARN) dari Proyek MaxCompute tempat Anda ingin mengirimkan event. Catatan
Nama Proyek MaxCompute harus diawali dengan awalan actiontrail_. |
acs:odps:cn-hangzhou:、151277687691****:project/actiontrail_**** |
| MaxComputeWriteRoleArn |
string |
No |
Nama Sumber Daya Alibaba Cloud (ARN) dari Peran RAM yang diasumsikan oleh ActionTrail untuk mengirimkan event ke Proyek MaxCompute.
|
acs:ram::151277687691****:role/aliyunserviceroleforactiontrail |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| EventRW |
string |
The read/write type of the events to be delivered. |
Write |
| HomeRegion |
string |
The home region of the trail. |
cn-hangzhou |
| MaxComputeProjectArn |
string |
The ARN of the MaxCompute project to which events are delivered. |
acs:odps:cn-hangzhou:151266687691****:project/actiontrail_**** |
| MaxComputeWriteRoleArn |
string |
The ARN of the RAM role that is assumed by ActionTrail to deliver events to the MaxCompute project. |
acs:ram::151266687691****:role/aliyunserviceroleforactiontrail |
| Name |
string |
The name of the trail. |
trail-test |
| OssBucketName |
string |
The name of the OSS bucket. |
audit-log |
| OssKeyPrefix |
string |
The prefix of the log files to be stored in the destination OSS bucket. |
at-product-account-audit-B |
| OssWriteRoleArn |
string |
The ARN of the RAM role that is assumed by ActionTrail to deliver events to the OSS bucket. |
acs:ram::151266687691****:role/aliyunserviceroleforactiontrail |
| RequestId |
string |
The ID of the request. |
2599A180-5236-44D8-9490-50B6F4F8BA35 |
| SlsProjectArn |
string |
The ARN of the Log Service project to which events are to be delivered. |
acs:log:cn-hangzhou:151266687691****:project/test-project |
| SlsWriteRoleArn |
string |
The ARN of the RAM role that is assumed by ActionTrail to deliver events to the Log Service project. |
acs:ram::151266687691****:role/aliyunserviceroleforactiontrail |
| TrailRegion |
string |
The one or more regions from which the trail delivers events. |
All |
Contoh
Respons sukses
JSONformat
{
"EventRW": "Write",
"HomeRegion": "cn-hangzhou",
"MaxComputeProjectArn": "acs:odps:cn-hangzhou:151266687691****:project/actiontrail_****",
"MaxComputeWriteRoleArn": "acs:ram::151266687691****:role/aliyunserviceroleforactiontrail",
"Name": "trail-test",
"OssBucketName": "audit-log",
"OssKeyPrefix": "at-product-account-audit-B",
"OssWriteRoleArn": "acs:ram::151266687691****:role/aliyunserviceroleforactiontrail",
"RequestId": "2599A180-5236-44D8-9490-50B6F4F8BA35",
"SlsProjectArn": "acs:log:cn-hangzhou:151266687691****:project/test-project",
"SlsWriteRoleArn": "acs:ram::151266687691****:role/aliyunserviceroleforactiontrail",
"TrailRegion": "All"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RepeatOssBucket | The specified OSS bucket is already in use. We recommend that you modify the existing Trail or specify another bucket. | |
| 400 | SlsProjectDoesNotExistException | The specified Log Service project does not exist. | |
| 400 | IncompleteSignature | The request signature does not conform to Alibaba Cloud standards. | |
| 400 | InvalidDeliveryConfigurationException | You must specify at least one Log Service project or OSS bucket for a Trail. | |
| 400 | InvalidPrefixException | The specified OSS bucket prefix is invalid. | |
| 403 | InsufficientBucketPolicyException | Access to the specified OSS bucket was denied. | |
| 403 | InsufficientSlsPolicyException | Access to the specified Log Service project was denied. | |
| 404 | TrailNotFoundException | The specified Trail does not exist. | |
| 404 | BucketDoesNotExistException | The specified OSS bucket does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.