blob: bc51362f630be104db6719e4ed07d7130d56ae25 [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">
78 <code><a href="#delete">delete(enterpriseId, userId, deviceId, installId)</a></code></p>
79<p class="firstline">Requests to remove an app from a device. A call to get or list will still show the app as installed on the device until it is actually removed.</p>
80<p class="toc_element">
81 <code><a href="#get">get(enterpriseId, userId, deviceId, installId)</a></code></p>
82<p class="firstline">Retrieves details of an installation of an app on a device.</p>
83<p class="toc_element">
84 <code><a href="#list">list(enterpriseId, userId, deviceId)</a></code></p>
85<p class="firstline">Retrieves the details of all apps installed on the specified device.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#update">update(enterpriseId, userId, deviceId, installId, body=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040088<p class="firstline">Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary.</p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000089<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="delete">delete(enterpriseId, userId, deviceId, installId)</code>
92 <pre>Requests to remove an app from a device. A call to get or list will still show the app as installed on the device until it is actually removed.
93
94Args:
95 enterpriseId: string, The ID of the enterprise. (required)
96 userId: string, The ID of the user. (required)
97 deviceId: string, The Android ID of the device. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -070098 installId: string, The ID of the product represented by the install, e.g. &quot;app:com.google.android.gm&quot;. (required)
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000099</pre>
100</div>
101
102<div class="method">
103 <code class="details" id="get">get(enterpriseId, userId, deviceId, installId)</code>
104 <pre>Retrieves details of an installation of an app on a device.
105
106Args:
107 enterpriseId: string, The ID of the enterprise. (required)
108 userId: string, The ID of the user. (required)
109 deviceId: string, The Android ID of the device. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 installId: string, The ID of the product represented by the install, e.g. &quot;app:com.google.android.gm&quot;. (required)
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000111
112Returns:
113 An object of the form:
114
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400115 { # The existence of an Installs resource indicates that an app is installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 #
117 # The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app, then an attempt is made to create one. If this fails (for example, because the app is not free and there is no available license), then the creation of the install fails.
118 #
119 # The API can also be used to update an installed app. If the update method is used on an existing install, then the app will be updated to the latest available version.
120 #
121 # Note that it is not possible to force the installation of a specific version of an app: the version code is read-only.
122 #
123 # If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created.
124 #
125 # The API can also be used to delete an install resource, which triggers the removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &quot;installPending&quot; means that an install request has recently been made and download to the device is in progress. The state &quot;installed&quot; means that the app has been installed. This field is read-only.
127 &quot;kind&quot;: &quot;androidenterprise#install&quot;,
128 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example, &quot;app:com.google.android.gm&quot;.
129 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the install state is &quot;installed&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000131</div>
132
133<div class="method">
134 <code class="details" id="list">list(enterpriseId, userId, deviceId)</code>
135 <pre>Retrieves the details of all apps installed on the specified device.
136
137Args:
138 enterpriseId: string, The ID of the enterprise. (required)
139 userId: string, The ID of the user. (required)
140 deviceId: string, The Android ID of the device. (required)
141
142Returns:
143 An object of the form:
144
145 { # The install resources for the device.
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;install&quot;: [ # An installation of an app for a user on a specific device. The existence of an install implies that the user must have an entitlement to the app.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400147 { # The existence of an Installs resource indicates that an app is installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 #
149 # The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app, then an attempt is made to create one. If this fails (for example, because the app is not free and there is no available license), then the creation of the install fails.
150 #
151 # The API can also be used to update an installed app. If the update method is used on an existing install, then the app will be updated to the latest available version.
152 #
153 # Note that it is not possible to force the installation of a specific version of an app: the version code is read-only.
154 #
155 # If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created.
156 #
157 # The API can also be used to delete an install resource, which triggers the removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &quot;installPending&quot; means that an install request has recently been made and download to the device is in progress. The state &quot;installed&quot; means that the app has been installed. This field is read-only.
159 &quot;kind&quot;: &quot;androidenterprise#install&quot;,
160 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example, &quot;app:com.google.android.gm&quot;.
161 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the install state is &quot;installed&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700162 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000163 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;kind&quot;: &quot;androidenterprise#installsListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;androidenterprise#installsListResponse&quot;.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000165 }</pre>
166</div>
167
168<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 <code class="details" id="update">update(enterpriseId, userId, deviceId, installId, body=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400170 <pre>Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000171
172Args:
173 enterpriseId: string, The ID of the enterprise. (required)
174 userId: string, The ID of the user. (required)
175 deviceId: string, The Android ID of the device. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 installId: string, The ID of the product represented by the install, e.g. &quot;app:com.google.android.gm&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700177 body: object, The request body.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000178 The object takes the form of:
179
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400180{ # The existence of an Installs resource indicates that an app is installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700181 #
182 # The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app, then an attempt is made to create one. If this fails (for example, because the app is not free and there is no available license), then the creation of the install fails.
183 #
184 # The API can also be used to update an installed app. If the update method is used on an existing install, then the app will be updated to the latest available version.
185 #
186 # Note that it is not possible to force the installation of a specific version of an app: the version code is read-only.
187 #
188 # If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created.
189 #
190 # The API can also be used to delete an install resource, which triggers the removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &quot;installPending&quot; means that an install request has recently been made and download to the device is in progress. The state &quot;installed&quot; means that the app has been installed. This field is read-only.
192 &quot;kind&quot;: &quot;androidenterprise#install&quot;,
193 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example, &quot;app:com.google.android.gm&quot;.
194 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the install state is &quot;installed&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700195}
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000196
197
198Returns:
199 An object of the form:
200
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400201 { # The existence of an Installs resource indicates that an app is installed on a particular device (or that an install is pending).
Dan O'Mearadd494642020-05-01 07:42:23 -0700202 #
203 # The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app, then an attempt is made to create one. If this fails (for example, because the app is not free and there is no available license), then the creation of the install fails.
204 #
205 # The API can also be used to update an installed app. If the update method is used on an existing install, then the app will be updated to the latest available version.
206 #
207 # Note that it is not possible to force the installation of a specific version of an app: the version code is read-only.
208 #
209 # If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created.
210 #
211 # The API can also be used to delete an install resource, which triggers the removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;installState&quot;: &quot;A String&quot;, # Install state. The state &quot;installPending&quot; means that an install request has recently been made and download to the device is in progress. The state &quot;installed&quot; means that the app has been installed. This field is read-only.
213 &quot;kind&quot;: &quot;androidenterprise#install&quot;,
214 &quot;productId&quot;: &quot;A String&quot;, # The ID of the product that the install is for. For example, &quot;app:com.google.android.gm&quot;.
215 &quot;versionCode&quot;: 42, # The version of the installed product. Guaranteed to be set only if the install state is &quot;installed&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700216 }</pre>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000217</div>
218
219</body></html>