다음을 통해 공유


Web Apps - Create Or Update Source Control

앱의 소스 제어 구성을 업데이트하는 설명입니다.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web?api-version=2025-05-01

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
name
path True

string

앱의 이름입니다.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

리소스 그룹의 이름입니다. 이름은 대소문자를 구분하지 않습니다.

subscriptionId
path True

string (uuid)

대상 구독의 ID입니다. 값은 UUID여야 합니다.

api-version
query True

string

minLength: 1

이 작업에 사용할 API 버전입니다.

요청 본문

Name 형식 Description
kind

string

리소스 종류입니다.

properties.branch

string

배포에 사용할 분기의 이름입니다.

properties.deploymentRollbackEnabled

boolean

true배포 롤백을 활성화합니다. 그렇지 않으면 . false

properties.gitHubActionConfiguration

GitHubActionConfiguration

GitHub 작업이 선택된 경우 연결된 구성보다.

properties.isGitHubAction

boolean

true GitHub 작업을 통해 배포되는 경우.

properties.isManualIntegration

boolean

true 수동 통합으로 제한합니다. false 지속적 통합(웹후크를 GitHub와 같은 온라인 리포지토리에 구성)을 사용하도록 설정합니다.

properties.isMercurial

boolean

true Mercurial 저장소의 경우; false Git 저장소의 경우.

properties.repoUrl

string

리포지토리 또는 소스 제어 URL입니다.

응답

Name 형식 Description
200 OK

SiteSourceControl

리소스 'SiteSourceControl' 업데이트 작업이 성공했습니다

201 Created

SiteSourceControl

리소스 'SiteSourceControl' 생성 작업이 성공했습니다

헤더

  • Location: string
  • Retry-After: integer
202 Accepted

SiteSourceControl

처리를 위해 요청이 수락되었지만 처리가 아직 완료되지 않았습니다.

헤더

  • Location: string
  • Retry-After: integer
Other Status Codes

DefaultErrorResponse

예기치 않은 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 흐름.

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

정의

Name Description
createdByType

리소스를 만든 ID의 형식입니다.

DefaultErrorResponse

App Service 오류 응답입니다.

DefaultErrorResponseError

오류 모델입니다.

DefaultErrorResponseErrorDetailsItem

자세한 오류입니다.

GitHubActionCodeConfiguration

GitHub 작업 코드 구성입니다.

GitHubActionConfiguration

GitHub 작업 구성입니다.

GitHubActionContainerConfiguration

GitHub 작업 컨테이너 구성입니다.

SiteSourceControl

앱에 대한 소스 제어 구성입니다.

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

createdByType

리소스를 만든 ID의 형식입니다.

Description
User
Application
ManagedIdentity
Key

DefaultErrorResponse

App Service 오류 응답입니다.

Name 형식 Description
error

DefaultErrorResponseError

오류 모델입니다.

DefaultErrorResponseError

오류 모델입니다.

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하기 위한 표준화된 문자열입니다.

details

DefaultErrorResponseErrorDetailsItem[]

자세한 오류입니다.

innererror

string

디버그 오류에 대한 자세한 정보입니다.

message

string

자세한 오류 설명 및 디버깅 정보.

target

string

자세한 오류 설명 및 디버깅 정보.

DefaultErrorResponseErrorDetailsItem

자세한 오류입니다.

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하기 위한 표준화된 문자열입니다.

message

string

자세한 오류 설명 및 디버깅 정보.

target

string

자세한 오류 설명 및 디버깅 정보.

GitHubActionCodeConfiguration

GitHub 작업 코드 구성입니다.

Name 형식 Description
runtimeStack

string

런타임 스택은 코드 기본 앱에 대한 워크플로 파일 콘텐츠를 확인하는 데 사용됩니다.

runtimeVersion

string

런타임 버전은 워크플로 파일에서 설정할 빌드 버전을 결정하는 데 사용됩니다.

GitHubActionConfiguration

GitHub 작업 구성입니다.

Name 형식 Description
codeConfiguration

GitHubActionCodeConfiguration

GitHub 작업 코드 구성.

containerConfiguration

GitHubActionContainerConfiguration

GitHub 작업 컨테이너 구성.

generateWorkflowFile

boolean

워크플로 파일을 생성하고 리포지토리에 쓸지 여부를 결정하는 워크플로 옵션입니다.

isLinux

boolean

이렇게 하면 선택할 워크플로 구성을 결정하는 데 도움이 됩니다.

GitHubActionContainerConfiguration

GitHub 작업 컨테이너 구성입니다.

Name 형식 Description
imageName

string

빌드의 이미지 이름입니다.

password

string (password)

컨테이너 레지스트리에 이미지를 업로드하는 데 사용되는 암호입니다.

serverUrl

string

빌드가 호스트될 컨테이너 레지스트리의 서버 URL입니다.

username

string

컨테이너 레지스트리에 이미지를 업로드하는 데 사용되는 사용자 이름입니다.

SiteSourceControl

앱에 대한 소스 제어 구성입니다.

Name 형식 Description
id

string (arm-id)

리소스에 대한 정규화된 리소스 ID입니다. 예: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

kind

string

리소스 종류입니다.

name

string

리소스의 이름

properties.branch

string

배포에 사용할 분기의 이름입니다.

properties.deploymentRollbackEnabled

boolean

true배포 롤백을 활성화합니다. 그렇지 않으면 . false

properties.gitHubActionConfiguration

GitHubActionConfiguration

GitHub 작업이 선택된 경우 연결된 구성보다.

properties.isGitHubAction

boolean

true GitHub 작업을 통해 배포되는 경우.

properties.isManualIntegration

boolean

true 수동 통합으로 제한합니다. false 지속적 통합(웹후크를 GitHub와 같은 온라인 리포지토리에 구성)을 사용하도록 설정합니다.

properties.isMercurial

boolean

true Mercurial 저장소의 경우; false Git 저장소의 경우.

properties.repoUrl

string

리포지토리 또는 소스 제어 URL입니다.

systemData

systemData

createdBy 및 modifiedBy 정보가 포함된 Azure Resource Manager 메타데이터입니다.

type

string

리소스의 형식입니다. 예: "Microsoft.Compute/virtualMachines" 또는 "Microsoft.Storage/storageAccounts"

systemData

리소스의 생성 및 마지막 수정과 관련된 메타데이터입니다.

Name 형식 Description
createdAt

string (date-time)

리소스 만들기의 타임스탬프(UTC)입니다.

createdBy

string

리소스를 만든 ID입니다.

createdByType

createdByType

리소스를 만든 ID의 형식입니다.

lastModifiedAt

string (date-time)

리소스 마지막 수정의 타임스탬프(UTC)

lastModifiedBy

string

리소스를 마지막으로 수정한 ID입니다.

lastModifiedByType

createdByType

리소스를 마지막으로 수정한 ID의 형식입니다.