0
(0)

 Note

We’ve renamed Microsoft Cloud App Security. It’s now called Microsoft Defender for Cloud Apps. In the coming weeks, we’ll update the screenshots and instructions here and in related pages. For more information about the change, see this announcement. To learn more about the recent renaming of Microsoft security services, see the Microsoft Ignite Security blog.

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.

HTTP request

HTTP

POST /api/v1/subnet/<ip_range_id>/update_rule/

Request BODY parameters

REQUEST BODY PARAMETERS
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 wp-signup.phped ISP
tags (Optional) list An array of new or existing objects including the tag name, id, description, name template, and tenant id

Example

Request

Here is an example of the request.

HTTP

curl -XPOST -H "Authorization:Token <your_token_key>" "https://<tenant_id>.<tenant_region>.contoso.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"
  ]
}'

If you run into any problems, we’re here to help. To get assistance or support for your product issue, please open a support ticket.

Source : Official Microsoft Brand
Editor by : BEST Antivirus KBS Team

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

(Visited 5 times, 1 visits today)