1. Generate Token
openstack token issue
2. Export Token
export OS_TOKEN=xxxxx
3. List Project
curl -s -H "X-Auth-Token: $OS_TOKEN" "https://keystone.jkt-1.neo.id:443/v3/auth/projects" | python -mjson.tool
4. List Domain
curl -s \
-H "X-Auth-Token: $OS_TOKEN" \
"https://keystone.jkt-1.neo.id:443/v3/domain" | python -mjson.tool
5. List Instance
curl -s -H "X-Auth-Token: $OS_TOKEN" "https://nova.jkt-1.neo.id:8774/v2.1/servers" | python -mjson.tool
6. Stop and Start Instance
curl -i -X POST -H "Content-Type: application/json" -H 'X-Auth-Token:9fa099ee00bb438ead5143666c4c4d46' -d '{"os-stop":null }' https://nova.jkt-1.neo.id:8774/v2.1/servers/10609ac8-049e-4e70-ab74-85bb5de92d50/action
curl -i -X POST -H "Content-Type: application/json" -H 'X-Auth-Token:9fa099ee00bb438ead5143666c4c4d46' -d '{"os-start":null }' https://nova.jkt-1.neo.id:8774/v2.1/servers/10609ac8-049e-4e70-ab74-85bb5de92d50/action