diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-08-21 03:24:28 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-08-25 03:27:24 +0000 |
commit | 8252374c2f165feea0f407b51deeb31930fb092e (patch) | |
tree | 368fd9def6a18d0f84df990ea9d896ee26337d7d /functest/api/urls.py | |
parent | ad44bfd97555a7372269db539857fd53fffb0460 (diff) |
Create API to update hosts info
API: /api/v1/functest/envs/action
METHOD: POST
PARAMS:
{
"action": "update_hosts",
"args": {
"identity.ac.dz.com": "8.20.11.22",
"image.ac.dz.com": "8.20.11.22"
}
}
JIRA: FUNCTEST-856
Change-Id: Ifaf064110ade6e39189dd14b38c921d9e1c3568d
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/api/urls.py')
-rw-r--r-- | functest/api/urls.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functest/api/urls.py b/functest/api/urls.py index f7bcae38..59bf7d51 100644 --- a/functest/api/urls.py +++ b/functest/api/urls.py @@ -25,8 +25,9 @@ URLPATTERNS = [ # GET /api/v1/functest/envs => GET environment Url('/api/v1/functest/envs', 'v1_envs'), - # POST /api/v1/functest/envs/action , {"action":"prepare"} - # => Prepare environment + # POST /api/v1/functest/envs/action + # {"action":"prepare"} => Prepare environment + # {"action":"update_hosts", "args": {}} => Update hosts info Url('/api/v1/functest/envs/action', 'v1_envs'), # GET /api/v1/functest/openstack/credentials => GET credentials |