Skip to content

Commit 3f5cf5a

Browse files
authored
feat(domain): filter domain on list domains (#1412)
1 parent 4f3b37b commit 3f5cf5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/domain/v2beta1/domain_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,6 +3290,8 @@ type RegistrarAPIListDomainsRequest struct {
32903290
OrganizationID *string `json:"-"`
32913291

32923292
IsExternal *bool `json:"-"`
3293+
3294+
Domain *string `json:"-"`
32933295
}
32943296

32953297
// ListDomains: list domains
@@ -3312,6 +3314,7 @@ func (s *RegistrarAPI) ListDomains(req *RegistrarAPIListDomainsRequest, opts ...
33123314
parameter.AddToQuery(query, "project_id", req.ProjectID)
33133315
parameter.AddToQuery(query, "organization_id", req.OrganizationID)
33143316
parameter.AddToQuery(query, "is_external", req.IsExternal)
3317+
parameter.AddToQuery(query, "domain", req.Domain)
33153318

33163319
scwReq := &scw.ScalewayRequest{
33173320
Method: "GET",

0 commit comments

Comments
 (0)