Mengkueri Log aliran.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeFlowlogs |
get |
*Flowlog
*Flowlog
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan nilai, tetapi Anda harus memastikan nilai tersebut unik di antara semua permintaan. Token hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak mengatur parameter ini, ClientToken diatur ke nilai RequestId. Nilai RequestId untuk setiap permintaan API mungkin berbeda. |
123e4567-e89b-12d3-a456-42665544**** |
| RegionId |
string |
No |
ID Wilayah tempat Log aliran di-deploy. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| FlowLogName |
string |
No |
Nama Log aliran. Nama bersifat opsional. Jika Anda memasukkan nama, panjangnya harus 1 hingga 128 karakter, dan tidak boleh diawali dengan http:// atau https://. |
myFlowlog |
| FlowLogId |
string |
No |
ID Log aliran. |
flowlog-m5evbtbpt**** |
| Description |
string |
No |
Deskripsi Log aliran. Deskripsi bersifat opsional. Jika Anda memasukkan deskripsi, panjangnya harus 1 hingga 256 karakter, dan tidak boleh diawali dengan http:// atau https://. |
myFlowlog |
| CenId |
string |
No |
ID Instans Cloud Enterprise Network (CEN). |
cen-7qthudw0ll6jmc**** |
| ProjectName |
string |
No |
Nama Proyek tempat Log aliran disimpan. Panjang nama harus 3 hingga 63 karakter, dan dapat berisi huruf kecil, angka, dan tanda hubung (-). Nama harus diawali atau diakhiri dengan huruf kecil atau angka. |
FlowLogProject |
| LogStoreName |
string |
No |
Nama penyimpanan log tempat Log aliran disimpan. Panjang nama harus 3 hingga 63 karakter, dan dapat berisi huruf kecil, angka, garis bawah (_), dan tanda hubung (-). Nama harus diawali atau diakhiri dengan huruf kecil atau angka. |
FlowLogStore |
| Status |
string |
No |
Status Log aliran. Nilai valid:
|
Active |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai minimum: 1. Nilai default: 20. |
20 |
| Tag |
array<object> |
No |
Informasi tentang tag. Anda dapat menentukan paling banyak 20 tag dalam setiap format pemanggilan. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with You can specify at most 20 tag keys. |
TagKey |
| Value |
string |
No |
The tag value. The tag value can be 0 to 128 characters in length, and cannot start with Each tag key must have a unique tag value. You can specify at most 20 tag values in each call. |
TagValue |
| TransitRouterAttachmentId |
string |
No |
ID koneksi instans jaringan. |
tr-attach-qieks13jnt1cchy**** |
| TransitRouterId |
string |
No |
ID Router transit. |
tr-uf654ttymmljlvh2x**** |
| Interval |
integer |
No |
Jendela pengatur waktu untuk mengumpulkan data log. Unit: detik Nilai valid: 60 atau 600 Nilai default: 600. |
600 |
| FlowLogVersion |
string |
No |
Versi Log aliran. Log aliran secara otomatis dibuat dalam versi terbaru, yaitu 3. |
3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| PageSize |
string |
The number of entries returned per page. |
20 |
| PageNumber |
string |
The page number of the returned page. |
1 |
| RequestId |
string |
The ID of the request. |
F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1 |
| TotalCount |
string |
The total number of entries returned. |
1 |
| Success |
string |
Indicates whether the call is successful. Valid values:
|
true |
| FlowLogs |
object |
||
| FlowLog |
array<object> |
The information about the flow log. |
|
|
array<object> |
The information about the flow log. |
||
| Status |
string |
The status of the flow log. Valid values:
|
Active |
| CreationTime |
string |
The time when the flow log was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC. |
2021-07-24T13:00:52Z |
| FlowLogName |
string |
The name of the flow log. |
myFlowlog |
| Description |
string |
The description of the flow log. |
myFlowlog |
| ProjectName |
string |
The name of the project that stores the captured traffic data. |
FlowLogProject |
| CenId |
string |
The ID of the Cloud Enterprise Network (CEN) instance. |
cen-7qthudw0ll6jmc**** |
| LogStoreName |
string |
The Logstore that stores the captured traffic data. |
FlowLogStore |
| RegionId |
string |
The region ID of the flow log. |
cn-hangzhou |
| FlowLogId |
string |
The ID of the flow log. |
flowlog-m5evbtbpt**** |
| TransitRouterAttachmentId |
string |
The ID of the network instance connection |
tr-attach-5x4o4ynzuqbv6g**** |
| TransitRouterId |
string |
The ID of the transit router. |
tr-bp1g9313sx675zr1lajmj |
| LogFormatString |
string |
The string that defines the format of the flow log. Format:
|
${srcaddr}${dstaddr}${bytes} |
| FlowLogVersion |
string |
The flow log version. Flow logs are automatically created in the latest version, which is 3. |
3 |
| Interval |
integer |
The time window for collecting log data. Unit: seconds. Valid values: 60 or 600 Default value: 600. |
60 |
| Tags |
object |
||
| Tag |
array<object> |
The tags. |
|
|
object |
Tag N to add to the instance. |
||
| Key |
string |
The tag key. |
TagKey |
| Value |
string |
The tag value. |
TagValue |
Contoh
Respons sukses
JSONformat
{
"PageSize": "20",
"PageNumber": "1",
"RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1",
"TotalCount": "1",
"Success": "true",
"FlowLogs": {
"FlowLog": [
{
"Status": "Active",
"CreationTime": "2021-07-24T13:00:52Z",
"FlowLogName": "myFlowlog",
"Description": "myFlowlog",
"ProjectName": "FlowLogProject",
"CenId": "cen-7qthudw0ll6jmc****",
"LogStoreName": "FlowLogStore",
"RegionId": "cn-hangzhou",
"FlowLogId": "flowlog-m5evbtbpt****",
"TransitRouterAttachmentId": "tr-attach-5x4o4ynzuqbv6g****",
"TransitRouterId": "tr-bp1g9313sx675zr1lajmj",
"LogFormatString": "${srcaddr}${dstaddr}${bytes}",
"FlowLogVersion": "3",
"Interval": 60,
"Tags": {
"Tag": [
{
"Key": "TagKey",
"Value": "TagValue"
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationUnsupported.action | This action is not support. | The error message returned because this operation is not supported in the specified region. |
| 400 | InvalidFlowlogId.NotFound | The specified flowlog id does not exist or does not match the cen Id. | The error message returned because the specified flow log does not exist. |
| 400 | IllegalParam.TagValue | The tag values are not valid. | The error message returned because the specified tag value is invalid. |
| 400 | IllegalParam.TagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
| 400 | InvalidDescription | Description is invalid. | The error message returned because the description is invalid. |
| 400 | InvalidName | Name is invalid. | The error message returned because the specified name is invalid. |
| 400 | InvalidParameter.Interval | Interval is invalid. | The specified interval is invalid. |
| 400 | InvalidParameter.FlowLogVersion | Flowlog version is invalid. | The specified flowlog version is invalid. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.