Showing results for 
Search instead for 
Did you mean: 

web API


Need help regarding web API.

I tried to use the tagging python script but when I modify and run it didn't work as it should be. The assets has no tag.

any comment what should be done or to check on my settings?

Note: I am running the script on remote computer and mcafee py is on the same folder as the script reside.


import mcafee

#initiate connection
mc = mcafee.client('server_name','8443','username','password')

#open text file
file = open(path of the file', 'r')

#iterate through list and assign tags
for line in file:
    mc.system.applyTag(line.rstrip('\n'), 'Test-Tag-S')

1 Reply
Level 21
Report Inappropriate Content
Message 2 of 2

Re: web API

You already have a post, which you can edit if you wish to add anything, here: 

Locking this one.