blob: 18e4f6d62832affa80a91e054b0f316ba13746cd [file] [log] [blame]
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +00001<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
Nathaniel Manista4f877e52015-06-15 16:44:50 +000075<h1><a href="androidenterprise_v1.html">Google Play EMM API</a> . <a href="androidenterprise_v1.installs.html">installs</a></h1>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#delete">delete(enterpriseId, userId, deviceId, installId, x__xgafv=None)</a></code></p>
79<p class="firstline">Requests to remove an app from a device. A call to <code>get</code> or</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000080<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#get">get(enterpriseId, userId, deviceId, installId, x__xgafv=None)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000082<p class="firstline">Retrieves details of an installation of an app on a device.</p>
83<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#list">list(enterpriseId, userId, deviceId, x__xgafv=None)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000085<p class="firstline">Retrieves the details of all apps installed on the specified device.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#update">update(enterpriseId, userId, deviceId, installId, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Requests to install the latest version of an app to a device. If the app</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000089<h3>Method Details</h3>
90<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070091 <code class="details" id="delete">delete(enterpriseId, userId, deviceId, installId, x__xgafv=None)</code>
92 <pre>Requests to remove an app from a device. A call to &lt;code&gt;get&lt;/code&gt; or
93&lt;code&gt;list&lt;/code&gt; will still show the app as installed on the device until
94it is actually removed.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000095
96Args:
97 enterpriseId: string, The ID of the enterprise. (required)
98 userId: string, The ID of the user. (required)
99 deviceId: string, The Android ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100 installId: string, The ID of the product represented by the install, e.g.
101&quot;app:com.google.android.gm&quot;. (required)
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000106</pre>
107</div>
108
109<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700110 <code class="details" id="get">get(enterpriseId, userId, deviceId, installId, x__xgafv=None)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000111 <pre>Retrieves details of an installation of an app on a device.
112
113Args:
114 enterpriseId: string, The ID of the enterprise. (required)
115 userId: string, The ID of the user. (required)
116 deviceId: string, The Android ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 installId: string, The ID of the product represented by the install, e.g.
118&quot;app:com.google.android.gm&quot;. (required)
119 x__xgafv: string, V1 error format.
120 Allowed values
121 1 - v1 error format
122 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000123
124Returns:
125 An object of the form:
126
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700127 { # The existence of an Installs resource indicates that an app is
128 # installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130 # The API can be used to create an install resource using the
131 # &lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;&gt;update&lt;/a&gt;
132 # method. This triggers the actual install of the app on the device. If the
133 # user does not already have an entitlement for the app, then an attempt is
134 # made to create one. If this fails (for example, because the app is not free
135 # and there is no available license), then the creation of the install fails.
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 # The API can also be used to update an installed app. If
138 # the&amp;nbsp;&lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;
139 # style=&quot;font-style: normal; font-size: 14px; font-family: Roboto, sans-serif;
140 # line-height: 22.3999996185303px;&quot;&gt;update&lt;/a&gt;&amp;nbsp;method is
141 # used on an existing install, then the app will be updated to the latest
142 # available version.
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 # Note that it is not possible to force the installation of a specific version
145 # of an app: the version code is read-only.
Dan O'Mearadd494642020-05-01 07:42:23 -0700146 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 # If a user installs an app themselves (as permitted by the enterprise), then
148 # again an install resource and possibly an entitlement resource are
149 # automatically created.
Dan O'Mearadd494642020-05-01 07:42:23 -0700150 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700151 # The API can also be used to delete an install resource, which triggers the
152 # removal of the app from the device. Note that deleting an install does not
153 # automatically remove the corresponding entitlement, even if there are no
154 # remaining installs. The install resource will also be deleted if the user
155 # uninstalls the app themselves.
156 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the
157 # install state is &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;.
158 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &lt;code&gt;&amp;quot;installPending&amp;quot;&lt;/code&gt;
159 # means that an install request has recently been made and download to the
160 # device is in progress. The state &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;
161 # means that the app has been installed. This field is read-only.
162 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example,
163 # &lt;code&gt;&amp;quot;app:com.google.android.gm&amp;quot;&lt;/code&gt;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700164 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000165</div>
166
167<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700168 <code class="details" id="list">list(enterpriseId, userId, deviceId, x__xgafv=None)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000169 <pre>Retrieves the details of all apps installed on the specified device.
170
171Args:
172 enterpriseId: string, The ID of the enterprise. (required)
173 userId: string, The ID of the user. (required)
174 deviceId: string, The Android ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700175 x__xgafv: string, V1 error format.
176 Allowed values
177 1 - v1 error format
178 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000179
180Returns:
181 An object of the form:
182
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700183 {
184 &quot;install&quot;: [ # An installation of an app for a user on a specific device.
185 # The existence of an install implies that the user must have an
186 # entitlement to the app.
187 { # The existence of an Installs resource indicates that an app is
188 # installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700189 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 # The API can be used to create an install resource using the
191 # &lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;&gt;update&lt;/a&gt;
192 # method. This triggers the actual install of the app on the device. If the
193 # user does not already have an entitlement for the app, then an attempt is
194 # made to create one. If this fails (for example, because the app is not free
195 # and there is no available license), then the creation of the install fails.
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700197 # The API can also be used to update an installed app. If
198 # the&amp;nbsp;&lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;
199 # style=&quot;font-style: normal; font-size: 14px; font-family: Roboto, sans-serif;
200 # line-height: 22.3999996185303px;&quot;&gt;update&lt;/a&gt;&amp;nbsp;method is
201 # used on an existing install, then the app will be updated to the latest
202 # available version.
Dan O'Mearadd494642020-05-01 07:42:23 -0700203 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700204 # Note that it is not possible to force the installation of a specific version
205 # of an app: the version code is read-only.
Dan O'Mearadd494642020-05-01 07:42:23 -0700206 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700207 # If a user installs an app themselves (as permitted by the enterprise), then
208 # again an install resource and possibly an entitlement resource are
209 # automatically created.
Dan O'Mearadd494642020-05-01 07:42:23 -0700210 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 # The API can also be used to delete an install resource, which triggers the
212 # removal of the app from the device. Note that deleting an install does not
213 # automatically remove the corresponding entitlement, even if there are no
214 # remaining installs. The install resource will also be deleted if the user
215 # uninstalls the app themselves.
216 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the
217 # install state is &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;.
218 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &lt;code&gt;&amp;quot;installPending&amp;quot;&lt;/code&gt;
219 # means that an install request has recently been made and download to the
220 # device is in progress. The state &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;
221 # means that the app has been installed. This field is read-only.
222 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example,
223 # &lt;code&gt;&amp;quot;app:com.google.android.gm&amp;quot;&lt;/code&gt;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700224 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000225 ],
226 }</pre>
227</div>
228
229<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700230 <code class="details" id="update">update(enterpriseId, userId, deviceId, installId, body=None, x__xgafv=None)</code>
231 <pre>Requests to install the latest version of an app to a device. If the app
232is already installed, then it is updated to the latest version if
233necessary.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000234
235Args:
236 enterpriseId: string, The ID of the enterprise. (required)
237 userId: string, The ID of the user. (required)
238 deviceId: string, The Android ID of the device. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700239 installId: string, The ID of the product represented by the install, e.g.
240&quot;app:com.google.android.gm&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700241 body: object, The request body.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000242 The object takes the form of:
243
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700244{ # The existence of an Installs resource indicates that an app is
245 # installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700246 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700247 # The API can be used to create an install resource using the
248 # &lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;&gt;update&lt;/a&gt;
249 # method. This triggers the actual install of the app on the device. If the
250 # user does not already have an entitlement for the app, then an attempt is
251 # made to create one. If this fails (for example, because the app is not free
252 # and there is no available license), then the creation of the install fails.
Dan O'Mearadd494642020-05-01 07:42:23 -0700253 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 # The API can also be used to update an installed app. If
255 # the&amp;nbsp;&lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;
256 # style=&quot;font-style: normal; font-size: 14px; font-family: Roboto, sans-serif;
257 # line-height: 22.3999996185303px;&quot;&gt;update&lt;/a&gt;&amp;nbsp;method is
258 # used on an existing install, then the app will be updated to the latest
259 # available version.
Dan O'Mearadd494642020-05-01 07:42:23 -0700260 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700261 # Note that it is not possible to force the installation of a specific version
262 # of an app: the version code is read-only.
Dan O'Mearadd494642020-05-01 07:42:23 -0700263 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 # If a user installs an app themselves (as permitted by the enterprise), then
265 # again an install resource and possibly an entitlement resource are
266 # automatically created.
Dan O'Mearadd494642020-05-01 07:42:23 -0700267 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700268 # The API can also be used to delete an install resource, which triggers the
269 # removal of the app from the device. Note that deleting an install does not
270 # automatically remove the corresponding entitlement, even if there are no
271 # remaining installs. The install resource will also be deleted if the user
272 # uninstalls the app themselves.
273 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the
274 # install state is &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;.
275 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &lt;code&gt;&amp;quot;installPending&amp;quot;&lt;/code&gt;
276 # means that an install request has recently been made and download to the
277 # device is in progress. The state &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;
278 # means that the app has been installed. This field is read-only.
279 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example,
280 # &lt;code&gt;&amp;quot;app:com.google.android.gm&amp;quot;&lt;/code&gt;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700281}
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000282
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700283 x__xgafv: string, V1 error format.
284 Allowed values
285 1 - v1 error format
286 2 - v2 error format
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000287
288Returns:
289 An object of the form:
290
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700291 { # The existence of an Installs resource indicates that an app is
292 # installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700293 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 # The API can be used to create an install resource using the
295 # &lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;&gt;update&lt;/a&gt;
296 # method. This triggers the actual install of the app on the device. If the
297 # user does not already have an entitlement for the app, then an attempt is
298 # made to create one. If this fails (for example, because the app is not free
299 # and there is no available license), then the creation of the install fails.
Dan O'Mearadd494642020-05-01 07:42:23 -0700300 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 # The API can also be used to update an installed app. If
302 # the&amp;nbsp;&lt;a class=&quot;method-link&quot; method=&quot;androidenterprise.installs.update&quot;
303 # style=&quot;font-style: normal; font-size: 14px; font-family: Roboto, sans-serif;
304 # line-height: 22.3999996185303px;&quot;&gt;update&lt;/a&gt;&amp;nbsp;method is
305 # used on an existing install, then the app will be updated to the latest
306 # available version.
Dan O'Mearadd494642020-05-01 07:42:23 -0700307 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700308 # Note that it is not possible to force the installation of a specific version
309 # of an app: the version code is read-only.
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700311 # If a user installs an app themselves (as permitted by the enterprise), then
312 # again an install resource and possibly an entitlement resource are
313 # automatically created.
Dan O'Mearadd494642020-05-01 07:42:23 -0700314 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700315 # The API can also be used to delete an install resource, which triggers the
316 # removal of the app from the device. Note that deleting an install does not
317 # automatically remove the corresponding entitlement, even if there are no
318 # remaining installs. The install resource will also be deleted if the user
319 # uninstalls the app themselves.
320 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the
321 # install state is &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;.
322 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &lt;code&gt;&amp;quot;installPending&amp;quot;&lt;/code&gt;
323 # means that an install request has recently been made and download to the
324 # device is in progress. The state &lt;code&gt;&amp;quot;installed&amp;quot;&lt;/code&gt;
325 # means that the app has been installed. This field is read-only.
326 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example,
327 # &lt;code&gt;&amp;quot;app:com.google.android.gm&amp;quot;&lt;/code&gt;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700328 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000329</div>
330
331</body></html>