Using the OLP CLI, how do I determine the HRN to use? When I take the HRN that shows in the console for my project and call
./olp app domain list "hrn:here:authorization::myorg:project/projectId"
I get the error:
"error_description": "errorCode: '400288'. Unexpected HRN entity type for requested resource : hrn authorization:myorg:project/projectId",
(Obviously I’ve replace the actual IDs here)
I can't see any documentation that relates to this error message, or about how I determine the HRN to use. In fact this HRN is the only one I can find in the console.
(Cross-posted from Slack workspace for reach)
The error is connected to the fact that you pass a project HRN instead of an application HRN. According to the documentation the command accepts only application HRNs.
The HRN for the application can be retrieved using
olp app list. The documentation of the command can be found here. For the case when the application has been created via CLI.If you want get the HRN for the application created on the portal. Please use the following steps:
trustedDomainsEnabledrequest and check the URL. It should contain URL encoded HRN as the part of URL before/trustedDomainsEnabledSee the picture from Chrome.I know it is tricky, but this is the only solution I found.