Web Apps - Create Or Update Source Control
Leírás Frissíti egy alkalmazás verziókövetési konfigurációját.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web?api-version=2025-05-01
URI paraméterek
| Név | Ban | Szükséges | Típus | Leírás |
|---|---|---|---|---|
|
name
|
path | True |
string |
Az alkalmazás 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érő Testület
| Név | Típus | Leírás |
|---|---|---|
| kind |
string |
Erőforrás típusa. |
| properties.branch |
string |
Az üzembe helyezéshez használandó ág neve. |
| properties.deploymentRollbackEnabled |
boolean |
|
| properties.gitHubActionConfiguration |
Ha a GitHub-művelet van kiválasztva, mint a társított konfiguráció. |
|
| properties.isGitHubAction |
boolean |
|
| properties.isManualIntegration |
boolean |
|
| properties.isMercurial |
boolean |
|
| properties.repoUrl |
string |
Adattár vagy forrásvezérlő URL-címe. |
Válaszok
| Név | Típus | Leírás |
|---|---|---|
| 200 OK |
A 'SiteSourceControl' erőforrás frissítési művelete sikeres |
|
| 201 Created |
'SiteSourceControl' erőforrás létrehozása sikeres Fejlécek
|
|
| 202 Accepted |
A kérelem feldolgozásra lett elfogadva, de a feldolgozás még nem fejeződött be. Fejlécek
|
|
| Other Status Codes |
Váratlan hibaválasz. |
Biztonság
azure_auth
Azure Active Directory Oauth2-folyamat.
Típus:
oauth2
Flow:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
| Név | Leírás |
|---|---|
| user_impersonation | a felhasználói fiók megszemélyesítése |
Meghatározások
| Név | Leírás |
|---|---|
|
created |
Az erőforrást létrehozó identitás típusa. |
|
Default |
App Service-hibaválasz. |
|
Default |
Hibamodell. |
|
Default |
Részletes hibák. |
|
Git |
A GitHub műveleti kód konfigurációja. |
|
Git |
A GitHub művelet konfigurációja. |
|
Git |
A GitHub művelettároló konfigurációja. |
|
Site |
Alkalmazás verziókövetési konfigurációja. |
|
system |
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok. |
createdByType
Az erőforrást létrehozó identitás típusa.
| Érték | Leírás |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DefaultErrorResponse
App Service-hibaválasz.
| Név | Típus | Leírás |
|---|---|---|
| error |
Hibamodell. |
DefaultErrorResponseError
Hibamodell.
| Név | Típus | Leírás |
|---|---|---|
| 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.
| Név | Típus | Leírás |
|---|---|---|
| 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. |
GitHubActionCodeConfiguration
A GitHub műveleti kód konfigurációja.
| Név | Típus | Leírás |
|---|---|---|
| runtimeStack |
string |
A futtatókörnyezeti verem a kódbázis-alkalmazások munkafolyamatfájl-tartalmának meghatározására szolgál. |
| runtimeVersion |
string |
A futtatókörnyezet verziója határozza meg, hogy melyik buildverzió legyen beállítva a munkafolyamat-fájlban. |
GitHubActionConfiguration
A GitHub művelet konfigurációja.
| Név | Típus | Leírás |
|---|---|---|
| codeConfiguration |
GitHub Action-kódkonfiguráció. |
|
| containerConfiguration |
A GitHub Action tárolókonfigurációja. |
|
| generateWorkflowFile |
boolean |
Munkafolyamat-beállítás annak meghatározásához, hogy a munkafolyamat-fájlt létre kell-e hozni és meg kell-e írni az adattárba. |
| isLinux |
boolean |
Ez segít meghatározni a kiválasztandó munkafolyamat-konfigurációt. |
GitHubActionContainerConfiguration
A GitHub művelettároló konfigurációja.
| Név | Típus | Leírás |
|---|---|---|
| imageName |
string |
A build képének neve. |
| password |
string (password) |
A rendszerkép tárolóregisztrációs adatbázisba való feltöltéséhez használt jelszó. |
| serverUrl |
string |
A tárolóregisztrációs adatbázis kiszolgálói URL-címe, ahol a buildet üzemeltetni fogják. |
| username |
string |
A rendszerkép tárolóregisztrációs adatbázisba való feltöltéséhez használt felhasználónév. |
SiteSourceControl
Alkalmazás verziókövetési konfigurációja.
| Név | Típus | Leírás |
|---|---|---|
| id |
string (arm-id) |
Az erőforrás teljes erőforrás-azonosítója. Például: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| kind |
string |
Erőforrás típusa. |
| name |
string |
Az erőforrás neve |
| properties.branch |
string |
Az üzembe helyezéshez használandó ág neve. |
| properties.deploymentRollbackEnabled |
boolean |
|
| properties.gitHubActionConfiguration |
Ha a GitHub-művelet van kiválasztva, mint a társított konfiguráció. |
|
| properties.isGitHubAction |
boolean |
|
| properties.isManualIntegration |
boolean |
|
| properties.isMercurial |
boolean |
|
| properties.repoUrl |
string |
Adattár vagy forrásvezérlő URL-címe. |
| systemData |
A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok. |
|
| type |
string |
Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts" |
systemData
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.
| Név | Típus | Leírás |
|---|---|---|
| createdAt |
string (date-time) |
Az erőforrás-létrehozás időbélyege (UTC). |
| createdBy |
string |
Az erőforrást létrehozó identitás. |
| createdByType |
Az erőforrást létrehozó identitás típusa. |
|
| lastModifiedAt |
string (date-time) |
Az erőforrás utolsó módosításának időbélyege (UTC) |
| lastModifiedBy |
string |
Az erőforrást legutóbb módosító identitás. |
| lastModifiedByType |
Az erőforrást legutóbb módosító identitás típusa. |