Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Krishnan
Contributor
Jump to solution

create multiple urls using API

Hi Team,

I have to create a large number of URLS like 100s of them. Is there anyway we can script it using API? If you can help me with create for the same, it will be helpful.

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin
0 Kudos
5 Replies
PhoneBoy
Admin
Admin
0 Kudos
Julian_Sanchez
Collaborator

Do you know how CheckPoint are update the URLs malicius from Covid-19?

Because I have more than 300 URLs reported from CCN-CERT and I need add these to our firewall. Anyone know about one script for that? Or I should follow only the guideline of API?

0 Kudos
ITcmvvr
Explorer

Hi, I need to create a large number of hosts with group. Like this, for example:

add host name IP_malicioso_172.105.43.213 ip-address 172.105.43.213 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_37.58.58.239 ip-address 37.58.58.239 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_172.104.243.192 ip-address 172.104.243.192 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_152.89.162.226 ip-address 152.89.162.226 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_80.92.206.158 ip-address 80.92.206.158 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_111.90.151.120 ip-address 111.90.151.120 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_65.108.159.227 ip-address 65.108.159.227 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_50.116.9.4 ip-address 50.116.9.4 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_192.155.83.10 ip-address 192.155.83.10 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_103.150.187.121 ip-address 103.150.187.121 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_89.187.182.2 ip-address 89.187.182.2 groups IPsMaliciososFonteCNCS
add host name IP_malicioso_208.115.243.44 ip-address 208.115.243.44 groups IPsMaliciososFonteCNCS

I need help to create them all at once in a script. Is it possible?

Thanks for help

0 Kudos
Julian_Sanchez
Collaborator

Have you found any script for this task? 

If you have something, Can you share with us?

0 Kudos
PhoneBoy
Admin
Admin
In the documentation reference I provided, there is a sample CLI command (using mgmt_cli) that shows multiple URLs being added.
Whether you use the API or mgmt_cli (which is merely an API client), you still have to follow the same flow.
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events