sudo docker run -d -t -e MSB_ADDR=127.0.0.1 -e MSB_PORT=9005 -e AAI_ADDR=10.12.6.16 -e AAI_PORT=30233 -p 9005:9005 --name <container name> <your docker image name>

export MULTICLOUD_PLUGIN_ENDPOINT=http://127.0.0.1:9005/api/multicloud-titaniumcloud/v0/CloudOwner2_RegionOne
export MULTICLOUD_PLUGIN_ENDPOINT=http://127.0.0.1:9005/api/multicloud-titaniumcloud/v1/CloudOwner2/RegionOne

export TOKEN=$(curl -v -s -H "Content-Type: application/json" -X POST -d '{ }' $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/auth/tokens 2>&1 | grep X-Subject-Token | sed "s/\r//g" | sed "s/^.*: //" | cat -v)

export PROJECT_ID=0e148b76ee8c42f78d37013bf6b7b1ae

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/identity/v2.0/tenants

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/projects

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/projects/$PROJECT_ID

curl -v -s -H "Content-Type: application/json" -X POST -d '{}' $MULTICLOUD_PLUGIN_ENDPOINT/registry


curl -v -s -H "Content-Type: application/json" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/infra_workload?name=mctest

curl -v -s -H "Content-Type: application/json" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/infra_workload?id=ee9b5737-c76d-46fb-882e-6e51148ca196
curl -v -s -H "Content-Type: application/json" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/infra_workload/ee9b5737-c76d-46fb-882e-6e51148ca196


curl -i -X POST $MULTICLOUD_PLUGIN_ENDPOINT/identity/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{}'


curl -v -s -H "Content-Type: application/json" -X POST -d '{"vCPU": 1,"Memory": 2,"Storage": 3}' $MULTICLOUD_PLUGIN_ENDPOINT/capacity_check

curl -v -s -H "Content-Type: application/json" -X POST -d '{"vCPU": 10000,"Memory": 20000,"Storage": 300000}' $MULTICLOUD_PLUGIN_ENDPOINT/capacity_check

curl -v -s -H "Content-Type: application/json" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/extensions


curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/auth/catalog
curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/identity/v3/endpoints

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/orchestration/stacks


curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/platform/v1


curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/platform/v1/health


curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/platform/iuser

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/image/v2/images

curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/compute/v2.1/$PROJECT_ID/flavors


curl -v -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -X GET $MULTICLOUD_PLUGIN_ENDPOINT/compute/v2.1/$PROJECT_ID/servers


curl -v -s -H "Content-Type: application/json" -X GET $MULTICLOUD_PLUGIN_ENDPOINT
curl -v -s -H "Content-Type: application/json" -X DELETE $MULTICLOUD_PLUGIN_ENDPOINT


  • No labels