Cancel a DeviceSession. This RPC changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.
HTTP request
POST https://devicestreaming.googleapis.com/v1/{name=projects/*/deviceSessions/*}:cancel
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["\u003cp\u003eThis page outlines the process for canceling a DeviceSession, which transitions it to a FINISHED state and terminates connections, while also noting that these sessions are retained until a 28-day deletion policy is applied.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to cancel a DeviceSession is a POST request to a specific URL pattern, utilizing gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003ename\u003c/code\u003e path parameter, which is a string representing the DeviceSession's identifier, such as "projects/{projectId}/deviceSessions/{session_id}".\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response is also an empty JSON object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this action requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]