feat: provide instance info on admin api and return version on instances responses (admin and system api) (#3802)

* feat: provide instance info on admin api and return version on instances responses (admin and system api)

* fix GetMyInstance
This commit is contained in:
Livio Spring
2022-06-27 11:12:06 +02:00
committed by GitHub
parent 1b4740c78f
commit 30f553dea1
4 changed files with 65 additions and 5 deletions

View File

@@ -184,10 +184,21 @@ service AdminService {
};
}
// Returns the domains of an instance
// Returns the details of the instance
rpc GetMyInstance(GetMyInstanceRequest) returns (GetMyInstanceResponse) {
option (google.api.http) = {
get: "/instances/me";
};
option (zitadel.v1.auth_option) = {
permission: "iam.read";
};
}
// Returns the domains of the instance
rpc ListInstanceDomains(ListInstanceDomainsRequest) returns (ListInstanceDomainsResponse) {
option (google.api.http) = {
get: "/domains";
post: "/domains/_search";
};
}
@@ -2664,6 +2675,13 @@ message GetDefaultOrgResponse {
zitadel.org.v1.Org org = 1;
}
//This is an empty request
message GetMyInstanceRequest {}
message GetMyInstanceResponse {
zitadel.instance.v1.InstanceDetail instance = 1;
}
message ListInstanceDomainsRequest {
zitadel.v1.ListQuery query = 1;
// the field the result is sorted