Add protected resource (PUT)

 

Updated: July 12, 2016

An existing security solution can applied to an Azure resource. For example, you can add a web application firewall already deployed in your environment to a new web application running in Azure.

Request

Method

Request Uri

PUT

https://<endpoint>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/microsoft.Security/securitySolutions/{solutionName}/protectedResources?api-version={api-version}

Request Uri Parameters

Parameter

Description

subscriptionId

The subscription id

resourceGroup

The resource group of the security solution

solutionName

The name of the security solution

Api-version

The version of the Security RP protocol used for this request

Request Headers

Common request headers only.

Request body

{  
                    “resourceAzureId”: “/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/chemi-RSG/providers/Microsoft.Network/publicIPAddresses/chemiIP0”, 
 “taskId”: “/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/chemi-RSG/providers/Microsoft.Security/tasks/ab853c6a-0d9a-2609-f6b8-50df1fd21fd8”, 
} 

Request Body Parameters

Parameter

Description

resourceAzureId

The protected resource Azure Id

taskId

The task id that recommended to add the protected resource

Response

Status code

If successful, the operation returns HTTP status code of 200 (OK).

Response Body

                    { 
 “resourceAzureId”: “/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/chemi-RSG/providers/Microsoft.Network/publicIPAddresses/chemiIP0”, 
 “taskId”: “/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/chemi-RSG/providers/Microsoft.Security/tasks/ab853c6a-0d9a-2609-f6b8-50df1fd21fd8” 
} 

See Also

Security Solutions - Protected Resources
Security Resource Provider REST API Reference