List sessions CLI reports correct target id and status (#511)
* Including some missing session fields and improving reporting of sessions of CLI.
This commit is contained in:
1 parent
9bd6045c46
commit
d1d94c19c8
4 files changed
+14
-2
No files matched your search
@@ -12,6 +12,7 @@ import (
|
||||
"github.com/hashicorp/boundary/internal/servers/controller/common"
|
||||
"github.com/hashicorp/boundary/internal/servers/controller/handlers"
|
||||
"github.com/hashicorp/boundary/internal/session"
|
||||
"github.com/hashicorp/boundary/internal/target"
|
||||
"github.com/hashicorp/boundary/internal/types/action"
|
||||
"github.com/hashicorp/boundary/internal/types/resource"
|
||||
"github.com/hashicorp/boundary/internal/types/scope"
|
||||
@@ -192,6 +193,8 @@ func toProto(in *session.Session) *pb.Session {
|
||||
HostId: in.HostId,
|
||||
HostSetId: in.HostSetId,
|
||||
AuthTokenId: in.AuthTokenId,
|
||||
Endpoint: in.Endpoint,
|
||||
Type: target.SubtypeFromId(in.TargetId).String(),
|
||||
// TODO: Provide the ServerType and the ServerId when that information becomes relevant in the API.
|
||||
|
||||
CreatedTime: in.CreateTime.GetTimestamp(),
|
||||
|
||||
Reference in new issue
Block a user