GET https://datamigration.googleapis.com/v1/{name}
Path parameters
Parameters
name
string
Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123
In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of MappingRule.
[[["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-28 UTC."],[[["\u003cp\u003eThis page details how to retrieve specific mapping rule details using a GET request to the Data Migration API.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a resource name, including an optional revision ID, as a path parameter in the URL to identify the specific mapping rule.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty for this operation.\u003c/p\u003e\n"],["\u003cp\u003eUpon a successful request, the response body will contain an instance of the specified \u003ccode\u003eMappingRule\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to use this operation requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.conversionWorkspaces.mappingRules.get\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- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nGets the details of a mapping rule.\n\n### HTTP request\n\n`GET https://datamigration.googleapis.com/v1/{name}`\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [MappingRule](/database-migration/docs/reference/rest/v1/projects.locations.conversionWorkspaces.mappingRules#MappingRule).\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/)."]]