# 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: "Rerum blanditiis fugit veniam impedit temporibus." - `policy_action` (string, required) Policy action used during OPA evaluation Example: "afterTerraformApply" ## Path parameters: - `org` (string, required) Org is the organisation identifier. Example: "e0y" - `project` (string, required) Project is the project identifier. Example: "5bn" - `workspace` (string, required) Workspace is the resource workspace this variable is associated with. Example: "Consectetur nulla tempora perferendis dignissimos explicabo." - `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: "1" ## 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":"Sint asperiores qui id.","policy_id":"Facere maxime amet.","policy_name":"Dolores quo quasi.","policy_set_id":"Dolorem aut animi.","policy_set_name":"Ad quae dicta dolores.","policy_status":"Quaerat aut amet."},{"message":"Sint asperiores qui id.","policy_id":"Facere maxime amet.","policy_name":"Dolores quo quasi.","policy_set_id":"Dolorem aut animi.","policy_set_name":"Ad quae dicta dolores.","policy_status":"Quaerat aut amet."},{"message":"Sint asperiores qui id.","policy_id":"Facere maxime amet.","policy_name":"Dolores quo quasi.","policy_set_id":"Dolorem aut animi.","policy_set_name":"Ad quae dicta dolores.","policy_status":"Quaerat aut amet."}] - `policy_evaluation.message` (string, required) Example: "Laboriosam veniam." - `policy_evaluation.policy_id` (string, required) Example: "Ducimus perferendis repellat pariatur cupiditate." - `policy_evaluation.policy_name` (string, required) Example: "Odio perspiciatis aspernatur tempora tenetur quas suscipit." - `policy_evaluation.policy_set_id` (string, required) Example: "Vitae dolor quaerat illo minus." - `policy_evaluation.policy_set_name` (string, required) Example: "Et veniam blanditiis voluptates." - `policy_evaluation.policy_status` (string, required) Example: "Omnis dolores quasi repudiandae voluptas." - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `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? - `timeout` (boolean, required) Is the error a timeout? Example: true