Web Apps - Get Function
依網站標識碼或部署位置取得函式資訊的描述。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}?api-version=2024-04-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
function
|
path | True |
string |
函式名稱。 |
name
|
path | True |
string |
網站名稱。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
資源所屬的資源群組名稱。 |
subscription
|
path | True |
string |
您的 Azure 訂用帳戶標識碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)。 |
api-version
|
query | True |
string |
API 版本 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
傳回的函式資訊。 |
|
404 Not Found |
名稱為 {functionName} 的函式不存在。 |
|
Other Status Codes |
App Service 錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
定義
名稱 | Description |
---|---|
Default |
App Service 錯誤回應。 |
Details | |
Error |
錯誤模型。 |
Function |
函式資訊。 |
DefaultErrorResponse
App Service 錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤模型。 |
Details
名稱 | 類型 | Description |
---|---|---|
code |
string |
以程式設計方式識別錯誤的標準化字串。 |
message |
string |
詳細的錯誤描述和偵錯資訊。 |
target |
string |
詳細的錯誤描述和偵錯資訊。 |
Error
錯誤模型。
名稱 | 類型 | Description |
---|---|---|
code |
string |
以程式設計方式識別錯誤的標準化字串。 |
details |
Details[] |
詳細的錯誤。 |
innererror |
string |
偵錯錯誤的詳細資訊。 |
message |
string |
詳細的錯誤描述和偵錯資訊。 |
target |
string |
詳細的錯誤描述和偵錯資訊。 |
FunctionEnvelope
函式資訊。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
kind |
string |
資源種類。 |
name |
string |
資源名稱。 |
properties.config |
object |
設定資訊。 |
properties.config_href |
string |
設定 URI。 |
properties.files |
object |
檔案清單。 |
properties.function_app_id |
string |
函式應用程式識別碼。 |
properties.href |
string |
函式 URI。 |
properties.invoke_url_template |
string |
叫用 URL |
properties.isDisabled |
boolean |
取得或設定值,指出函式是否停用 |
properties.language |
string |
函式語言 |
properties.script_href |
string |
腳本 URI。 |
properties.script_root_path_href |
string |
編寫根路徑 URI 的腳本。 |
properties.secrets_file_href |
string |
秘密檔案 URI。 |
properties.test_data |
string |
透過 Azure 入口網站測試時所使用的測試數據。 |
properties.test_data_href |
string |
測試數據 URI。 |
type |
string |
資源類型。 |