[[["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 a License Code resource using an HTTP GET request, which is a unique identifier representing a license.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL uses gRPC Transcoding syntax and requires two path parameters: \u003ccode\u003eproject\u003c/code\u003e (the project ID) and \u003ccode\u003elicenseCode\u003c/code\u003e (the unique identifier for the license).\u003c/p\u003e\n"],["\u003cp\u003eThe response body, upon successful retrieval, will include detailed information about the License Code such as its kind, ID, name, creation timestamp, description, self-link, transferability status, state, and license aliases.\u003c/p\u003e\n"],["\u003cp\u003eRetrieving a License Code requires specific OAuth scopes or IAM permissions, including at least \u003ccode\u003ecompute.licenseCodes.get\u003c/code\u003e, and this resource is specifically for third-party partners creating Cloud Marketplace images.\u003c/p\u003e\n"]]],[],null,["# Method: licenseCodes.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 - [JSON representation](#body.LicenseCode.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nReturn a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. \n**Caution** This resource is intended for use only by third-party partners who are creating [Cloud Marketplace](https://cloud.google.com/marketplace) images.\n\n\u003cbr /\u003e\n\n### HTTP request\n\n`GET https://compute.googleapis.com/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nRepresents a License Code resource.\n\nA License Code is a unique identifier used to represent a [license](/compute/docs/reference/rest/beta/licenses) resource. \n**Caution** This resource is intended for use only by third-party partners who are creating [Cloud Marketplace](https://cloud.google.com/marketplace) images.\n\n\u003cbr /\u003e\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/compute.readonly`\n- `\n https://www.googleapis.com/auth/compute`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nIn addition to any permissions specified on the fields above, authorization requires one or more of the following [IAM](https://cloud.google.com/iam/docs/) permissions:\n\n- `compute.licenseCodes.get`\n\nTo find predefined roles that contain those permissions, see [Compute Engine IAM Roles](/compute/docs/access/iam)."]]