Skip to content

Commit

Permalink
feat(instance): add servers filter in ListServersRequest (scaleway#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Oct 4, 2023
1 parent 997aa1d commit a96eb9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/clients/src/api/instance/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ export class API extends ParentAPI {
],
['private_nic_mac_address', request.privateNicMacAddress],
['project', request.project],
[
'servers',
request.servers && request.servers.length > 0
? request.servers.join(',')
: undefined,
],
['state', request.state],
[
'tags',
Expand Down
2 changes: 2 additions & 0 deletions packages/clients/src/api/instance/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ export type ListServersRequest = {
privateNetworks?: string[]
/** List Instances associated with the given private NIC MAC address. */
privateNicMacAddress?: string
/** List Instances from these server ids (use commas to separate them). */
servers?: string[]
}

export type DeleteServerRequest = {
Expand Down

0 comments on commit a96eb9f

Please sign in to comment.