Hello Pierre,
Thanks for your response. I tried with the same value earlier, it does not work. I will paste the error for both the scenario. I am trying to register the GW as Datapower API Gateway. I am using APIC tool kit as part of my automation.
1. Set the value for datapower-gateway for gateway_service_type, I will get the error as follows.
2020/09/22 17:16:15 Response dump:
HTTP/1.1 500 Internal Server Error
Content-Length: 410
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Connection: keep-alive
Content-Type: application/yaml; charset=utf-8
Date: Tue, 22 Sep 2020 11:46:15 GMT
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Request-Id: b21210cce6669559db4caeeafd561460
status: 500
message:
- >-
An error occurred communicating with the gateways subsystem at
'https://tapigw.techavidity.in:3000' (status: 400, response: '"Unable to
perform initial registration for API Management. Error: Unable to create the
DataPower Gateway service because the gateway address
https://tapigw.techavidity.in:3000 references a gateway of type DataPower
API Gateway."').
Error: An error occurred communicating with the gateways subsystem at 'https://tapigw.techavidity.in:3000' (status: 400, response: '"Unable to perform initial registration for API Management. Error: Unable to create the DataPower Gateway service because the gateway address
https://tapigw.techavidity.in:3000 references a gateway of type DataPower API Gateway."').
2. As per earlier, i am setting the value as datapower-api-gateway, now i will get the following error:
2020/09/22 17:11:59 Response dump:
HTTP/1.1 400 Bad Request
Content-Length: 215
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Connection: keep-alive
Content-Type: application/yaml; charset=utf-8
Date: Tue, 22 Sep 2020 11:41:59 GMT
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Request-Id: 2728c886dc4120b1eeeb65b85b602e11
status: 400
message:
- >-
The 'gateway_service_type' property value 'datapower-api-gateway' is
incorrect. It has to be 'datapower-gateway' for the gateways of type
'DataPower Gateway (v5 Compatible)'.
Error: The 'gateway_service_type' property value 'datapower-api-gateway' is incorrect. It has to be 'datapower-gateway' for the gateways of type 'DataPower Gateway (v5 Compatible)'.
Logout from Cloud Manager
I registered manually to extract the value for same key using REST API, For DataPower API Gateway, the value is datapower-api-gateway. But it's not taking the value from APIC.
Based on the above errors, it looks like apic toolkit need to be fixed. Please do let us know your thoughts.
------------------------------
Chander Ponnusamy
Founder & CEO
TECHAVIDITY BUSINESS SOLUTIONS PVT LTD
------------------------------
Original Message:
Sent: Tue September 22, 2020 02:54 AM
From: Pierre Richelle
Subject: APIC V10 GWY Service Type is not working
Hello Chander,
it is most probably that you have a wrong value for the gateway_service_type in your openAPI document that you try to publish.
You need to set the value to datapower-gateway if you are deploying on a API Gateway datapower.
Pierre.
------------------------------
Pierre Richelle
IBM Hybrid Cloud Integration Specialists
IBM
bruxelles
0474681892
Original Message:
Sent: Sun September 20, 2020 09:01 AM
From: Chander Ponnusamy
Subject: APIC V10 GWY Service Type is not working
Team,
I am trying to automate the Gateway deployment using apic. Script expects the key for DataPower V5 format even though i am trying to use Datapower API Gateway.
Error: The 'gateway_service_type' property value 'datapower-api-gateway' is incorrect. It has to be 'datapower-gateway' for the gateways of type 'DataPower Gateway (v5 Compatible)'.
Logout from Cloud Manager
It looks like a bug, Is anyone faced the issue.
Thanks
Chander.
------------------------------
Chander Ponnusamy
TECHAVIDITY BUSINESS SOLUTIONS PVT LTD,
Bangalore
------------------------------