# Evaluate data Evaluate policy against previously stored data, such as plans and state files. Endpoint: GET /iacm/api/orgs/{org}/projects/{project}/workspaces/{workspace}/data/{id}/evaluate-policy Version: 1.0 Security: x-api-key ## Query parameters: - `pipeline_execution_id` (string) Pipeline execution associated with this evaluation Example: "Eius molestiae fuga saepe omnis qui." - `policy_action` (string, required) Policy action used during OPA evaluation Example: "afterTerraformApply" ## Path parameters: - `org` (string, required) Org is the organisation identifier. Example: "56v" - `project` (string, required) Project is the project identifier. Example: "kmq" - `workspace` (string, required) Workspace is the resource workspace this variable is associated with. Example: "Alias eveniet." - `id` (string, required) The unique identifier for the data Example: "dc538c61-de48-4220-958c-5f3c4f983daa" ## Header parameters: - `Harness-Account` (string, required) Account is the internal customer account ID. Example: "vee" ## Response 200 fields (application/json): - `id` (string, required) The unique identifier for the data Example: "dc538c61-de48-4220-958c-5f3c4f983daa" - `policy_evaluation` (array) Individual policy evaluation details Example: [{"message":"Vitae consequatur beatae magnam quae quisquam et.","policy_id":"Occaecati facere vel ut.","policy_name":"Omnis inventore non harum.","policy_set_id":"Rerum laboriosam.","policy_set_name":"Et natus.","policy_status":"Voluptatem fugiat assumenda."},{"message":"Vitae consequatur beatae magnam quae quisquam et.","policy_id":"Occaecati facere vel ut.","policy_name":"Omnis inventore non harum.","policy_set_id":"Rerum laboriosam.","policy_set_name":"Et natus.","policy_status":"Voluptatem fugiat assumenda."},{"message":"Vitae consequatur beatae magnam quae quisquam et.","policy_id":"Occaecati facere vel ut.","policy_name":"Omnis inventore non harum.","policy_set_id":"Rerum laboriosam.","policy_set_name":"Et natus.","policy_status":"Voluptatem fugiat assumenda."}] - `policy_evaluation.message` (string, required) Example: "Ut suscipit ut labore est hic." - `policy_evaluation.policy_id` (string, required) Example: "Dignissimos temporibus vitae et." - `policy_evaluation.policy_name` (string, required) Example: "Eum non." - `policy_evaluation.policy_set_id` (string, required) Example: "Illum numquam impedit." - `policy_evaluation.policy_set_name` (string, required) Example: "Qui libero est quod." - `policy_evaluation.policy_status` (string, required) Example: "Eveniet eum ipsam qui illum dolores eius." - `policy_evaluation_message` (string) Pre-rendered message included when policy evaluation did not pass Example: "- instance type 'xlarge' is not permitted" - `policy_evaluation_status` (string) The overall status of policy evaluation (if it occurred) indicating whether it passed Enum: "error", "warning", "pass" ## Response 400 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 401 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 403 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 404 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 408 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 409 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 423 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 499 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 500 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 502 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? Example: true - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? Example: true - `timeout` (boolean, required) Is the error a timeout? Example: true