Project Enablement - Update

プロジェクトの Advanced Security の状態を更新する

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

URI パラメーター

名前 / 必須 説明
organization
path True

string

Azure DevOps 組織の名前です。

project
path True

string

プロジェクト ID またはプロジェクト名

api-version
query True

string

使う API のバージョン。 このバージョンの API を使用するには、これを '7.2-preview.1' に設定する必要があります。

要求本文

名前 説明
advSecEnabled

boolean

Advanced Security enablement status set to False when disabled and True when enabled;Null が明示的に設定されることはありません。

advSecEnablementFeatures

AdvSecEnablementFeatures

Advanced Security と共に有効にできる追加の機能が含まれています。

blockPushes

boolean

true の場合、シークレットを含むプッシュはブロックされます。
false の場合、プッシュはシークレットをスキャンし、ブロックされません。
要求に includeAllProperties が false の場合、この値は null になります。

enableOnCreate

boolean

新しく作成されたリポジトリで Advanced Security を自動的に有効にします。

応答

名前 説明
200 OK

成功した操作

セキュリティ

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token 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

Scopes

名前 説明
vso.advsec_manage sarif アップロード情報へのアクセス、分析の削除、アラートの更新を行う機能を付与します

定義

名前 説明
AdvSecEnablementFeatures
AdvSecEnablementSettingsUpdate

AdvSecEnablementFeatures

名前 説明
dependabotEnabled

boolean

Dependabot enablement status set to False when disabled and True when enabled;Null が明示的に設定されることはありません。
true の場合、Dependabot は古い依存関係のセキュリティ更新プログラムをサポートするために PR を開きます。
Dependabot 有効化状態の設定はリポジトリ有効化でのみサポートされており、現時点では組織やプロジェクトの有効化はサポートされていません。

AdvSecEnablementSettingsUpdate

名前 説明
advSecEnabled

boolean

Advanced Security enablement status set to False when disabled and True when enabled;Null が明示的に設定されることはありません。

advSecEnablementFeatures

AdvSecEnablementFeatures

Advanced Security と共に有効にできる追加の機能が含まれています。

blockPushes

boolean

true の場合、シークレットを含むプッシュはブロックされます。
false の場合、プッシュはシークレットをスキャンし、ブロックされません。
要求に includeAllProperties が false の場合、この値は null になります。

enableOnCreate

boolean

新しく作成されたリポジトリで Advanced Security を自動的に有効にします。