Web Apps - Get Function

Popis pro získání informací o funkci podle id webu nebo slotu nasazení.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}?api-version=2023-12-01

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
functionName
path True

string

Název funkce.

name
path True

string

Název webu.

resourceGroupName
path True

string

Název skupiny prostředků, do které prostředek patří.

Regex pattern: ^[-\w\._\(\)]+[^\.]$

subscriptionId
path True

string

ID vašeho předplatného Azure Jedná se o řetězec ve formátu GUID (např. 00000000-0000-0000-0000-00000000000000000).

api-version
query True

string

Verze rozhraní API

Odpovědi

Name Typ Description
200 OK

FunctionEnvelope

Vrátí se informace o funkci.

404 Not Found

Funkce s názvem {functionName} neexistuje.

Other Status Codes

DefaultErrorResponse

App Service odpověď na chybu.

Zabezpečení

azure_auth

Tok Azure Active Directory OAuth2

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation zosobnění uživatelského účtu

Definice

Name Description
DefaultErrorResponse

App Service odpověď na chybu.

Details
Error

Model chyb.

FunctionEnvelope

Informace o funkci.

DefaultErrorResponse

App Service odpověď na chybu.

Name Typ Description
error

Error

Model chyb.

Details

Name Typ Description
code

string

Standardizovaný řetězec pro programovou identifikaci chyby

message

string

Podrobný popis chyby a informace o ladění

target

string

Podrobný popis chyby a informace o ladění

Error

Model chyb.

Name Typ Description
code

string

Standardizovaný řetězec pro programovou identifikaci chyby

details

Details[]

Podrobné chyby.

innererror

string

Další informace o chybě ladění

message

string

Podrobný popis chyby a informace o ladění

target

string

Podrobný popis chyby a informace o ladění

FunctionEnvelope

Informace o funkci.

Name Typ Description
id

string

ID prostředku.

kind

string

Druh prostředku.

name

string

Název prostředku.

properties.config

object

Informace o konfiguraci.

properties.config_href

string

Identifikátor URI konfigurace

properties.files

object

Seznam souborů.

properties.function_app_id

string

ID aplikace funkcí.

properties.href

string

Identifikátor URI funkce

properties.invoke_url_template

string

Adresa URL pro vyvolání

properties.isDisabled

boolean

Získá nebo nastaví hodnotu označující, jestli je funkce zakázaná.

properties.language

string

Jazyk funkcí

properties.script_href

string

Identifikátor URI skriptu.

properties.script_root_path_href

string

Identifikátor URI kořenové cesty skriptu.

properties.secrets_file_href

string

Identifikátor URI souboru tajných kódů.

properties.test_data

string

Otestujte data použitá při testování prostřednictvím webu Azure Portal.

properties.test_data_href

string

Identifikátor URI testovacích dat

type

string

Typ prostředku.