Cloud Pak for Integration

Cloud Pak for Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Test the IBM Cloud Pak API via Curl Command

    Posted Sat February 05, 2022 06:46 AM
    Hi Team,
              Created an API in API Manager in Cloud Pak, which is reflected under product in API Manager CP4I. Now need to test the Cloud Pak API Product trying with CURL command in local command prompt.

    CURL Commands:
    1. curl -s -X GET 'endpoint URL' -H 'x-ibm-client-id: xxxxxxxxxxxxxxx'
    2. curl -k https://endpoint?client_id=xxxxxxxxxxxxxxxxx
    Eventhough the endpoint URL and client Id are correct, getting Client Id is Invalid. 
    Kindly clarify whether its possible to connect Cloud Pak API in local command prompt. If yes, kindly share Curl command syntax to proceed further.

    ------------------------------
    Aswini M
    ------------------------------


  • 2.  RE: Test the IBM Cloud Pak API via Curl Command

    Posted Mon February 14, 2022 10:05 PM
    It's a basic curl command. Yes, as long as you have access to your cluster from your local, you should be able to access your APIs. 
    curl --location --request GET 
    'https://xxx/api'--header 'X-IBM-Client-Id: xxx' \

    Based on the error, there are three possibilities - 
    - Your Client ID value is incorrect
    - Your Client ID header name is incorrect
    - Your app is not subscribed to the product plan

    Please check all three are correct. I would recommend using the sample request from your developer portal.