Atšķirības starp "Hostnet OpenStack Cloud Compute API" versijām
No ''Hostnet Wiki''
(Jauna lapa: Once you have these pieces of information, you can pass them into the SDK by replacing {username}, {password}, {domain} and {projectID} with your info: # {username}, {apiKey} below a...) |
(Nav atšķirību)
|
Versija, kas saglabāta 2017. gada 5. jūnijs, plkst. 10.04
Once you have these pieces of information, you can pass them into the SDK by replacing {username}, {password}, {domain} and {projectID} with your info:
- {username}, {apiKey} below are placeholders, do not enclose '{}' when you replace them with actual credentials.
~ curl -i \
-H "Content-Type: application/json" \
-d '
{ "auth": {
"identity": {
"methods": [
"password"
],
"password": {
"user": {
"name": "{username}",
"domain": {
"id": "{domain}"
},
"password": "{password}"
}
}
},
"scope": {
"project": {
"id": "{projectID}"
}
}
}
}' \
https://identity.api.cloud.hostnet.lv/v3/auth/tokens
- From the resulting, set environment variable as X-Subject-Token value:
export OS_TOKEN="{X-Subject-Token}"