Static Sites - Create Or Update Static Site Build App Settings
A statikus webhely buildjének alkalmazásbeállításainak létrehozása vagy frissítése.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/config/appsettings?api-version=2025-05-01
URI-paraméterek
| Name | In | Kötelező | Típus | Description |
|---|---|---|---|---|
|
environment
|
path | True |
string pattern: ^[a-zA-Z0-9]+$ |
A szakaszwebhely azonosítója. |
|
name
|
path | True |
string |
A statikus hely neve. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
Az erőforráscsoport neve. A név nem megkülönbözteti a kis- és nagybetűket. |
|
subscription
|
path | True |
string (uuid) |
A cél-előfizetés azonosítója. Az értéknek UUID-nek kell lennie. |
|
api-version
|
query | True |
string minLength: 1 |
A művelethez használandó API-verzió. |
Kérelem törzse
| Name | Típus | Description |
|---|---|---|
| kind |
string |
Erőforrás típusa. |
| properties |
object |
Beállítások. |
Válaszok
| Name | Típus | Description |
|---|---|---|
| 200 OK |
Az Azure-művelet sikeresen befejeződött. |
|
| Other Status Codes |
Váratlan hibaválasz. |
Biztonság
azure_auth
Azure Active Directory Oauth2-folyamat.
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
| Name | Description |
|---|---|
| user_impersonation | a felhasználói fiók megszemélyesítése |
Példák
Creates or updates the function app settings of a static site build.
Mintakérelem
Mintaválasz
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/12/config/appSettings",
"properties": {
"setting1": "someval",
"setting2": "someval2"
}
}
Definíciók
| Name | Description |
|---|---|
|
Default |
App Service-hibaválasz. |
|
Default |
Hibamodell. |
|
Default |
Részletes hibák. |
|
String |
Sztringszótár erőforrása. |
DefaultErrorResponse
App Service-hibaválasz.
| Name | Típus | Description |
|---|---|---|
| error |
Hibamodell. |
DefaultErrorResponseError
Hibamodell.
| Name | Típus | Description |
|---|---|---|
| code |
string |
Szabványosított sztring a hiba programozott azonosításához. |
| details |
Részletes hibák. |
|
| innererror |
string |
További információ a hiba hibakereséséről. |
| message |
string |
Részletes hibaleírás és hibakeresési információk. |
| target |
string |
Részletes hibaleírás és hibakeresési információk. |
DefaultErrorResponseErrorDetailsItem
Részletes hibák.
| Name | Típus | Description |
|---|---|---|
| code |
string |
Szabványosított sztring a hiba programozott azonosításához. |
| message |
string |
Részletes hibaleírás és hibakeresési információk. |
| target |
string |
Részletes hibaleírás és hibakeresési információk. |
StringDictionary
Sztringszótár erőforrása.
| Name | Típus | Description |
|---|---|---|
| id |
string |
Erőforrás-azonosító. |
| kind |
string |
Erőforrás típusa. |
| name |
string |
Erőforrás neve. |
| properties |
object |
Beállítások. |
| type |
string |
Erőforrás típusa. |