LicenseCode
Represents a License Code resource. A License Code is a unique identifier used to represent alicense resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.
Properties
| Name | Type | Description |
|---|---|---|
| allowedReplacementLicenses | array | Specifies licenseCodes of licenses that can replace this license. Note: such replacements are allowed even if removable_from_disk is false. |
| incompatibleLicenses | array | 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. |
| osLicense | boolean | If true, indicates this is an OS license. Only one OS license can be attached to a disk or image at a time. |
| name | string | Output only. [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. [Output Only] Creation timestamp inRFC3339 text format. |
| state | string | Output only. [Output Only] Current state of this License Code. |
| selfLink | string | Output only. [Output Only] Server-defined URL for the resource. |
| soleTenantOnly | boolean | If true, this license can only be used on VMs on sole tenant nodes. |
| multiTenantOnly | boolean | If true, this license can only be used on VMs on multi tenant nodes. |
| appendableToDisk | boolean | If true, this license can be appended to an existing disk's set of licenses. |
| minimumRetention | object | If set, this license will be unable to be removed or replaced once attached to a disk until the minimum_retention period has passed. |
| id | string | Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
| requiredCoattachedLicenses | array | 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 i |
| removableFromDisk | boolean | If true, this license can be removed from a disk's set of licenses, with no replacement license needed. |
| kind | string | Output only. [Output Only] Type of resource. Always compute#licenseCode for licenses. |
| transferable | boolean | Output only. [Output Only] If true, the license will remain attached when creating images or snapshots from disks. Otherwise, the license is not transferred. |
| description | string | Output only. [Output Only] Description of this License Code. |
| updateTimestamp | string | Output only. [Output Only] Last update timestamp inRFC3339 text format. |
| licenseAlias | array | [Output Only] URL and description aliases of Licenses with the same License Code. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-license-code-schema.json",
"title": "LicenseCode",
"description": "Represents a License Code resource.\n\nA License Code is a unique identifier used to represent alicense\nresource.\n *Caution* This resource is intended for\nuse only by third-party partners who are creatingCloud Marketplace\nimages.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-cloud-compute-engine-license-codes-api-openapi.yml#/components/schemas/LicenseCode",
"properties": {
"allowedReplacementLicenses": {
"description": "Specifies licenseCodes of licenses that can replace this license. Note:\nsuch replacements are allowed even if removable_from_disk is false.",
"type": "array",
"items": {
"type": "string"
}
},
"incompatibleLicenses": {
"description": "Specifies licenseCodes of licenses that are incompatible with this license.\nIf a license is incompatible with this license, it cannot be attached to\nthe same disk or image.",
"items": {
"type": "string"
},
"type": "array"
},
"osLicense": {
"description": "If true, indicates this is an OS license. Only one OS license can be\nattached to a disk or image at a time.",
"type": "boolean"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Output only. [Output Only] Name of the resource. The name is 1-20 characters long and\nmust be a valid 64 bit integer.",
"pattern": "[0-9]{0,20}?"
},
"creationTimestamp": {
"type": "string",
"description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
"readOnly": true
},
"state": {
"readOnly": true,
"description": "Output only. [Output Only] Current state of this License Code.",
"type": "string",
"enum": [
"DISABLED",
"ENABLED",
"RESTRICTED",
"STATE_UNSPECIFIED",
"TERMINATED"
]
},
"selfLink": {
"type": "string",
"readOnly": true,
"description": "Output only. [Output Only] Server-defined URL for the resource."
},
"soleTenantOnly": {
"description": "If true, this license can only be used on VMs on sole tenant nodes.",
"type": "boolean"
},
"multiTenantOnly": {
"description": "If true, this license can only be used on VMs on multi tenant nodes.",
"type": "boolean"
},
"appendableToDisk": {
"description": "If true, this license can be appended to an existing disk's set of\nlicenses.",
"type": "boolean"
},
"minimumRetention": {
"$ref": "#/$defs/Duration",
"description": "If set, this license will be unable to be removed or replaced once attached\nto a disk until the minimum_retention period has passed."
},
"id": {
"readOnly": true,
"description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
"format": "uint64",
"type": "string"
},
"requiredCoattachedLicenses": {
"items": {
"type": "string"
},
"type": "array",
"description": "Specifies the set of permissible coattached licenseCodes of licenses that\nsatisfy the coattachment requirement of this license. At least one license\nfrom the set must be attached to the same disk or image as this license."
},
"removableFromDisk": {
"type": "boolean",
"description": "If true, this license can be removed from a disk's set of licenses, with no\nreplacement license needed."
},
"kind": {
"type": "string",
"description": "Output only. [Output Only] Type of resource. Always compute#licenseCode for\nlicenses.",
"readOnly": true,
"default": "compute#licenseCode"
},
"transferable": {
"readOnly": true,
"type": "boolean",
"description": "Output only. [Output Only] If true, the license will remain attached when creating\nimages or snapshots from disks. Otherwise, the license is not transferred."
},
"description": {
"type": "string",
"readOnly": true,
"description": "Output only. [Output Only] Description of this License Code."
},
"updateTimestamp": {
"readOnly": true,
"type": "string",
"description": "Output only. [Output Only] Last update timestamp inRFC3339\ntext format."
},
"licenseAlias": {
"type": "array",
"description": "[Output Only] URL and description aliases of Licenses with the same\nLicense Code.",
"items": {
"$ref": "#/$defs/LicenseCodeLicenseAlias"
}
}
},
"type": "object",
"$defs": {
"Duration": {
"type": "object",
"description": "A Duration represents a fixed-length span of time represented\nas a count of seconds and fractions of seconds at nanosecond\nresolution. It is independent of any calendar and concepts like \"day\"\nor \"month\". Range is approximately 10,000 years.",
"properties": {
"seconds": {
"description": "Span of time at a resolution of a second. Must be from 0\nto 315,576,000,000 inclusive. Note: these bounds are computed from:\n60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years",
"type": "string",
"format": "int64"
},
"nanos": {
"format": "int32",
"type": "integer",
"description": "Span of time that's a fraction of a second at nanosecond resolution.\nDurations less than one second are represented with a 0\n`seconds` field and a positive `nanos` field. Must be from 0\nto 999,999,999 inclusive."
}
}
},
"LicenseCodeLicenseAlias": {
"properties": {
"description": {
"readOnly": true,
"type": "string",
"description": "Output only. [Output Only] Description of this License Code."
},
"selfLink": {
"readOnly": true,
"type": "string",
"description": "Output only. [Output Only] URL of license corresponding to this License Code."
}
},
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/google-cloud-compute-engine-license-code"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.