I'm following the cert manager documentation but cannot seem to successfully run the curl commands. The doc gives an example regarding how to retrieve a list of certs:
curl -H "Authorization: Bearer IAM-token" https://api-endpoint/api/v2/URLencodedCRN-basedinstanceId/certificates/
I have substituted my IAM-token, my api-endpoint as eu-gb.certificate-manager.cloud.ibm.com and my CRN but I get the following error:
Cannot GET /api/v2/mycrn/certificates/
Any idea what I could be doing wrong here? Thanks.
You can use the service's Swagger UI to test a request and see how the cURL request should look like.
In all likelihood you did not URL encode the instance CRN.
Swagger UI: https://eu-gb.certificate-manager.cloud.ibm.com/docs/#/Certificates_Repository/list
Service ID (decoded):
Service ID (encoded):
Full request:
You should also use
v3
instead ofv2
as this API endpoint version is deprecated.