다음을 통해 공유


Git - Get My Git Credentials

사용자의 Git 자격 증명 구성 세부 정보를 반환합니다.
자동으로 또는 구성된 연결을 통해 관련 Git 공급자에 액세스하기 위해 사용자의 자격 증명을 가져오는 방법을 나타냅니다. 사용자의 자격 증명이 구성되지 않은 경우 내 Git 자격 증명 업데이트 API로 이동합니다.

권한

호출자에게는 기여자 이상의 작업 영역 역할이 있어야 합니다.

필요한 위임된 범위

Workspace.Read.All 또는 Workspace.ReadWrite.All

Microsoft Entra 지원 식별자

이 API는 이 섹션에 나열된 Microsoft ID 지원합니다.

아이덴티티 지원
사용자
서비스 주체관리 ID

인터페이스

GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/git/myGitCredentials

URI 매개 변수

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

string (uuid)

작업 영역 ID입니다.

응답

Name 형식 Description
200 OK GitCredentialsConfigurationResponse:

요청이 성공적으로 완료되었습니다.

Other Status Codes

ErrorResponse

일반적인 오류 코드:

  • UnknownError - 오류가 발생했습니다.

  • InsufficientPrivileges - 호출자에게 충분한 작업 영역 권한이 없습니다.

  • WorkspaceNotConnectedToGit - 작업 영역이 git에 연결되어 있지 않습니다.

예제

Get the user's Git credentials configuration for Azure DevOps when it is automatic example
Get the user's Git credentials configuration when it is configured by connection example
Get the user's Git credentials configuration when it is not configured example

Get the user's Git credentials configuration for Azure DevOps when it is automatic example

샘플 요청

GET https://api.fabric.microsoft.com/v1/workspaces/1565e6a3-c020-4c0c-dda7-92bafe99eec5/git/myGitCredentials

샘플 응답

{
  "source": "Automatic"
}

Get the user's Git credentials configuration when it is configured by connection example

샘플 요청

GET https://api.fabric.microsoft.com/v1/workspaces/1565e6a3-c020-4c0c-dda7-92bafe99eec5/git/myGitCredentials

샘플 응답

{
  "source": "ConfiguredConnection",
  "connectionId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301"
}

Get the user's Git credentials configuration when it is not configured example

샘플 요청

GET https://api.fabric.microsoft.com/v1/workspaces/1565e6a3-c020-4c0c-dda7-92bafe99eec5/git/myGitCredentials

샘플 응답

{
  "source": "None"
}

정의

Name Description
AutomaticGitCredentialsResponse

자동 Git 자격 증명.

ConfiguredConnectionGitCredentialsResponse

구성된 연결 Git 자격 증명

ErrorRelatedResource

오류 관련 리소스 세부 정보 개체입니다.

ErrorResponse

오류 응답입니다.

ErrorResponseDetails

오류 응답 세부 정보입니다.

GitCredentialsSource

Git 자격 증명 원본입니다. 추가 Git 자격 증명 원본은 시간이 지남에 따라 추가될 수 있습니다.

NoneGitCredentialsResponse

Git 자격 증명이 구성되지 않았습니다.

AutomaticGitCredentialsResponse

자동 Git 자격 증명.

Name 형식 Description
source string:

Automatic

Git 자격 증명 원본입니다.

ConfiguredConnectionGitCredentialsResponse

구성된 연결 Git 자격 증명

Name 형식 Description
connectionId

string (uuid)

연결의 개체 ID입니다.

source string:

ConfiguredConnection

Git 자격 증명 원본입니다.

ErrorRelatedResource

오류 관련 리소스 세부 정보 개체입니다.

Name 형식 Description
resourceId

string

오류와 관련된 리소스 ID입니다.

resourceType

string

오류와 관련된 리소스의 형식입니다.

ErrorResponse

오류 응답입니다.

Name 형식 Description
errorCode

string

오류 조건에 대한 정보를 제공하여 서비스와 사용자 간의 표준화된 통신을 허용하는 특정 식별자입니다.

message

string

사용자가 읽을 수 있는 오류 표현입니다.

moreDetails

ErrorResponseDetails[]

추가 오류 세부 정보 목록입니다.

relatedResource

ErrorRelatedResource

오류 관련 리소스 세부 정보입니다.

requestId

string

오류와 연결된 요청의 ID입니다.

ErrorResponseDetails

오류 응답 세부 정보입니다.

Name 형식 Description
errorCode

string

오류 조건에 대한 정보를 제공하여 서비스와 사용자 간의 표준화된 통신을 허용하는 특정 식별자입니다.

message

string

사용자가 읽을 수 있는 오류 표현입니다.

relatedResource

ErrorRelatedResource

오류 관련 리소스 세부 정보입니다.

GitCredentialsSource

Git 자격 증명 원본입니다. 추가 Git 자격 증명 원본은 시간이 지남에 따라 추가될 수 있습니다.

Description
ConfiguredConnection

Git 자격 증명은 구성된 연결을 통해 가져옵니다.

Automatic

Git 자격 증명은 사용 가능한 경우 기본 자격 증명을 사용하여 시스템에서 자동으로 가져옵니다.

None

Git 자격 증명이 구성되지 않았습니다.

NoneGitCredentialsResponse

Git 자격 증명이 구성되지 않았습니다.

Name 형식 Description
source string:

None

Git 자격 증명 원본입니다.