Table: make_connection
For most apps included in Make, it is necessary to create a connection, through which Make will communicate with the given third-party service according to the settings of a specific scenario.
Key columns
- Provide a numeric
id
if you want to query for a specific Team. - Provide a numeric
team_id
to query Connections for a specific Team. This can be either set directly in awhere
clause, or specified as part ofjoin
with another table.
Caveat
- Be careful when requesting all columns (
*
) or thescopes
column without using anid
in the query. To load this data, Steampipe will have to make one extra API request per Connection returned.
Examples
List of all Connections in the account
select o.name as organization_name, t.name as team_name, c.name as connection_namefrom make_organization o join make_team t on t.organization_id = o.id join make_connection c on c.team_id = t.id;-- or a simplified versionselect id, namefrom make_connection;
List of all Connections for a particular Make App
-- with Organization and Team nameselect o.name as organization_name, t.name as team_name, c.name as connection_namefrom make_organization o join make_team t on t.organization_id = o.id join make_connection c on c.team_id = t.idwhere c.account_name = 'amazon-lambda';-- or a simplified version with own columns onlyselect id, namefrom make_connectionwhere account_name = 'amazon-lambda';
List of all Connections owned by a specific Team
select id, namefrom make_connectionwhere team_id = 1;
List of all Connections owned by a specific User
select t.name as team_name, c.id, c.name, c.account_label, c.expirefrom make_connection c join make_team t on t.id = c.team_idwhere c.metadata ->> 'type' = 'email' and c.metadata ->> 'value' = 'marty@mcfly.family';
Detail of a Connection
select id, name, account_name, account_label, account_type, package_name, expire, metadata, team_id, upgradeable, scoped, scopes, editable, uidfrom make_connectionwhere id = 1;
Schema for make_connection
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
account_label | text | The name of the application tied to the Connection. | |
account_name | text | The system name of the application tied to the Connection. | |
account_type | text | Authentication type. | |
editable | boolean | Can the Connection be edited? | |
expire | timestamp with time zone | When does the Connection expire? | |
id | bigint | = | The Connection ID. |
metadata | jsonb | Metadata attached to the Connection. | |
name | text | The name of the Connection. | |
package_name | text | Name of the Custom App to which the Connection belongs to. | |
scoped | boolean | Is the Connection scoped? | |
scopes | jsonb | Security scopes of the Connection. | |
team_id | bigint | ID of the Team that owns the Connection. | |
title | text | The display name for the resource. | |
uid | text | UID of the Connection. | |
upgradeable | boolean | Can the Connection be upgraded? |