Skip to main content

resh

Resoto Shell

Table of contents

Overview

resh starts the resoto shell. It is used to interact with resotocore. It allows you to explore the graph, find resources of interest, mark them for cleanup, fix their tagging, aggregate over their metadata to create metrics and format the output for use in a 3rd party script or system.

More information can be found below and in the docs.

Usage

resh uses the following commandline arguments:

  --resotocore-uri RESOTOCORE_URI
                        resotocore URI (default: https://localhost:8900)
  --resotocore-section RESOTOCORE_SECTION
                        All queries are interpreted with this section name. If not set, the server default is used.
  --resotocore-graph RESOTOCORE_GRAPH
                        The name of the graph to use by default. If not set, the server default is used.
  --download-directory DOWNLOAD_DIRECTORY
                        If files are received, they are written to this directory.
  --no-color            Output should be rendered plain without any color escape sequences.
  --stdin               Read from STDIN instead of opening a shell
  --verbose, -v         Verbose logging
  --quiet               Only log errors
  --psk PSK             Pre-shared key
  --ca-cert CA_CERT     Path to custom CA certificate file
  --no-verify-certs     Turn off certificate verification

ENV Prefix: RESOTOSHELL_ Every CLI arg can also be specified using ENV variables.

For instance --resotocore-uri http://foobar.tld:8900 would become RESOTOSHELL_RESOTOCORE_URI=http://foobar.tld:8900.

Examples

Basics

Enter help into resh to get an overview of all available commands

Using help followed by a command will provide more information about that command.

Intermediate

Show all storage volumes that are in use

> search is(volume) and volume_status = in-use

Show all storage volumes in use and format the output as CSV

> search is(volume) and volume_status = in-use | format {kind},{id},{name},{ctime}

Show all storage volumes not in use with a size of more than 10 GB

> search is(volume) and volume_status = available and volume_size > 10

Advanced

Find volumes in cloud AWS that are in use

search is(volume) and volume_status = in-use and /ancestors.cloud.reported.name = aws

Alternatively instead of filtering for storage volumes of the generic volume kind we can also be more specific

search is(aws_ec2_volume) and volume_status = in-use

Find unused AWS volumes older than 30 days with no I/O in the past 7 days

search is(aws_ec2_volume) and volume_status = available and ctime < -30d and atime < -7d and mtime < -7d

Contact

If you have any questions feel free to join our Discord or open a GitHub issue.

License

See LICENSE for details.

Metadata

Release files for resotoshell 3.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resotoshell 3.9.0
File Size Uploaded Provenance Actions
resotoshell-3.9.0.tar.gz 24.6 kB Without provenance Details for resotoshell-3.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resotoshell 3.9.0
File Interpreter ABI Platform Actions
resotoshell-3.9.0-py3-none-any.whl Python 3 none any Details for resotoshell-3.9.0-py3-none-any.whl

Total release size: 45.4 kB

Release files / resotoshell-3.9.0.tar.gz

Download URL resotoshell-3.9.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f20fa56e72ae04fc0783a62c8f0de2d0eb9c951d9dacd8028a03fd876b57101f
BLAKE2b-256 checksum
How to use checksums
2db464777a529ba0307a1e460e31493e02668cc6d6a0a34e9e76b67575766073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.8

Release files / resotoshell-3.9.0-py3-none-any.whl

Download URL resotoshell-3.9.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57e81e1c4f86520286d4ec10d5e7258d591d59604b9239638cf1b2626bb90765
BLAKE2b-256 checksum
How to use checksums
0656dac5b3c2b0d80128ec2fa9830289d4be745f7130a8cba2f180669e44ca76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.8

Security for resotoshell 3.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.9.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page