Web Apps - Create Or Update Source Control
Beschrijving voor Werkt de configuratie van het bronbesturingselement van een app bij.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web?api-version=2025-05-01
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
name
|
path | True |
string |
Naam van de app. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is hoofdletterongevoelig. |
|
subscription
|
path | True |
string (uuid) |
De id van het doelabonnement. De waarde moet een UUID zijn. |
|
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
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 |
De update-operatie van de bron 'SiteSourceControl' is geslaagd |
|
| 201 Created |
De aanmaakoperatie van de bron 'SiteSourceControl' is geslaagd Kopteksten
|
|
| 202 Accepted |
De aanvraag is geaccepteerd voor verwerking, maar de verwerking is nog niet voltooid. Kopteksten
|
|
| Other Status Codes |
Een onverwachte foutreactie. |
Beveiliging
azure_auth
OAuth2-stroom voor Azure Active Directory.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Name | Description |
|---|---|
| user_impersonation | Uw gebruikersaccount imiteren |
Definities
| Name | Description |
|---|---|
|
created |
Het type identiteit waarmee de resource is gemaakt. |
|
Default |
Foutreactie van App Service. |
|
Default |
Foutmodel. |
|
Default |
Gedetailleerde fouten. |
|
Git |
De configuratie van de GitHub-actiecode. |
|
Git |
De configuratie van de GitHub-actie. |
|
Git |
De configuratie van de GitHub-actiecontainer. |
|
Site |
Configuratie van bronbeheer voor een app. |
|
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
| Waarde | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DefaultErrorResponse
Foutreactie van App Service.
| Name | Type | Description |
|---|---|---|
| error |
Foutmodel. |
DefaultErrorResponseError
Foutmodel.
| Name | Type | Description |
|---|---|---|
| code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
| details |
Gedetailleerde fouten. |
|
| innererror |
string |
Meer informatie om fouten op te sporen. |
| message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
| target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsinformatie. |
DefaultErrorResponseErrorDetailsItem
Gedetailleerde fouten.
| 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. |
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 (password) |
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 bronbeheer voor een app.
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}" |
| kind |
string |
Soort resource. |
| name |
string |
De naam van de 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. |
| systemData |
Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens. |
|
| type |
string |
Het type bron. Bijv. "Microsoft.Compute/virtualMachines" of "Microsoft.Storage/storageAccounts" |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
De tijdstempel van het maken van resources (UTC). |
| createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
| createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
| lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
| lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
| lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |