다음을 통해 공유


Org Enablement - Get

조직에 대한 고급 보안의 현재 상태 가져오기

GET https://advsec.dev.azure.com/{organization}/_apis/management/enablement?api-version=7.2-preview.1
GET https://advsec.dev.azure.com/{organization}/_apis/management/enablement?includeAllProperties={includeAllProperties}&api-version=7.2-preview.1

URI 매개 변수

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

string

Azure DevOps 조직의 이름입니다.

api-version
query True

string

사용할 API의 버전입니다. 이 버전의 API를 사용하려면 '7.2-preview.1'로 설정해야 합니다.

includeAllProperties
query

boolean

true인 경우 푸시에 비밀이 포함되어 있는지 여부도 확인합니다.

응답

Name 형식 Description
200 OK

AdvSecEnablementSettings

성공한 작업

보안

oauth2

형식: oauth2
Flow: accessCode
권한 부여 URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
토큰 URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

범위

Name Description
vso.advsec 경고, 결과 인스턴스, 분석 결과 인스턴스를 읽을 수 있는 기능을 부여합니다.

정의

Name Description
AdvSecEnablementFeatures
AdvSecEnablementSettings
AdvSecEnablementStatus

AdvSecEnablementFeatures

Name 형식 Description
codeQLEnabled

boolean

사용할 수 없는 경우 CodeQL 사용 상태가 False로 설정되고 사용하도록 설정된 경우 True로 설정됩니다. Null은 명시적으로 설정되지 않습니다.

dependencyScanningInjectionEnabled

boolean

종속성 검사 삽입 사용 가능 상태는 사용하지 않도록 설정된 경우 False로 설정되고 사용하도록 설정된 경우 True로 설정됩니다. Null은 명시적으로 설정되지 않습니다.
Advanced Security가 아직 사용하도록 설정되지 않은 경우 고급 보안을 사용/사용하지 않도록 설정해야 하는지에 따라 동작이 달라집니다. DependencyScanningInjectionEnabled는 이 시나리오에서 아무 영향도 미치지 않습니다.
고급 보안을 사용하지 않도록 설정하면 DependencyScanningInjectionEnabled의 값이 적용되지 않습니다.
종속성 검사 사용 상태 설정은 현재 조직 또는 프로젝트 사용이 아닌 리포지토리 사용 설정에 대해서만 지원됩니다.

AdvSecEnablementSettings

Name 형식 Description
enableOnCreate

boolean

새로 만든 리포지토리에서 Advanced Security를 자동으로 사용하도록 설정합니다.

reposEnablementStatus

AdvSecEnablementStatus[]

AdvSecEnablementStatus

Name 형식 Description
advSecEnabled

boolean

사용하지 않도록 설정된 경우 고급 보안 사용 상태가 False로 설정되고 사용하도록 설정된 경우 True로 설정됩니다. Null은 명시적으로 설정되지 않습니다.

advSecEnablementFeatures

AdvSecEnablementFeatures

고급 보안과 함께 사용할 수 있는 추가 기능이 포함되어 있습니다.

advSecEnablementLastChangedDate

string

이 리포지토리의 고급 보안 상태가 마지막으로 업데이트된 시간

blockPushes

boolean

true이면 비밀을 포함하는 푸시가 차단됩니다.
false이면 푸시에서 비밀을 검색하고 차단되지 않습니다.
요청에 includeAllProperties가 false이면 이 값은 null이 됩니다.

projectId

string

repositoryId

string