[[["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 how to rename a Bare Metal Solution instance using the \u003ccode\u003einstances.rename\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using a \u003ccode\u003ePOST\u003c/code\u003e HTTP request to a specific URL, which includes the instance's identifier in the \u003ccode\u003ename\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a JSON object with a \u003ccode\u003enewName\u003c/code\u003e field that specifies the desired new name for the instance, in the required format.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return an instance of \u003ccode\u003eInstance\u003c/code\u003e, which represents the updated instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.instances.rename\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\ninstances.rename sets a new name for an instance.\n\n### HTTP request\n\n`POST https://baremetalsolution.googleapis.com/v2/{name=projects/*/locations/*/instances/*}:rename`\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 [Instance](/bare-metal/docs/reference/rest/v2/projects.locations.instances#Instance).\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/)."]]