blob: a2087379b0353b411394fdbd4a1c90cff2b94c7c [file] [log] [blame]
Joe Gregoriob8006ce2013-03-07 10:33:19 -05001<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_v1beta14.html">Compute Engine API</a> . <a href="compute_v1beta14.images.html">images</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, image)</a></code></p>
79<p class="firstline">Deletes the specified image resource.</p>
80<p class="toc_element">
81 <code><a href="#deprecate">deprecate(project, image, body)</a></code></p>
82<p class="firstline">Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.</p>
83<p class="toc_element">
84 <code><a href="#get">get(project, image)</a></code></p>
85<p class="firstline">Returns the specified image resource.</p>
86<p class="toc_element">
87 <code><a href="#insert">insert(project, body)</a></code></p>
88<p class="firstline">Creates an image resource in the specified project using the data included in the request.</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 image resources available to 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="delete">delete(project, image)</code>
98 <pre>Deletes the specified image resource.
99
100Args:
101 project: string, Name of the project scoping this request. (required)
102 image: string, Name of the image resource to delete. (required)
103
104Returns:
105 An object of the form:
106
107 { # An operation resource, used to manage asynchronous API requests.
108 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
109 "kind": "compute#operation", # Type of the resource.
110 "name": "A String", # Name of the resource (output only).
111 "zone": "A String", # URL of the zone where the operation resides (output only).
112 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
113 {
114 "message": "A String", # Optional human-readable details for this warning.
115 "code": "A String", # The warning type identifier for this warning.
116 "data": [ # Metadata for this warning in 'key: value' format.
117 {
118 "value": "A String", # A warning data value corresponding to the key.
119 "key": "A String", # A key for the warning data.
120 },
121 ],
122 },
123 ],
124 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
125 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
126 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
127 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
128 "errors": [ # The array of errors encountered while processing this operation.
129 {
130 "message": "A String", # An optional, human-readable error message.
131 "code": "A String", # The error type identifier for this error.
132 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
133 },
134 ],
135 },
136 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
137 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
138 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
139 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
140 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
141 "progress": 42, # 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 (output only).
142 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
143 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
144 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
145 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
146 "selfLink": "A String", # Server defined URL for the resource (output only).
147 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
148 }</pre>
149</div>
150
151<div class="method">
152 <code class="details" id="deprecate">deprecate(project, image, body)</code>
153 <pre>Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.
154
155Args:
156 project: string, Name of the project scoping this request. (required)
157 image: string, Image name. (required)
158 body: object, The request body. (required)
159 The object takes the form of:
160
161{ # Deprecation status for a public resource.
162 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
163 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
164 "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
165 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
166 "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
167}
168
169
170Returns:
171 An object of the form:
172
173 { # An operation resource, used to manage asynchronous API requests.
174 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
175 "kind": "compute#operation", # Type of the resource.
176 "name": "A String", # Name of the resource (output only).
177 "zone": "A String", # URL of the zone where the operation resides (output only).
178 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
179 {
180 "message": "A String", # Optional human-readable details for this warning.
181 "code": "A String", # The warning type identifier for this warning.
182 "data": [ # Metadata for this warning in 'key: value' format.
183 {
184 "value": "A String", # A warning data value corresponding to the key.
185 "key": "A String", # A key for the warning data.
186 },
187 ],
188 },
189 ],
190 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
191 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
192 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
193 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
194 "errors": [ # The array of errors encountered while processing this operation.
195 {
196 "message": "A String", # An optional, human-readable error message.
197 "code": "A String", # The error type identifier for this error.
198 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
199 },
200 ],
201 },
202 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
203 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
204 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
205 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
206 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
207 "progress": 42, # 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 (output only).
208 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
209 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
210 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
211 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
212 "selfLink": "A String", # Server defined URL for the resource (output only).
213 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
214 }</pre>
215</div>
216
217<div class="method">
218 <code class="details" id="get">get(project, image)</code>
219 <pre>Returns the specified image resource.
220
221Args:
222 project: string, Name of the project scoping this request. (required)
223 image: string, Name of the image resource to return. (required)
224
225Returns:
226 An object of the form:
227
228 { # A disk image resource.
229 "kind": "compute#image", # Type of the resource.
230 "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
231 "rawDisk": { # The raw disk image parameters.
232 "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
233 "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
234 "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
235 },
236 "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
237 "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
238 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
239 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
240 "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
241 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
242 "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
243 },
244 "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
245 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
246 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
247 "selfLink": "A String", # Server defined URL for the resource (output only).
248 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
249 }</pre>
250</div>
251
252<div class="method">
253 <code class="details" id="insert">insert(project, body)</code>
254 <pre>Creates an image resource in the specified project using the data included in the request.
255
256Args:
257 project: string, Name of the project scoping this request. (required)
258 body: object, The request body. (required)
259 The object takes the form of:
260
261{ # A disk image resource.
262 "kind": "compute#image", # Type of the resource.
263 "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
264 "rawDisk": { # The raw disk image parameters.
265 "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
266 "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
267 "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
268 },
269 "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
270 "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
271 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
272 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
273 "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
274 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
275 "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
276 },
277 "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
278 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
279 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
280 "selfLink": "A String", # Server defined URL for the resource (output only).
281 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
282 }
283
284
285Returns:
286 An object of the form:
287
288 { # An operation resource, used to manage asynchronous API requests.
289 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
290 "kind": "compute#operation", # Type of the resource.
291 "name": "A String", # Name of the resource (output only).
292 "zone": "A String", # URL of the zone where the operation resides (output only).
293 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
294 {
295 "message": "A String", # Optional human-readable details for this warning.
296 "code": "A String", # The warning type identifier for this warning.
297 "data": [ # Metadata for this warning in 'key: value' format.
298 {
299 "value": "A String", # A warning data value corresponding to the key.
300 "key": "A String", # A key for the warning data.
301 },
302 ],
303 },
304 ],
305 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
306 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
307 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
308 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
309 "errors": [ # The array of errors encountered while processing this operation.
310 {
311 "message": "A String", # An optional, human-readable error message.
312 "code": "A String", # The error type identifier for this error.
313 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
314 },
315 ],
316 },
317 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
318 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
319 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
320 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
321 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
322 "progress": 42, # 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 (output only).
323 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
324 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
325 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
326 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
327 "selfLink": "A String", # Server defined URL for the resource (output only).
328 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
329 }</pre>
330</div>
331
332<div class="method">
333 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
334 <pre>Retrieves the list of image resources available to the specified project.
335
336Args:
337 project: string, Name of the project scoping this request. (required)
338 maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
339 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
340 filter: string, Optional. Filter expression for filtering listed resources.
341
342Returns:
343 An object of the form:
344
345 { # Contains a list of disk image resources.
346 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
347 "items": [ # The disk image resources.
348 { # A disk image resource.
349 "kind": "compute#image", # Type of the resource.
350 "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
351 "rawDisk": { # The raw disk image parameters.
352 "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
353 "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
354 "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
355 },
356 "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
357 "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
358 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
359 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
360 "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
361 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
362 "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
363 },
364 "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
365 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
366 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
367 "selfLink": "A String", # Server defined URL for the resource (output only).
368 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
369 },
370 ],
371 "kind": "compute#imageList", # Type of resource.
372 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
373 "selfLink": "A String", # Server defined URL for this resource (output only).
374 }</pre>
375</div>
376
377<div class="method">
378 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
379 <pre>Retrieves the next page of results.
380
381Args:
382 previous_request: The request for the previous page. (required)
383 previous_response: The response from the request for the previous page. (required)
384
385Returns:
386 A request object that you can call 'execute()' on to request the next
387 page. Returns None if there are no more items in the collection.
388 </pre>
389</div>
390
391</body></html>