integrations
Overview
Name | integrations |
Type | Resource |
Id | vercel.log_drains.integrations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The unique identifier of the log drain. Always prefixed with ld_ |
name | string | The name of the log drain |
branch | string | The branch regexp of log drain |
clientId | string | The oauth2 client application id that created this log drain |
configurationId | string | The client configuration this log drain was created with |
createdAt | number | A timestamp that tells you when the log drain was created |
createdFrom | string | Whether the log drain was created by an integration or by a user |
deliveryFormat | string | The delivery log format |
environment | string | The environment of log drain |
headers | object | The headers to send with the request |
ownerId | string | The identifier of the team or user whose events will trigger the log drain |
projectId | string | |
projectIds | array | The identifier of the projects this log drain is associated with |
sources | array | The sources from which logs are currently being delivered to this log drain. |
url | string | The URL to call when logs are generated |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_integration_log_drains | SELECT | teamId | Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration. |
create_log_drain | INSERT | teamId, data__name, data__url | Creates an Integration log drain. This endpoint must be called with an OAuth2 client (integration), since log drains are tied to integrations. If it is called with a different token type it will produce a 400 error. |
delete_integration_log_drain | DELETE | id, teamId | Deletes the Integration log drain with the provided id . When using an OAuth2 Token, the log drain can be deleted only if the integration owns it. |