Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to retrieve a session id and transaction id for getting the transaction data for a debug session created through management apis ?

Debugging involves the following steps :

1. Start a debug session by creating a debug session. 2. Send a message for that deployed API proxy. 3. Retrieve the debug data associated with the debug session. The data can be fetched by issuing a GET call on the session.

4. Close the debug session. (Closing the debug session discards all the associated data).

For Step 1 - the following management api is to be used :

POST /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions?session=<name>&timeout=<value>

However, when we want to do step 3 - a session transaction id is required :

GET /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions/{session_ID}/data/{transaction_ID}

How do we retrieve the session and transaction id. Steps 1 & 2 do not seem to provide the same.

Solved Solved
0 2 2,084
1 ACCEPTED SOLUTION

vijay
New Member

GET /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions/{session_ID}/data/

will return the list of transaction_ids.

Regards,

Vijayakumar.

View solution in original post

2 REPLIES 2

vijay
New Member

GET /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions/{session_ID}/data/

will return the list of transaction_ids.

Regards,

Vijayakumar.

Thank you. This works.