Web Apps - Create Function
Beschrijving voor Creatie-functie voor een website of een implementatiesite.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}?api-version=2023-12-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
function
|
path | True |
string |
Functienaam. |
name
|
path | True |
string |
Sitenaam. |
resource
|
path | True |
string |
Naam van de resourcegroep waartoe de resource behoort. Regex-patroon: |
subscription
|
path | True |
string |
Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 000000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API-versie |
Aanvraagbody
Name | Type | Description |
---|---|---|
kind |
string |
Soort resource. |
properties.config |
object |
Configuratiegegevens. |
properties.config_href |
string |
Configuratie-URI. |
properties.files |
object |
Bestandslijst. |
properties.function_app_id |
string |
Functie-app-id. |
properties.href |
string |
Functie-URI. |
properties.invoke_url_template |
string |
De aanroep-URL |
properties.isDisabled |
boolean |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de functie is uitgeschakeld |
properties.language |
string |
De functietaal |
properties.script_href |
string |
Script-URI. |
properties.script_root_path_href |
string |
Script hoofdpad-URI. |
properties.secrets_file_href |
string |
URI van geheimenbestand. |
properties.test_data |
string |
Test gegevens die worden gebruikt bij het testen via de Azure-portal. |
properties.test_data_href |
string |
Gegevens-URI testen. |
Antwoorden
Name | Type | Description |
---|---|---|
201 Created |
De functie is gemaakt. |
|
Other Status Codes |
App Service foutreactie. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Definities
Name | Description |
---|---|
Default |
App Service foutreactie. |
Details | |
Error |
Foutmodel. |
Function |
Functie-informatie. |
DefaultErrorResponse
App Service foutreactie.
Name | Type | Description |
---|---|---|
error |
Foutmodel. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
Error
Foutmodel.
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
details |
Details[] |
Gedetailleerde fouten. |
innererror |
string |
Meer informatie over foutopsporing. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
FunctionEnvelope
Functie-informatie.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
kind |
string |
Soort resource. |
name |
string |
Resourcenaam. |
properties.config |
object |
Configuratiegegevens. |
properties.config_href |
string |
Configuratie-URI. |
properties.files |
object |
Bestandslijst. |
properties.function_app_id |
string |
Functie-app-id. |
properties.href |
string |
Functie-URI. |
properties.invoke_url_template |
string |
De aanroep-URL |
properties.isDisabled |
boolean |
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de functie is uitgeschakeld |
properties.language |
string |
De functietaal |
properties.script_href |
string |
Script-URI. |
properties.script_root_path_href |
string |
Script hoofdpad-URI. |
properties.secrets_file_href |
string |
URI van geheimenbestand. |
properties.test_data |
string |
Test gegevens die worden gebruikt bij het testen via de Azure-portal. |
properties.test_data_href |
string |
Gegevens-URI testen. |
type |
string |
Resourcetype. |