File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ import type {DescribeConsumerResult} from '../types/api/consumer';
1313import  type  { FeatureFlagConfigs }  from  '../types/api/featureFlags' ; 
1414import  type  { HealthCheckAPIResponse }  from  '../types/api/healthcheck' ; 
1515import  type  { JsonHotKeysResponse }  from  '../types/api/hotkeys' ; 
16- import  type  { MetaBaseClusterInfo ,  MetaCluster ,  MetaClusters ,  MetaTenants }  from  '../types/api/meta' ; 
16+ import  type  { 
17+     MetaBaseClusterInfo , 
18+     MetaBaseClusters , 
19+     MetaCluster , 
20+     MetaClusters , 
21+     MetaTenants , 
22+ }  from  '../types/api/meta' ; 
1723import  type  { ModifyDiskResponse }  from  '../types/api/modifyDisk' ; 
1824import  type  { TNetInfo }  from  '../types/api/netInfo' ; 
1925import  type  { TNodesInfo }  from  '../types/api/nodes' ; 
@@ -843,13 +849,13 @@ export class YdbWebVersionAPI extends YdbEmbeddedAPI {
843849        clusterName : string , 
844850        { concurrentId,  signal} : AxiosOptions  =  { } , 
845851    ) : Promise < MetaBaseClusterInfo >  { 
846-         return  this . get < MetaBaseClusterInfo [ ] > ( 
852+         return  this . get < MetaBaseClusters > ( 
847853            `${ META_BACKEND  ||  '' }  , 
848854            { 
849855                name : clusterName , 
850856            } , 
851857            { concurrentId,  requestConfig : { signal} } , 
852-         ) . then ( ( data )  =>  data [ 0 ] ) ; 
858+         ) . then ( ( data )  =>  data . clusters [ 0 ] ) ; 
853859    } 
854860} 
855861
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export interface MetaExtendedClusterInfo extends MetaGeneralClusterInfo {
2222    versions ?: MetaClusterVersion [ ] ; 
2323} 
2424
25+ export  interface  MetaBaseClusters  { 
26+     clusters : MetaBaseClusterInfo [ ] ; 
27+ } 
28+ 
2529export  interface  MetaBaseClusterInfo  { 
2630    owner ?: string ; 
2731    location ?: string ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments