REST Resource: enterprises.webApps
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:WebApp
JSON 表示法 |
{
"name": string,
"title": string,
"startUrl": string,
"icons": [
{
object (WebAppIcon )
}
],
"displayMode": enum (DisplayMode ),
"versionCode": string
} |
欄位 |
name |
string
網頁應用程式的名稱,由伺服器在建立時產生,格式為 enterprises/{enterpriseId}/webApps/{packageName} 。
|
title |
string
向使用者顯示的網頁應用程式名稱 (例如其他應用程式清單或圖示的標籤)。
|
startUrl |
string
起始網址,亦即使用者開啟應用程式時應載入的網址。
|
icons[] |
object (WebAppIcon )
網頁應用程式的圖示清單。至少必須有一個元素。
|
displayMode |
enum (DisplayMode )
網頁應用程式的顯示模式。
|
versionCode |
string (int64 format)
應用程式的目前版本。 請注意,網頁應用程式的生命週期內可能會自動增加版本,但 Google 內部會進行內部作業,確保網頁應用程式保持在最新狀態。
|
WebAppIcon
網頁應用程式的圖示。支援的格式為 png、jpg 和 webp。
JSON 表示法 |
{
"imageData": string
} |
欄位 |
imageData |
string
在 Base64url 編碼字串中,圖片的實際位元組 (c.f. RFC4648 第 5 節「Base 64 Encoding with URL 和 Filename Safe Alphabet」)。 - 圖片類型可以是 png 或 jpg。
- 圖片最好是正方形。
- 最好為 512x512 的圖片。
|
DisplayMode
列舉 |
DISPLAY_MODE_UNSPECIFIED |
未使用。 |
MINIMAL_UI |
以最精簡的瀏覽器 UI 元素開啟網頁應用程式,用於控制導覽及查看網頁網址。 |
STANDALONE |
開啟網頁應用程式,產生類似獨立的原生應用程式的外觀與風格。雖然無法顯示瀏覽器使用者介面元素和網頁網址,但卻會顯示系統狀態列和返回按鈕。 |
FULL_SCREEN |
在不顯示任何控制項的情況下,以全螢幕模式開啟網頁應用程式。瀏覽器 UI 元素、網頁網址、系統狀態列和返回按鈕不可見,網頁應用程式會佔滿整個可用的顯示區域。 |
方法 |
|
建立網頁應用程式。 |
|
刪除網頁應用程式。 |
|
取得網頁應用程式。 |
|
列出特定企業的網頁應用程式。 |
|
更新網頁應用程式。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]