summaryrefslogtreecommitdiffstats
path: root/share/newton_base/swagger/multicloud.capacity.swagger.json
blob: 903458a920e925b1a0995ecead0d350e50365554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
    "swagger": "2.0",
    "info": {
        "version": "1.0.0",
        "title": "MultiVIM Capacity check rest API"
    },
    "basePath": "/api/multicloud-newton/v0/",
    "tags": [
        {
            "name": "MultiVIM Capacity check"
        }
    ],
    "paths": {
        "/{vimid}/capacity_check": {
            "post": {
                "tags": [
                    "MultiCloud Capacity Proxy"
                ],
                "summary": "check capacity",
                "description": "check capacity",
                "operationId": "check_openstack_capacity",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "parameters": [
                    {
                        "name": "vimid",
                        "in": "path",
                        "description": "vim instance id",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "name": "X-Auth-Token",
                        "in": "header",
                        "description": "authenticated token",
                        "required": true,
                        "type": "string"
                    },
                    {
                        "in": "body",
                        "name": "body",
                        "description": "parameters to check openstack capacity",
                        "required": true,
                        "type": "string"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "successful operation",
                        "type": "string"
                    },
                    "404": {
                        "description": "the vim id is wrong"
                    },
                    "500": {
                        "description": "the vim capacity check is not accessable"
                    }
                }
            }
        }
    }
}