Expand my Community achievements bar.

SOLVED

Error in adobe.io runtime API - I/O Runtime deployed actions list

Avatar

Level 2

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

https://developer.adobe.com/app-builder/docs/guides/runtime_guides/reference_docs/api-ref#get-runtim...

1 Accepted Solution

Avatar

Correct answer by
Level 2

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.

View solution in original post

8 Replies

Avatar

Level 1

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

Avatar

Level 2

@kopylova 

 

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}

 

Avatar

Level 1

What error do you get in the 1st case?

 

Avatar

Level 2

@kopylova 

 

Same error in all cases

[
    {
        "message": "must not be null",
        "messageTemplate": "{javax.validation.constraints.NotNull.message}",
        "path": "RuntimeResource.getActions.arg2",
        "invalidValue": null
    }
]

 

Avatar

Level 1

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.

Avatar

Employee

curious why you're not using the CLI for this? 

aio runtime action list

 

Avatar

Level 2

@parussel 

 

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?

 

https://developer.adobe.com/app-builder/docs/guides/runtime_guides/reference_docs/api-ref#post-runti...

Avatar

Correct answer by
Level 2

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.