Mengkueri detail pengaturan Pencerminan lalu lintas layanan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:DescribeServiceMirror |
get |
*Service
|
None | None |
Sintaks permintaan
GET /api/v2/services/{ClusterId}/{ServiceName}/mirror HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah tempat layanan diterapkan. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. Untuk informasi selengkapnya tentang cara mengkueri nama layanan, lihat ListServices. |
foo |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| ServiceName |
string |
The service name. |
foo |
| Target |
string |
The destination services to which you want to mirror traffic. |
foo2,foo3 |
| Ratio |
string |
The percentage of traffic that you want to mirror. Valid values: 0 to 100. |
50 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"ServiceName": "foo",
"Target": "foo2,foo3",
"Ratio": "50"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.