---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions:run"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions:run"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions:run

`POST /v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions:run`

## Request

- Base URL: `https://workloadmanager.googleapis.com`
- URL: `https://workloadmanager.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions:run`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Creates a new Execution in a given project and location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `evaluationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- RunEvaluationRequest: Request message for the RunEvaluation RPC.
  - `execution` Execution: Execution that represents a single run of an Evaluation.
    - `endTime` string, google-datetime: Output only. [Output only] End time stamp.
    - `engine` 'ENGINE_UNSPECIFIED' | 'ENGINE_SCANNER' | 'V2': Optional. Engine.
    - `evaluationId` string: Output only. [Output only] Evaluation ID.
    - `externalDataSources` ExternalDataSources[]: Optional. External data sources.
      - `assetType` string: Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.
      - `name` string: Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data.
      - `type` 'TYPE_UNSPECIFIED' | 'BIG_QUERY_TABLE': Required. Type of external data source.
      - `uri` string: Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID}.
    - `inventoryTime` string, google-datetime: Output only. [Output only] Inventory time stamp.
    - `labels` object: Labels as key value pairs.
    - `name` string: The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
    - `notices` Notice[]: Output only. Additional information generated by the execution.
      - `message` string: Output only. Message of the notice.
    - `resultSummary` Summary: Execution summary.
      - `failures` string, int64: Output only. Number of failures.
      - `newFailures` string, int64: Output only. Number of new failures compared to the previous execution.
      - `newFixes` string, int64: Output only. Number of new fixes compared to the previous execution.
    - `ruleResults` RuleExecutionResult[]: Output only. Execution result summary per rule.
      - `message` string: Execution message, if any.
      - `resultCount` string, int64: Number of violations.
      - `rule` string: Rule name as plain text like `sap-hana-configured`.
      - `scannedResourceCount` string, int64: Number of total scanned resources.
      - `state` 'STATE_UNSPECIFIED' | 'STATE_SUCCESS' | 'STATE_FAILURE' | 'STATE_SKIPPED': Output only. The execution status.
    - `runType` 'TYPE_UNSPECIFIED' | 'ONE_TIME' | 'SCHEDULED': Type which represents whether the execution executed directly by user or scheduled according to the `Evaluation.schedule` field.
    - `startTime` string, google-datetime: Output only. [Output only] Start time stamp.
    - `state` 'STATE_UNSPECIFIED' | 'RUNNING' | 'SUCCEEDED' | 'FAILED': Output only. [Output only] State.
  - `executionId` string: Required. ID of the execution which will be created.
  - `requestId` string: Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[API](https://skmtc.dev/google/apis/workloadmanager.md) - [All operations](https://skmtc.dev/google/apis/workloadmanager/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/workloadmanager/revisions/5d93d5206535?raw)
