# Apigee API . organizations . environments . apis . revisions . debugsessions . data

## Instance Methods

Close httplib2 connections.

Gets the debug data from a transaction.

### Method Details

`close()`

    Close httplib2 connections.

`get(name, x__xgafv=None)`

    Gets the debug data from a transaction.

    Args:
      name: string, Required. The name of the debug session transaction. Must be of the form: `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}/data/{transaction}`. If the API proxy resource has the `space` attribute set, IAM permissions are checked differently . To learn more, read the [Apigee Spaces Overview](https://cloud.google.com/apigee/docs/api-platform/system-administration/spaces/apigee-spaces-overview). (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A transaction contains all of the debug information of the entire message flow of an API call processed by the runtime plane. The information is collected and recorded at critical points of the message flow in the runtime apiproxy.
      "completed": True or False, # Flag indicating whether a transaction is completed or not
      "point": [ # List of debug data collected by runtime plane at various defined points in the flow.
        { # Point is a group of information collected by runtime plane at critical points of the message flow of the processed API request. This is a list of supported point IDs, categorized to three major buckets. For each category, debug points that we are currently supporting are listed below: - Flow status debug points: StateChange FlowInfo Condition Execution DebugMask Error - Flow control debug points: FlowCallout Paused Resumed FlowReturn BreakFlow Error - Runtime debug points: ScriptExecutor FlowCalloutStepDefinition CustomTarget StepDefinition Oauth2ServicePoint RaiseFault NodeJS The detail information of the given debug point is stored in a list of results.
          "id": "A String", # Name of a step in the transaction.
          "results": [ # List of results extracted from a given debug point.
            { # Result is short for "action result", could be different types identified by "action_result" field. Supported types: 1. DebugInfo : generic debug info collected by runtime recorded as a list of properties. For example, the contents could be virtual host info, state change result, or execution metadata. Required fields : properties, timestamp 2. RequestMessage: information of a http request. Contains headers, request URI and http methods type.Required fields : headers, uri, verb 3. ResponseMessage: information of a http response. Contains headers, reason phrase and http status code. Required fields : headers, reasonPhrase, statusCode 4. ErrorMessage: information of a http error message. Contains detail error message, reason phrase and status code. Required fields : content, headers, reasonPhrase, statusCode 5. VariableAccess: a list of variable access actions, can be Get, Set and Remove. Required fields : accessList
              "ActionResult": "A String", # Type of the action result. Can be one of the five: DebugInfo, RequestMessage, ResponseMessage, ErrorMessage, VariableAccess
              "accessList": [ # A list of variable access actions agaist the api proxy. Supported values: Get, Set, Remove.
                {
                  "Get": { # Get action. For example, "Get" : { "name" : "target.name", "value" : "default" }
                    "name": "A String",
                    "value": "A String",
                  },
                  "Remove": { # Remove action. For example, "Remove" : { "name" : "target.name", "success" : true }
                    "name": "A String",
                    "success": True or False,
                  },
                  "Set": { # Set action. For example, "Set" : { "name" : "target.name", "success" : true, "value" : "default" }
                    "name": "A String",
                    "success": True or False,
                    "value": "A String",
                  },
                },
              ],
              "content": "A String", # Error message content. for example, "content" : "{\"fault\":{\"faultstring\":\"API timed out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
              "headers": [ # A list of HTTP headers. for example, '"headers" : [ { "name" : "Content-Length", "value" : "83" }, { "name" : "Content-Type", "value" : "application/json" } ]'
                { # A single property entry in the Properties message.
                  "name": "A String", # The property key
                  "value": "A String", # The property value
                },
              ],
              "properties": { # Message for compatibility with legacy Edge specification for Java Properties object in JSON. # Name value pairs used for DebugInfo ActionResult.
                "property": [ # List of all properties in the object
                  { # A single property entry in the Properties message.
                    "name": "A String", # The property key
                    "value": "A String", # The property value
                  },
                ],
              },
              "reasonPhrase": "A String", # HTTP response phrase
              "statusCode": "A String", # HTTP response code
              "timestamp": "A String", # Timestamp of when the result is recorded. Its format is dd-mm-yy hh:mm:ss:xxx. For example, `"timestamp" : "12-08-19 00:31:59:960"`
              "uRI": "A String", # The relative path of the api proxy. for example, `"uRI" : "/iloveapis"`
              "verb": "A String", # HTTP method verb
            },
          ],
        },
      ],
    }