Leverage on Xtesting
[functest.git] / functest / api / swagger / creds_action.yaml
1 ---
2 Update openrc
3
4 This api offers the interface to Update openstack.creds.
5 ---
6 tags:
7     - Creds
8 parameters:
9     - in: body
10       name: body
11       description: this is the input json dict
12       schema:
13           required:
14               - action
15               - args
16           properties:
17               action:
18                   type: string
19                   description: this is action for creds
20                   default: update_openrc
21               args:
22                   schema:
23                       required:
24                           - openrc
25                       properties:
26                           openrc:
27                               type: string
28                               description: this is the test case name
29                               default:
30                                   "OS_AUTH_URL": "http://192.16.1.222:5000/v3"
31                                   "OS_ENDPOINT_TYPE": "publicURL"
32                                   "OS_IDENTITY_API_VERSION": "3"
33                                   "OS_INTERFACE": "publicURL"
34                                   "OS_PASSWORD": "admn"
35                                   "OS_PROJECT_DOMAIN_NAME": "Default"
36                                   "OS_PROJECT_NAME": "admin"
37                                   "OS_REGION_NAME": "RegionOne"
38                                   "OS_TENANT_NAME": "admin"
39                                   "OS_USERNAME": "admin"
40                                   "OS_USER_DOMAIN_NAME": "Default"
41 definitions:
42     Credentials:
43         type: object
44         properties:
45             creds_name:
46                 $ref: '#/definitions/Name'
47     Name:
48         type: dict
49 responses:
50     200:
51         description: Update openrc
52         schema:
53             $ref: '#/definitions/Credentials'
54         examples:
55             'status': 0
56             'result': 'Update openrc successfully'