Mengirimkan hasil evaluasi suatu aturan dari Function Compute.
Deskripsi operasi
Untuk informasi selengkapnya mengenai definisi, skenario penggunaan, dan eksekusi aturan fungsi kustom, lihat Definition and execution of custom function rules.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:PutEvaluations |
none |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Evaluations |
string |
No |
Hasil evaluasi. |
[{"accountId":120886317861****,"annotation":"The flow log is not enabled.","complianceResourceId":"flowlog-o6wdfo1yvgo4i8****","complianceResourceType":"ACS::CEN::Flowlog","complianceRegionId":"cn-shanghai","complianceType":"NON_COMPLIANT","orderingTimestamp":1588907220408}] |
| DeleteMode |
boolean |
No |
Menentukan apakah mode hapus diaktifkan. Nilai yang valid:
Catatan
Parameter ini hanya berlaku ketika Anda memicu aturan kustom secara manual atau secara berkala untuk mengevaluasi resource. Jika Anda mengaktifkan mode hapus, hasil evaluasi yang tidak diperbarui selama evaluasi saat ini akan dihapus secara otomatis. |
false |
| ResultToken |
string |
Yes |
Token callback. Saat Cloud Config memicu aturan kustom untuk mengevaluasi resource, informasi token dikirim ke Function Compute sebagai parameter input. Token ini harus ditentukan saat Anda mengirimkan hasil evaluasi. |
=lAUbfkWp7GL9AFoQEIStinqBMc4FC8sHvip/1F1npkWUDNS2GEm6xwL6Zl/fSr0bbkWY+aiCLjTJxnp4H/yp/8p/Q8VCAtqG5uhRii4sfnYRnTPnE**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
EDB324E2-A202-5FE4-A9BC-31E2C34F78A4 |
| Result |
boolean |
Menunjukkan apakah hasil evaluasi aturan kustom telah dikirimkan. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EDB324E2-A202-5FE4-A9BC-31E2C34F78A4",
"Result": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.