User Tools

Site Tools


promise:apis_b_release

This is an old revision of the document!


Supported APIs for B-Release

1. Add Provider

Register a new resource provider (e.g. OpenStack) into reservation system. See pkgcloud lib for list of supported providers.

Request parameters

Parameters Types Description
provider-type Enumeration Name of the resource provider
endpoint URI Target URL endpoint for the resource provider
username String User name
password String Password
region String Specified region for the provider (Optional)
tenantId String Id of the tenant
tenantName String Name of the tenant

Response parameters

Parameters Types Description
provider-id Identifier Identifier of the new resource provider
result Enumeration Output message (e.g. OK, ERROR}

Example request

  {
    "provider-type": "openstack",
    "endpoint": "http://10.0.2.15:5000/v2.0/tokens",
    "username": "admin",
    "password": "******",
    "tenant": {
       "id": "0d36689a21e24a15a9c543ec8dd86510",
       "name": "admin"
    }
  }

Example response

  {
    "provider-id": "1bc96b9c-c316-4854-aa10-9d2bea35508f",
    "result": "ok"
  }
promise/apis_b_release.1448621081.txt.gz · Last modified: 2015/11/27 10:44 by Bertrand Souville