Cloud Opera IES API Introduction Huawei Cloud Opera

  • Slides: 23
Download presentation
Cloud. Opera IES API Introduction

Cloud. Opera IES API Introduction

Huawei Cloud. Opera IES APIs introduction IES contributes the following APIs and Cloud. VPN

Huawei Cloud. Opera IES APIs introduction IES contributes the following APIs and Cloud. VPN service environment. Category Service Catalog Service. Man ager Cloud. VPN Watch API Name Action URL Querying NS Definitions Querying Details of specific NS Definition Creating Service Instance GET /catalog/v 1/servicedefs/{servicedef. Id}/details POST /servicemanager/v 1/services Querying Service List Querying Details of specified Service Modifying Service Instance GET /servicemanager/v 1/services/{service. Id} PUT /servicemanager/v 1/services/{service. Id} Deleting Service Instance DEL /servicemanager/v 1/services/{service. Id} Querying Cloud. VPN traffic GET /cloudvpnwatch/v 1/traffic/connections/{connecti on-name}/{metric} HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 2

API Scenario 1: Create & activate Cloud. VPN service ① Query available network service

API Scenario 1: Create & activate Cloud. VPN service ① Query available network service definition and get “servicedefid” ② Get the “template_id” of network service definition ③ Create Cloud. VPN service to complete E 2 E service provisioning and return “service_id” ④ Check service status and bandwidth It will take about 10 minutes from a new Cloud. VPN service creation to E 2 E Service activation. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 3

API Scenario 2: Elastically scale Cloud. VPN network ① Get “service_id” of Cloud. VPN

API Scenario 2: Elastically scale Cloud. VPN network ① Get “service_id” of Cloud. VPN service Instance; ② Get the details of the “service_id”, including “Cloud. Vpn. Name” / “bandwidth”/ “service_name”; ③ Monitoring Cloud. VPN traffic; ④ Modify bandwidth of Cloud. VPN ⑤ Delete Cloud. VPN to free up network resource. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 4

API Description: Service Catalog APIs Querying NS Definitions HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI

API Description: Service Catalog APIs Querying NS Definitions HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 5

API Description: Service Catalog APIs Querying NS Definitions : Request & Response Ø Request

API Description: Service Catalog APIs Querying NS Definitions : Request & Response Ø Request Code: Ø Response Body: GET /rest/catalog/v 1/servicedefs HTTP/1. 1 Host: 218. 4. 33. 207: 17100 X-Auth-Token: MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CAQEx. DTA LBglghkg. BZQMEAg. Ewgg. Ka. Bgkqhki. G 9 w 0 BBw. Gggg KLBIICh 3 si. ZXhwa. XJlc 19 hd. CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj E 6 NTE 6 Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 3940 d 085 bd 657 e Cache-Control: no-cache Postman-Token: 03 ebe 5 c 2 -4789 -0 eef-d 8 bdab 6 cc 02 b 2568 ü Return “servicedef. Id” that belongs to current tenant. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 6

API Description: Service Catalog APIs Querying Details About an NS Definition ü Input “servicedefid”

API Description: Service Catalog APIs Querying Details About an NS Definition ü Input “servicedefid” HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 7

API Description: Service Catalog APIs Querying Details About an NS Definition Ø Response Body:

API Description: Service Catalog APIs Querying Details About an NS Definition Ø Response Body: Ø Request Code: GET /rest/catalog/v 1/servicedefs/8 c 34 e 27 ed 6644 bbfbce 93 a 41 a 05 c b 7 ab/details HTTP/1. 1 ü servicedefid Host: 218. 4. 33. 207: 17100 X-Auth-Token: MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CAQEx. DTALBglghk g. BZQMEAg. Ewgg. Ka. Bgkqhki. G 9 w 0 BBw. Gggg. KLBIICh 3 si. ZXhw a. XJlc 19 hd. CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj. E 6 NTE 6 Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 3940 d 085 bd 657 e. Cache-Control: no-cache Postman-Token: b 5 aea 431 -a 2 a 5 -d 667 -b 6 ca-7 a 3 f 1 d 4 b 1 b 88 ü Return “template_id” and “servicedef. Id” HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 8

API Description: Service. Manager APIs Creating Service Instance ü Service_definition_id = servicedefid ü Template_id

API Description: Service. Manager APIs Creating Service Instance ü Service_definition_id = servicedefid ü Template_id ü Parameters HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 9

API Description: Service. Manager APIs Creating Service Instance Ø Request Code: POST /rest/servicemanager/v 1/services

API Description: Service. Manager APIs Creating Service Instance Ø Request Code: POST /rest/servicemanager/v 1/services HTTP/1. 1 Host: 218. 4. 33. 207: 17100 X-Auth-Token: { Content-Type: application/json Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 39 -40 d 085 bd 657 e "service": Cache-Control: no-cache { Postman-Token: 616 e 170 f-dc 54 -51 db-493 d-f 9 f 3 d 2 f 5631 d "service_id": "4 YFCYXi 6 TPu 8 g. G 1 CQ 7 Voc. A", { "operation_id": "31 af 59 f 1 dc 72437 cb 1 c 8 f 7" "onfailure": "rollback", } "service": { } "name": "site 2 dc 4_201705071158", "description": "", "service_definition_id": "8 c 34 e 27 ed 6644 bbfbce 93 a 41 a 05 cb 7 ab", Return “service_id” that is the service "template_id": "e 77 fc 5 e 21 e 1 e 42 c 9933 ec 9574 c 33 a 5 d 8", instance ID. "parameters": { "Site 2 DCList": [ { "VPC_ID": "db 79 cd 8 b-91 e 2 -43 f 8 -9791 -54 b 8 b 2181 a 70", "Cloud. Vpn. Name": "0 S 2 DC 4201705071158", The variables of “parameters” can get "VNI": "2236", "CPE_A_Site": "site. DC 201705071132", from <IES Environment and Data. xlsx>. "CPE_A_Type": "AR 169 FGW-L", "CPE_A_ESN": "21500102003 GG 3000704", “Cloud. Vpn. Name” and “Bandwidth” are "CPE_A_Position": "site. DC 201705071132", mandatory. "CPE_A_POP": "Manager_VPC", "Bandwidth": "60000", "cidr": "163. 113. 12. 1", "cidr. Block. Size": "24", "action": "create" } HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 10 Ø Response Body: ü ü ü

API Description: Service. Manager APIs Query Service List ü Return all of the service

API Description: Service. Manager APIs Query Service List ü Return all of the service instances belong to current tenant. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 11

API Description: Service. Manager APIs Query Service List Ø Request Code: Ø Response Body:

API Description: Service. Manager APIs Query Service List Ø Request Code: Ø Response Body: GET /rest/servicemanager/v 1/services HTTP/1. 1 Host: 218. 4. 33. 207: 17100 X-Auth-Token: MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CAQEx. DTALBglgh kg. BZQMEAg. Ewgg. Ka. Bgkqhki. G 9 w 0 BBw. Gggg. KLBIICh 3 si. ZX hwa. XJlc 19 hd. CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj. E 6 NTE 6 Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 3940 d 085 bd 657 e Cache-Control: no-cache Postman-Token: 5 d 26 c 3 a 6 -0 e 9 b-f 213 -f 0 dc-66 eae 9 d 7 bbf 7 ü Return “service_id”. For the developing scenarios of scaling bandwidth, you can call the API to directly get available service instance; For the E 2 E service provisioning scenarios, you can get it by calling “Creating Service Instance” HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 12

API Description: Service. Manager APIs Querying Details of specified Service ü service_id HUAWEI TECHNOLOGIES

API Description: Service. Manager APIs Querying Details of specified Service ü service_id HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 13

API Description: Service. Manager APIs Querying Details of specified Service Ø Request Code: Ø

API Description: Service. Manager APIs Querying Details of specified Service Ø Request Code: Ø Response Body: GET /rest/servicemanager/v 1/services/8 hiqo. Ng. CSZmrl. D 1 My. ROJ bg HTTP/1. 1 ü service_id Host: 218. 4. 33. 207: 17100 X-Auth-Token: MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CAQEx. DTALBglgh kg. BZQMEAg. Ewgg. Ka. Bgkqhki. G 9 w 0 BBw. Gggg. KLBIICh 3 si. ZX hwa. XJlc 19 hd. CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj. E 6 NTE 6 Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 3940 d 085 bd 657 e Cache-Control: no-cache Postman-Token: 40308738 -6117 -3 f 72 -a 029 -fb 84 e 5 b 2 b 6 e 7 ü Return “service_name”“Bandwidth” and “Cloud. Vpn. Name” If you want to update bandwidth or have done, you can call the APIs to get/ check. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 14

API Description: Service. Manager APIs Modify Service Instance Use this API to update Cloud.

API Description: Service. Manager APIs Modify Service Instance Use this API to update Cloud. VPN bandwidth. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 15

API Description: Service. Manager APIs Modify Service Instance Ø Request Code: 218. 4. 33.

API Description: Service. Manager APIs Modify Service Instance Ø Request Code: 218. 4. 33. 207 Ø Response Body: ü service_id ü service_name ü Input “Bandwidth” to adjust Cloud. VPN network bandwidth. HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 16

API Description: Service. Manager APIs Delete Service Instance HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI

API Description: Service. Manager APIs Delete Service Instance HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 17

API Description: Service. Manager APIs Delete Service Instance Ø Request Code: Ø Response Body:

API Description: Service. Manager APIs Delete Service Instance Ø Request Code: Ø Response Body: DELETE /rest/servicemanager/v 1/services/8 hiqo. Ng. CSZmrl. D 1 My. ROJbg HTTP/1. 1 Host: 218. 4. 33. 207: 17100 X-Auth-Token: MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CAQEx. DTALBglghkg. BZQ MEAg. Ewgg. Ka. Bgkqhki. G 9 w 0 BBw. Gggg. KLBIICh 3 si. ZXhwa. XJlc 19 hd CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj. E 6 NTE 6 Content-Type: application/json Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 39 -40 d 085 bd 657 e Cache-Control: no-cache Postman-Token: b 6040 b 4 a-6 ca 9 -58 c 2 -837 d-6 f 5 e 7028 aa 89 { HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL "operation_id": "W 0 x 8 h 0 IBQq 6 GJKmys 5 i 74 Q" } ü service_id Page 18

API Description: Cloud. VPNWatch APIs Querying Cloud. VPN traffic ü Cloud. Vpn. Name HUAWEI

API Description: Cloud. VPNWatch APIs Querying Cloud. VPN traffic ü Cloud. Vpn. Name HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 19

API Description: Cloud. VPNWatch APIs Querying Cloud. VPN traffic Ø Request Code: Ø Response

API Description: Cloud. VPNWatch APIs Querying Cloud. VPN traffic Ø Request Code: Ø Response Body: GET /rest/cloudvpnwatch/v 1/traffic/connections/VPNS 2 S 2017050 61433/trafficrate? starttime=1493367320& endtime=1495058150&a mp; timedim=minute& direction=outbound& indicato r=max HTTP/1. 1 Host: 218. 4. 33. 207: 17100 X-Auth-Token: MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CAQEx. DTALBglgh kg. BZQMEAg. Ewgg. Ka. Bgkqhki. G 9 w 0 BBw. Gggg. KLBIICh 3 si. ZX hwa. XJlc 19 hd. CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj. E 6 NTE 6 Authorization: Bearer 6 a 8 cbc 0 e-e 93 c-4684 -9 a 3940 d 085 bd 657 e Cache-Control: no-cache Postman-Token: eca 5 e 1 d 6 -1840 -e 7 e 4 -bc 99 -0 f 35 e 4 d 99 ee 2 ü Cloud. Vpn. Name HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 20

How to test Huawei Cloud. Opera IES Open. APIs? Recommend to use Postman to

How to test Huawei Cloud. Opera IES Open. APIs? Recommend to use Postman to test Huawei Cloud. Opera IES Open APIs Step 1: Install Postman and import Postman collection • Extract <Huawei Cloud. Opera IES Open. APIs Collection. rar> to the folder of “Huawei Cloud. Opera IES Open. APIs Collection”, there will be 4 json files Step 2: Log in Postman and Import the collection • Choose the collection folder of “Huawei Cloud. Opera IES Open. APIs Collection” to import all. “Site to DC” “Site to Site” Step 3: Choose and Edit Global Environment variables Step 4: On Sidebar select API to test • Select an API and then click “Send” to test “Site to DC” “Site to Site” HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 21

Sample Data introduction 6 tokens have configured to support the hack. You can choose

Sample Data introduction 6 tokens have configured to support the hack. You can choose corresponding parameters of specific token according to your service demand. IES Tenant name User nbitest_11 User 1 IES Tenant Token Cloud. VP Service. ID N Cloud. Vpn. Nam Recommended scenarios e Support "Create & activate MIIETAYJKo. ZIhvc. NAQc. Co. IIEPTCCBDk. CA 8 hiqo. Ng. CSZmr s 2 s_2017050614 VPNS 2 S 20170 Cloud. VPN service" and QEx. DTALBglghkg. BZQMEAg. Ewgg. Ka. Bgkq hki. G 9 w 0 BBw. Gggg. KLBIICh 3 si. ZXhwa. XJlc 1 Site 2 Site l. D 1 My. ROJbg 33 5061433 "Elastically scale Cloud. VPN 9 hd. CI 6 Ij. Iw. MTct. MDQt. Mj. VUMj. E 6 NTE 6 network " scenarios Service. Name User 2~User 4 nbitest_12 Mjgu. MTM 1 Iiwia. XNzd. WVk. X 2 F 0 Ijoi. Mj. Ax. Ny 0 w. NC 0 y. NFQy. MTo 1 MToy. OC 4 x. Mz. Ui. LCJt. ZX Rob 2 Rz. Ijpud. Wxs. LCJ 1 c 2 Vy. Ijp 7 Imlk. Ijoi. Mzg 4 Nz. Ui. LCJu. YW 1 l. Ijoi. Zn. Vqa. WFu Site 2 DC 9 Lbu. Ad 11 Qe- site 2 dc_2017050 0 S 2 DC 2017050 Support "Elastically scale cu. Gn. VONz 6 qw 71132 Cloud. VPN network " scenarios User 5~User 7 nbitest_13 Zm. Vu. Zy. J 9 LCJwcm 9 q. ZWN 0 Ijp 7 Imlk. Ijoi. Z 2 x v. Ym. Fs. Iiwibm. Ft. ZSI 6 Ik. Rl. Zm. F 1 b. HQg. RG 9 t. Y Wlu. In 0 s. Im. Rvb. WFpbi. I 6 bn. Vsb. Cwib 2 Rvb. WF pbi. I 6 ey. Jp. ZCI 6 Ij. Ai. LCJu. YW 1 l Site 2 DC FLAUUc 8 NT 0 q site 2 dc 3_201705 0 S 2 DC 3201705 Support "Elastically scale N-m. NTM_lcfw 081840 Cloud. VPN network " scenarios User nbitest_14 8~User 11 Ijoi. RGVm. YXVsd. CBEb 21 ha. W 4 if. Swi. ZW 1 ha Wwi. Om 51 b. Gws. In. Rlb. GVwa. G 9 u. ZSI 6 bn. Vsb Cwi. Y 2 F 0 YWxv. Zy. I 6 bn. Vsb. Cwicm 9 s. ZXMi. Olt 7 Imlk. Ijoi. NTg 1 Ni. Is. Im 5 hb. WUi. Oi. Jn Site 2 DC L 8 YNdmm 4 Rg- site 2 dc 4_201705 0 S 2 DC 4201705 Support "Elastically scale SJc. Mnlic. UQA 071158 092039 Cloud. VPN network " scenarios User 12~Us nbitest_15 er 15 YXRld 2 F 5 Lm. Fwa. XMuc. GF 0 Y 2 h. Pc. GVy. YXR pb 24 if. Sx 7 Imlk. Ijoi. NTg 4 My. Is. Im 5 hb. WUi. Oi. Jn YXRld 2 F 5 Lm. Fwa. XMuc. G 9 zd. E 9 w. ZXJhd. Glv bi. J 9 LHsia. WQi. Oi. I 1 ODg 0 Iiwibm. Ft Site 2 DC Fbq. ROi. Hg. Sy. G site 2 dc 5_201705 0 S 2 DC 5201705 Support "Elastically scale h. Zpz. JPXH_BA 071256 Cloud. VPN network " scenarios User 16 ZSI 6 Imdhd. GV 3 YXku. YXBpcy 5 k. ZWxld. GVPc GVy. YXRpb 24 if. Sx 7 Imlk. Ijoi. NTg 4 NSIs. Im 5 hb WUi. Oi. Jn. YXRld 2 F 5 Lm. Fwa. XMu. Z 2 V 0 T 3 Blc m. F 0 a. W 9 u. In 0 sey. Jp. ZCI 6 Ij. U 4 ODYi Support "Create & activate Bk. Lf. GSb. KQXy site 2 dc 6_201705 0 S 2 DC 6201705 Cloud. VPN service" and Site 2 DC br 0 kkj 8 MQTQ 071300 "Elastically scale Cloud. VPN network " scenarios nbitest_16 HUAWEI TECHNOLOGIES CO. , LTD. HUAWEI CONFIDENTIAL Page 22

Thank you www. huawei. com Copyright© 2017 Huawei Technologies Co. , Ltd. All Rights

Thank you www. huawei. com Copyright© 2017 Huawei Technologies Co. , Ltd. All Rights Reserved. The information in this document may contain predictive statements including, without limitation, statements regarding the future financial and operating results, future product portfolio, new technology, etc. There a number of factors that could cause actual results and developments to differ materially from those expressed or implied in the predictive statements. Therefore, such information is provided for reference purpose only and constitutes neither an offer nor an acceptance. Huawei may change the information at any time without notice.