網頁應用程式和 API 執行檔資訊清單資源
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
用於定義網頁應用程式和 API 執行檔的資源設定。
網頁應用程式
指令碼專案的網頁應用程式設定 (僅於專案使用)
已部署為網頁應用程式
JSON 表示法 |
{
"access": string,
"executeAs": string
} |
欄位 |
access |
string
執行網頁應用程式的權限層級。有效設定
包括:
MYSELF 表示僅限已部署應用程式的使用者
以便執行
DOMAIN 表示只有與
讓部署使用者可以執行
ANYONE 表示任何已登入的使用者。
ANYONE_ANONYMOUS 表示任何使用者
登入。
|
executeAs |
string
網頁應用程式執行的身分。有效的
設定如下:
USER_ACCESSING 表示網頁應用程式會以
易於存取
USER_DEPLOYING 表示網頁應用程式會以
部署這個容器的使用者
|
ExecutionApi
指令碼專案的 API 執行檔設定。只有在廣告代碼的
已部署專案以供 API 執行。
JSON 表示法 |
{
"access": string
} |
欄位 |
access |
string
決定誰有權透過 API 執行指令碼。
有效設定如下:
MYSELF 表示僅限已部署
指令碼來執行
DOMAIN 表示只有與
讓部署使用者可以執行
ANYONE 表示任何已登入的使用者。
ANYONE_ANONYMOUS 表示任何使用者
登入。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eResource configurations define how web apps and APIs execute within a project.\u003c/p\u003e\n"],["\u003cp\u003eWeb app configurations control access levels (MYSELF, DOMAIN, ANYONE, ANYONE_ANONYMOUS) and execution identity (USER_ACCESSING, USER_DEPLOYING).\u003c/p\u003e\n"],["\u003cp\u003eAPI executable configurations manage access permissions for running scripts via the API, using similar access levels as web apps.\u003c/p\u003e\n"]]],[],null,["# Web apps and API executables manifest resource\n\nThe resource configurations used to define web apps and API executables.\n\nWebapp\n------\n\nThe script project's web app configuration, which is only used if the project\nis deployed as a web app.\n\n| JSON representation |\n|-------------------------------------------------------|\n| ```text { \"access\": string, \"executeAs\": string } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `access` | `string` The levels of permission for running the web app. The valid settings are the following: - `MYSELF` indicates only the user who deployed the app can run it. - `DOMAIN` indicates only users in the same domain as the deploying user can run it. - `ANYONE` indicates any user who is logged in. - `ANYONE_ANONYMOUS` indicates any user, even if not logged in. |\n| `executeAs` | `string` The identity under which the web app executes. The valid settings are the following: - `USER_ACCESSING` indicates the web app runs as the user accessing it. - `USER_DEPLOYING` indicates the web app runs as the user who deployed it. |\n\nExecutionApi\n------------\n\nThe script project's API executable configuration. This is only used if the\nproject is deployed for API execution.\n\n| JSON representation |\n|----------------------------------|\n| ```text { \"access\": string } ``` |\n\n| Fields ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `access` | `string` Determines who has permission to run the script from the API. The valid settings are the following: - `MYSELF` indicates only the user who deployed the script can run it. - `DOMAIN` indicates only users in the same domain as the deploying user can run it. - `ANYONE` indicates any user who is logged in. - `ANYONE_ANONYMOUS` indicates any user, even if not logged in. |"]]