REST Resource: enterprises.webApps
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:WebApp
JSON 表示法 |
{
"name": string,
"title": string,
"startUrl": string,
"icons": [
{
object (WebAppIcon )
}
],
"displayMode": enum (DisplayMode ),
"versionCode": string
} |
字段 |
name |
string
Web 应用的名称,在创建过程中由服务器生成,格式为 enterprises/{enterpriseId}/webApps/{packageName} 。
|
title |
string
向用户显示的 Web 应用的标题(例如,在其他应用列表中,或作为图标的标签)。
|
startUrl |
string
起始网址,即用户打开应用时应加载的网址。
|
icons[] |
object (WebAppIcon )
Web 应用的图标列表。必须至少包含一个元素。
|
displayMode |
enum (DisplayMode )
Web 应用的显示模式。
|
versionCode |
string (int64 format)
应用的当前版本。 请注意,版本可能会在 Web 应用的生命周期内自动提升,同时 Google 会进行内部处理以确保 Web 应用保持最新状态。
|
WebAppIcon
Web 应用的图标。支持的格式包括:png、jpg 和 webp。
JSON 表示法 |
{
"imageData": string
} |
字段 |
imageData |
string
base64url 编码字符串中图片的实际字节(请参阅 RFC4648 第 5 节“使用网址和文件名安全字母进行 Base 64 编码”)。 - 图片类型可以是 png 或 jpg。
- 理想情况下,图片应为正方形。
- 理想情况下,图片尺寸应为 512x512。
|
DisplayMode
枚举 |
DISPLAY_MODE_UNSPECIFIED |
未使用。 |
MINIMAL_UI |
打开 Web 应用,其中包含用于控制导航和查看网页网址的最小浏览器界面元素集。 |
STANDALONE |
打开 Web 应用,其外观和风格与独立原生应用相似。浏览器界面元素和网页网址不可见,但系统状态栏和返回按钮可见。 |
FULL_SCREEN |
以全屏模式打开 Web 应用,而不显示任何控件。浏览器界面元素、页面网址、系统状态栏和返回按钮都不可见,并且 Web 应用会占据整个可用显示区域。 |
方法 |
|
创建 Web 应用。 |
|
删除 Web 应用。 |
|
获取 Web 应用。 |
|
列出指定企业的 Web 应用。 |
|
更新 Web 应用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eA web app resource defines properties like name, title, URL, icons, and display mode, and allows for version control.\u003c/p\u003e\n"],["\u003cp\u003eWeb apps can be managed with methods to create, delete, retrieve, list, and update them.\u003c/p\u003e\n"],["\u003cp\u003eWebAppIcon defines the icon for the web app, supporting PNG, JPG, and WebP formats, ideally in a 512x512 size.\u003c/p\u003e\n"],["\u003cp\u003eDisplayMode allows controlling the web app's presentation, ranging from minimal UI to full-screen mode.\u003c/p\u003e\n"]]],["This describes a WebApp resource, its associated icon, and display settings. WebApps have properties like `name`, `title`, `startUrl`, `icons`, `displayMode`, and `versionCode`. `WebAppIcon` includes image data encoded in base64url. `DisplayMode` settings are `MINIMAL_UI`, `STANDALONE`, or `FULL_SCREEN`. Methods available include `create`, `delete`, `get`, `list`, and `patch`, enabling management of web apps within an enterprise.\n"],null,["# REST Resource: enterprises.webApps\n\n- [Resource: WebApp](#WebApp)\n - [JSON representation](#WebApp.SCHEMA_REPRESENTATION)\n- [WebAppIcon](#WebAppIcon)\n - [JSON representation](#WebAppIcon.SCHEMA_REPRESENTATION)\n- [DisplayMode](#DisplayMode)\n- [Methods](#METHODS_SUMMARY)\n\nResource: WebApp\n----------------\n\nA web app.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"title\": string, \"startUrl\": string, \"icons\": [ { object (/android/management/reference/rest/v1/enterprises.webApps#WebAppIcon) } ], \"displayMode\": enum (/android/management/reference/rest/v1/enterprises.webApps#DisplayMode), \"versionCode\": string } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The name of the web app, which is generated by the server during creation in the form `enterprises/{enterpriseId}/webApps/{packageName}`. |\n| `title` | `string` The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon). |\n| `startUrl` | `string` The start URL, i.e. the URL that should load when the user opens the application. |\n| `icons[]` | `object (`[WebAppIcon](/android/management/reference/rest/v1/enterprises.webApps#WebAppIcon)`)` A list of icons for the web app. Must have at least one element. |\n| `displayMode` | `enum (`[DisplayMode](/android/management/reference/rest/v1/enterprises.webApps#DisplayMode)`)` The display mode of the web app. |\n| `versionCode` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The current version of the app. Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app up-to-date. |\n\nWebAppIcon\n----------\n\nAn icon for a web app. Supported formats are: png, jpg and webp.\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"imageData\": string } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `imageData` | `string` The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 \"Base 64 Encoding with URL and Filename Safe Alphabet\"). - The image type can be png or jpg. - The image should ideally be square. - The image should ideally have a size of 512x512. \u003cbr /\u003e |\n\nDisplayMode\n-----------\n\nThe display mode of the web app.\n\n| Enums ||\n|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `DISPLAY_MODE_UNSPECIFIED` | Not used. |\n| `MINIMAL_UI` | Opens the web app with a minimal set of browser UI elements for controlling navigation and viewing the page URL. |\n| `STANDALONE` | Opens the web app to look and feel like a standalone native application. The browser UI elements and page URL are not visible, however the system status bar and back button are visible. |\n| `FULL_SCREEN` | Opens the web app in full screen without any visible controls. The browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------------|----------------------------------------|\n| ### [create](/android/management/reference/rest/v1/enterprises.webApps/create) | Creates a web app. |\n| ### [delete](/android/management/reference/rest/v1/enterprises.webApps/delete) | Deletes a web app. |\n| ### [get](/android/management/reference/rest/v1/enterprises.webApps/get) | Gets a web app. |\n| ### [list](/android/management/reference/rest/v1/enterprises.webApps/list) | Lists web apps for a given enterprise. |\n| ### [patch](/android/management/reference/rest/v1/enterprises.webApps/patch) | Updates a web app. |"]]