Skip to main content

Supported Query Targets

cnquery can request information from:

TargetExample
Ansible playbookscnquery shell ansible YOUR_PLAYBOOK.yml
Arista network devicescnquery shell arista DEVICE_IP --ask-pass
Atlassian organizationscnquery shell atlassian --host YOUR_HOST_URL --admin-token YOUR_TOKEN
AWS accountscnquery shell aws
AWS CloudFormation templatescnquery shell cloudformation cloudformation_file.json
AWS EC2 EBS snapshotcnquery shell aws ec2 ebs snapshot SNAPSHOTID
AWS EC2 EBS volumecnquery shell aws ec2 ebs volume VOLUMEID
AWS EC2 Instance Connectcnquery shell aws ec2 instance-connect ec2-user@INSTANCEID
AWS EC2 instancescnquery shell ssh user@host
Cisco IOS / NX-OS devicescnquery shell nd-ssh USER_NAME@DEVICE_IP --ask-pass
Cloudflarecnquery shell cloudflare --token TOKEN
Confluence userscnquery shell atlassian --host YOUR_HOST_URL --admin-token YOUR_TOKEN
Container imagescnquery shell container ubuntu:latest
Container registriescnquery shell container registry index.docker.io/library/rockylinux:8
DNS recordscnquery shell host mondoo.com
Dockerfilescnquery shell docker file FILENAME
GitHub organizationscnquery shell github org mondoohq
GitHub repositoriescnquery shell github repo mondoohq/cnquery
GitLab groupscnquery shell gitlab --group mondoohq
Google Cloud projectscnquery shell gcp
Google Workspacecnquery shell google-workspace --customer-id CUSTOMER_ID --impersonated-user-email EMAIL --credentials-path JSON_FILE
IoT devicescnquery shell opcua
Jira projectscnquery shell atlassian --host YOUR_HOST_URL --admin-token YOUR_TOKEN
Kubernetes cluster nodescnquery shell ssh user@host
Kubernetes clusterscnquery shell k8s
Kubernetes manifestscnquery shell k8s manifest.yaml
Kubernetes workloadscnquery shell k8s --discover pods,deployments
Linux hostscnquery shell local or
cnquery shell ssh user@host
macOS hostscnquery shell local or
cnquery shell ssh user@IP_ADDRESS
Microsoft 365 tenantscnquery shell ms365 --tenant-id TENANT_ID --client-id CLIENT_ID --certificate-path PFX_FILE
Microsoft Azure instancescnquery shell ssh user@host
Microsoft Azure subscriptionscnquery shell azure --subscription SUBSCRIPTION_ID
Okta orgcnquery shell okta --token TOKEN --organization ORGANIZATION
Oracle Cloud Interface (OCI)cnquery shell oci
Running containerscnquery shell docker CONTAINER_ID
Shodan search enginecnquery shell shodan --token TOKEN
Slack teamcnquery shell slack --token TOKEN
Snowflakecnquery shell snowflake --account ACCOUNT-ID --region REGION --user YOUR-USER-ID --role YOUR-ROLE --ask-pass
SSL certificates on websitescnquery shell host mondoo.com
Tailscalecnquery shell tailscale --token TOKEN
Terraform HCLcnquery shell terraform HCL_FILE_OR_PATH
Terraform plancnquery shell terraform plan plan.json
Terraform statecnquery shell terraform state state.json
Vagrant virtual machinescnquery shell vagrant HOST
VMware Cloud Directorcnquery shell vcd user@domain@host --ask-pass
VMware vSpherecnquery shell vsphere user@domain@host --ask-pass
Windows hostscnquery shell local,
cnquery shell ssh Administrator@IP_ADDRESS --ask-pass or
cnquery shell winrm Administrator@IP_ADDRESS --ask-pass