Skip to main content

debugsessions

Creates, updates, deletes, gets or lists a debugsessions resource.

Overview

Namedebugsessions
TypeResource
Idgoogle.apigee.debugsessions

Fields

NameDatatypeDescription
namestringA unique ID for this DebugSession.
countintegerOptional. The number of request to be traced. Min = 1, Max = 15, Default = 10.
createTimestringOutput only. The first transaction creation timestamp, recorded by UAP.
filterstringOptional. A conditional statement which is evaluated against the request message to determine if it should be traced. Syntax matches that of on API Proxy bundle flow Condition.
timeoutstringOptional. The time in seconds after which this DebugSession should end. This value will override the value in query param, if both are provided.
tracesizeintegerOptional. The maximum number of bytes captured from the response payload. Min = 0, Max = 5120, Default = 5120.
validityintegerOptional. The length of time, in seconds, that this debug session is valid, starting from when it's received in the control plane. Min = 1, Max = 15, Default = 10.

Methods

NameAccessible byRequired ParamsDescription
organizations_environments_apis_revisions_debugsessions_getSELECTapisId, debugsessionsId, environmentsId, organizationsId, revisionsIdRetrieves a debug session.
organizations_environments_apis_revisions_debugsessions_listSELECTapisId, environmentsId, organizationsId, revisionsIdLists debug sessions that are currently active in the given API Proxy revision.
organizations_environments_apis_revisions_debugsessions_createINSERTapisId, environmentsId, organizationsId, revisionsIdCreates a debug session for a deployed API Proxy revision.

SELECT examples

Lists debug sessions that are currently active in the given API Proxy revision.

SELECT
name,
count,
createTime,
filter,
timeout,
tracesize,
validity
FROM google.apigee.debugsessions
WHERE apisId = '{{ apisId }}'
AND environmentsId = '{{ environmentsId }}'
AND organizationsId = '{{ organizationsId }}'
AND revisionsId = '{{ revisionsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new debugsessions resource.

/*+ create */
INSERT INTO google.apigee.debugsessions (
apisId,
environmentsId,
organizationsId,
revisionsId,
timeout,
validity,
name,
count,
filter,
tracesize
)
SELECT
'{{ apisId }}',
'{{ environmentsId }}',
'{{ organizationsId }}',
'{{ revisionsId }}',
'{{ timeout }}',
'{{ validity }}',
'{{ name }}',
'{{ count }}',
'{{ filter }}',
'{{ tracesize }}'
;