Delen via


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.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

Naam van de resourcegroep waartoe de resource behoort.

subscriptionId
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

true implementatieback inschakelen; anders, false.

properties.gitHubActionConfiguration

GitHubActionConfiguration

Als GitHub Action is geselecteerd, dan de bijbehorende configuratie.

properties.isGitHubAction

boolean

true als dit is geïmplementeerd via GitHub Action.

properties.isManualIntegration

boolean

true om te beperken tot handmatige integratie; false om continue integratie in te schakelen (waarmee webhooks worden geconfigureerd in online opslagplaatsen zoals GitHub).

properties.isMercurial

boolean

true voor een Mercurial-opslagplaats; false voor een Git-opslagplaats.

properties.repoUrl

string

URL voor opslagplaats of broncodebeheer.

Antwoorden

Name Type Description
200 OK

SiteSourceControl

Broncodebeheer voor web-app is gemaakt of bijgewerkt.

201 Created

SiteSourceControl

Broncodebeheer maken of bijwerken voor web-app die wordt uitgevoerd.

202 Accepted

SiteSourceControl

Broncodebeheer maken of bijwerken voor web-app die wordt uitgevoerd.

Other Status Codes

DefaultErrorResponse

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
DefaultErrorResponse

Foutreactie van App Service.

Details
Error

Foutmodel.

GitHubActionCodeConfiguration

De configuratie van de GitHub-actiecode.

GitHubActionConfiguration

De configuratie van de GitHub-actie.

GitHubActionContainerConfiguration

De configuratie van de GitHub-actiecontainer.

SiteSourceControl

Configuratie van broncodebeheer voor een app.

DefaultErrorResponse

Foutreactie van App Service.

Name Type Description
error

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

GitHubActionCodeConfiguration

Configuratie van GitHub Action-code.

containerConfiguration

GitHubActionContainerConfiguration

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

true implementatieback inschakelen; anders, false.

properties.gitHubActionConfiguration

GitHubActionConfiguration

Als GitHub Action is geselecteerd, dan de bijbehorende configuratie.

properties.isGitHubAction

boolean

true als dit is geïmplementeerd via GitHub Action.

properties.isManualIntegration

boolean

true om te beperken tot handmatige integratie; false om continue integratie in te schakelen (waarmee webhooks worden geconfigureerd in online opslagplaatsen zoals GitHub).

properties.isMercurial

boolean

true voor een Mercurial-opslagplaats; false voor een Git-opslagplaats.

properties.repoUrl

string

URL voor opslagplaats of broncodebeheer.

type

string

Resourcetype.