Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
NivethithaRajasekara
New Contributor

Rest API - To Add address object to group

Hi,

 

I am trying to add new Address object to the existing address group through API. The firewall version is 5.6.8 so accessing this api through API token. When i try to hit the API, it gives 500 and error code is -3.

 

Is there anything missing?

 

The API which i am using is,

URL:

https://{{fw_ip}}/api/v2/cmdb/firewall/addrgrp/{{addressGroup}}

Payload :

{"member":[{"name":"1.1.1.1.","q_origin_key":"1.1.1.1"}]}

Request type:

PUT

Error:

 

{ "http_method": "PUT", "revision": "5", "error": -3, "status": "error", "http_status": 500, "vdom": "root", "path": "firewall", "name": "addrgrp", "mkey": "test", "serial": "FG1111", "version": "v5.6.8", "build": 172 }

0 REPLIES 0
Labels
Top Kudoed Authors