Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Will print the list of commands.

GetFile

...

get-file

Retrieves a file' command. It takes the following arguments:

  • [MANDATORY] -i The id for the file to retrieve.

  • [MANDATORY] -c The id for the collection to retrieve the file for.

  • [OPTIONAL] -p The id of the pillar where the file should be retrieved from. If no argument, then the file will be retrieved from the fastest pillars.

  • [OPTIONAL] -l The location where the file should be placed (either total path or directory). If no argument, then in the directory where the script is located.

GetFileIDs

...

get-file-ids

Get the list of files in a collection 'get-file-ids.sh' command. It takes the following arguments:

  • [MANDATORY] -c The id for the collection to retrieve the file for.

  • [OPTIONAL] -i The id of the file to retrieve. If no such argument, then the id of all files are retrieved.

  • [OPTIONAL] -p The id of the pillar where the id should be retrieved.

...

get-checksums

Perform the GetChecksum by running the 'get-checksums' command. It takes the following arguments:

...

  • [MANDATORY] -f The path to the file, which is wanted to be put.

  • [MANDATORY] -c The id for the collection to place the the file in.

  • [OPTIONAL] -S The salt of checksum to request in the response. Requires the ChecksumType argument.

  • [OPTIONAL] -R The algorithm of checksum to request in the response from the pillars.

  • [OPTIONAL] -i A ID for the file (default is the name of the file).

...

delete

Perform the DeleteFile by running the 'delete-file' command. It takes the following arguments:

...