Cancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. If the matrix is already final, this operation will have no effect.
May return any of the following canonical error codes:
PERMISSION_DENIED - if the user is not authorized to read project
INVALID_ARGUMENT - if the request is malformed
NOT_FOUND - if the Test Matrix does not exist
HTTP request
POST https://testing.googleapis.com/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-25 UTC."],[],[],null,["# Method: projects.testMatrices.cancel\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.CancelTestMatrixResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. If the matrix is already final, this operation will have no effect.\n\nMay return any of the following canonical error codes:\n\n- PERMISSION_DENIED - if the user is not authorized to read project\n- INVALID_ARGUMENT - if the request is malformed\n- NOT_FOUND - if the Test Matrix does not exist\n\n### HTTP request\n\n`POST https://testing.googleapis.com/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|---------------------------------------------|\n| `projectId` | `string` Cloud project that owns the test. |\n| `testMatrixId` | `string` Test matrix that will be canceled. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse containing the current state of the specified test matrix.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------|\n| ``` { \"testState\": enum (/docs/test-lab/reference/testing/rest/v1/projects.testMatrices#TestState) } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `testState` | `enum (`[TestState](/docs/test-lab/reference/testing/rest/v1/projects.testMatrices#TestState)`)` The current rolled-up state of the test matrix. If this state is already final, then the cancelation request will have no effect. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]