Stay organized with collections Save and categorize content based on your preferences.
Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code.
CautionThis resource is intended for use only by third-party partners who are creating
Cloud Marketplaceimages.
HTTP requestGET https://compute.googleapis.com/compute/v1/projects/{project}/global/licenseCodes/{licenseCode}
The URL uses gRPC Transcoding syntax.
Path parameters Parametersproject
string
Project ID for this request.
licenseCode
string
Number corresponding to the License code resource to return.
Request bodyThe request body must be empty.
Response bodyRepresents a License Code resource.
A License Code is a unique identifier used to represent a license resource.
CautionThis resource is intended for use only by third-party partners who are creating
Cloud Marketplaceimages.
If successful, the response body contains data with the following structure:
JSON representation{ "kind": string, "id": string, "name": string, "creationTimestamp": string, "description": string, "selfLink": string, "transferable": boolean, "state": enum, "licenseAlias": [ { "selfLink": string, "description": string } ] }Fields
kind
string
[Output Only] Type of resource. Always compute#licenseCode
for licenses.
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-20 characters long and must be a valid 64 bit integer.
creationTimestamp
string
[Output Only] Creation timestamp in RFC3339 text format.
description
string
[Output Only] Description of this License Code.
selfLink
string
[Output Only] Server-defined URL for the resource.
transferable
boolean
[Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred.
state
enum
[Output Only] Current state of this License Code.
licenseAlias[]
object
[Output Only] URL and description aliases of Licenses with the same License Code.
licenseAlias[].selfLink
string
[Output Only] URL of license corresponding to this License Code.
licenseAlias[].description
string
[Output Only] Description of this License Code.
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/compute
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM PermissionsIn addition to any permissions specified on the fields above, authorization requires one or more of the following IAM permissions:
compute.licenseCodes.get
To find predefined roles that contain those permissions, see Compute Engine IAM Roles.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4