Comments (2)
I'm wondering if the local-only HTTP APIs are considered public
I think all of them are exposed publickly, but they are protected by RBAC, so the session_id needs to be passed in the URL, with a ?session_id=XXX
. You can see an example on how to get a session_id from xapi using python here https://xapi-project.github.io/xen-api/metrics.html
If they are, I'm hoping they can be more fully documented.
It would be nice if they were programatically documented, indeeed.
If they aren't, I'm wondering what option there might be for programmatically uploading a driver iso to a storage repository outside of the "pool_patch_upload" CLI action.
This call in particular is defined as an HTTP PUT command to /pool_patch_upload.
Putting it all together it's a matter of using an xmlrpc to fetch a session_id and sending a PUT command to https://server.example/pool_patch_upload?session_id=XXX
from xen-api.
@psafont thank you for the response. I'm trying to use this PUT endpoint after I have a session_id, simply with curl at first. In verbose output curl states that everything uploads OK, but then I get an error response. Is there a parameter I need to provide with --file-upload like "vdi="? I'll be sure to respond with the exact error response shortly.
from xen-api.
Related Issues (20)
- hardcoded path to `igmp_query_injector.py` HOT 2
- SMT discoverability: add thread_per_core info in host.cpu_info HOT 4
- XAPI could store reference to block-device as by-(uu)id when presented an enumeration-dependant dev path
- [SMAPIv3] `VDI.copy` generates an error, then logs at debug level it is safe to ignore
- multiple dom0 attach failed with SMAPIv3 HOT 1
- [SMAPIv3] Error accessing device in `xe vbd-plug` leaves device "half plugged"
- [SMAPIv3] `xe vdi-create` leaves VDI half-created on error in `Volume.set` for `vdi-type=user`
- [SMAPIv3] `xe sr-create` does not report an error when `SR.attach` fails HOT 1
- [RFC] New API methods to let clients display accurate status about SecureBoot and UEFI certs HOT 2
- Allowing xe VM import URL via HTTPS
- "Emergency Network Reset" interferes with `network-init` when trying to fix VLAN specification
- Firstboot script failures not reported to the user
- Use host FQDN in VM console URLs HOT 1
- setting back `is-a-template=false` on a VM causes inconsistent state
- ISO SR is confused by unreadable files
- Reduce freeze time when suspending a VM HOT 2
- Support Chunk encoding
- Management-interface bridge created with wrong MAC on boot, can poison ARP caches
- interface-rename port to python3 is incomplete
- Guest with 2 distinct VBD sharing the same `userdevice` - following race condition around `VM.revert`? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xen-api.