Web Apps - Create Or Update Host Secret
Beskrivning för Lägga till eller uppdatera en hemlighet på värdnivå.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/{keyType}/{keyName}?api-version=2025-03-01
URI-parametrar
| Name | I | Obligatorisk | Typ | Description |
|---|---|---|---|---|
|
key
|
path | True |
string |
Namnet på nyckeln. |
|
key
|
path | True |
string |
Typen av värdnyckel. |
|
name
|
path | True |
string |
Webbplatsnamn. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Namnet på resursgruppen som resursen tillhör. |
|
subscription
|
path | True |
string |
ditt prenumerations-ID för Azure Det här är en GUID-formaterad sträng (t.ex. 00000000-0000-0000-0000-000000000000). |
|
api-version
|
query | True |
string |
API-version |
Begärandetext
| Name | Typ | Description |
|---|---|---|
| name |
string |
Nyckelnamn |
| value |
string |
Nyckelvärde |
Svar
| Name | Typ | Description |
|---|---|---|
| 200 OK |
Nyckeln har uppdaterats. |
|
| 201 Created |
Nyckeln skapades. |
|
| Other Status Codes |
App Service-felsvar. |
Säkerhet
azure_auth
Azure Active Directory OAuth2-flöde
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
| Name | Description |
|---|---|
| user_impersonation | personifiera ditt användarkonto |
Definitioner
| Name | Description |
|---|---|
|
Default |
App Service-felsvar. |
| Details | |
| Error |
Felmodell. |
|
Key |
Information om funktionstangenter. |
DefaultErrorResponse
App Service-felsvar.
| Name | Typ | Description |
|---|---|---|
| error |
Felmodell. |
Details
| Name | Typ | Description |
|---|---|---|
| code |
string |
Standardiserad sträng för att programmatiskt identifiera felet. |
| message |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
| target |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
Error
Felmodell.
| Name | Typ | Description |
|---|---|---|
| code |
string |
Standardiserad sträng för att programmatiskt identifiera felet. |
| details |
Details[] |
Detaljerade fel. |
| innererror |
string |
Mer information för att felsöka fel. |
| message |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
| target |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
KeyInfo
Information om funktionstangenter.
| Name | Typ | Description |
|---|---|---|
| name |
string |
Nyckelnamn |
| value |
string |
Nyckelvärde |