Add protected resource (PUT)
Published: July 13, 2016
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.
Method | Request Uri |
|---|---|
PUT | https://<endpoint>/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/microsoft.Security/securitySolutions/{solutionName}/protectedResources?api-version={api-version} |
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 |
Common request headers only.
{
“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”,
}
Parameter | Description |
|---|---|
resourceAzureId | The protected resource Azure Id |
taskId | The task id that recommended to add the protected resource |
If successful, the operation returns HTTP status code of 200 (OK).
{
“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”
}