To validate that your API was successfully published, you must navigate to your Dev Portal URL and verify that you can see the API.
First, fetch the Dev Portal URL from the Terraform state:
PORTAL_URL=$(terraform show -json | jq -r '
.values.root_module.resources[]
| select(.address == "konnect_portal.my_portal")
| .values.default_domain')
This exports your Dev Portal URL as an environment variable.
To validate that the API was created and published in your Dev Portal, navigate to your Dev Portal:
open https://$PORTAL_URL/apis
You should see MyAPI
in the list of APIs. If an API is published as private, you must enable Dev Portal RBAC and developers must sign in to see APIs.