REST Resource: licenses

Resource: License

Represents a License resource.

A License represents billing and aggregate usage data for public and marketplace images.

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

JSON representation
{
  "name": string,
  "chargesUseFee": boolean,
  "id": string,
  "licenseCode": string,
  "creationTimestamp": string,
  "description": string,
  "transferable": boolean,
  "selfLink": string,
  "resourceRequirements": {
    "minGuestCpuCount": integer,
    "minMemoryMb": integer
  },
  "kind": string
}
Fields
name

string

Name of the resource. The name must be 1-63 characters long and comply with RFC1035.

chargesUseFee

boolean

[Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

id

string (fixed64 format)

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

licenseCode

string (fixed64 format)

[Output Only] The unique code used to attach this license to images, snapshots, and disks.

creationTimestamp

string

[Output Only] Creation timestamp in RFC3339 text format.

description

string

An optional textual description of the resource; provided by the client when the resource is created.

transferable

boolean

If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.

resourceRequirements

object

resourceRequirements.minGuestCpuCount

integer

Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.

resourceRequirements.minMemoryMb

integer

Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

kind

string

[Output Only] Type of resource. Always compute#license for licenses.

Methods

delete

Deletes the specified license.

get

Returns the specified License resource.

getIamPolicy

Gets the access control policy for a resource.

insert

Create a License resource in the specified project.

list

Retrieves the list of licenses available in the specified project.

setIamPolicy

Sets the access control policy on the specified resource.

testIamPermissions

Returns permissions that a caller has on the specified resource.