Delen via


Web Apps - Update Source Control Slot

Beschrijving voor Updates de configuratie van broncodebeheer van een app.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web?api-version=2023-12-01

URI-parameters

Name In Vereist Type Description
name
path True

string

Naam van de app.

resourceGroupName
path True

string

Naam van de resourcegroep waartoe de resource behoort.

Regex-patroon: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

Naam van de implementatiesite. Als er geen site is opgegeven, werkt de API de configuratie van het broncodebeheer voor de productiesite bij.

subscriptionId
path True

string

Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 000000000-0000-0000-0000-000000000000).

api-version
query True

string

API-versie

Aanvraagbody

Name Type Description
kind

string

Soort resource.

properties.branch

string

Naam van de vertakking die moet worden gebruikt voor implementatie.

properties.deploymentRollbackEnabled

boolean

true om het terugdraaien van de implementatie mogelijk te maken; anders, false.

properties.gitHubActionConfiguration

GitHubActionConfiguration

Als GitHub Action is geselecteerd, dan de bijbehorende configuratie.

properties.isGitHubAction

boolean

true als dit wordt geïmplementeerd via GitHub-actie.

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

Het broncodebeheer voor de web-app is gemaakt of bijgewerkt.

201 Created

SiteSourceControl

Creatie of bijwerken van broncodebeheer voor web-app die wordt uitgevoerd.

202 Accepted

SiteSourceControl

Creatie of bijwerken van broncodebeheer voor web-app die wordt uitgevoerd.

Other Status Codes

DefaultErrorResponse

App Service foutreactie.

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

App Service foutreactie.

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

App Service foutreactie.

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 foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

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 foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

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

Dit helpt bij het bepalen van de werkstroomconfiguratie die moet worden geselecteerd.

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

Naam van de vertakking die moet worden gebruikt voor implementatie.

properties.deploymentRollbackEnabled

boolean

true om het terugdraaien van de implementatie mogelijk te maken; anders, false.

properties.gitHubActionConfiguration

GitHubActionConfiguration

Als GitHub Action is geselecteerd, dan de bijbehorende configuratie.

properties.isGitHubAction

boolean

true als dit wordt geïmplementeerd via GitHub-actie.

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.