Method: licenses.get

Returns the specified License resource.

HTTP request

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

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
project

string

Project ID for this request.

resourceId

string

Name of the License resource to return.

Request body

The request body must be empty.

Response body

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

JSON representation
{
  "resource": {
    "name": string,
    "chargesUseFee": boolean,
    "selfLink": string,
    "kind": string
  },
}
Fields
resource

object

resource.name

string

[Output Only] Name of the resource. The name is 1-63 characters long and complies with RFC1035.

resource.chargesUseFee

boolean

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

resource.selfLink

string

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

resource.kind

string

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

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/compute
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Auth Guide.

IAM Permissions

In addition to any permissions specified on the fields above, authorization requires one or more of the following Google IAM permissions:

  • compute.licenses.get

Send feedback about...

Compute Engine