Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 11 commits into from
Jul 31, 2024

Conversation

grace-murphy
Copy link
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.

censys/asm/api.py Show resolved Hide resolved
censys/asm/inventory.py Outdated Show resolved Hide resolved
censys/asm/inventory.py Outdated Show resolved Hide resolved
censys/cli/commands/asm.py Show resolved Hide resolved
censys/asm/inventory.py Outdated Show resolved Hide resolved
censys/asm/inventory.py Outdated Show resolved Hide resolved
censys/cli/commands/asm.py Outdated Show resolved Hide resolved
censys/cli/commands/asm.py Outdated Show resolved Hide resolved
censys/cli/commands/asm.py Outdated Show resolved Hide resolved
docs/conf.py Outdated Show resolved Hide resolved
examples/asm/search.py Outdated Show resolved Hide resolved
Copy link
Member

@thehappydinoa thehappydinoa left a comment

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.

@thehappydinoa thehappydinoa merged commit b7cfdcb into main Jul 31, 2024
5 checks passed
@thehappydinoa thehappydinoa deleted the grace-murphy/search-cli branch July 31, 2024 19:43
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