Method: licenseCodes.get

Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code.

Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.

HTTP request

GET https://compute.googleapis.com/compute/v1/projects/{project}/global/licenseCodes/{resourceId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

resourceId

string

Number corresponding to the License code resource to return.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Represents a License Code resource.

A License Code is a unique identifier used to represent a license resource.

Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.

JSON representation
{
  "id": string,
  "name": string,
  "creationTimestamp": string,
  "description": string,
  "selfLink": string,
  "transferable": boolean,
  "state": enum,
  "licenseAlias": [
    {
      "selfLink": string,
      "description": string
    }
  ],
  "kind": string
}
Fields
id

string (uint64 format)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

name

string

[Output Only] Name of the resource. The name is 1-2