Security Connector Application - Create Or Update
Creates or update a security Application on the given security connector.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/providers/Microsoft.Security/applications/{applicationId}?api-version=2022-07-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
application
|
path | True |
string |
The security Application key - unique key for the standard application |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+$ |
The name of the resource group within the user's subscription. The name is case insensitive. |
|
security
|
path | True |
string |
The security connector name. |
|
subscription
|
path | True |
string pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$ |
Azure subscription ID |
|
api-version
|
query | True |
string |
API version for the operation |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| properties.conditionSets | True |
The application conditionSets - see examples |
|
| properties.sourceResourceType | True |
The application source, what it affects, e.g. Assessments |
|
| properties.description |
string |
description of the application |
|
| properties.displayName |
string |
display name of the application |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK - Updated |
|
| 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
Create Application
Sample request
PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/providers/Microsoft.Security/applications/ad9a8e26-29d9-4829-bb30-e597a58cdbb8?api-version=2022-07-01-preview
{
"properties": {
"displayName": "GCP Admin's application",
"description": "An application on critical GCP recommendations",
"sourceResourceType": "Assessments",
"conditionSets": [
{
"conditions": [
{
"property": "$.Id",
"value": "-prod-",
"operator": "contains"
}
]
}
]
}
}
Sample response
{
"id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/providers/Microsoft.Security/applications/ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
"type": "Microsoft.Security/applications",
"properties": {
"displayName": "GCP Admin's application",
"description": "An application on critical GCP recommendations",
"sourceResourceType": "Assessments",
"conditionSets": [
{
"conditions": [
{
"property": "$.Id",
"value": "-bil-",
"operator": "contains"
}
]
}
]
}
}
{
"id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/providers/Microsoft.Security/applications/ad9a8e26-29d9-4829-bb30-e597a58cdbb8",
"name": "1f3afdf9-d0c9-4c3d-847f-89da613e70a8",
"type": "Microsoft.Security/applications",
"properties": {
"displayName": "GCP Admin's application",
"description": "An application on critical GCP recommendations",
"sourceResourceType": "Assessments",
"conditionSets": [
{
"conditions": [
{
"property": "$.Id",
"value": "-pricing-",
"operator": "contains"
}
]
}
]
}
}
Definitions
| Name | Description |
|---|---|
| Application |
Security Application over a given scope |
|
Application |
Application's condition |
|
Application |
The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples |
|
Application |
The application source, what it affects, e.g. Assessments |
|
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
|
Cloud |
The error detail. |
|
Error |
The resource management error additional info. |
Application
Security Application over a given scope
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource Id |
| name |
string |
Resource name |
| properties.conditionSets |
The application conditionSets - see examples |
|
| properties.description |
string |
description of the application |
| properties.displayName |
string |
display name of the application |
| properties.sourceResourceType |
The application source, what it affects, e.g. Assessments |
|
| type |
string |
Resource type |
ApplicationCondition
Application's condition
| Name | Type | Description |
|---|---|---|
| operator |
The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples |
|
| property |
string |
The application Condition's Property, e.g. ID, see examples |
| value |
string |
The application Condition's Value like IDs that contain some string, see examples |
ApplicationConditionOperator
The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples
| Value | Description |
|---|---|
| Contains |
Checks that the string value of the data defined in Property contains the given value |
| Equals |
Checks that the string value of the data defined in Property equals the given value |
| In |
Checks that the string value of the data defined in Property equals any of the given values (exact fit) |
ApplicationSourceResourceType
The application source, what it affects, e.g. Assessments
| Value | Description |
|---|---|
| Assessments |
The source of the application is assessments |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
| Name | Type | Description |
|---|---|---|
| error.additionalInfo |
The error additional info. |
|
| error.code |
string |
The error code. |
| error.details |
The error details. |
|
| error.message |
string |
The error message. |
| error.target |
string |
The error target. |
CloudErrorBody
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. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |