restapi-Adding address to addressgroup

cancel
Showing results for 
Search instead for 
Did you mean: 

restapi-Adding address to addressgroup

L0 Member

Hi All,

 

First of all I am new to restapi, it is first time working with API and trying to add address to address group.

I can creat address and adress group but once I try to update the existing  group with new address it will remove the old members.

I have address group call FTPAddressgroup and trying to add new address to it.

I am usig postman for test

PUT  https://myfirwallip/restapi/v10.0/Objects/AddressGroups?name=FTPAddressgroup&location=vsys&vsys=vsys...

body :

{
"entry": {
"@name": "FTPAddressgroup",
"static": {
"member": ["Customer1"]
}
}
}

this will add cusotmer1 but it delete all the current memebrs. how can I just add.

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

L3 Networker

Hi there,

You must merge the existing list contents of the 'member' parameter with your new address object name and then use this new list in the PUT request.

 

cheers,

Seb. 

View solution in original post

2 REPLIES 2

L3 Networker

Hi there,

You must merge the existing list contents of the 'member' parameter with your new address object name and then use this new list in the PUT request.

 

cheers,

Seb. 

View solution in original post

Hi, thanks for the replay, that's what I was thinking too,

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!