v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-131,0021,0174.3 MB
licenses

Create a License resource in the specified project. Caution This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.

post/projects/{project}/global/licenses

Path parameters

projectstring required

Project ID for this request.

Query parameters

requestIdstring

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Request body

multiTenantOnlyboolean

If true, this license can only be used on VMs on multi tenant nodes.

descriptionstring

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

licenseCodestring uint64

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

creationTimestampstring

Output only. [Output Only] Creation timestamp inRFC3339 text format.

removableFromDiskboolean

If true, this license can be removed from a disk's set of licenses, with no replacement license needed.

kindstring

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

namestring

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

updateTimestampstring

Output only. [Output Only] Last update timestamp inRFC3339 text format.

chargesUseFeeboolean

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

transferableboolean

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.

allowedReplacementLicensesstring[]

Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false.

soleTenantOnlyboolean

If true, this license can only be used on VMs on sole tenant nodes.

appendableToDiskboolean

If true, this license can be appended to an existing disk's set of licenses.

incompatibleLicensesstring[]

Specifies licenseCodes of licenses that are incompatible with this license. If a license is incompatible with this license, it cannot be attached to the same disk or image.

idstring uint64

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

selfLinkWithIdstring

Output only. [Output Only] Server-defined URL for this resource with the resource id.

osLicenseboolean

If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time.

selfLinkstring

Output only. [Output Only] Server-defined URL for the resource.

requiredCoattachedLicensesstring[]

Specifies the set of permissible coattached licenseCodes of licenses that satisfy the coattachment requirement of this license. At least one license from the set must be attached to the same disk or image as this license.

Response

Successful response