Bootstrap FreeKB - Broadcom API Gateway - List Private Keys using REST API
Broadcom API Gateway - List Private Keys using REST API

Updated:   |  Broadcom API Gateway articles

Following is an example of how to list every private key in an API Gateway using curl.

curl --request GET --user "john.doe:itsasecret" --url "https://apig.example.com:8443/restman/1.0/privateKeys"

 

Or, you can return a single private key by including the ID of the private key.

curl --request GET --user "john.doe:itsasecret" --url "https://apig.example.com:8443/restman/1.0/privateKeys/00000000000000000000000000000002:foo"

 

Or you can see if there is a private key with a certain name. Be aware that if there is white space in the private key name, %20 will be needed for each white space.

curl --request GET --user "john.doe:itsasecret" --url "https://apig.example.com:8443/restman/1.0/privateKeys?name=foo%20key"

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter a0770f in the box below so that we can be sure you are a human.