alphaWidgetsForScopes
Alpha: this API can change or be removed at any time, without notice.
List the widgets of several stashes at once. Pass the project, environments, components, instances, and
deployments that you show, up to 200. Every scope must be in the same project. You need stash:view on
every scope.
A widget is returned for each well-known key that is set with a value that matches its schema. When a scope
has more than one version of a widget's key, the widget is returned from the highest version. Expired keys
are not returned. A page reads up to limit keys, so it can have fewer widgets than limit, or none. Keep
reading pages until cursor.next is null. Subscribe to alphaStashEvents and read the widgets again when
an md/ key changes.
An instance scope also returns the deployment results of the instance's latest deployment that has any
well-known key, such as md/v1/step/src and md/v1/cost_estimate. The scope of each of those widgets
is that deployment, and rolledUpTo is the instance. Any well-known key makes a deployment the latest one
with results, including md/v1/source and md/v1/state_lock, which a run often sets when it starts. A
newer deployment that has not set a well-known key yet does not hide the earlier results. A deployment
scope returns the results of that deployment.
query {
alphaWidgetsForScopes(
organizationId: "my-org"
scopes: [{ environment: "ecomm-prod" }, { instance: "ecomm-prod-database" }]
) {
items {
name
scope { kind id }
rolledUpTo { kind id }
segments
values
expiresAt
}
cursor { next }
}
}
alphaWidgetsForScopes(
organizationId: ID!
scopes: [AlphaStashScope!]!
cursor: Cursor
): AlphaWidgetsPage
Arguments
alphaWidgetsForScopes.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
alphaWidgetsForScopes.scopes ● [AlphaStashScope!]! non-null input {#scopes}
The stashes to read, from 1 to 200. Set exactly one field of each.
alphaWidgetsForScopes.cursor ● Cursor input {#cursor}
Pagination cursor returned by a previous page.
Type
AlphaWidgetsPage object
Alpha: this API can change or be removed at any time, without notice.
A page of AlphaWidget items.