Hello,
We are encountering an error while retrieving the list of deployed actions on Adobe I/O Runtime.
Please refer to the following cURL request as an example.
curl --location --request GET 'https://api.adobe.io/runtime/namespaces/xxxxxxxxx@AdobeOrg/oauth-sever-to-server-clientKey/actions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxxxxx' \
--header 'X-Api-Key: oauth-sever-to-server-clientKey'
API response (400Bad Request
[
{
"message": "must not be null",
"messageTemplate": "{javax.validation.constraints.NotNull.message}",
"path": "RuntimeResource.getActions.arg2",
"invalidValue": null
}
]
We are referring to the following API documentation
Solved! Go to Solution.
Views
Replies
Total Likes
Additionally, I have another solution to execute actions using the "adobeioruntime.net" domain APIs.
Get actions list
curl --location --request GET 'https://adobeioruntime.net/api/v1/namespaces/{name-space-id}/actions' \
--header 'Authorization: Basic xxxxxxxxxx' \
--header 'x-namespace-id: {name-space-id}'
Execute an action
curl --location --request POST 'https://adobeioruntime.net/api/v1/namespaces/{name-space-id}/actions/{action-name}' \
--header 'Authorization: Basic xxxxxxxxxx' \
--header 'x-namespace-id: {name-space-id}'
However, I am still curious about the usage of the aio APIs.
Views
Replies
Total Likes
I don't think you use correct values for "orgId" and "intId".
If you go to your project > one of the workspaces and click "Download All" button, you can find necessary information in:
- orgId: project.org.id
- intId: project.name
Views
Replies
Total Likes
Thank you for your response.
Unfortunately, the issue still persists. I have tried the following values, but none have worked:
URL Parameters:
- orgId: project.org.id
- intId: project.name
Headers:
X-Api-Key: {oauth-sever-to-server-clientKey}
URL Parameters:
- orgId: project.org.id
- intId: project.id
Headers:
X-Api-Key: {oauth-sever-to-server-clientKey}
URL Parameters:
- orgId: project.org.ims_org_id
- intId: project.name
Headers:
X-Api-Key: {oauth-sever-to-server-clientKey}
URL Parameters:
- orgId: project.org.ims_org_id
- intId: project.id
Headers:
X-Api-Key: {oauth-sever-to-server-clientKey}
Views
Replies
Total Likes
What error do you get in the 1st case?
Views
Replies
Total Likes
Same error in all cases
[
{
"message": "must not be null",
"messageTemplate": "{javax.validation.constraints.NotNull.message}",
"path": "RuntimeResource.getActions.arg2",
"invalidValue": null
}
]
Views
Replies
Total Likes
I feel like at this point we'd need more information about your specific requests. Please go through the support channel and provide details about your namespace and request IDs if other paths suggested here don't work for you.
Views
Replies
Total Likes
curious why you're not using the CLI for this?
aio runtime action list
Views
Replies
Total Likes
We need to execute an action (annotation - require-adobe-auth: true) on-demand from a third-party application. My understanding is that this can be achieved only through the API.
Could you please suggest how to use this API?
Views
Replies
Total Likes
Additionally, I have another solution to execute actions using the "adobeioruntime.net" domain APIs.
Get actions list
curl --location --request GET 'https://adobeioruntime.net/api/v1/namespaces/{name-space-id}/actions' \
--header 'Authorization: Basic xxxxxxxxxx' \
--header 'x-namespace-id: {name-space-id}'
Execute an action
curl --location --request POST 'https://adobeioruntime.net/api/v1/namespaces/{name-space-id}/actions/{action-name}' \
--header 'Authorization: Basic xxxxxxxxxx' \
--header 'x-namespace-id: {name-space-id}'
However, I am still curious about the usage of the aio APIs.
Views
Replies
Total Likes
Views
Like
Replies