Mengaktifkan fitur Pengirim Log pada Log Service untuk kelompok sumber daya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:CreateResourceLog |
create |
*Resource
|
None | None |
Sintaks permintaan
POST /api/v2/resources/{ClusterId}/{ResourceId}/log HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah tempat kelompok sumber daya berada. |
cn-shanghai |
| ResourceId |
string |
Yes |
ID kelompok sumber daya. Untuk informasi selengkapnya tentang cara mengkueri ID kelompok sumber daya, lihat ListResources. |
eas-r-asdasdasd**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| ProjectName |
string |
Yes |
The Log Service project that is associated with the resource group. For more information about how to query the project, see ListProject. |
eas-r-asdasdasd-sls |
| LogStore |
string |
Yes |
The Logstore of Log Service. For more information about how to query a Logstore, see ListLogStores. |
access_log |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Resource [eas-r-asdasdasd****] is deleted. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"Message": "Resource [eas-r-asdasdasd****] is deleted."
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.