Web Apps - Create Or Update Function Secret Slot
Beschrijving voor Een functiegeheim toevoegen of bijwerken.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}/keys/{keyName}?api-version=2025-03-01
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
function
|
path | True |
string |
De naam van de functie. |
|
key
|
path | True |
string |
De naam van de sleutel. |
|
name
|
path | True |
string |
Sitenaam. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Naam van de resourcegroep waartoe de resource behoort. |
|
slot
|
path | True |
string |
Naam van de implementatiesite. |
|
subscription
|
path | True |
string |
Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000000). |
|
api-version
|
query | True |
string |
API-versie |
Aanvraagbody
| Name | Type | Description |
|---|---|---|
| name |
string |
Sleutelnaam |
| value |
string |
Sleutelwaarde |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
Sleutel is bijgewerkt. |
|
| 201 Created |
Key is gemaakt. |
|
| Other Status Codes |
Foutreactie van App Service. |
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 |
Foutreactie van App Service. |
| Details | |
| Error |
Foutmodel. |
|
Key |
Informatie over functietoetsen. |
DefaultErrorResponse
Foutreactie van App Service.
| 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 om fouten op te sporen. |
| message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
| target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
KeyInfo
Informatie over functietoetsen.
| Name | Type | Description |
|---|---|---|
| name |
string |
Sleutelnaam |
| value |
string |
Sleutelwaarde |