{"id":16717153,"url":"https://github.com/mseri/xapirpc-rs","last_synced_at":"2025-06-12T05:31:52.779Z","repository":{"id":57672474,"uuid":"109381981","full_name":"mseri/xapirpc-rs","owner":"mseri","description":"Minimal RPC client for communication with xapi - more a PoC than anything else","archived":false,"fork":false,"pushed_at":"2018-03-01T17:20:51.000Z","size":84,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-04T16:31:53.504Z","etag":null,"topics":["rust","xapi","xmlrpc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mseri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-03T10:17:38.000Z","updated_at":"2018-02-21T15:54:28.000Z","dependencies_parsed_at":"2022-08-31T05:40:10.952Z","dependency_job_id":null,"html_url":"https://github.com/mseri/xapirpc-rs","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Fxapirpc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Fxapirpc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Fxapirpc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Fxapirpc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mseri","download_url":"https://codeload.github.com/mseri/xapirpc-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mseri%2Fxapirpc-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259120176,"owners_count":22808335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","xapi","xmlrpc"],"created_at":"2024-10-12T21:30:15.683Z","updated_at":"2025-06-12T05:31:52.763Z","avatar_url":"https://github.com/mseri.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xapirpc \u0026emsp; [![Build Status]][travis] [![Doc Badge]][docs] [![Latest Version]][crates.io]\n\n[Build Status]: https://api.travis-ci.org/mseri/xapirpc-rs.svg?branch=master\n[travis]: https://travis-ci.org/mseri/xapirpc-rs\n[Latest Version]: https://img.shields.io/crates/v/xapirpc.svg\n[crates.io]: https://crates.io/crates/xapirpc\n[Doc Badge]: https://docs.rs/xapirpc/badge.svg\n[docs]: https://docs.rs/xapirpc/\nMinimal library and CLI client for [xapi](https://github.com/xapi-project/xen-api) rpc calls.\n\n---\n\nThe crate provides a small CLI utility to make RPC calls to\n[xapi](https://github.com/xapi-project/xen-api), and\nexports a library that exposes some common helpers to create xapi clients\n(see [the documentation on docs.rs](https://docs.rs/xapirpc/)). The\nCLI executable provides an example of use.\n\nThe  output of the CLI tool is in json, so it can be piped to `jq` or\nother json tools for further filtering.  For example you can get the\n`uuid` and `name_label` of all VMs with:\n\n```bash\nxapirpc VM get_all_records | jq '.[]|select(.is_a_template==false)|{uuid, name_label}'\n```\n\nThere CLI help should clarify all the supported customisations.\n\n```bash\n$ xapirpc --help\nMinimal xapi xmlrpc CLI client\nUSAGE:\n    xapirpc [FLAGS] [OPTIONS] \u003cclass\u003e \u003cmethod\u003e [args]...\nFLAGS:\n        --compact    Output the result as non-prettified json\n        --help       Prints help information\n    -V, --version    Prints version information\nOPTIONS:\n    -h, --host \u003chost\u003e    XenServer host. Can be passed with the XAPI_HOST env variable.\n    -p, --pass \u003cpass\u003e    XenServer host user password. Can be passed with the XAPI_PASSWORD env variable.\n    -u, --user \u003cuser\u003e    XenServer host user name. Can be passed with the XAPI_USER env variable.\nARGS:\n    \u003cclass\u003e      Case sensitive value for the xapi class\n    \u003cmethod\u003e     Case sensitive value for the xapi method\n    \u003cargs\u003e...    Ordered list of arguments for the call (if any). Do not pass a session.\n```\n\nThe `host`, `user`, and `pass` value can be manually configured by creating\n```\n$HOME/.config/xapirpc/config.prefs.json\n```\nand adding them in a json object. E.g.\n```bash\n$ cat $HOME/.config/xapirpc/config.prefs.json\n{\"user\":\"my_user_name\",\"pass\":\"my_pass\"}\n```\n\nTo try it, clone this repository and build with `cargo build --release` or install it using `cargo install xapirpc --force`.\n\n# Acknowledgements\n\nThanks:\n\n- @gaborigloi for porting the library to `quicli`\n- @Pistahh for fixing the `jq` example and comments on the code\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmseri%2Fxapirpc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmseri%2Fxapirpc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmseri%2Fxapirpc-rs/lists"}