From 18ab6b20a4373a2d1e552fd2710d88c2bd5993c8 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 13 Jul 2020 15:32:40 +0000 Subject: [PATCH] feat(rdb): add a view for list instance in the cli --- internal/namespaces/rdb/v1/rdb_cli.go | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/internal/namespaces/rdb/v1/rdb_cli.go b/internal/namespaces/rdb/v1/rdb_cli.go index e9d423d788..75b6a47830 100644 --- a/internal/namespaces/rdb/v1/rdb_cli.go +++ b/internal/namespaces/rdb/v1/rdb_cli.go @@ -594,6 +594,38 @@ func rdbInstanceList() *core.Command { return resp.Instances, nil }, + View: &core.View{Fields: []*core.ViewField{ + { + FieldName: "ID", + }, + { + FieldName: "Name", + }, + { + FieldName: "NodeType", + }, + { + FieldName: "Status", + }, + { + FieldName: "Engine", + }, + { + FieldName: "Region", + }, + { + FieldName: "Tags", + }, + { + FieldName: "IsHaCluster", + }, + { + FieldName: "BackupSchedule", + }, + { + FieldName: "CreatedAt", + }, + }}, } }