deploymentmanager.resources.list

GET {{baseUrl}}/:project/global/deployments/:deployment/resources?filter=<string>&maxResults=<integer>&orderBy=<string>&pageToken=<string>&alt=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&userIp=<string>

Lists all resources in a given deployment.

Request Params

KeyDatatypeRequiredDescription
filterstringA 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 =, !=, &gt;, or &lt;.

For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.

You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.

To filter on multiple expressions, provide each separate expression within parentheses. For example: (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example: (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) | | maxResults | string | | The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, 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 using orderBy=&quot;creationTimestamp desc&quot;. This sorts results based on the creationTimestamp field 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 by name or creationTimestamp desc is supported. | | pageToken | string | | Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. | | alt | string | | Data format for the response. | | fields | string | | Selector specifying which fields to include in a partial response. | | key | string | | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | | oauth_token | string | | OAuth 2.0 token for the current user. | | prettyPrint | string | | Returns response with indentations and line breaks. | | quotaUser | string | | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | | userIp | string | | Deprecated. Please use quotaUser instead. |

RESPONSES

status: OK

{&quot;nextPageToken&quot;:&quot;ut&quot;,&quot;resources&quot;:[{&quot;accessControl&quot;:{&quot;gcpIamPolicy&quot;:&quot;minim in cillum ex&quot;},&quot;finalProperties&quot;:&quot;Duis mollit&quot;,&quot;id&quot;:&quot;sit eu ex labore&quot;,&quot;insertTime&quot;:&quot;dolore&quot;,&quot;manifest&quot;:&quot;non nisi&quot;,&quot;name&quot;:&quot;nulla esse anim cillum id&quot;,&quot;properties&quot;:&quot;commodo sunt id&quot;,&quot;type&quot;:&quot;labore&quot;,&quot;update&quot;:{&quot;accessControl&quot;:{&quot;gcpIamPolicy&quot;:&quot;in ven&quot;},&quot;error&quot;:{&quot;errors&quot;:[{&quot;code&quot;:&quot;tempor quis&quot;,&quot;location&quot;:&quot;irure nisi cillum&quot;,&quot;message&quot;:&quot;nulla dolor et in&quot;},{&quot;code&quot;:&quot;nulla Excepteur minim&quot;,&quot;location&quot;:&quot;voluptate dolor&quot;,&quot;message&quot;:&quot;cillum Lorem pari&quot;}]},&quot;finalProperties&quot;:&quot;voluptate do ipsum officia&quot;,&quot;intent&quot;:&quot;laborum sit commodo nostrud&quot;,&quot;manifest&quot;:&quot;sunt cillum consequat&quot;,&quot;properties&quot;:&quot;do commodo&quot;,&quot;state&quot;:&quot;do quis&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;anim non cupidatat&quot;,&quot;data&quot;:[{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;message&quot;:&quot;ad qui al&quot;},{&quot;code&quot;:&quot;dolore et irure exercitation laboris&quot;,&quot;data&quot;:[{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;message&quot;:&quot;ex eu&quot;}]},&quot;updateTime&quot;:&quot;laboris deserunt Excepteur officia&quot;,&quot;url&quot;:&quot;officia ut id&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;commodo anim eu veniam&quot;,&quot;data&quot;:[{&quot;key&quot;:&quot;laborum ut&quot;,&quot;value&quot;:&quot;reprehenderit Ut dolore&quot;},{&quot;key&quot;:&quot;Lorem labore sint irure&quot;,&quot;value&quot;:&quot;sunt Lorem do irure&quot;}],&quot;message&quot;:&quot;cons&quot;},{&quot;code&quot;:&quot;elit&quot;,&quot;data&quot;:[{&quot;key&quot;:&quot;veniam ut ut&quot;,&quot;value&quot;:&quot;dolore&quot;},{&quot;key&quot;:&quot;laboris&quot;,&quot;value&quot;:&quot;id ut&quot;}],&quot;message&quot;:&quot;aliquip voluptate&quot;}]},{&quot;accessControl&quot;:{&quot;gcpIamPolicy&quot;:&quot;culpa&quot;},&quot;finalProperties&quot;:&quot;fugiat ut&quot;,&quot;id&quot;:&quot;qui et&quot;,&quot;insertTime&quot;:&quot;incididunt laborum occaecat voluptate anim&quot;,&quot;manifest&quot;:&quot;ea aliqua exercitation voluptate&quot;,&quot;name&quot;:&quot;cillum aliqua&quot;,&quot;properties&quot;:&quot;quis&quot;,&quot;type&quot;:&quot;deserunt veniam nostr&quot;,&quot;update&quot;:{&quot;accessControl&quot;:{&quot;gcpIamPolicy&quot;:&quot;velit laboris occaecat aute&quot;},&quot;error&quot;:{&quot;errors&quot;:[{&quot;code&quot;:&quot;nostrud&quot;,&quot;location&quot;:&quot;ut&quot;,&quot;message&quot;:&quot;minim magna dolore&quot;},{&quot;code&quot;:&quot;ut ea cupidatat&quot;,&quot;location&quot;:&quot;ad cupidatat&quot;,&quot;message&quot;:&quot;esse est laborum irure magna&quot;}]},&quot;finalProperties&quot;:&quot;Ut incididunt mollit&quot;,&quot;intent&quot;:&quot;non esse reprehenderit et&quot;,&quot;manifest&quot;:&quot;velit&quot;,&quot;properties&quot;:&quot;culpa officia&quot;,&quot;state&quot;:&quot;Ut et&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;nostrud fugiat reprehenderit&quot;,&quot;data&quot;:[{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;message&quot;:&quot;in Duis&quot;},{&quot;code&quot;:&quot;ut officia sint Excepteur ea&quot;,&quot;data&quot;:[{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;key&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;value&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;message&quot;:&quot;sunt eiusmod&quot;}]},&quot;updateTime&quot;:&quot;non ad voluptate irure Ut&quot;,&quot;url&quot;:&quot;sed voluptate&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;ad ea incididunt consectetur&quot;,&quot;data&quot;:[{&quot;key&quot;:&quot;in&quot;,&quot;value&quot;:&quot;culpa&quot;},{&quot;key&quot;:&quot;sunt ut culpa pariatur&quot;,&quot;value&quot;:&quot;nulla dolor nostrud magna&quot;}],&quot;message&quot;:&quot;commodo e&quot;},{&quot;code&quot;:&quot;deserunt aliqua nisi ut&quot;,&quot;data&quot;:[{&quot;key&quot;:&quot;Ut in laboris&quot;,&quot;value&quot;:&quot;qui ea&quot;},{&quot;key&quot;:&quot;commodo dolor voluptate laborum&quot;,&quot;value&quot;:&quot;cillum ve&quot;}],&quot;message&quot;:&quot;dolore ullamco aute sunt in&quot;}]}]}