blob: 1a64dbad5a9a65c0dc9b3867f9b9cf49c5ed58a9 [file] [log] [blame]
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001<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="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.instances.html">instances</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="apigee_v1.organizations.instances.attachments.html">attachments()</a></code>
79</p>
80<p class="firstline">Returns the attachments Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Creates an Apigee runtime instance. The instance is accessible from the</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes an Apigee runtime instance. The instance stops serving</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets the details for an Apigee runtime instance.</p>
91<p class="toc_element">
92 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Lists all Apigee runtime instances for the organization.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
98 <code><a href="#reportStatus">reportStatus(instance, body=None, x__xgafv=None)</a></code></p>
99<p class="firstline">Reports the latest status for a runtime instance.</p>
100<h3>Method Details</h3>
101<div class="method">
102 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
103 <pre>Creates an Apigee runtime instance. The instance is accessible from the
104authorized network configured on the organization.
105
106**Note:** Not supported for Apigee hybrid.
107
108Args:
109 parent: string, Required. Name of the organization. Use the following structure in your request:
110 `organizations/{org}`. (required)
111 body: object, The request body.
112 The object takes the form of:
113
114{ # Apigee runtime instance.
115 &quot;location&quot;: &quot;A String&quot;, # Required. Compute Engine location where the instance resides.
116 &quot;diskEncryptionKeyName&quot;: &quot;A String&quot;, # Optional. Customer Managed Encryption Key (CMEK) used for disk &amp; volume encryption.
117 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for the instance.
118 &quot;name&quot;: &quot;A String&quot;, # Required. Resource ID of the instance. Values must match the
119 # regular expression `^a-z{0,30}[a-z\d]$`.
120 &quot;port&quot;: &quot;A String&quot;, # Output only. Port number of the exposed Apigee endpoint.
121 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Time the instance was created in milliseconds since epoch.
122 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Apigee endpoint used by clients to
123 # connect to the service.
124 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Time the instance was last modified in milliseconds since epoch.
125 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the instance.
126}
127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133Returns:
134 An object of the form:
135
136 { # This resource represents a long-running operation that is the result of a
137 # network API call.
138 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
139 # contains progress information and common metadata such as create time.
140 # Some services might not provide such metadata. Any method that returns a
141 # long-running operation should document the metadata type, if any.
142 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
143 },
144 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
145 # method returns no data on success, such as `Delete`, the response is
146 # `google.protobuf.Empty`. If the original method is standard
147 # `Get`/`Create`/`Update`, the response should be the resource. For other
148 # methods, the response should have the type `XxxResponse`, where `Xxx`
149 # is the original method name. For example, if the original method name
150 # is `TakeSnapshot()`, the inferred response type is
151 # `TakeSnapshotResponse`.
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
154 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
155 # If `true`, the operation is completed, and either `error` or `response` is
156 # available.
157 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
158 # originally returns it. If you use the default HTTP mapping, the
159 # `name` should be a resource name ending with `operations/{unique_id}`.
160 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
161 # different programming environments, including REST APIs and RPC APIs. It is
162 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
163 # three pieces of data: error code, error message, and error details.
164 #
165 # You can find out more about this error model and how to work with it in the
166 # [API Design Guide](https://cloud.google.com/apis/design/errors).
167 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
168 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
169 # user-facing error message should be localized and sent in the
170 # google.rpc.Status.details field, or localized by the client.
171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
172 # message types for APIs to use.
173 {
174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
175 },
176 ],
177 },
178 }</pre>
179</div>
180
181<div class="method">
182 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
183 <pre>Deletes an Apigee runtime instance. The instance stops serving
184requests and the runtime data is deleted.
185
186**Note:** Not supported for Apigee hybrid.
187
188Args:
189 name: string, Name of the instance. Use the following structure in your request:
190 `organizations/{org}/instance/{instance}`. (required)
191 x__xgafv: string, V1 error format.
192 Allowed values
193 1 - v1 error format
194 2 - v2 error format
195
196Returns:
197 An object of the form:
198
199 { # This resource represents a long-running operation that is the result of a
200 # network API call.
201 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
202 # contains progress information and common metadata such as create time.
203 # Some services might not provide such metadata. Any method that returns a
204 # long-running operation should document the metadata type, if any.
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
208 # method returns no data on success, such as `Delete`, the response is
209 # `google.protobuf.Empty`. If the original method is standard
210 # `Get`/`Create`/`Update`, the response should be the resource. For other
211 # methods, the response should have the type `XxxResponse`, where `Xxx`
212 # is the original method name. For example, if the original method name
213 # is `TakeSnapshot()`, the inferred response type is
214 # `TakeSnapshotResponse`.
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
217 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
218 # If `true`, the operation is completed, and either `error` or `response` is
219 # available.
220 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
221 # originally returns it. If you use the default HTTP mapping, the
222 # `name` should be a resource name ending with `operations/{unique_id}`.
223 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
224 # different programming environments, including REST APIs and RPC APIs. It is
225 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
226 # three pieces of data: error code, error message, and error details.
227 #
228 # You can find out more about this error model and how to work with it in the
229 # [API Design Guide](https://cloud.google.com/apis/design/errors).
230 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
231 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
232 # user-facing error message should be localized and sent in the
233 # google.rpc.Status.details field, or localized by the client.
234 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
235 # message types for APIs to use.
236 {
237 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
238 },
239 ],
240 },
241 }</pre>
242</div>
243
244<div class="method">
245 <code class="details" id="get">get(name, x__xgafv=None)</code>
246 <pre>Gets the details for an Apigee runtime instance.
247
248**Note:** Not supported for Apigee hybrid.
249
250Args:
251 name: string, Name of the instance. Use the following structure in your request:
252 `organizations/{org}/instances/{instance}`. (required)
253 x__xgafv: string, V1 error format.
254 Allowed values
255 1 - v1 error format
256 2 - v2 error format
257
258Returns:
259 An object of the form:
260
261 { # Apigee runtime instance.
262 &quot;location&quot;: &quot;A String&quot;, # Required. Compute Engine location where the instance resides.
263 &quot;diskEncryptionKeyName&quot;: &quot;A String&quot;, # Optional. Customer Managed Encryption Key (CMEK) used for disk &amp; volume encryption.
264 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for the instance.
265 &quot;name&quot;: &quot;A String&quot;, # Required. Resource ID of the instance. Values must match the
266 # regular expression `^a-z{0,30}[a-z\d]$`.
267 &quot;port&quot;: &quot;A String&quot;, # Output only. Port number of the exposed Apigee endpoint.
268 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Time the instance was created in milliseconds since epoch.
269 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Apigee endpoint used by clients to
270 # connect to the service.
271 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Time the instance was last modified in milliseconds since epoch.
272 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the instance.
273 }</pre>
274</div>
275
276<div class="method">
277 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
278 <pre>Lists all Apigee runtime instances for the organization.
279
280**Note:** Not supported for Apigee hybrid.
281
282Args:
283 parent: string, Name of the organization. Use the following structure in your request:
284 `organizations/{org}`. (required)
285 pageSize: integer, Maximum number of instances to return. Defaults to 25.
286 pageToken: string, Page token, returned from a previous ListInstances call, that you can
287use to retrieve the next page of content.
288 x__xgafv: string, V1 error format.
289 Allowed values
290 1 - v1 error format
291 2 - v2 error format
292
293Returns:
294 An object of the form:
295
296 { # Response for ListInstances.
297 &quot;nextPageToken&quot;: &quot;A String&quot;, # Page token that you can include in a ListInstance request to retrieve
298 # the next page of content. If omitted, no subsequent pages exist.
299 &quot;instances&quot;: [ # Instances in the specified organization.
300 { # Apigee runtime instance.
301 &quot;location&quot;: &quot;A String&quot;, # Required. Compute Engine location where the instance resides.
302 &quot;diskEncryptionKeyName&quot;: &quot;A String&quot;, # Optional. Customer Managed Encryption Key (CMEK) used for disk &amp; volume encryption.
303 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name for the instance.
304 &quot;name&quot;: &quot;A String&quot;, # Required. Resource ID of the instance. Values must match the
305 # regular expression `^a-z{0,30}[a-z\d]$`.
306 &quot;port&quot;: &quot;A String&quot;, # Output only. Port number of the exposed Apigee endpoint.
307 &quot;createdAt&quot;: &quot;A String&quot;, # Output only. Time the instance was created in milliseconds since epoch.
308 &quot;host&quot;: &quot;A String&quot;, # Output only. Hostname or IP address of the exposed Apigee endpoint used by clients to
309 # connect to the service.
310 &quot;lastModifiedAt&quot;: &quot;A String&quot;, # Output only. Time the instance was last modified in milliseconds since epoch.
311 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the instance.
312 },
313 ],
314 }</pre>
315</div>
316
317<div class="method">
318 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
319 <pre>Retrieves the next page of results.
320
321Args:
322 previous_request: The request for the previous page. (required)
323 previous_response: The response from the request for the previous page. (required)
324
325Returns:
326 A request object that you can call &#x27;execute()&#x27; on to request the next
327 page. Returns None if there are no more items in the collection.
328 </pre>
329</div>
330
331<div class="method">
332 <code class="details" id="reportStatus">reportStatus(instance, body=None, x__xgafv=None)</code>
333 <pre>Reports the latest status for a runtime instance.
334
335Args:
336 instance: string, The name of the instance reporting this status. For SaaS the request
337will be rejected if no instance exists under this name.
338Format is organizations/{org}/instances/{instance} (required)
339 body: object, The request body.
340 The object takes the form of:
341
342{ # Request for ReportInstanceStatus.
343 &quot;reportTime&quot;: &quot;A String&quot;, # The time the report was generated in the runtime. Used to prevent an old
344 # status from overwriting a newer one. An instance should space out it&#x27;s
345 # status reports so that clock skew does not play a factor.
346 &quot;instanceUid&quot;: &quot;A String&quot;, # A unique ID for the instance which is guaranteed to be unique in case the
347 # user installs multiple hybrid runtimes with the same instance ID.
348 &quot;resources&quot;: [ # Status for config resources
349 { # The status of a resource loaded in the runtime.
350 &quot;uid&quot;: &quot;A String&quot;, # The uid of the resource. In the unexpected case that the instance has
351 # multiple uids for the same name, they should be reported under separate
352 # ResourceStatuses.
353 &quot;totalReplicas&quot;: 42, # The total number of replicas that should have this resource.
354 &quot;revisions&quot;: [ # Revisions of the resource currently deployed in the instance.
355 { # The status of a specific resource revision.
356 &quot;replicas&quot;: 42, # The number of replicas that have successfully loaded this revision.
357 &quot;errors&quot;: [ # Errors reported when attempting to load this revision.
358 { # Details on why a resource update failed in the runtime.
359 &quot;code&quot;: &quot;A String&quot;, # Status code.
360 &quot;resource&quot;: &quot;A String&quot;, # The sub resource specific to this error (e.g. a proxy deployed within the
361 # EnvironmentConfig). If empty the error refers to the top level resource.
362 &quot;message&quot;: &quot;A String&quot;, # User-friendly error message.
363 &quot;type&quot;: &quot;A String&quot;, # A string that uniquely identifies the type of error. This provides a
364 # more reliable means to deduplicate errors across revisions and instances.
365 },
366 ],
367 &quot;jsonSpec&quot;: &quot;A String&quot;, # The json content of the resource revision.
368 &quot;revisionId&quot;: &quot;A String&quot;, # The revision of the resource.
369 },
370 ],
371 &quot;resource&quot;: &quot;A String&quot;, # The resource name. Currently only two resources are supported:
372 # EnvironmentGroup - organizations/{org}/envgroups/{envgroup}
373 # EnvironmentConfig -
374 # organizations/{org}/environments/{environment}/deployedConfig
375 },
376 ],
377 }
378
379 x__xgafv: string, V1 error format.
380 Allowed values
381 1 - v1 error format
382 2 - v2 error format
383
384Returns:
385 An object of the form:
386
387 { # Placeholder for future enhancements to status reporting protocol
388 }</pre>
389</div>
390
391</body></html>