Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ada: get API URL from a WebDAV door #14

Open
onnozweers opened this issue Jul 31, 2024 · 0 comments
Open

Ada: get API URL from a WebDAV door #14

onnozweers opened this issue Jul 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@onnozweers
Copy link
Contributor

There are techniques to get the API address from a WebDAV door, and vice versa. We could use this in Ada. Then a user would be able to specify a WebDAV SURL and does not need to know where the API is; Ada could figure that out. I think this is already used in gfal-bringonline (if you provide it with a WebDAV URL). Downside: this is not configured by default; it depends on the dCache instance.

Finding API through WebDAV door:

$ curl -s -k https://webdav.grid.surfsara.nl:2882/.well-known/wlcg-tape-rest-api | jq .endpoints[0].uri
"https://dcacheview.grid.surfsara.nl:22882/api/v1/tape"

Finding WebDAV door through the API:

$ curl --fail --silent --capath /etc/grid-security/certificates/ --cert $X509_USER_PROXY --cacert $X509_USER_PROXY -H 'Accept: application/json' https://dcacheview.grid.surfsara.nl:22884/scripts/config.js | jq -r '."dcache-view.endpoints.webdav"'
https://dcacheview.grid.surfsara.nl:2884/
@onnozweers onnozweers added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant