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 |
Advanced Security と共に有効にできる追加の機能が含まれています。 |
|
blockPushes |
boolean |
true の場合、シークレットを含むプッシュはブロックされます。 |
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 アップロード情報へのアクセス、分析の削除、アラートの更新を行う機能を付与します |
定義
名前 | 説明 |
---|---|
Adv |
|
Adv |
AdvSecEnablementFeatures
名前 | 型 | 説明 |
---|---|---|
dependabotEnabled |
boolean |
Dependabot enablement status set to False when disabled and True when enabled;Null が明示的に設定されることはありません。 |
AdvSecEnablementSettingsUpdate
名前 | 型 | 説明 |
---|---|---|
advSecEnabled |
boolean |
Advanced Security enablement status set to False when disabled and True when enabled;Null が明示的に設定されることはありません。 |
advSecEnablementFeatures |
Advanced Security と共に有効にできる追加の機能が含まれています。 |
|
blockPushes |
boolean |
true の場合、シークレットを含むプッシュはブロックされます。 |
enableOnCreate |
boolean |
新しく作成されたリポジトリで Advanced Security を自動的に有効にします。 |