blob: f3db40d1c0608584cd3e583436aa4bd8ee9ba327 [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.instances.html">instances</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#addAccessConfig">addAccessConfig(project, zone, instance, networkInterface, body)</a></code></p>
79<p class="firstline">Adds an access config to an instance's network interface.</p>
80<p class="toc_element">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070081 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080082<p class="firstline">Retrieves aggregated list of instances.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
84 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<p class="toc_element">
87 <code><a href="#attachDisk">attachDisk(project, zone, instance, body)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000088<p class="firstline">Attaches a Disk resource to an instance.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
90 <code><a href="#delete">delete(project, zone, instance)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="firstline">Deletes the specified Instance resource. For more information, see Stopping or Deleting an Instance.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
93 <code><a href="#deleteAccessConfig">deleteAccessConfig(project, zone, instance, accessConfig, networkInterface)</a></code></p>
94<p class="firstline">Deletes an access config from an instance's network interface.</p>
95<p class="toc_element">
96 <code><a href="#detachDisk">detachDisk(project, zone, instance, deviceName)</a></code></p>
97<p class="firstline">Detaches a disk from an instance.</p>
98<p class="toc_element">
99 <code><a href="#get">get(project, zone, instance)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700100<p class="firstline">Returns the specified Instance resource. Get a list of available instances by making a list() request.</p>
John Asmuth614db982014-04-24 15:46:26 -0400101<p class="toc_element">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000102 <code><a href="#getSerialPortOutput">getSerialPortOutput(project, zone, instance, port=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400103<p class="firstline">Returns the specified instance's serial port output.</p>
104<p class="toc_element">
105 <code><a href="#insert">insert(project, zone, body)</a></code></p>
106<p class="firstline">Creates an instance resource in the specified project using the data included in the request.</p>
107<p class="toc_element">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700108 <code><a href="#list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800109<p class="firstline">Retrieves the list of instances contained within the specified zone.</p>
John Asmuth614db982014-04-24 15:46:26 -0400110<p class="toc_element">
111 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
112<p class="firstline">Retrieves the next page of results.</p>
113<p class="toc_element">
114 <code><a href="#reset">reset(project, zone, instance)</a></code></p>
115<p class="firstline">Performs a hard reset on the instance.</p>
116<p class="toc_element">
117 <code><a href="#setDiskAutoDelete">setDiskAutoDelete(project, zone, instance, autoDelete, deviceName)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000118<p class="firstline">Sets the auto-delete flag for a disk attached to an instance.</p>
John Asmuth614db982014-04-24 15:46:26 -0400119<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800120 <code><a href="#setMachineType">setMachineType(project, zone, instance, body)</a></code></p>
121<p class="firstline">Changes the machine type for a stopped instance to the machine type specified in the request.</p>
122<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -0400123 <code><a href="#setMetadata">setMetadata(project, zone, instance, body)</a></code></p>
124<p class="firstline">Sets metadata for the specified instance to the data included in the request.</p>
125<p class="toc_element">
126 <code><a href="#setScheduling">setScheduling(project, zone, instance, body)</a></code></p>
127<p class="firstline">Sets an instance's scheduling options.</p>
128<p class="toc_element">
129 <code><a href="#setTags">setTags(project, zone, instance, body)</a></code></p>
130<p class="firstline">Sets tags for the specified instance to the data included in the request.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800131<p class="toc_element">
132 <code><a href="#start">start(project, zone, instance)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800133<p class="firstline">Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.</p>
Craig Citroe633be12015-03-02 13:40:36 -0800134<p class="toc_element">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700135 <code><a href="#startWithEncryptionKey">startWithEncryptionKey(project, zone, instance, body)</a></code></p>
136<p class="firstline">Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.</p>
137<p class="toc_element">
Craig Citroe633be12015-03-02 13:40:36 -0800138 <code><a href="#stop">stop(project, zone, instance)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800139<p class="firstline">Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.</p>
John Asmuth614db982014-04-24 15:46:26 -0400140<h3>Method Details</h3>
141<div class="method">
142 <code class="details" id="addAccessConfig">addAccessConfig(project, zone, instance, networkInterface, body)</code>
143 <pre>Adds an access config to an instance's network interface.
144
145Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000146 project: string, Project ID for this request. (required)
147 zone: string, The name of the zone for this request. (required)
148 instance: string, The instance name for this request. (required)
149 networkInterface: string, The name of the network interface to add to this instance. (required)
John Asmuth614db982014-04-24 15:46:26 -0400150 body: object, The request body. (required)
151 The object takes the form of:
152
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700153{ # An access configuration attached to an instance's network interface. Only one access config per instance is supported.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000154 "kind": "compute#accessConfig", # [Output Only] Type of the resource. Always compute#accessConfig for access configs.
155 "type": "ONE_TO_ONE_NAT", # The type of configuration. The default and only option is ONE_TO_ONE_NAT.
John Asmuth614db982014-04-24 15:46:26 -0400156 "name": "A String", # Name of this access configuration.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000157 "natIP": "A String", # An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
John Asmuth614db982014-04-24 15:46:26 -0400158}
159
160
161Returns:
162 An object of the form:
163
Takashi Matsuo06694102015-09-11 13:55:40 -0700164 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800165 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
166 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000167 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800168 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
169 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
170 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
171 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000172 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800173 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
174 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800175 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800176 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
177 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000178 "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 -0400179 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800180 "message": "A String", # [Output Only] A human-readable description of the warning code.
181 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
182 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
183 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400184 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000185 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700186 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400187 },
188 ],
189 },
190 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000191 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800192 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
193 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000194 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800195 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000196 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800197 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400198 {
Craig Citroe633be12015-03-02 13:40:36 -0800199 "message": "A String", # [Output Only] An optional, human-readable error message.
200 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700201 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400202 },
203 ],
204 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800205 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700206 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700207 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400208 }</pre>
209</div>
210
211<div class="method">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700212 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800213 <pre>Retrieves aggregated list of instances.
John Asmuth614db982014-04-24 15:46:26 -0400214
215Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000216 project: string, Project ID for this request. (required)
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700217 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
218
219You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". 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.
220
221Currently, only sorting by name or creationTimestamp desc is supported.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800222 maxResults: integer, 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.
223 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.
224 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
Takashi Matsuo06694102015-09-11 13:55:40 -0700225
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800226The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
Takashi Matsuo06694102015-09-11 13:55:40 -0700227
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700228For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800229
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700230You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800231
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700232To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
John Asmuth614db982014-04-24 15:46:26 -0400233
234Returns:
235 An object of the form:
236
237 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800238 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000239 "items": { # [Output Only] A map of scoped instance lists.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800240 "a_key": { # [Output Only] Name of the scope containing this set of instances.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000241 "instances": [ # [Output Only] List of instances contained in this scope.
242 { # An Instance resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000243 "cpuPlatform": "A String", # [Output Only] The CPU platform used by this instance.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700244 "status": "A String", # [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000245 "kind": "compute#instance", # [Output Only] Type of the resource. Always compute#instance for instances.
246 "canIpForward": True or False, # Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800247 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000248 "zone": "A String", # [Output Only] URL of the zone where the instance resides.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700249 "tags": { # A set of instance tags. # A list of tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700250 "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
251 "A String",
252 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000253 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
254 #
255 # To see the latest fingerprint, make get() request to the instance.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700256 },
John Asmuth614db982014-04-24 15:46:26 -0400257 "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
258 { # An instance-attached disk resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700259 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts or decrypts a disk using a customer-supplied encryption key.
260 #
261 # If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.
262 #
263 # If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.
264 #
265 # If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
266 #
267 # Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
268 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
269 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
270 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700271 "deviceName": "A String", # Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000272 #
273 # If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
274 "kind": "compute#attachedDisk", # [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
275 "initializeParams": { # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
276 #
277 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
278 #
279 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700280 "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
281 #
282 # Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
283 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
284 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
285 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000286 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
287 "diskName": "A String", # Specifies the disk name. If not specified, the default is to use the name of the instance.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700288 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
289 #
290 # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
291 #
292 # projects/debian-cloud/global/images/family/debian-8
293 #
294 # Alternatively, use a specific version of a public operating system image:
295 #
296 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
297 #
298 # To create a disk with a private image that you created, specify the image name in the following format:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000299 #
300 # global/images/my-private-image
301 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700302 # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000303 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700304 # global/images/family/my-private-family
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000305 "diskType": "A String", # Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:
306 #
307 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard
308 #
309 # Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values:
310 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType
311 # - projects/project/zones/zone/diskTypes/diskType
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700312 # - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
John Asmuth614db982014-04-24 15:46:26 -0400313 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000314 "autoDelete": True or False, # Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
315 "index": 42, # Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.
316 "boot": True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
317 "licenses": [ # [Output Only] Any valid publicly visible licenses.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700318 "A String",
319 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000320 "mode": "A String", # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800321 "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000322 "type": "A String", # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700323 "source": "A String", # Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Note that for InstanceTemplate, it is just disk name, not URL for the disk.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700324 },
John Asmuth614db982014-04-24 15:46:26 -0400325 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800326 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000327 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
328 "scheduling": { # Sets the scheduling options for an Instance. # Scheduling options for this instance.
Takashi Matsuo06694102015-09-11 13:55:40 -0700329 "automaticRestart": True or False, # Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted.
330 "preemptible": True or False, # Whether the instance is preemptible.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800331 "onHostMaintenance": "A String", # Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
John Asmuth614db982014-04-24 15:46:26 -0400332 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800333 "machineType": "A String", # Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000334 #
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800335 # zones/us-central1-f/machineTypes/n1-standard-1
336 #
337 # To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB):
338 #
339 # zones/zone/machineTypes/custom-CPUS-MEMORY
340 #
341 # For example: zones/us-central1-f/machineTypes/custom-4-5120
342 #
343 # For a full list of restrictions, read the Specifications for custom machine types.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700344 "serviceAccounts": [ # A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
John Asmuth614db982014-04-24 15:46:26 -0400345 { # A service account.
346 "scopes": [ # The list of scopes to be made available for this service account.
347 "A String",
348 ],
349 "email": "A String", # Email address of the service account.
350 },
351 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700352 "networkInterfaces": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Only one interface is supported per instance.
John Asmuth614db982014-04-24 15:46:26 -0400353 { # A network interface resource attached to an instance.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700354 "accessConfigs": [ # An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
355 { # An access configuration attached to an instance's network interface. Only one access config per instance is supported.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000356 "kind": "compute#accessConfig", # [Output Only] Type of the resource. Always compute#accessConfig for access configs.
357 "type": "ONE_TO_ONE_NAT", # The type of configuration. The default and only option is ONE_TO_ONE_NAT.
John Asmuth614db982014-04-24 15:46:26 -0400358 "name": "A String", # Name of this access configuration.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000359 "natIP": "A String", # An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
John Asmuth614db982014-04-24 15:46:26 -0400360 },
361 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700362 "networkIP": "A String", # An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000363 "name": "A String", # [Output Only] The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800364 "subnetwork": "A String", # The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700365 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork
366 # - regions/region/subnetworks/subnetwork
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000367 "network": "A String", # URL of the network resource for this instance. This is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used:
368 #
369 # global/networks/default
370 #
371 # If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:
372 # - https://www.googleapis.com/compute/v1/projects/project/global/networks/network
373 # - projects/project/global/networks/network
374 # - global/networks/default
John Asmuth614db982014-04-24 15:46:26 -0400375 },
376 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000377 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800378 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
379 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000380 "metadata": { # A metadata key/value entry. # The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
John Asmuth614db982014-04-24 15:46:26 -0400381 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
382 {
383 "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
384 "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
385 },
386 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000387 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
388 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -0400389 },
390 },
391 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000392 "warning": { # [Output Only] Informational warning which replaces the list of instances when the list is empty.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800393 "message": "A String", # [Output Only] A human-readable description of the warning code.
394 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
395 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
396 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400397 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000398 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700399 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400400 },
401 ],
402 },
403 },
404 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000405 "kind": "compute#instanceAggregatedList", # [Output Only] Type of resource. Always compute#instanceAggregatedList for aggregated lists of Instance resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800406 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
407 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
John Asmuth614db982014-04-24 15:46:26 -0400408 }</pre>
409</div>
410
411<div class="method">
412 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
413 <pre>Retrieves the next page of results.
414
415Args:
416 previous_request: The request for the previous page. (required)
417 previous_response: The response from the request for the previous page. (required)
418
419Returns:
420 A request object that you can call 'execute()' on to request the next
421 page. Returns None if there are no more items in the collection.
422 </pre>
423</div>
424
425<div class="method">
426 <code class="details" id="attachDisk">attachDisk(project, zone, instance, body)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000427 <pre>Attaches a Disk resource to an instance.
John Asmuth614db982014-04-24 15:46:26 -0400428
429Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000430 project: string, Project ID for this request. (required)
431 zone: string, The name of the zone for this request. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800432 instance: string, The instance name for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400433 body: object, The request body. (required)
434 The object takes the form of:
435
436{ # An instance-attached disk resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700437 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts or decrypts a disk using a customer-supplied encryption key.
438 #
439 # If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.
440 #
441 # If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.
442 #
443 # If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
444 #
445 # Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
446 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
447 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
448 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700449 "deviceName": "A String", # Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000450 #
451 # If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
452 "kind": "compute#attachedDisk", # [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
453 "initializeParams": { # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
454 #
455 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
456 #
457 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700458 "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
459 #
460 # Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
461 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
462 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
463 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000464 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
465 "diskName": "A String", # Specifies the disk name. If not specified, the default is to use the name of the instance.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700466 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
467 #
468 # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
469 #
470 # projects/debian-cloud/global/images/family/debian-8
471 #
472 # Alternatively, use a specific version of a public operating system image:
473 #
474 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
475 #
476 # To create a disk with a private image that you created, specify the image name in the following format:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000477 #
478 # global/images/my-private-image
479 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700480 # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000481 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700482 # global/images/family/my-private-family
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000483 "diskType": "A String", # Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:
484 #
485 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard
486 #
487 # Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values:
488 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType
489 # - projects/project/zones/zone/diskTypes/diskType
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700490 # - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700491 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000492 "autoDelete": True or False, # Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
493 "index": 42, # Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.
494 "boot": True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
495 "licenses": [ # [Output Only] Any valid publicly visible licenses.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700496 "A String",
497 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000498 "mode": "A String", # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800499 "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000500 "type": "A String", # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700501 "source": "A String", # Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Note that for InstanceTemplate, it is just disk name, not URL for the disk.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700502}
John Asmuth614db982014-04-24 15:46:26 -0400503
504
505Returns:
506 An object of the form:
507
Takashi Matsuo06694102015-09-11 13:55:40 -0700508 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800509 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
510 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000511 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800512 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
513 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
514 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
515 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000516 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800517 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
518 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800519 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800520 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
521 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000522 "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 -0400523 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800524 "message": "A String", # [Output Only] A human-readable description of the warning code.
525 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
526 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
527 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400528 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000529 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700530 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400531 },
532 ],
533 },
534 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000535 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800536 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
537 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000538 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800539 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000540 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800541 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400542 {
Craig Citroe633be12015-03-02 13:40:36 -0800543 "message": "A String", # [Output Only] An optional, human-readable error message.
544 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700545 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400546 },
547 ],
548 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800549 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700550 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700551 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400552 }</pre>
553</div>
554
555<div class="method">
556 <code class="details" id="delete">delete(project, zone, instance)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800557 <pre>Deletes the specified Instance resource. For more information, see Stopping or Deleting an Instance.
John Asmuth614db982014-04-24 15:46:26 -0400558
559Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000560 project: string, Project ID for this request. (required)
561 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400562 instance: string, Name of the instance resource to delete. (required)
563
564Returns:
565 An object of the form:
566
Takashi Matsuo06694102015-09-11 13:55:40 -0700567 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800568 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
569 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000570 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800571 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
572 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
573 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
574 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000575 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800576 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
577 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800578 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800579 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
580 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000581 "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 -0400582 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800583 "message": "A String", # [Output Only] A human-readable description of the warning code.
584 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
585 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
586 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400587 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000588 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700589 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400590 },
591 ],
592 },
593 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000594 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800595 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
596 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000597 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800598 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000599 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800600 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400601 {
Craig Citroe633be12015-03-02 13:40:36 -0800602 "message": "A String", # [Output Only] An optional, human-readable error message.
603 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700604 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400605 },
606 ],
607 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800608 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700609 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700610 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400611 }</pre>
612</div>
613
614<div class="method">
615 <code class="details" id="deleteAccessConfig">deleteAccessConfig(project, zone, instance, accessConfig, networkInterface)</code>
616 <pre>Deletes an access config from an instance's network interface.
617
618Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000619 project: string, Project ID for this request. (required)
620 zone: string, The name of the zone for this request. (required)
621 instance: string, The instance name for this request. (required)
622 accessConfig: string, The name of the access config to delete. (required)
623 networkInterface: string, The name of the network interface. (required)
John Asmuth614db982014-04-24 15:46:26 -0400624
625Returns:
626 An object of the form:
627
Takashi Matsuo06694102015-09-11 13:55:40 -0700628 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800629 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
630 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000631 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800632 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
633 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
634 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
635 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000636 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800637 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
638 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800639 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800640 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
641 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000642 "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 -0400643 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800644 "message": "A String", # [Output Only] A human-readable description of the warning code.
645 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
646 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
647 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400648 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000649 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700650 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400651 },
652 ],
653 },
654 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000655 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800656 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
657 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000658 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800659 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000660 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800661 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400662 {
Craig Citroe633be12015-03-02 13:40:36 -0800663 "message": "A String", # [Output Only] An optional, human-readable error message.
664 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700665 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400666 },
667 ],
668 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800669 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700670 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700671 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400672 }</pre>
673</div>
674
675<div class="method">
676 <code class="details" id="detachDisk">detachDisk(project, zone, instance, deviceName)</code>
677 <pre>Detaches a disk from an instance.
678
679Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000680 project: string, Project ID for this request. (required)
681 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400682 instance: string, Instance name. (required)
683 deviceName: string, Disk device name to detach. (required)
684
685Returns:
686 An object of the form:
687
Takashi Matsuo06694102015-09-11 13:55:40 -0700688 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800689 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
690 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000691 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800692 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
693 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
694 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
695 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000696 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800697 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
698 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -0800699 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800700 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
701 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000702 "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 -0400703 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800704 "message": "A String", # [Output Only] A human-readable description of the warning code.
705 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
706 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
707 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -0400708 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000709 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700710 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -0400711 },
712 ],
713 },
714 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000715 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800716 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
717 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000718 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800719 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000720 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800721 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400722 {
Craig Citroe633be12015-03-02 13:40:36 -0800723 "message": "A String", # [Output Only] An optional, human-readable error message.
724 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700725 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400726 },
727 ],
728 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800729 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700730 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700731 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -0400732 }</pre>
733</div>
734
735<div class="method">
736 <code class="details" id="get">get(project, zone, instance)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700737 <pre>Returns the specified Instance resource. Get a list of available instances by making a list() request.
John Asmuth614db982014-04-24 15:46:26 -0400738
739Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000740 project: string, Project ID for this request. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700741 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400742 instance: string, Name of the instance resource to return. (required)
743
744Returns:
745 An object of the form:
746
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000747 { # An Instance resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000748 "cpuPlatform": "A String", # [Output Only] The CPU platform used by this instance.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700749 "status": "A String", # [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000750 "kind": "compute#instance", # [Output Only] Type of the resource. Always compute#instance for instances.
751 "canIpForward": True or False, # Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800752 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000753 "zone": "A String", # [Output Only] URL of the zone where the instance resides.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700754 "tags": { # A set of instance tags. # A list of tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700755 "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
756 "A String",
757 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000758 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
759 #
760 # To see the latest fingerprint, make get() request to the instance.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700761 },
John Asmuth614db982014-04-24 15:46:26 -0400762 "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
763 { # An instance-attached disk resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700764 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts or decrypts a disk using a customer-supplied encryption key.
765 #
766 # If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.
767 #
768 # If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.
769 #
770 # If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
771 #
772 # Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
773 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
774 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
775 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700776 "deviceName": "A String", # Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000777 #
778 # If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
779 "kind": "compute#attachedDisk", # [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
780 "initializeParams": { # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
781 #
782 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
783 #
784 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700785 "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
786 #
787 # Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
788 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
789 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
790 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000791 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
792 "diskName": "A String", # Specifies the disk name. If not specified, the default is to use the name of the instance.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700793 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
794 #
795 # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
796 #
797 # projects/debian-cloud/global/images/family/debian-8
798 #
799 # Alternatively, use a specific version of a public operating system image:
800 #
801 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
802 #
803 # To create a disk with a private image that you created, specify the image name in the following format:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000804 #
805 # global/images/my-private-image
806 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700807 # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000808 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700809 # global/images/family/my-private-family
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000810 "diskType": "A String", # Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:
811 #
812 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard
813 #
814 # Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values:
815 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType
816 # - projects/project/zones/zone/diskTypes/diskType
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700817 # - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
John Asmuth614db982014-04-24 15:46:26 -0400818 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000819 "autoDelete": True or False, # Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
820 "index": 42, # Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.
821 "boot": True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
822 "licenses": [ # [Output Only] Any valid publicly visible licenses.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700823 "A String",
824 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000825 "mode": "A String", # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800826 "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000827 "type": "A String", # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700828 "source": "A String", # Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Note that for InstanceTemplate, it is just disk name, not URL for the disk.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700829 },
John Asmuth614db982014-04-24 15:46:26 -0400830 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800831 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000832 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
833 "scheduling": { # Sets the scheduling options for an Instance. # Scheduling options for this instance.
Takashi Matsuo06694102015-09-11 13:55:40 -0700834 "automaticRestart": True or False, # Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted.
835 "preemptible": True or False, # Whether the instance is preemptible.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800836 "onHostMaintenance": "A String", # Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
John Asmuth614db982014-04-24 15:46:26 -0400837 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800838 "machineType": "A String", # Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000839 #
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800840 # zones/us-central1-f/machineTypes/n1-standard-1
841 #
842 # To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB):
843 #
844 # zones/zone/machineTypes/custom-CPUS-MEMORY
845 #
846 # For example: zones/us-central1-f/machineTypes/custom-4-5120
847 #
848 # For a full list of restrictions, read the Specifications for custom machine types.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700849 "serviceAccounts": [ # A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
John Asmuth614db982014-04-24 15:46:26 -0400850 { # A service account.
851 "scopes": [ # The list of scopes to be made available for this service account.
852 "A String",
853 ],
854 "email": "A String", # Email address of the service account.
855 },
856 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700857 "networkInterfaces": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Only one interface is supported per instance.
John Asmuth614db982014-04-24 15:46:26 -0400858 { # A network interface resource attached to an instance.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700859 "accessConfigs": [ # An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
860 { # An access configuration attached to an instance's network interface. Only one access config per instance is supported.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000861 "kind": "compute#accessConfig", # [Output Only] Type of the resource. Always compute#accessConfig for access configs.
862 "type": "ONE_TO_ONE_NAT", # The type of configuration. The default and only option is ONE_TO_ONE_NAT.
John Asmuth614db982014-04-24 15:46:26 -0400863 "name": "A String", # Name of this access configuration.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000864 "natIP": "A String", # An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
John Asmuth614db982014-04-24 15:46:26 -0400865 },
866 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700867 "networkIP": "A String", # An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000868 "name": "A String", # [Output Only] The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800869 "subnetwork": "A String", # The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700870 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork
871 # - regions/region/subnetworks/subnetwork
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000872 "network": "A String", # URL of the network resource for this instance. This is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used:
873 #
874 # global/networks/default
875 #
876 # If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:
877 # - https://www.googleapis.com/compute/v1/projects/project/global/networks/network
878 # - projects/project/global/networks/network
879 # - global/networks/default
John Asmuth614db982014-04-24 15:46:26 -0400880 },
881 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000882 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800883 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
884 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000885 "metadata": { # A metadata key/value entry. # The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
John Asmuth614db982014-04-24 15:46:26 -0400886 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
887 {
888 "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
889 "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
890 },
891 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000892 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
893 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -0400894 },
895 }</pre>
896</div>
897
898<div class="method">
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000899 <code class="details" id="getSerialPortOutput">getSerialPortOutput(project, zone, instance, port=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400900 <pre>Returns the specified instance's serial port output.
901
902Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000903 project: string, Project ID for this request. (required)
904 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400905 instance: string, Name of the instance scoping this request. (required)
Takashi Matsuo06694102015-09-11 13:55:40 -0700906 port: integer, Specifies which COM or serial port to retrieve data from.
John Asmuth614db982014-04-24 15:46:26 -0400907
908Returns:
909 An object of the form:
910
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000911 { # An instance's serial console output.
912 "kind": "compute#serialPortOutput", # [Output Only] Type of the resource. Always compute#serialPortOutput for serial port output.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700913 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000914 "contents": "A String", # [Output Only] The contents of the console output.
John Asmuth614db982014-04-24 15:46:26 -0400915 }</pre>
916</div>
917
918<div class="method">
919 <code class="details" id="insert">insert(project, zone, body)</code>
920 <pre>Creates an instance resource in the specified project using the data included in the request.
921
922Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000923 project: string, Project ID for this request. (required)
924 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400925 body: object, The request body. (required)
926 The object takes the form of:
927
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000928{ # An Instance resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000929 "cpuPlatform": "A String", # [Output Only] The CPU platform used by this instance.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700930 "status": "A String", # [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000931 "kind": "compute#instance", # [Output Only] Type of the resource. Always compute#instance for instances.
932 "canIpForward": True or False, # Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800933 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000934 "zone": "A String", # [Output Only] URL of the zone where the instance resides.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700935 "tags": { # A set of instance tags. # A list of tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700936 "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
937 "A String",
938 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000939 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
940 #
941 # To see the latest fingerprint, make get() request to the instance.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700942 },
John Asmuth614db982014-04-24 15:46:26 -0400943 "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
944 { # An instance-attached disk resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700945 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts or decrypts a disk using a customer-supplied encryption key.
946 #
947 # If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.
948 #
949 # If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.
950 #
951 # If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
952 #
953 # Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
954 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
955 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
956 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700957 "deviceName": "A String", # Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000958 #
959 # If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
960 "kind": "compute#attachedDisk", # [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
961 "initializeParams": { # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
962 #
963 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
964 #
965 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700966 "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
967 #
968 # Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
969 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
970 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
971 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000972 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
973 "diskName": "A String", # Specifies the disk name. If not specified, the default is to use the name of the instance.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700974 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
975 #
976 # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
977 #
978 # projects/debian-cloud/global/images/family/debian-8
979 #
980 # Alternatively, use a specific version of a public operating system image:
981 #
982 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
983 #
984 # To create a disk with a private image that you created, specify the image name in the following format:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000985 #
986 # global/images/my-private-image
987 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700988 # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000989 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700990 # global/images/family/my-private-family
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000991 "diskType": "A String", # Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:
992 #
993 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard
994 #
995 # Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values:
996 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType
997 # - projects/project/zones/zone/diskTypes/diskType
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700998 # - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
John Asmuth614db982014-04-24 15:46:26 -0400999 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001000 "autoDelete": True or False, # Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
1001 "index": 42, # Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.
1002 "boot": True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
1003 "licenses": [ # [Output Only] Any valid publicly visible licenses.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001004 "A String",
1005 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001006 "mode": "A String", # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001007 "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001008 "type": "A String", # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001009 "source": "A String", # Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Note that for InstanceTemplate, it is just disk name, not URL for the disk.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001010 },
John Asmuth614db982014-04-24 15:46:26 -04001011 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001012 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001013 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
1014 "scheduling": { # Sets the scheduling options for an Instance. # Scheduling options for this instance.
Takashi Matsuo06694102015-09-11 13:55:40 -07001015 "automaticRestart": True or False, # Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted.
1016 "preemptible": True or False, # Whether the instance is preemptible.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001017 "onHostMaintenance": "A String", # Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
John Asmuth614db982014-04-24 15:46:26 -04001018 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001019 "machineType": "A String", # Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001020 #
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001021 # zones/us-central1-f/machineTypes/n1-standard-1
1022 #
1023 # To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB):
1024 #
1025 # zones/zone/machineTypes/custom-CPUS-MEMORY
1026 #
1027 # For example: zones/us-central1-f/machineTypes/custom-4-5120
1028 #
1029 # For a full list of restrictions, read the Specifications for custom machine types.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001030 "serviceAccounts": [ # A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
John Asmuth614db982014-04-24 15:46:26 -04001031 { # A service account.
1032 "scopes": [ # The list of scopes to be made available for this service account.
1033 "A String",
1034 ],
1035 "email": "A String", # Email address of the service account.
1036 },
1037 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001038 "networkInterfaces": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Only one interface is supported per instance.
John Asmuth614db982014-04-24 15:46:26 -04001039 { # A network interface resource attached to an instance.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001040 "accessConfigs": [ # An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
1041 { # An access configuration attached to an instance's network interface. Only one access config per instance is supported.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001042 "kind": "compute#accessConfig", # [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1043 "type": "ONE_TO_ONE_NAT", # The type of configuration. The default and only option is ONE_TO_ONE_NAT.
John Asmuth614db982014-04-24 15:46:26 -04001044 "name": "A String", # Name of this access configuration.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001045 "natIP": "A String", # An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
John Asmuth614db982014-04-24 15:46:26 -04001046 },
1047 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001048 "networkIP": "A String", # An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001049 "name": "A String", # [Output Only] The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001050 "subnetwork": "A String", # The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001051 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork
1052 # - regions/region/subnetworks/subnetwork
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001053 "network": "A String", # URL of the network resource for this instance. This is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used:
1054 #
1055 # global/networks/default
1056 #
1057 # If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:
1058 # - https://www.googleapis.com/compute/v1/projects/project/global/networks/network
1059 # - projects/project/global/networks/network
1060 # - global/networks/default
John Asmuth614db982014-04-24 15:46:26 -04001061 },
1062 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001063 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001064 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1065 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001066 "metadata": { # A metadata key/value entry. # The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
John Asmuth614db982014-04-24 15:46:26 -04001067 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
1068 {
1069 "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
1070 "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
1071 },
1072 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001073 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
1074 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -04001075 },
1076}
1077
1078
1079Returns:
1080 An object of the form:
1081
Takashi Matsuo06694102015-09-11 13:55:40 -07001082 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001083 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1084 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001085 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001086 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1087 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1088 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1089 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001090 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001091 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1092 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001093 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001094 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1095 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001096 "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 -04001097 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001098 "message": "A String", # [Output Only] A human-readable description of the warning code.
1099 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1100 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1101 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -04001102 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001103 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001104 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -04001105 },
1106 ],
1107 },
1108 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001109 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001110 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1111 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001112 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001113 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001114 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001115 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -04001116 {
Craig Citroe633be12015-03-02 13:40:36 -08001117 "message": "A String", # [Output Only] An optional, human-readable error message.
1118 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001119 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -04001120 },
1121 ],
1122 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001123 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001124 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001125 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -04001126 }</pre>
1127</div>
1128
1129<div class="method">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001130 <code class="details" id="list">list(project, zone, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001131 <pre>Retrieves the list of instances contained within the specified zone.
John Asmuth614db982014-04-24 15:46:26 -04001132
1133Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001134 project: string, Project ID for this request. (required)
1135 zone: string, The name of the zone for this request. (required)
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001136 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
1137
1138You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". 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.
1139
1140Currently, only sorting by name or creationTimestamp desc is supported.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001141 maxResults: integer, 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.
1142 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.
1143 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
Takashi Matsuo06694102015-09-11 13:55:40 -07001144
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001145The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
Takashi Matsuo06694102015-09-11 13:55:40 -07001146
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001147For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001148
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001149You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001150
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001151To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
John Asmuth614db982014-04-24 15:46:26 -04001152
1153Returns:
1154 An object of the form:
1155
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001156 { # Contains a list of instances.
1157 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
1158 "items": [ # [Output Only] A list of instances.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001159 { # An Instance resource.
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001160 "cpuPlatform": "A String", # [Output Only] The CPU platform used by this instance.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001161 "status": "A String", # [Output Only] The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001162 "kind": "compute#instance", # [Output Only] Type of the resource. Always compute#instance for instances.
1163 "canIpForward": True or False, # Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001164 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001165 "zone": "A String", # [Output Only] URL of the zone where the instance resides.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001166 "tags": { # A set of instance tags. # A list of tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001167 "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
1168 "A String",
1169 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001170 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
1171 #
1172 # To see the latest fingerprint, make get() request to the instance.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001173 },
John Asmuth614db982014-04-24 15:46:26 -04001174 "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
1175 { # An instance-attached disk resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001176 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Encrypts or decrypts a disk using a customer-supplied encryption key.
1177 #
1178 # If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.
1179 #
1180 # If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.
1181 #
1182 # If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.
1183 #
1184 # Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
1185 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
1186 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
1187 },
Takashi Matsuo06694102015-09-11 13:55:40 -07001188 "deviceName": "A String", # Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001189 #
1190 # If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
1191 "kind": "compute#attachedDisk", # [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
1192 "initializeParams": { # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. # [Input Only] Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance.
1193 #
1194 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
1195 #
1196 # This property is mutually exclusive with the source property; you can only define one or the other, but not both.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001197 "sourceImageEncryptionKey": { # Represents a customer-supplied encryption key # The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.
1198 #
1199 # Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
1200 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
1201 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
1202 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001203 "diskSizeGb": "A String", # Specifies the size of the disk in base-2 GB.
1204 "diskName": "A String", # Specifies the disk name. If not specified, the default is to use the name of the instance.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001205 "sourceImage": "A String", # The source image used to create this disk. If the source image is deleted, this field will not be set.
1206 #
1207 # To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image:
1208 #
1209 # projects/debian-cloud/global/images/family/debian-8
1210 #
1211 # Alternatively, use a specific version of a public operating system image:
1212 #
1213 # projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
1214 #
1215 # To create a disk with a private image that you created, specify the image name in the following format:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001216 #
1217 # global/images/my-private-image
1218 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001219 # You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001220 #
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001221 # global/images/family/my-private-family
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001222 "diskType": "A String", # Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:
1223 #
1224 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard
1225 #
1226 # Other values include pd-ssd and local-ssd. If you define this field, you can provide either the full or partial URL. For example, the following are valid values:
1227 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType
1228 # - projects/project/zones/zone/diskTypes/diskType
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001229 # - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
John Asmuth614db982014-04-24 15:46:26 -04001230 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001231 "autoDelete": True or False, # Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
1232 "index": 42, # Assigns a zero-based index to this disk, where 0 is reserved for the boot disk. For example, if you have many disks attached to an instance, each disk would have a unique index number. If not specified, the server will choose an appropriate value.
1233 "boot": True or False, # Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
1234 "licenses": [ # [Output Only] Any valid publicly visible licenses.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001235 "A String",
1236 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001237 "mode": "A String", # The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001238 "interface": "A String", # Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001239 "type": "A String", # Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001240 "source": "A String", # Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Note that for InstanceTemplate, it is just disk name, not URL for the disk.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001241 },
John Asmuth614db982014-04-24 15:46:26 -04001242 ],
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001243 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001244 "statusMessage": "A String", # [Output Only] An optional, human-readable explanation of the status.
1245 "scheduling": { # Sets the scheduling options for an Instance. # Scheduling options for this instance.
Takashi Matsuo06694102015-09-11 13:55:40 -07001246 "automaticRestart": True or False, # Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted.
1247 "preemptible": True or False, # Whether the instance is preemptible.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001248 "onHostMaintenance": "A String", # Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
John Asmuth614db982014-04-24 15:46:26 -04001249 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001250 "machineType": "A String", # Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001251 #
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001252 # zones/us-central1-f/machineTypes/n1-standard-1
1253 #
1254 # To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB):
1255 #
1256 # zones/zone/machineTypes/custom-CPUS-MEMORY
1257 #
1258 # For example: zones/us-central1-f/machineTypes/custom-4-5120
1259 #
1260 # For a full list of restrictions, read the Specifications for custom machine types.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001261 "serviceAccounts": [ # A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
John Asmuth614db982014-04-24 15:46:26 -04001262 { # A service account.
1263 "scopes": [ # The list of scopes to be made available for this service account.
1264 "A String",
1265 ],
1266 "email": "A String", # Email address of the service account.
1267 },
1268 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001269 "networkInterfaces": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Only one interface is supported per instance.
John Asmuth614db982014-04-24 15:46:26 -04001270 { # A network interface resource attached to an instance.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001271 "accessConfigs": [ # An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
1272 { # An access configuration attached to an instance's network interface. Only one access config per instance is supported.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001273 "kind": "compute#accessConfig", # [Output Only] Type of the resource. Always compute#accessConfig for access configs.
1274 "type": "ONE_TO_ONE_NAT", # The type of configuration. The default and only option is ONE_TO_ONE_NAT.
John Asmuth614db982014-04-24 15:46:26 -04001275 "name": "A String", # Name of this access configuration.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001276 "natIP": "A String", # An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
John Asmuth614db982014-04-24 15:46:26 -04001277 },
1278 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001279 "networkIP": "A String", # An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001280 "name": "A String", # [Output Only] The name of the network interface, generated by the server. For network devices, these are eth0, eth1, etc.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001281 "subnetwork": "A String", # The URL of the Subnetwork resource for this instance. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. If you specify this property, you can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001282 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork
1283 # - regions/region/subnetworks/subnetwork
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001284 "network": "A String", # URL of the network resource for this instance. This is required for creating an instance but optional when creating a firewall rule. If not specified when creating a firewall rule, the default network is used:
1285 #
1286 # global/networks/default
1287 #
1288 # If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:
1289 # - https://www.googleapis.com/compute/v1/projects/project/global/networks/network
1290 # - projects/project/global/networks/network
1291 # - global/networks/default
John Asmuth614db982014-04-24 15:46:26 -04001292 },
1293 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001294 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001295 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1296 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001297 "metadata": { # A metadata key/value entry. # The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.
John Asmuth614db982014-04-24 15:46:26 -04001298 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
1299 {
1300 "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
1301 "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
1302 },
1303 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001304 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
1305 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -04001306 },
1307 },
1308 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001309 "kind": "compute#instanceList", # [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001310 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1311 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
John Asmuth614db982014-04-24 15:46:26 -04001312 }</pre>
1313</div>
1314
1315<div class="method">
1316 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1317 <pre>Retrieves the next page of results.
1318
1319Args:
1320 previous_request: The request for the previous page. (required)
1321 previous_response: The response from the request for the previous page. (required)
1322
1323Returns:
1324 A request object that you can call 'execute()' on to request the next
1325 page. Returns None if there are no more items in the collection.
1326 </pre>
1327</div>
1328
1329<div class="method">
1330 <code class="details" id="reset">reset(project, zone, instance)</code>
1331 <pre>Performs a hard reset on the instance.
1332
1333Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001334 project: string, Project ID for this request. (required)
1335 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -04001336 instance: string, Name of the instance scoping this request. (required)
1337
1338Returns:
1339 An object of the form:
1340
Takashi Matsuo06694102015-09-11 13:55:40 -07001341 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001342 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1343 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001344 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001345 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1346 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1347 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1348 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001349 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001350 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1351 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001352 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001353 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1354 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001355 "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 -04001356 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001357 "message": "A String", # [Output Only] A human-readable description of the warning code.
1358 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1359 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1360 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -04001361 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001362 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001363 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -04001364 },
1365 ],
1366 },
1367 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001368 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001369 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1370 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001371 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001372 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001373 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001374 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -04001375 {
Craig Citroe633be12015-03-02 13:40:36 -08001376 "message": "A String", # [Output Only] An optional, human-readable error message.
1377 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001378 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -04001379 },
1380 ],
1381 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001382 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001383 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001384 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -04001385 }</pre>
1386</div>
1387
1388<div class="method">
1389 <code class="details" id="setDiskAutoDelete">setDiskAutoDelete(project, zone, instance, autoDelete, deviceName)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001390 <pre>Sets the auto-delete flag for a disk attached to an instance.
John Asmuth614db982014-04-24 15:46:26 -04001391
1392Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001393 project: string, Project ID for this request. (required)
1394 zone: string, The name of the zone for this request. (required)
1395 instance: string, The instance name. (required)
John Asmuth614db982014-04-24 15:46:26 -04001396 autoDelete: boolean, Whether to auto-delete the disk when the instance is deleted. (required)
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001397 deviceName: string, The device name of the disk to modify. (required)
John Asmuth614db982014-04-24 15:46:26 -04001398
1399Returns:
1400 An object of the form:
1401
Takashi Matsuo06694102015-09-11 13:55:40 -07001402 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001403 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1404 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001405 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001406 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1407 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1408 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1409 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001410 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001411 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1412 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001413 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001414 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1415 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001416 "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 -04001417 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001418 "message": "A String", # [Output Only] A human-readable description of the warning code.
1419 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1420 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1421 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -04001422 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001423 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001424 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -04001425 },
1426 ],
1427 },
1428 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001429 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001430 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1431 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001432 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001433 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001434 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001435 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -04001436 {
Craig Citroe633be12015-03-02 13:40:36 -08001437 "message": "A String", # [Output Only] An optional, human-readable error message.
1438 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001439 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -04001440 },
1441 ],
1442 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001443 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001444 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001445 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001446 }</pre>
1447</div>
1448
1449<div class="method">
1450 <code class="details" id="setMachineType">setMachineType(project, zone, instance, body)</code>
1451 <pre>Changes the machine type for a stopped instance to the machine type specified in the request.
1452
1453Args:
1454 project: string, Project ID for this request. (required)
1455 zone: string, The name of the zone for this request. (required)
1456 instance: string, Name of the instance scoping this request. (required)
1457 body: object, The request body. (required)
1458 The object takes the form of:
1459
1460{
1461 "machineType": "A String", # Full or partial URL of the machine type resource. See Machine Types for a full list of machine types. For example: zones/us-central1-f/machineTypes/n1-standard-1
1462 }
1463
1464
1465Returns:
1466 An object of the form:
1467
1468 { # An Operation resource, used to manage asynchronous API requests.
1469 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1470 "clientOperationId": "A String", # [Output Only] Reserved for future use.
1471 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
1472 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1473 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1474 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1475 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1476 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1477 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1478 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
1479 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1480 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1481 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1482 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1483 {
1484 "message": "A String", # [Output Only] A human-readable description of the warning code.
1485 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1486 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1487 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1488 {
1489 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001490 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001491 },
1492 ],
1493 },
1494 ],
1495 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1496 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1497 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1498 "name": "A String", # [Output Only] Name of the resource.
1499 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1500 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1501 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1502 {
1503 "message": "A String", # [Output Only] An optional, human-readable error message.
1504 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001505 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001506 },
1507 ],
1508 },
1509 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1510 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001511 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -04001512 }</pre>
1513</div>
1514
1515<div class="method">
1516 <code class="details" id="setMetadata">setMetadata(project, zone, instance, body)</code>
1517 <pre>Sets metadata for the specified instance to the data included in the request.
1518
1519Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001520 project: string, Project ID for this request. (required)
1521 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -04001522 instance: string, Name of the instance scoping this request. (required)
1523 body: object, The request body. (required)
1524 The object takes the form of:
1525
1526{ # A metadata key/value entry.
1527 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
1528 {
1529 "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
1530 "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
1531 },
1532 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001533 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
1534 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -04001535}
1536
1537
1538Returns:
1539 An object of the form:
1540
Takashi Matsuo06694102015-09-11 13:55:40 -07001541 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001542 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1543 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001544 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001545 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1546 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1547 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1548 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001549 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001550 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1551 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001552 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001553 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1554 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001555 "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 -04001556 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001557 "message": "A String", # [Output Only] A human-readable description of the warning code.
1558 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1559 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1560 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -04001561 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001562 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001563 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -04001564 },
1565 ],
1566 },
1567 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001568 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001569 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1570 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001571 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001572 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001573 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001574 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -04001575 {
Craig Citroe633be12015-03-02 13:40:36 -08001576 "message": "A String", # [Output Only] An optional, human-readable error message.
1577 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001578 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -04001579 },
1580 ],
1581 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001582 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001583 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001584 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -04001585 }</pre>
1586</div>
1587
1588<div class="method">
1589 <code class="details" id="setScheduling">setScheduling(project, zone, instance, body)</code>
1590 <pre>Sets an instance's scheduling options.
1591
1592Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001593 project: string, Project ID for this request. (required)
1594 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -04001595 instance: string, Instance name. (required)
1596 body: object, The request body. (required)
1597 The object takes the form of:
1598
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001599{ # Sets the scheduling options for an Instance.
Takashi Matsuo06694102015-09-11 13:55:40 -07001600 "automaticRestart": True or False, # Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted.
1601 "preemptible": True or False, # Whether the instance is preemptible.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001602 "onHostMaintenance": "A String", # Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options.
John Asmuth614db982014-04-24 15:46:26 -04001603}
1604
1605
1606Returns:
1607 An object of the form:
1608
Takashi Matsuo06694102015-09-11 13:55:40 -07001609 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001610 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1611 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001612 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001613 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1614 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1615 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1616 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001617 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001618 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1619 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001620 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001621 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1622 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001623 "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 -04001624 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001625 "message": "A String", # [Output Only] A human-readable description of the warning code.
1626 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1627 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1628 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -04001629 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001630 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001631 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -04001632 },
1633 ],
1634 },
1635 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001636 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001637 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1638 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001639 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001640 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001641 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001642 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -04001643 {
Craig Citroe633be12015-03-02 13:40:36 -08001644 "message": "A String", # [Output Only] An optional, human-readable error message.
1645 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001646 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -04001647 },
1648 ],
1649 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001650 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001651 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001652 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -04001653 }</pre>
1654</div>
1655
1656<div class="method">
1657 <code class="details" id="setTags">setTags(project, zone, instance, body)</code>
1658 <pre>Sets tags for the specified instance to the data included in the request.
1659
1660Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001661 project: string, Project ID for this request. (required)
1662 zone: string, The name of the zone for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -04001663 instance: string, Name of the instance scoping this request. (required)
1664 body: object, The request body. (required)
1665 The object takes the form of:
1666
1667{ # A set of instance tags.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001668 "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
1669 "A String",
1670 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001671 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
1672 #
1673 # To see the latest fingerprint, make get() request to the instance.
Craig Citro0e5b9bf2014-10-15 10:26:14 -07001674}
John Asmuth614db982014-04-24 15:46:26 -04001675
1676
1677Returns:
1678 An object of the form:
1679
Takashi Matsuo06694102015-09-11 13:55:40 -07001680 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001681 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1682 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001683 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001684 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1685 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1686 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1687 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001688 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001689 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1690 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001691 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001692 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1693 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001694 "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 -04001695 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001696 "message": "A String", # [Output Only] A human-readable description of the warning code.
1697 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1698 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1699 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
John Asmuth614db982014-04-24 15:46:26 -04001700 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001701 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001702 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
John Asmuth614db982014-04-24 15:46:26 -04001703 },
1704 ],
1705 },
1706 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001707 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001708 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1709 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001710 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001711 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001712 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001713 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -04001714 {
Craig Citroe633be12015-03-02 13:40:36 -08001715 "message": "A String", # [Output Only] An optional, human-readable error message.
1716 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001717 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -04001718 },
1719 ],
1720 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001721 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001722 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001723 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
Craig Citroe633be12015-03-02 13:40:36 -08001724 }</pre>
1725</div>
1726
1727<div class="method">
1728 <code class="details" id="start">start(project, zone, instance)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001729 <pre>Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.
Craig Citroe633be12015-03-02 13:40:36 -08001730
1731Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001732 project: string, Project ID for this request. (required)
1733 zone: string, The name of the zone for this request. (required)
Craig Citroe633be12015-03-02 13:40:36 -08001734 instance: string, Name of the instance resource to start. (required)
1735
1736Returns:
1737 An object of the form:
1738
Takashi Matsuo06694102015-09-11 13:55:40 -07001739 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001740 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1741 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001742 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001743 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1744 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1745 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1746 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001747 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001748 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1749 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001750 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001751 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1752 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001753 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001754 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001755 "message": "A String", # [Output Only] A human-readable description of the warning code.
1756 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1757 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1758 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citroe633be12015-03-02 13:40:36 -08001759 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001760 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001761 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Craig Citroe633be12015-03-02 13:40:36 -08001762 },
1763 ],
1764 },
1765 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001766 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001767 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1768 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001769 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001770 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001771 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001772 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1773 {
1774 "message": "A String", # [Output Only] An optional, human-readable error message.
1775 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001776 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Craig Citroe633be12015-03-02 13:40:36 -08001777 },
1778 ],
1779 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001780 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001781 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001782 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
Craig Citroe633be12015-03-02 13:40:36 -08001783 }</pre>
1784</div>
1785
1786<div class="method">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001787 <code class="details" id="startWithEncryptionKey">startWithEncryptionKey(project, zone, instance, body)</code>
1788 <pre>Starts an instance that was stopped using the using the instances().stop method. For more information, see Restart an instance.
1789
1790Args:
1791 project: string, Project ID for this request. (required)
1792 zone: string, The name of the zone for this request. (required)
1793 instance: string, Name of the instance resource to start. (required)
1794 body: object, The request body. (required)
1795 The object takes the form of:
1796
1797{
1798 "disks": [ # Array of disks associated with this instance that are protected with a customer-supplied encryption key.
1799 #
1800 # In order to start the instance, the disk url and its corresponding key must be provided.
1801 #
1802 # If the disk is not protected with a customer-supplied encryption key it should not be specified.
1803 {
1804 "diskEncryptionKey": { # Represents a customer-supplied encryption key # Decrypts data associated with the disk with a customer-supplied encryption key.
1805 "rawKey": "A String", # Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
1806 "sha256": "A String", # [Output only] The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
1807 },
1808 "source": "A String", # Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks.
1809 },
1810 ],
1811 }
1812
1813
1814Returns:
1815 An object of the form:
1816
1817 { # An Operation resource, used to manage asynchronous API requests.
1818 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1819 "clientOperationId": "A String", # [Output Only] Reserved for future use.
1820 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
1821 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1822 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1823 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1824 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1825 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1826 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1827 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
1828 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1829 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1830 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1831 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1832 {
1833 "message": "A String", # [Output Only] A human-readable description of the warning code.
1834 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1835 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1836 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1837 {
1838 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1839 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
1840 },
1841 ],
1842 },
1843 ],
1844 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1845 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1846 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1847 "name": "A String", # [Output Only] Name of the resource.
1848 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1849 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1850 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1851 {
1852 "message": "A String", # [Output Only] An optional, human-readable error message.
1853 "code": "A String", # [Output Only] The error type identifier for this error.
1854 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1855 },
1856 ],
1857 },
1858 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1859 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001860 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001861 }</pre>
1862</div>
1863
1864<div class="method">
Craig Citroe633be12015-03-02 13:40:36 -08001865 <code class="details" id="stop">stop(project, zone, instance)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001866 <pre>Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.
Craig Citroe633be12015-03-02 13:40:36 -08001867
1868Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001869 project: string, Project ID for this request. (required)
1870 zone: string, The name of the zone for this request. (required)
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001871 instance: string, Name of the instance resource to stop. (required)
Craig Citroe633be12015-03-02 13:40:36 -08001872
1873Returns:
1874 An object of the form:
1875
Takashi Matsuo06694102015-09-11 13:55:40 -07001876 { # An Operation resource, used to manage asynchronous API requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001877 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1878 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001879 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001880 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1881 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1882 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1883 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001884 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001885 "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
1886 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
Craig Citroe633be12015-03-02 13:40:36 -08001887 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001888 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1889 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001890 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001891 {
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001892 "message": "A String", # [Output Only] A human-readable description of the warning code.
1893 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1894 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1895 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
Craig Citroe633be12015-03-02 13:40:36 -08001896 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001897 "value": "A String", # [Output Only] A warning data value corresponding to the key.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001898 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
Craig Citroe633be12015-03-02 13:40:36 -08001899 },
1900 ],
1901 },
1902 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001903 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001904 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1905 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001906 "name": "A String", # [Output Only] Name of the resource.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001907 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001908 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -08001909 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1910 {
1911 "message": "A String", # [Output Only] An optional, human-readable error message.
1912 "code": "A String", # [Output Only] The error type identifier for this error.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001913 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Craig Citroe633be12015-03-02 13:40:36 -08001914 },
1915 ],
1916 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001917 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -07001918 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001919 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. If creating a persistent disk snapshot, this points to the persistent disk that the snapshot was created from.
John Asmuth614db982014-04-24 15:46:26 -04001920 }</pre>
1921</div>
1922
1923</body></html>