blob: 9f3bb3a10381f12907957bab96d59930a78823d3 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.globalOperations.html">globalOperations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#aggregatedList">aggregatedList(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
79<p class="firstline">Retrieves the list of all operations grouped by scope.</p>
80<p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(project, operation)</a></code></p>
85<p class="firstline">Deletes the specified operation resource.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, operation)</a></code></p>
88<p class="firstline">Retrieves the specified operation resource.</p>
89<p class="toc_element">
90 <code><a href="#list">list(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves the list of operation resources contained within the specified project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="aggregatedList">aggregatedList(project, maxResults=None, pageToken=None, filter=None)</code>
98 <pre>Retrieves the list of all operations grouped by scope.
99
100Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000101 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400102 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
103 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
104 filter: string, Optional. Filter expression for filtering listed resources.
105
106Returns:
107 An object of the form:
108
109 {
Craig Citroe633be12015-03-02 13:40:36 -0800110 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
111 "items": { # [Output Only] A map of scoped operation lists.
112 "a_key": { # [Output Only] Name of the scope containing this set of operations.
113 "operations": [ # [Output Only] List of operations contained in this scope.
John Asmuth614db982014-04-24 15:46:26 -0400114 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000115 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
116 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
117 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800118 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000119 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
120 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
121 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
122 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
123 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800124 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000125 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
126 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
127 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400128 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000129 "message": "A String", # [Output Only] Optional human-readable details for this warning.
130 "code": "A String", # [Output Only] The warning type identifier for this warning.
131 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400132 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000133 "value": "A String", # [Output Only] A warning data value corresponding to the key.
134 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400135 },
136 ],
137 },
138 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000139 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
140 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
141 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
142 "name": "A String", # [Output Only] Name of the resource.
143 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
144 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800145 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400146 {
Craig Citroe633be12015-03-02 13:40:36 -0800147 "message": "A String", # [Output Only] An optional, human-readable error message.
148 "code": "A String", # [Output Only] The error type identifier for this error.
149 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400150 },
151 ],
152 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000153 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800154 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000155 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400156 },
157 ],
Craig Citroe633be12015-03-02 13:40:36 -0800158 "warning": { # [Output Only] Informational warning which replaces the list of operations when the list is empty.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000159 "message": "A String", # [Output Only] Optional human-readable details for this warning.
160 "code": "A String", # [Output Only] The warning type identifier for this warning.
161 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400162 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000163 "value": "A String", # [Output Only] A warning data value corresponding to the key.
164 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400165 },
166 ],
167 },
168 },
169 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000170 "kind": "compute#operationAggregatedList", # [Output Only] Type of resource. Always compute#operationAggregatedList for aggregated lists of operations.
Craig Citroe633be12015-03-02 13:40:36 -0800171 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
172 "selfLink": "A String", # [Output Only] Server defined URL for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400173 }</pre>
174</div>
175
176<div class="method">
177 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
178 <pre>Retrieves the next page of results.
179
180Args:
181 previous_request: The request for the previous page. (required)
182 previous_response: The response from the request for the previous page. (required)
183
184Returns:
185 A request object that you can call 'execute()' on to request the next
186 page. Returns None if there are no more items in the collection.
187 </pre>
188</div>
189
190<div class="method">
191 <code class="details" id="delete">delete(project, operation)</code>
192 <pre>Deletes the specified operation resource.
193
194Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000195 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400196 operation: string, Name of the operation resource to delete. (required)
197</pre>
198</div>
199
200<div class="method">
201 <code class="details" id="get">get(project, operation)</code>
202 <pre>Retrieves the specified operation resource.
203
204Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000205 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400206 operation: string, Name of the operation resource to return. (required)
207
208Returns:
209 An object of the form:
210
211 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000212 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
213 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
214 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800215 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000216 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
217 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
218 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
219 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
220 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800221 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000222 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
223 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
224 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400225 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000226 "message": "A String", # [Output Only] Optional human-readable details for this warning.
227 "code": "A String", # [Output Only] The warning type identifier for this warning.
228 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400229 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000230 "value": "A String", # [Output Only] A warning data value corresponding to the key.
231 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400232 },
233 ],
234 },
235 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000236 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
237 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
238 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
239 "name": "A String", # [Output Only] Name of the resource.
240 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
241 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800242 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400243 {
Craig Citroe633be12015-03-02 13:40:36 -0800244 "message": "A String", # [Output Only] An optional, human-readable error message.
245 "code": "A String", # [Output Only] The error type identifier for this error.
246 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400247 },
248 ],
249 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000250 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800251 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000252 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400253 }</pre>
254</div>
255
256<div class="method">
257 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
258 <pre>Retrieves the list of operation resources contained within the specified project.
259
260Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000261 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400262 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
263 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
264 filter: string, Optional. Filter expression for filtering listed resources.
265
266Returns:
267 An object of the form:
268
269 { # Contains a list of operation resources.
Craig Citroe633be12015-03-02 13:40:36 -0800270 "nextPageToken": "A String", # [Output Only] A token used to continue a truncate.
271 "items": [ # [Output Only] The operation resources.
John Asmuth614db982014-04-24 15:46:26 -0400272 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000273 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
274 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project
275 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800276 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000277 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
278 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
279 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
280 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.
281 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800282 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000283 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
284 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
285 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400286 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000287 "message": "A String", # [Output Only] Optional human-readable details for this warning.
288 "code": "A String", # [Output Only] The warning type identifier for this warning.
289 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400290 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000291 "value": "A String", # [Output Only] A warning data value corresponding to the key.
292 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400293 },
294 ],
295 },
296 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000297 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
298 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
299 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
300 "name": "A String", # [Output Only] Name of the resource.
301 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
302 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800303 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400304 {
Craig Citroe633be12015-03-02 13:40:36 -0800305 "message": "A String", # [Output Only] An optional, human-readable error message.
306 "code": "A String", # [Output Only] The error type identifier for this error.
307 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400308 },
309 ],
310 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000311 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800312 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000313 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400314 },
315 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000316 "kind": "compute#operationList", # [Output Only] Type of resource. Always compute#operations for Operations resource.
Craig Citroe633be12015-03-02 13:40:36 -0800317 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
318 "selfLink": "A String", # [Output Only] Server defined URL for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400319 }</pre>
320</div>
321
322<div class="method">
323 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
324 <pre>Retrieves the next page of results.
325
326Args:
327 previous_request: The request for the previous page. (required)
328 previous_response: The response from the request for the previous page. (required)
329
330Returns:
331 A request object that you can call 'execute()' on to request the next
332 page. Returns None if there are no more items in the collection.
333 </pre>
334</div>
335
336</body></html>