From fa4fa999455156be5baf61b9e8ed0842dd220bf0 Mon Sep 17 00:00:00 2001 From: Yan Xing'an Date: Mon, 18 Jun 2018 12:59:03 +0800 Subject: [PATCH] Update vims api-ref for rocky update the api doc of create/list/show/update-vim Closes-bug: #1777549 Partially Implements: blueprint update-api-ref-for-rocky Change-Id: Ie796d2024e30191d0724053273c8df6c2b806821 --- .../v1/samples/vims/vims-create-request.json | 6 ++--- .../v1/samples/vims/vims-create-response.json | 15 +++++++----- .../v1/samples/vims/vims-list-response.json | 19 +++++++-------- .../v1/samples/vims/vims-show-response.json | 21 +++++++++-------- .../v1/samples/vims/vims-update-request.json | 6 ++--- .../v1/samples/vims/vims-update-response.json | 23 ++++++++++--------- 6 files changed, 47 insertions(+), 43 deletions(-) diff --git a/api-ref/source/v1/samples/vims/vims-create-request.json b/api-ref/source/v1/samples/vims/vims-create-request.json index 67d994777..6598dea15 100644 --- a/api-ref/source/v1/samples/vims/vims-create-request.json +++ b/api-ref/source/v1/samples/vims/vims-create-request.json @@ -1,12 +1,12 @@ { "vim": { - "tenant_id": "689708956a2d4ae0a27120d3aca6a560", "type": "openstack", - "auth_url": "http://192.168.1.2:5000/v3", + "auth_url": "http://192.168.42.131/identity", "auth_cred": { "username": "nfv_user", "user_domain_name": "Default", - "password": "password" + "password": "password", + "cert_verify": "True" }, "vim_project": { "name": "nfv", diff --git a/api-ref/source/v1/samples/vims/vims-create-response.json b/api-ref/source/v1/samples/vims/vims-create-response.json index 90996c227..f2f59e499 100644 --- a/api-ref/source/v1/samples/vims/vims-create-response.json +++ b/api-ref/source/v1/samples/vims/vims-create-response.json @@ -1,16 +1,16 @@ { "vim": { - "status": "REACHABLE", + "status": "PENDING", "description": "Additional site", - "tenant_id": "689708956a2d4ae0a27120d3aca6a560", - "created_at": "2016-10-21 09:27:38.628545", + "tenant_id": "a5346a4d3c464b4f8776ee2f4bfb86af", + "created_at": "2018-06-18 04:13:26.465823", "vim_project": { "name": "nfv", "project_domain_name": "Default" }, "updated_at": null, "is_default": false, - "auth_url": "http://192.168.1.2:5000/v3", + "auth_url": "http://192.168.42.131/identity/v3", "placement_attr": { "regions": [ "RegionOne" @@ -20,13 +20,16 @@ "username": "nfv_user", "password": "***", "project_name": "nfv", + "cert_verify": "True", "user_domain_name": "Default", - "auth_url": "http://192.168.1.2:5000/v3", + "auth_url": "http://192.168.42.131/identity/v3", "project_id": null, + "key_type": "barbican_key", + "secret_uuid": "***", "project_domain_name": "Default" }, "type": "openstack", - "id": "a35b19c5-b1b3-4172-9c2a-aa80a6470bd7", + "id": "28dbc4f0-80e2-4006-b26c-724a1202e82d", "name": "VIM1" } } diff --git a/api-ref/source/v1/samples/vims/vims-list-response.json b/api-ref/source/v1/samples/vims/vims-list-response.json index 64078db7d..16f38435c 100644 --- a/api-ref/source/v1/samples/vims/vims-list-response.json +++ b/api-ref/source/v1/samples/vims/vims-list-response.json @@ -3,16 +3,15 @@ { "status": "REACHABLE", "description": "", - "tenant_id": "689708956a2d4ae0a27120d3aca6a560", - "created_at": "2016-09-23 09:57:35", + "tenant_id": "a5346a4d3c464b4f8776ee2f4bfb86af", + "created_at": "2018-06-17 16:26:52", "vim_project": { - "id": "", "name": "nfv", "project_domain_name": "Default" }, - "updated_at": "2016-09-23 09:57:35", + "updated_at": "2018-06-18 03:45:49", "is_default": true, - "auth_url": "http://localhost:5000/v3", + "auth_url": "http://192.168.42.131/identity/v3", "placement_attr": { "regions": [ "RegionOne" @@ -22,14 +21,16 @@ "username": "nfv_user", "password": "***", "project_name": "nfv", - "user_id": "", + "cert_verify": "True", "user_domain_name": "Default", - "auth_url": "http://localhost:5000/v3", - "project_id": "", + "auth_url": "http://192.168.42.131/identity/v3", + "project_id": null, + "key_type": "barbican_key", + "secret_uuid": "***", "project_domain_name": "Default" }, "type": "openstack", - "id": "f6bd6f24-7a0e-4111-8994-e108c5ee2ff2", + "id": "cb7ac02e-1445-48c2-a3cb-4fcddd49fce5", "name": "VIM0" } ] diff --git a/api-ref/source/v1/samples/vims/vims-show-response.json b/api-ref/source/v1/samples/vims/vims-show-response.json index 0754ebefc..759abb58e 100644 --- a/api-ref/source/v1/samples/vims/vims-show-response.json +++ b/api-ref/source/v1/samples/vims/vims-show-response.json @@ -2,16 +2,15 @@ "vim": { "status": "REACHABLE", "description": "", - "tenant_id": "689708956a2d4ae0a27120d3aca6a560", - "created_at": "2016-09-23 09:57:35", + "tenant_id": "a5346a4d3c464b4f8776ee2f4bfb86af", + "created_at": "2018-06-17 16:26:52", "vim_project": { - "id": "", "name": "nfv", "project_domain_name": "Default" }, - "updated_at": "2016-09-23 09:57:35", - "is_default": true, - "auth_url": "http://localhost:5000/v3", + "updated_at": "2018-06-18 03:45:49", + "is_default": false, + "auth_url": "http://192.168.42.131/identity/v3", "placement_attr": { "regions": [ "RegionOne" @@ -20,15 +19,17 @@ "auth_cred": { "username": "nfv_user", "password": "***", + "project_id": null, "project_name": "nfv", - "user_id": "", + "cert_verify": "True", "user_domain_name": "Default", - "auth_url": "http://localhost:5000/v3", - "project_id": "", + "key_type": "barbican_key", + "secret_uuid": "***", + "auth_url": "http://192.168.42.131/identity/v3", "project_domain_name": "Default" }, "type": "openstack", - "id": "f6bd6f24-7a0e-4111-8994-e108c5ee2ff2", + "id": "cb7ac02e-1445-48c2-a3cb-4fcddd49fce5", "name": "VIM0" } } diff --git a/api-ref/source/v1/samples/vims/vims-update-request.json b/api-ref/source/v1/samples/vims/vims-update-request.json index 95577172d..cd7cc03fb 100644 --- a/api-ref/source/v1/samples/vims/vims-update-request.json +++ b/api-ref/source/v1/samples/vims/vims-update-request.json @@ -4,15 +4,13 @@ "username": "new_nfv_user", "user_domain_name": "NewDomain", "password": "newpassword", - "user_id": "11d7655309d849208ea1f39d44507e2e" + "cert_verify": "True" }, "vim_project": { - "id": "4391756708414b1380235cd047f0ee55", "name": "new_nfv", "project_domain_name": "NewDomain" }, "name": "new_VIM1", - "description": "New Description", - "is_default": false + "description": "New Description" } } diff --git a/api-ref/source/v1/samples/vims/vims-update-response.json b/api-ref/source/v1/samples/vims/vims-update-response.json index 49c38bd3a..a2b4b8351 100644 --- a/api-ref/source/v1/samples/vims/vims-update-response.json +++ b/api-ref/source/v1/samples/vims/vims-update-response.json @@ -2,16 +2,15 @@ "vim": { "status": "REACHABLE", "description": "New Description", - "tenant_id": "689708956a2d4ae0a27120d3aca6a560", - "created_at": "2016-10-21 10:35:12", + "tenant_id": "a5346a4d3c464b4f8776ee2f4bfb86af", + "created_at": "2018-06-18 04:13:26", "vim_project": { "project_domain_name": "NewDomain", - "id": "4391756708414b1380235cd047f0ee55", "name": "new_nfv" - }, - "updated_at": "2016-10-21 10:35:40.043226", + } + "updated_at": "2018-06-18 04:33:41.462895", "is_default": false, - "auth_url": "http://192.168.1.2:5000/v3", + "auth_url": "http://192.168.42.131/identity/v3", "placement_attr": { "regions": [ "RegionOne" @@ -20,15 +19,17 @@ "auth_cred": { "username": "new_nfv_user", "password": "***", + "project_id": null, "project_name": "new_nfv", - "user_id": "11d7655309d849208ea1f39d44507e2e", "user_domain_name": "NewDomain", - "auth_url": "http://192.168.1.2:5000/v3", - "project_id": "4391756708414b1380235cd047f0ee55", - "project_domain_name": "NewDomain" + "auth_url": "http://192.168.42.131/identity/v3", + "project_domain_name": "NewDomain", + "cert_verify": "True", + "key_type": "barbican_key", + "secret_uuid": "***" }, "type": "openstack", - "id": "ce4df54a-5734-493f-ab27-ce02fbfe2463", + "id": "28dbc4f0-80e2-4006-b26c-724a1202e82d", "name": "new_VIM1" } }