service-accounts

List a service account's OIDC trust rules.

The trust rules that let a CI workflow authenticate as the service account with a token from its own identity provider, oldest first. Listing needs no particular plan, so an organization that moves to a plan without OIDC federation still sees the rules it has.

Requires the serviceAccountTrustRules.view permission, which only the admin and owner roles hold.

get/organizations/{organizationId}/service-accounts/{serviceAccountId}/trust-rules

Request

  • Base URL
    https://api.shorebird.dev/api/v1
  • Auth
    • HTTP bearer
    • or HTTP bearer

Query parameters

per_pageinteger

The number of items per page. Sending per_page (or cursor) opts in to pagination: the response holds one page and, unless it is the last, a next_cursor body field. Without either, the full list is returned with no next_cursor. Values above 100 are treated as 100; values that are not a positive integer are treated as 30.

cursorstring

The next_cursor of the previous page, which this page starts after. Send it with the same other query parameters as the previous request. It is opaque: do not build or parse it. An unreadable cursor is a 400.

pageinteger

The 1-based number of the page to return, on a list whose response carries total_count. Like per_page, sending it opts in to pagination. Send either page or cursor, not both (400, invalid_page). A value that is not a positive integer reads the first page.

Response

The service account's trust rules.

next_cursorstring

The opaque cursor of the next page; send it back as cursor to get that page. Present only when the request was paginated (sent per_page, cursor or page) and another page follows. Absent on the last page and on unpaginated responses.

total_countinteger

How many items the whole list holds. Present only when the request was paginated.

Changes

No recorded changes to this operation across all 1 revision of this API.