Skip to content

feat(cli): inventory search and saved queries from cli - #637

Merged
Aidan Holland (thehappydinoa) merged 11 commits into
mainfrom
grace-murphy/search-cli
Jul 31, 2024
Merged

feat(cli): inventory search and saved queries from cli#637
Aidan Holland (thehappydinoa) merged 11 commits into
mainfrom
grace-murphy/search-cli

Conversation

@grace-murphy

Copy link
Copy Markdown
Contributor

Changes

Add capability to use ASM Inventory Search from the CLI with a query string, saved query ID, or saved query name

Examples:
censys asm search --query 'domain: foo.com'
censys asm execute-saved-query-by-id --query-id 70000000-aaaa-4444-bbbb-eeeeeeeeeeee
censys asm-execute-saved-query-by-name --query-name 'my saved query'

Deprecation Notice

Previously, workspaces was a required field for the ASM search() function in the SDK. Going forward, the workspace ID associated with the API key being used will be automatically selected. workspaces is now an optional field in that function and will be removed altogether in the future.

Comment thread censys/asm/api.py
Comment thread censys/asm/inventory.py Outdated
Comment thread censys/asm/inventory.py Outdated
Comment thread censys/cli/commands/asm.py
Comment thread censys/asm/inventory.py Outdated
Comment thread censys/asm/inventory.py Outdated
Comment thread censys/cli/commands/asm.py Outdated
Comment thread censys/cli/commands/asm.py Outdated
Comment thread censys/cli/commands/asm.py Outdated
Comment thread docs/conf.py Outdated
Comment thread examples/asm/search.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I will trigger a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants