Skip to content

Commit

Permalink
Added API to get server users list from backend DB (#5760)
Browse files Browse the repository at this point in the history
Signed-off-by: root <swale@msystechnologies.com>
  • Loading branch information
sonali523 authored and vinay033 committed May 2, 2022
1 parent 2d25da7 commit 630f7ce
Show file tree
Hide file tree
Showing 20 changed files with 3,182 additions and 1,651 deletions.
2,175 changes: 1,124 additions & 1,051 deletions api/external/infra_proxy/infra_proxy.pb.go

Large diffs are not rendered by default.

98 changes: 98 additions & 0 deletions api/external/infra_proxy/infra_proxy.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 19 additions & 6 deletions api/external/infra_proxy/infra_proxy.pb.policy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions api/external/infra_proxy/infra_proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import "external/infra_proxy/request/environments.proto";
import "external/infra_proxy/request/nodes.proto";
import "external/infra_proxy/request/policyfiles.proto";
import "external/infra_proxy/request/users.proto";
import "external/infra_proxy/request/automate_infra_server_users.proto";

import "external/infra_proxy/response/orgs.proto";
import "external/infra_proxy/response/servers.proto";
Expand All @@ -26,6 +27,7 @@ import "external/infra_proxy/response/environments.proto";
import "external/infra_proxy/response/nodes.proto";
import "external/infra_proxy/response/policyfiles.proto";
import "external/infra_proxy/response/users.proto";
import "external/infra_proxy/response/automate_infra_server_users.proto";

import "external/annotations/iam/annotations.proto";

Expand Down Expand Up @@ -349,4 +351,10 @@ service InfraProxy {
option (chef.automate.api.iam.policy).resource = "infra:infraServers:{server_id}:users";
option (chef.automate.api.iam.policy).action = "infra:infraServers:get";
};

rpc GetAutomateInfraServerUsersList (infra_proxy.request.AutomateInfraServerUsers) returns (infra_proxy.response.AutomateInfraServerUsers) {
option (google.api.http).get = "/api/v0/infra/servers/{server_id}/automateinfraserverusers";
option (chef.automate.api.iam.policy).resource = "infra:infraServers:{server_id}:automateinfraserverusers";
option (chef.automate.api.iam.policy).action = "infra:infraServers:get";
};
}
77 changes: 77 additions & 0 deletions api/external/infra_proxy/infra_proxy.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 630f7ce

Please sign in to comment.