title | description | ms.date | ms.topic |
---|---|---|---|
Update IP address range - Data Enrichment API |
This article describes the update IP address range request in the Defender for Cloud Apps Data Enrichment API. |
01/29/2023 |
reference |
Run the POST request to update an existing IP address range.
Important
This endpoint is not built for partial updates. All required parameters must be passed and any optional parameters will get an empty value if not passed.
POST /api/v1/subnet/<ip_range_id>/update_rule/
Parameter | Type | Description |
---|---|---|
name | string | The unique name of the range |
category | int | The id of the range category. Providing a category helps you easily recognize activities from interesting IP addresses. Possible values include: 1: Corporate 2: Administrative 3: Risky 4: VPN 5: Cloud provider 6: Other |
subnets | list | An array of masks as strings (IPv4 / IPv6) |
organization (Optional) | string | The registered ISP |
tags (Optional) | list | An array of new or existing objects including the tag name, id, description, name template, and tenant id |
Here is an example of the request.
curl -XPOST -H "Authorization:Token <your_token_key>" -H "Content-Type: application/json" "https://<tenant_id>.<tenant_region>.portal.cloudappsecurity.com/api/v1/subnet/<ip_range_id>/update_rule/" -d '{
"name":"range name",
"category":5,
"organization":"Microsoft",
"subnets":[
"192.168.1.0/24",
"192.168.2.0/16"
],
"tags":[
"existing tag"
]
}'
[!INCLUDE Open support ticket]