View a markdown version of this page

Reading from Postman entities - AWS Glue

Reading from Postman entities

Prerequisites

A Postman object you want to read from. For the available entities, see the following supported entities table.

Supported entities for source

EntityCan be filteredSupports limitSupports select *Supports order bySupports partitioning
api-operationsNoYesYesNoNo
collection-definitionsNoYesYesNoNo
collection-forksNoYesYesNoNo
collection-pull-requestsNoYesYesNoNo
collection-user-rolesNoYesYesNoNo
collectionsYesYesYesNoNo
mock-call-logsYesYesYesNoNo
mock-server-detailsNoYesYesNoNo
mock-server-responsesNoYesYesNoNo
mock-serversYesYesYesNoNo
monitorsYesYesYesNoNo
specificationsNoYesYesNoNo
team-usersNoYesYesNoNo
workspace-rolesNoYesYesNoNo
workspacesYesYesYesNoNo

Some Postman entities are scoped to a parent collection, mock server, or workspace. To read one of these entities, set ENTITY_NAME to the entity name, a forward slash (/), and the parent identifier, for example collection-forks/collectionUid. The following table lists the parent-scoped entities and where to find the parent identifier.

EntityParentParent identifier
collection-definitionsCollectionThe uid field of collections
collection-forksCollectionThe uid field of collections
collection-pull-requestsCollectionThe uid field of collections
collection-user-rolesCollectionThe uid field of collections
mock-call-logsMock serverThe id field of mock-servers
mock-server-detailsMock serverThe id field of mock-servers
mock-server-responsesMock serverThe id field of mock-servers
specificationsWorkspaceThe id field of workspaces
workspace-rolesWorkspaceThe id field of workspaces
Example – Reading from a Postman entity

The following example reads from the api-operations entity. Replace connectionName with the name of your Postman connection:

read_df = glueContext.create_dynamic_frame.from_options( connection_type="postman", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "api-operations" } )