mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:17:32 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user