Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



DiskTypes: aggregatedList

Requires authorization

Retrieves the list of disk type resources grouped by scope. Try it now .

Request

HTTP request

GET https://www.googleapis.com/compute/v1/projects/project/aggregated/diskTypes

Parameters

Parameter name Value Description
Path parameters
project string Name of the project scoping this request.
Optional query parameters
filter string Optional. Filter expression for filtering listed resources.
maxResults unsigned integer Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500. Acceptable values are 0 to 500 , inclusive. (Default: 500 )
pageToken string Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

Authorization

This request requires authorization with at least one of the following scopes ( read more about authentication and authorization ).

Scope
https://www.googleapis.com/auth/compute.readonly
https://www.googleapis.com/auth/compute

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "compute#diskTypeAggregatedList",
  "selfLink": string,
  "id": string,
  "items": {
    (key): {
      "diskTypes": [
        diskTypes Resource
      ],
      "warning": {
        "code": string,
        "message": string,
        "data": [
          {
            "key": string,
            "value": string
          }
        ]
      }
    }
  },
  "nextPageToken": string
}
Property name Value Description Notes
kind string Type of resource.
id string Unique identifier for the resource; defined by the server (output only).
items object A map of scoped disk type lists.
items. (key) nested object Name of the scope containing this set of disk types.
items.(key). diskTypes[] list List of disk types contained in this scope.
items.(key). warning object Informational warning which replaces the list of disk types when the list is empty.
items.(key).warning. code string The warning type identifier for this warning.

Acceptable values are:
  • " DEPRECATED_RESOURCE_USED ": Indicates that you are using a deprecated resource and should transition to using a more current resource.
  • " DISK_SIZE_LARGER_THAN_IMAGE_SIZE ": Indicates that the disk you are creating is larger than the size of the image and you might need to repartition the disk to use the additional space.
  • " INJECTED_KERNELS_DEPRECATED ": Indicates that specifying a separate Kernel resource is deprecated. You should transition to using images that contain kernel binaries.
  • " NEXT_HOP_ADDRESS_NOT_ASSIGNED ": You did not specify a next hop address for your route.
  • " NEXT_HOP_CANNOT_IP_FORWARD ": In order for your route to work correctly, your source and destination virtual machine instances must have canIpForward enabled. See the documentation for more information.
  • " NEXT_HOP_INSTANCE_NOT_FOUND ": The next hop instance you specified was not found. Please double check that the instance exists and that you have specified it correctly.
  • " NEXT_HOP_INSTANCE_NOT_ON_NETWORK ": The next hop instance you specified was not found on the same network as your route object. Please make sure the instance is part of the same network as your route object.
  • " NEXT_HOP_NOT_RUNNING ": The next hop instance you specified is not currently running. Please restart or create the instnce.
  • " NO_RESULTS_ON_PAGE ": There were no results for your request.
  • " REQUIRED_TOS_AGREEMENT ": You must first agree to the terms of service agreement before you can use this service.
  • " RESOURCE_NOT_DELETED ": Your resource couldn't be deleted. It is possible that another resource is currently using this resource.
  • " UNREACHABLE ": The Compute Engine service is currently unreachable.
items.(key).warning. message string Optional human-readable details for this warning.
items.(key).warning. data[] list Metadata for this warning in 'key: value' format.
items.(key).warning.data[]. key string A key for the warning data.
items.(key).warning.data[]. value string A warning data value corresponding to the key.
nextPageToken string A token used to continue a truncated list request (output only).

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.