Skip to content

Add userdata support to scw-boot-tools (fix #80) #84

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

Closed
moul opened this issue Sep 6, 2015 · 2 comments
Closed

Add userdata support to scw-boot-tools (fix #80) #84

moul opened this issue Sep 6, 2015 · 2 comments
Assignees

Comments

@moul
Copy link
Contributor

moul commented Sep 6, 2015

Here is an example with the public API: https://github.com/scaleway/scaleway-cli/blob/master/pkg/cli/x_userdata.go

You should use http://169.254.42.42/ user_data/ without token instead

@moul
Copy link
Contributor Author

moul commented Sep 6, 2015

You can checkout scaleway/scaleway-cli#167

@moul
Copy link
Contributor Author

moul commented Sep 6, 2015

root@dev-scw-cli:~/scaleway-cli# ./scw -D _userdata local
DEBU[0000] curl -X GET -H "X-Auth-Token: " -H "Content-Type: application/json" http://169.254.42.42//user_data
toto
toto2
root@dev-scw-cli:~/scaleway-cli# ./scw -D _userdata local toto
DEBU[0000] curl -X GET -H "X-Auth-Token: " -H "Content-Type: application/json" http://169.254.42.42//user_data/toto
42
root@dev-scw-cli:~/scaleway-cli# ./scw -D _userdata local toto=43
DEBU[0000] curl -X PATCH -d 43 -H "X-Auth-Token: " -H "Content-Type: text/plain" http://169.254.42.42//user_data/toto
toto
root@dev-scw-cli:~/scaleway-cli# ./scw -D _userdata local toto=
DEBU[0000] curl -X DELETE -H "X-Auth-Token: " -H "Content-Type: application/json" http://169.254.42.42//user_data/toto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants