diff --git a/cmd/climc/shell/endpoints.go b/cmd/climc/shell/endpoints.go index 94a02de9c5..2a1b0844c0 100644 --- a/cmd/climc/shell/endpoints.go +++ b/cmd/climc/shell/endpoints.go @@ -11,6 +11,7 @@ func init() { Limit int64 `help:"Limit, default 0, i.e. no limit" default:"20"` Offset int64 `help:"Offset, default 0, i.e. no offset"` Region string `help:"Search by region"` + ServiceId string `help:"Search by service id"` Interface string `help:"Search by interface"` } R(&EndpointListOptions{}, "endpoint-list", "List service endpoints", func(s *mcclient.ClientSession, args *EndpointListOptions) error { @@ -28,6 +29,9 @@ func init() { if len(args.Region) > 0 { query.Add(jsonutils.NewString(args.Region), "region_id") } + if len(args.ServiceId) > 0 { + query.Add(jsonutils.NewString(args.ServiceId), "service_id") + } if len(args.Interface) > 0 { query.Add(jsonutils.NewString(args.Interface), "interface") }