Skip to content

Commit b7654e6

Browse files
authored
feat(block): add tags filter in list snapshots (#1832)
1 parent dfaaaf0 commit b7654e6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/clients/src/api/block/v1alpha1/api.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export class API extends ParentAPI {
243243
request.pageSize ?? this.client.settings.defaultPageSize,
244244
],
245245
['project_id', request.projectId],
246+
['tags', request.tags],
246247
['volume_id', request.volumeId],
247248
),
248249
},

packages/clients/src/api/block/v1alpha1/types.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ export type ListSnapshotsRequest = {
321321
volumeId?: string
322322
/** Filter snapshots by their names. */
323323
name?: string
324+
/**
325+
* Filter by tags. Only snapshots with one or more matching tags will be
326+
* returned.
327+
*/
328+
tags?: string[]
324329
}
325330

326331
export interface ListSnapshotsResponse {

0 commit comments

Comments
 (0)