Evaluate Custom Rules
Use this endpoint to evaluate domain specific language (DSL) custom rules against its resources. Custom rules are the rules defined by DSL specifications.
Request Endpoint
https://<tenant-name>.goskope.com/api/v1/public_cloud/rule_evaluate
All parameters except resource_ids
are required:
Key | Value | Description |
---|---|---|
|
| The IaaS platform provider. |
| URL-encoded string | The rule definition written in DSL. |
| URL-encoded string | The list of resource IDs. There are these variations:
|
| URL-encoded string | AWS: Account name. Azure: AD application. GCP: Service account. |
Example Request and Response
POST 'https://<tenant-name>.goskope.com/api/v1/public_cloud/rule_evaluate?token=f39866cb86ab84a0208e&cloud_provider="aws"&rule_code="RDSInstance should have MultiAZ eq true"&instance="API Test Instance"&resource_ids=["mariadb-1","mariadb-2"]'
{
"status": "success",
"message": {
"mariadb-1": true, // true = resource passed the rule.
"mariadb-2": false // false = resource failed the rule.}}