Share via


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
applicationId
path True

string

The security Application key - unique key for the standard application

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+$

The name of the resource group within the user's subscription. The name is case insensitive.

securityConnectorName
path True

string

The security connector name.

subscriptionId
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

ApplicationCondition[]

The application conditionSets - see examples

properties.sourceResourceType True

ApplicationSourceResourceType

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

Application

OK - Updated

201 Created

Application

Created

Other Status Codes

CloudError

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

ApplicationCondition

Application's condition

ApplicationConditionOperator

The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples

ApplicationSourceResourceType

The application source, what it affects, e.g. 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.).

CloudErrorBody

The error detail.

ErrorAdditionalInfo

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

ApplicationCondition[]

The application conditionSets - see examples

properties.description

string

description of the application

properties.displayName

string

display name of the application

properties.sourceResourceType

ApplicationSourceResourceType

The application source, what it affects, e.g. Assessments

type

string

Resource type

ApplicationCondition

Application's condition

Name Type Description
operator

ApplicationConditionOperator

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

ErrorAdditionalInfo[]

The error additional info.

error.code

string

The error code.

error.details

CloudErrorBody[]

The error details.

error.message

string

The error message.

error.target

string

The error target.

CloudErrorBody

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

CloudErrorBody[]

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.