turbot/bitbucket

steampipe plugin install bitbucketsteampipe plugin install bitbucket

Bitbucket + Steampipe

Bitbucket is a Git-based source code repository hosting service owned by Atlassian.

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

For example:

select
name,
uuid,
is_private,
full_name
from
bitbucket_my_repository;
+----------------------------+----------------------------------------+------------+--------------------------------------+
| name | uuid | is_private | full_name |
+----------------------------+----------------------------------------+------------+--------------------------------------+
| steampipe-plugin-bitbucket | {71624341-8873-4128-a356-f48c57c917e0} | true | LalitFort/steampipe-plugin-bitbucket |
| repo2 | {00ce5566-eba1-4a15-986d-85cc40f6b835} | true | LalitFort/repo2 |
+----------------------------+----------------------------------------+------------+--------------------------------------+

Documentation

Get started

Install

Download and install the latest Bitbucket plugin:

steampipe plugin install bitbucket

Credentials

ItemDescription
CredentialsBitbucket requires an app password, bitbucket instance baseurl (If private setup) and username for all requests.
PermissionsYou must create app password with the following scopes:
    - workspace:read
    - account:read
    - snippet:read
    - wiki:read
    - repository:read
    - user:read
    - pullrequest:read
    - issue:read
    - webhook:read

Configuration

Installing the latest bitbucket plugin will create a config file (~/.steampipe/config/bitbucket.spc) with a single connection named bitbucket:

connection "bitbucket" {
plugin = "bitbucket"
username = "LalitFort"
password = "wOABk1jLlKktmtg43ZHNh9D12"
}
  • base_url - The url of your bitbucket private instance.
  • username - Bitbucket username.
  • password - App password for bitbucket account.

Get involved