deploymentmanager.deployments.list

GET {{baseUrl}}/:project/global/deployments?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 deployments for a given project.

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;deployments&quot;:[{&quot;description&quot;:&quot;esse eu est occaecat&quot;,&quot;fingerprint&quot;:&quot;ut anim est&quot;,&quot;id&quot;:&quot;laborum&quot;,&quot;insertTime&quot;:&quot;voluptate do&quot;,&quot;labels&quot;:[{&quot;key&quot;:&quot;laboris&quot;,&quot;value&quot;:&quot;et irure in&quot;},{&quot;key&quot;:&quot;Ut ullamco ad&quot;,&quot;value&quot;:&quot;Lorem minim Ut&quot;}],&quot;manifest&quot;:&quot;eu enim&quot;,&quot;name&quot;:&quot;sed et labore&quot;,&quot;operation&quot;:{&quot;clientOperationId&quot;:&quot;eu&quot;,&quot;creationTimestamp&quot;:&quot;et esse dolore&quot;,&quot;description&quot;:&quot;elit Duis&quot;,&quot;endTime&quot;:&quot;nulla ipsum repre&quot;,&quot;error&quot;:{&quot;errors&quot;:[{&quot;code&quot;:&quot;mollit&quot;,&quot;location&quot;:&quot;sint magna&quot;,&quot;message&quot;:&quot;incididunt tempor sint&quot;},{&quot;code&quot;:&quot;in eiusmod magna dolore&quot;,&quot;location&quot;:&quot;reprehenderit et Duis&quot;,&quot;message&quot;:&quot;eiusmod Excepteur&quot;}]},&quot;httpErrorMessage&quot;:&quot;et laborum&quot;,&quot;httpErrorStatusCode&quot;:-16333243,&quot;id&quot;:&quot;Ut&quot;,&quot;insertTime&quot;:&quot;dolore fugiat cupidatat officia proident&quot;,&quot;kind&quot;:&quot;deploymentmanager#operation&quot;,&quot;name&quot;:&quot;in dolor labore&quot;,&quot;operationType&quot;:&quot;nisi non sed&quot;,&quot;progress&quot;:94419960,&quot;region&quot;:&quot;eu enim exercitation&quot;,&quot;selfLink&quot;:&quot;enim&quot;,&quot;startTime&quot;:&quot;veniam quis est consectetur&quot;,&quot;status&quot;:&quot;eiusmod ip&quot;,&quot;statusMessage&quot;:&quot;sit elit&quot;,&quot;targetId&quot;:&quot;minim in dolore nulla&quot;,&quot;targetLink&quot;:&quot;Duis magna quis mollit irure&quot;,&quot;user&quot;:&quot;exercitation anim non&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;sint culpa in&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;do aute ad Excepteur&quot;},{&quot;code&quot;:&quot;magna in&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;ipsum mollit&quot;}],&quot;zone&quot;:&quot;consectetur adipisicing&quot;},&quot;selfLink&quot;:&quot;in in&quot;,&quot;target&quot;:{&quot;config&quot;:{&quot;content&quot;:&quot;laboris incididunt in&quot;},&quot;imports&quot;:[{&quot;content&quot;:&quot;minim dolor&quot;,&quot;name&quot;:&quot;amet commodo cillum&quot;},{&quot;content&quot;:&quot;in sunt&quot;,&quot;name&quot;:&quot;ut culpa qui enim&quot;}]},&quot;update&quot;:{&quot;description&quot;:&quot;pariatur velit nostrud eiusmod ea&quot;,&quot;labels&quot;:[{&quot;key&quot;:&quot;Ut&quot;,&quot;value&quot;:&quot;laborum&quot;},{&quot;key&quot;:&quot;Duis incidi&quot;,&quot;value&quot;:&quot;esse Ut&quot;}],&quot;manifest&quot;:&quot;commodo do Duis&quot;},&quot;updateTime&quot;:&quot;id&quot;},{&quot;description&quot;:&quot;e&quot;,&quot;fingerprint&quot;:&quot;qui ut Exce&quot;,&quot;id&quot;:&quot;aliqua anim in&quot;,&quot;insertTime&quot;:&quot;eiusmod ut pariatur&quot;,&quot;labels&quot;:[{&quot;key&quot;:&quot;exercitation ut sint commodo&quot;,&quot;value&quot;:&quot;sint Excepteur consequat&quot;},{&quot;key&quot;:&quot;ex proident&quot;,&quot;value&quot;:&quot;irure dolor et Lorem&quot;}],&quot;manifest&quot;:&quot;est nostrud minim Excepteur&quot;,&quot;name&quot;:&quot;consectetur ut Duis voluptate ipsum&quot;,&quot;operation&quot;:{&quot;clientOperationId&quot;:&quot;ullamco cu&quot;,&quot;creationTimestamp&quot;:&quot;ex id cupidatat sint&quot;,&quot;description&quot;:&quot;adipisicing in&quot;,&quot;endTime&quot;:&quot;in incididunt&quot;,&quot;error&quot;:{&quot;errors&quot;:[{&quot;code&quot;:&quot;sed ad ullamco est&quot;,&quot;location&quot;:&quot;officia aute et nostrud in&quot;,&quot;message&quot;:&quot;rep&quot;},{&quot;code&quot;:&quot;quis&quot;,&quot;location&quot;:&quot;Duis qui cupidatat reprehenderit commodo&quot;,&quot;message&quot;:&quot;magna proident aute dolore&quot;}]},&quot;httpErrorMessage&quot;:&quot;incididunt cupidatat&quot;,&quot;httpErrorStatusCode&quot;:16620669,&quot;id&quot;:&quot;labore&quot;,&quot;insertTime&quot;:&quot;dolore proident sunt deserunt&quot;,&quot;kind&quot;:&quot;deploymentmanager#operation&quot;,&quot;name&quot;:&quot;ut l&quot;,&quot;operationType&quot;:&quot;do magna&quot;,&quot;progress&quot;:45474044,&quot;region&quot;:&quot;velit occaecat consequat dolor&quot;,&quot;selfLink&quot;:&quot;ad incididunt reprehenderit&quot;,&quot;startTime&quot;:&quot;enim in in Duis&quot;,&quot;status&quot;:&quot;elit eu irure&quot;,&quot;statusMessage&quot;:&quot;veniam incididunt tempor&quot;,&quot;targetId&quot;:&quot;mollit consectetur&quot;,&quot;targetLink&quot;:&quot;ut do veniam adipisicing&quot;,&quot;user&quot;:&quot;velit tempor&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;anim sit aliquip do ad&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;nulla ea&quot;},{&quot;code&quot;:&quot;ipsum qui&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;ut quis aliqua culpa et&quot;}],&quot;zone&quot;:&quot;Lorem&quot;},&quot;selfLink&quot;:&quot;in fugiat mollit eiusmod&quot;,&quot;target&quot;:{&quot;config&quot;:{&quot;content&quot;:&quot;reprehenderit consectetur Lorem proident&quot;},&quot;imports&quot;:[{&quot;content&quot;:&quot;amet dolor Ut adipisicing nisi&quot;,&quot;name&quot;:&quot;magna ut&quot;},{&quot;content&quot;:&quot;quis culpa enim aliquip&quot;,&quot;name&quot;:&quot;cillum consectetur&quot;}]},&quot;update&quot;:{&quot;description&quot;:&quot;laborum in&quot;,&quot;labels&quot;:[{&quot;key&quot;:&quot;cupidatat pariatur nostrud&quot;,&quot;value&quot;:&quot;elit minim&quot;},{&quot;key&quot;:&quot;Lorem anim&quot;,&quot;value&quot;:&quot;laborum veniam sed Lorem&quot;}],&quot;manifest&quot;:&quot;esse&quot;},&quot;updateTime&quot;:&quot;fugiat ea dolor anim minim&quot;}],&quot;nextPageToken&quot;:&quot;esse&quot;}