Cloud Deployment Manager will reach end of support onDecember 31, 2025. If you currently use Deployment Manager, please migrate to Infrastructure Manager or an alternative deployment technology by December 31, 2025 to ensure your services continue without interruption.
Lists all resources in a given deployment.Try it now.
Request
HTTP request
GET https://www.googleapis.com/deploymentmanager/v2/projects/project/global/deployments/deployment/resources
Parameters
Parameter name
Value
Description
Path parameters
deployment
string
The name of the deployment for this request.
project
string
The project ID for this request.
Optional query parameters
filter
string
A filter expression that filters resources listed in
the response. The expression must specify the field name, a comparison
operator, and the value that you want to use for filtering. The value
must be a string, a number, or a boolean. The comparison operator
must be either=,!=,>, or<.
For example, if you are filtering Compute Engine instances, you can
exclude instances namedexample-instanceby specifyingname != example-instance.
You can also filter nested fields. For example, you could specifyscheduling.automaticRestart = falseto include instances only
if they are not scheduled for automatic restarts. You can use filtering
on nested fields to filter based onresource labels.
To filter on multiple expressions, provide each separate expression within
parentheses. For example,(scheduling.automaticRestart = true)
(cpuPlatform = "Intel Skylake").
By default, each expression is anANDexpression. However, you
can includeANDandORexpressions explicitly.
For example,(cpuPlatform = "Intel Skylake") OR
(cpuPlatform = "Intel Broadwell") AND
(scheduling.automaticRestart = true).
maxResults
unsigned integer
The maximum number of results per page that should be returned.
If the number of available results is larger thanmaxResults,
Compute Engine returns anextPageTokenthat can be used to get
the next page of results in subsequent list requests. Acceptable values are0to500, inclusive. (Default:500)
orderBy
string
Sorts list results by a certain order. By default, results
are returned in alphanumerical order based on the resource name.
You can also sort results in descending order based on the creation
timestamp usingorderBy="creationTimestamp desc". This sorts
results based on thecreationTimestampfield in
reverse chronological order (newest result first). Use this to sort
resources like operations so that the newest operation is returned first.
Currently, only sorting bynameorcreationTimestamp descis supported.
pageToken
string
Specifies a page token to use. SetpageTokento thenextPageTokenreturned by a previous list request to get
the next page of results.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-30 UTC."],[[["\u003cp\u003eThis endpoint lists all resources within a specified deployment using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required, and the request must include one of the listed scopes for access.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the \u003ccode\u003edeployment\u003c/code\u003e name and \u003ccode\u003eproject\u003c/code\u003e ID as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eOptional query parameters like \u003ccode\u003efilter\u003c/code\u003e, \u003ccode\u003emaxResults\u003c/code\u003e, \u003ccode\u003eorderBy\u003c/code\u003e, and \u003ccode\u003epageToken\u003c/code\u003e can be used to refine the results.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of \u003ccode\u003eresources\u003c/code\u003e and may include a \u003ccode\u003enextPageToken\u003c/code\u003e for paginated results.\u003c/p\u003e\n"]]],[],null,["# Resources: list\n\n**Requires [authorization](#auth)**\n\nLists all resources in a given deployment.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/deploymentmanager/v2/projects/project/global/deployments/deployment/resources\n```\n\n### Parameters\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes ([read more about authentication and authorization](/deployment-manager/latest/authorization)).\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"resources\": [\n resources Resource\n ],\n \"nextPageToken\": string\n}\n```\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/deploymentmanager/v2/deploymentmanager.resources.list)."]]