You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a TAXII Server object
taxii_server = Server(taxii_server_url, user=username, password=password)
Get the API Root information from the TAXII server
api_root = taxii_server.title
print(api_root)
api_root = taxii_server.api_roots[0]
collection = api_root.collections[0]
#Gives Me error-:
api_root = taxii_server.api_roots[0]
IndexError: list index out of range
Am I putting the wrong URL?
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to get all collection id's so that I can iterate over it.
from taxii2client.v21 import Server, Collection
taxii_server_url = "http://localhost:5000/trustgroup1/"
username = "admin"
password = "Password0"
Create a TAXII Server object
taxii_server = Server(taxii_server_url, user=username, password=password)
Get the API Root information from the TAXII server
api_root = taxii_server.title
print(api_root)
api_root = taxii_server.api_roots[0]
collection = api_root.collections[0]
#Gives Me error-:
api_root = taxii_server.api_roots[0]
IndexError: list index out of range
Am I putting the wrong URL?
The text was updated successfully, but these errors were encountered: