Web Apps - Update Source Control
Beschrijving voor updates van de configuratie van broncodebeheer van een app.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web?api-version=2024-04-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Naam van de app. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Naam van de resourcegroep waartoe de resource behoort. |
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 |
---|---|---|
kind |
string |
Soort resource. |
properties.branch |
string |
De naam van de vertakking die moet worden gebruikt voor implementatie. |
properties.deploymentRollbackEnabled |
boolean |
|
properties.gitHubActionConfiguration |
Als GitHub Action is geselecteerd, dan de bijbehorende configuratie. |
|
properties.isGitHubAction |
boolean |
|
properties.isManualIntegration |
boolean |
|
properties.isMercurial |
boolean |
|
properties.repoUrl |
string |
URL voor opslagplaats of broncodebeheer. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Broncodebeheer voor web-app is gemaakt of bijgewerkt. |
|
201 Created |
Broncodebeheer maken of bijwerken voor web-app die wordt uitgevoerd. |
|
202 Accepted |
Broncodebeheer maken of bijwerken voor web-app die wordt uitgevoerd. |
|
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. |
Git |
De configuratie van de GitHub-actiecode. |
Git |
De configuratie van de GitHub-actie. |
Git |
De configuratie van de GitHub-actiecontainer. |
Site |
Configuratie van broncodebeheer voor een app. |
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 foutopsporingsgegevens. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
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 foutopsporingsgegevens. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
GitHubActionCodeConfiguration
De configuratie van de GitHub-actiecode.
Name | Type | Description |
---|---|---|
runtimeStack |
string |
Runtimestack wordt gebruikt om de inhoud van het werkstroombestand voor codebasis-apps te bepalen. |
runtimeVersion |
string |
Runtimeversie wordt gebruikt om te bepalen welke buildversie moet worden ingesteld in het werkstroombestand. |
GitHubActionConfiguration
De configuratie van de GitHub-actie.
Name | Type | Description |
---|---|---|
codeConfiguration |
Configuratie van GitHub Action-code. |
|
containerConfiguration |
Configuratie van GitHub Action-container. |
|
generateWorkflowFile |
boolean |
Werkstroomoptie om te bepalen of het werkstroombestand moet worden gegenereerd en naar de opslagplaats moet worden geschreven. |
isLinux |
boolean |
Hiermee kunt u bepalen welke werkstroomconfiguratie u wilt selecteren. |
GitHubActionContainerConfiguration
De configuratie van de GitHub-actiecontainer.
Name | Type | Description |
---|---|---|
imageName |
string |
De naam van de installatiekopieën voor de build. |
password |
string |
Het wachtwoord dat wordt gebruikt om de installatiekopieën te uploaden naar het containerregister. |
serverUrl |
string |
De server-URL voor het containerregister waar de build wordt gehost. |
username |
string |
De gebruikersnaam die wordt gebruikt om de installatiekopieën te uploaden naar het containerregister. |
SiteSourceControl
Configuratie van broncodebeheer voor een app.
Name | Type | Description |
---|---|---|
id |
string |
Resource-id. |
kind |
string |
Soort resource. |
name |
string |
Resourcenaam. |
properties.branch |
string |
De naam van de vertakking die moet worden gebruikt voor implementatie. |
properties.deploymentRollbackEnabled |
boolean |
|
properties.gitHubActionConfiguration |
Als GitHub Action is geselecteerd, dan de bijbehorende configuratie. |
|
properties.isGitHubAction |
boolean |
|
properties.isManualIntegration |
boolean |
|
properties.isMercurial |
boolean |
|
properties.repoUrl |
string |
URL voor opslagplaats of broncodebeheer. |
type |
string |
Resourcetype. |