Discover your environment
This page is for the beginner who needs to find real Visual Investigator values before adapting the task guides.
All snippets below assume svi is an authenticated SVIClient.
Start with metadata
Before you fetch a document or create an alert, inspect the configured entity types:
entity_types = svi.admin.entity_types.list(exclude_unauthorized=False)
for entity_type in entity_types[:10]:
print(entity_type.name, entity_type.label)
Use one returned name value anywhere the docs show "<your-entity-type>".
Inspect fields for one entity type
Once you know the entity type, inspect its actual fields before using placeholders like
"<your-status-field>" or "<your-score-field>". fields(name=...) returns the writable
fields by default; pass writable_only=False to include read-only and system fields such as ids
and audit timestamps:
fields = svi.admin.entity_types.fields(name="<your-entity-type>") # writable fields only
print(sorted(fields.names())[:20])
every_field = svi.admin.entity_types.fields(name="<your-entity-type>", writable_only=False)
Use Visual Investigator vocabulary if you need the mental model behind entity types, documents, and SAND fields.
Find real document and alert ids
List first, then reuse the ids returned by your own environment.
For alerts:
alerts = svi.alerts.list(limit=5)
for alert in alerts:
print(alert.document_id, alert.label)
For search-driven discovery:
results = svi.search.text("<your-search-text>").summary(limit=5)
for hit in results:
print(hit.entity_type_name, hit.document_id, hit.label)
Use those ids in the Documents, Alerts, and Search guides instead of copying the placeholder strings literally.
Discover domains, strategies, and search types
Alerting and admin examples depend on configured objects that vary by deployment:
domains = svi.admin.domains.list(limit=5)
strategies = svi.admin.strategies.list(limit=5)
search_types = svi.admin.search_types.list(limit=5)
print([(item.id, item.domain_name) for item in domains])
print([(item.id, item.strategy_name) for item in strategies])
print([(item.name, item.label) for item in search_types])
Use returned ids or names anywhere the docs show placeholders like:
"<your-domain-id>""<your-strategy-id>""<your-search-type-name>"
Inspect reference lists before using codes
Many VI deployments store analyst-facing codes in reference lists. Discover them instead of copying sample values from the docs:
reference_lists = svi.admin.reference_lists.list()
print([item.name for item in reference_lists[:10]])
Then inspect the items on one list:
reference_list = svi.admin.reference_lists.get(name="<your-reference-list-name>")
if reference_list is not None:
for item in reference_list.items.list():
print(item.code, item.label)
That is the safest way to find the real values behind placeholders like
"<your-resolution-code>", "<your-reason-code>", or "<your-priority-code>".
Check one search type or domain before coding
When a guide refers to SAND, domains, or alert workflows, confirm those objects exist first:
domain = svi.admin.domains.get(domain_id="<your-domain-id>")
search_type = svi.admin.search_types.get(name="<your-search-type-name>")
print(domain)
print(search_type)
Go further
- Need the zero-to-working path: Before you start
- Need task snippets after discovery: How-to guides
- Need VI product terminology: Visual Investigator vocabulary