[[["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-05-30 UTC."],[[["\u003cp\u003eThis webpage details the process of detaching a LUN (Logical Unit Number) from a Bare Metal Solution instance using a POST HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the instance name as a path parameter in the URL, and the LUN name and an optional \u003ccode\u003eskipReboot\u003c/code\u003e flag within the request body.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution of the detachment operation returns an \u003ccode\u003eOperation\u003c/code\u003e resource, which is described elsewhere.\u003c/p\u003e\n"],["\u003cp\u003eThe request needs to be authorized with the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL needs to follow the specific \u003ccode\u003egRPC Transcoding\u003c/code\u003e format, as specified in the documentation.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.instances.detachLun\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDetach LUN from Instance.\n\n### HTTP request\n\n`POST https://baremetalsolution.googleapis.com/v2/{instance=projects/*/locations/*/instances/*}:detachLun`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/bare-metal/docs/reference/rest/v2/projects.locations.operations#Operation).\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/)."]]