Azure DevOps Projects - Create Or Update
Creates or updates a monitored Azure DevOps project resource.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}?api-version=2024-05-15-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
org
|
path | True |
string |
The Azure DevOps organization name. |
|
project
|
path | True |
string |
The project name. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
security
|
path | True |
string |
The security connector name. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
| Name | Type | Description |
|---|---|---|
| properties |
Azure DevOps Project properties. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Creates or updates a monitored Azure DevOps project resource |
|
| 201 Created |
Created |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
CreateOrUpdate_AzureDevOpsProjects
Sample request
PUT https://management.azure.com/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourceGroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/myAzDevOpsOrg/projects/myAzDevOpsProject?api-version=2024-05-15-preview
{
"properties": {
"onboardingState": "NotApplicable",
"actionableRemediation": {
"state": "Enabled"
}
}
}
Sample response
{
"properties": {
"parentOrgName": "myAzDevOpsOrg",
"projectId": "9ebbed8f-a9cc-405f-a647-b235e22179de",
"onboardingState": "Onboarded",
"actionableRemediation": {
"state": "Enabled"
},
"provisioningState": "Succeeded"
},
"id": "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourceGroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/myAzDevOpsOrg/projects/myAzDevOpsProject",
"name": "myAzDevOpsProject",
"type": "Microsoft.Security/securityConnectors/devops/azureDevOpsOrgs/projects"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourceGroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/operationResults/4e826cf1-5c36-4808-a7d2-fb4f5170978b?api-version=2024-05-15-preview
{
"properties": {
"parentOrgName": "myAzDevOpsOrg",
"projectId": "9ebbed8f-a9cc-405f-a647-b235e22179de",
"onboardingState": "NotApplicable",
"actionableRemediation": {
"state": "None"
},
"provisioningState": "Accepted"
},
"id": "/subscriptions/0806e1cd-cfda-4ff8-b99c-2b0af42cffd3/resourceGroups/myRg/providers/Microsoft.Security/securityConnectors/mySecurityConnectorName/devops/default/azureDevOpsOrgs/myAzDevOpsOrg/projects/myAzDevOpsProject",
"name": "myAzDevOpsProject",
"type": "Microsoft.Security/securityConnectors/devops/azureDevOpsOrgs/projects"
}
Definitions
| Name | Description |
|---|---|
|
Actionable |
Configuration payload for PR Annotations. |
|
Actionable |
ActionableRemediation Setting. None - the setting was never set. Enabled - ActionableRemediation is enabled. Disabled - ActionableRemediation is disabled. |
|
Annotate |
Configuration of PR Annotations on default branch. Enabled - PR Annotations are enabled on the resource's default branch. Disabled - PR Annotations are disabled on the resource's default branch. |
|
Azure |
Azure DevOps Project resource. |
|
Azure |
Azure DevOps Project properties. |
|
Category |
Severity level per category configuration for PR Annotations. |
|
created |
The type of identity that created the resource. |
|
Dev |
The provisioning state of the resource. Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Inherit |
Update Settings. Enabled - Resource should inherit configurations from parent. Disabled - Resource should not inherit configurations from parent. |
|
Onboarding |
Details about resource onboarding status across all connectors. OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. Onboarded - this resource has already been onboarded by the specified connector. NotOnboarded - this resource has not been onboarded to any connector. NotApplicable - the onboarding state is not applicable to the current endpoint. |
|
Rule |
Rule categories. Code - code scanning results. Artifact scanning results. Dependencies scanning results. IaC results. Secrets scanning results. Container scanning results. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Target |
Repository branch configuration for PR Annotations. |
ActionableRemediation
Configuration payload for PR Annotations.
| Name | Type | Description |
|---|---|---|
| branchConfiguration |
Repository branch configuration for PR Annotations. |
|
| categoryConfigurations |
Gets or sets list of categories and severity levels. |
|
| inheritFromParentState |
Update Settings. Enabled - Resource should inherit configurations from parent. Disabled - Resource should not inherit configurations from parent. |
|
| state |
ActionableRemediation Setting. None - the setting was never set. Enabled - ActionableRemediation is enabled. Disabled - ActionableRemediation is disabled. |
ActionableRemediationState
ActionableRemediation Setting. None - the setting was never set. Enabled - ActionableRemediation is enabled. Disabled - ActionableRemediation is disabled.
| Value | Description |
|---|---|
| None | |
| Disabled | |
| Enabled |
AnnotateDefaultBranchState
Configuration of PR Annotations on default branch.
Enabled - PR Annotations are enabled on the resource's default branch. Disabled - PR Annotations are disabled on the resource's default branch.
| Value | Description |
|---|---|
| Disabled | |
| Enabled |
AzureDevOpsProject
Azure DevOps Project resource.
| Name | Type | Description |
|---|---|---|
| id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| name |
string |
The name of the resource |
| properties |
Azure DevOps Project properties. |
|
| systemData |
Metadata pertaining to creation and last modification of the resource. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
AzureDevOpsProjectProperties
Azure DevOps Project properties.
| Name | Type | Description |
|---|---|---|
| actionableRemediation |
Configuration payload for PR Annotations. |
|
| onboardingState |
Details about resource onboarding status across all connectors. OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. Onboarded - this resource has already been onboarded by the specified connector. NotOnboarded - this resource has not been onboarded to any connector. NotApplicable - the onboarding state is not applicable to the current endpoint. |
|
| parentOrgName |
string |
Gets or sets parent Azure DevOps Organization name. |
| projectId |
string |
Gets or sets Azure DevOps Project id. |
| provisioningState |
The provisioning state of the resource. Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure. |
|
| provisioningStatusMessage |
string |
Gets the resource status message. |
| provisioningStatusUpdateTimeUtc |
string (date-time) |
Gets the time when resource was last checked. |
CategoryConfiguration
Severity level per category configuration for PR Annotations.
| Name | Type | Description |
|---|---|---|
| category |
Rule categories. Code - code scanning results. Artifact scanning results. Dependencies scanning results. IaC results. Secrets scanning results. Container scanning results. |
|
| minimumSeverityLevel |
string |
Gets or sets minimum severity level for a given category. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DevOpsProvisioningState
The provisioning state of the resource.
Pending - Provisioning pending. Failed - Provisioning failed. Succeeded - Successful provisioning. Canceled - Provisioning canceled. PendingDeletion - Deletion pending. DeletionSuccess - Deletion successful. DeletionFailure - Deletion failure.
| Value | Description |
|---|---|
| Succeeded | |
| Failed | |
| Canceled | |
| Pending | |
| PendingDeletion | |
| DeletionSuccess | |
| DeletionFailure |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
InheritFromParentState
Update Settings.
Enabled - Resource should inherit configurations from parent. Disabled - Resource should not inherit configurations from parent.
| Value | Description |
|---|---|
| Disabled | |
| Enabled |
OnboardingState
Details about resource onboarding status across all connectors.
OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. Onboarded - this resource has already been onboarded by the specified connector. NotOnboarded - this resource has not been onboarded to any connector. NotApplicable - the onboarding state is not applicable to the current endpoint.
| Value | Description |
|---|---|
| NotApplicable | |
| OnboardedByOtherConnector | |
| Onboarded | |
| NotOnboarded |
RuleCategory
Rule categories. Code - code scanning results. Artifact scanning results. Dependencies scanning results. IaC results. Secrets scanning results. Container scanning results.
| Value | Description |
|---|---|
| Code | |
| Artifacts | |
| Dependencies | |
| Secrets | |
| IaC | |
| Containers |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |
TargetBranchConfiguration
Repository branch configuration for PR Annotations.
| Name | Type | Description |
|---|---|---|
| annotateDefaultBranch |
Configuration of PR Annotations on default branch. Enabled - PR Annotations are enabled on the resource's default branch. Disabled - PR Annotations are disabled on the resource's default branch. |
|
| branchNames |
string[] |
Gets or sets branches that should have annotations. |