alex8224 commented on issue #5706:
URL: https://github.com/apache/apisix/issues/5706#issuecomment-988023902


   @tzssangglass 
   **If so, that's pretty good**
   
   Generally use the 
127.0.0.1:8848/nacos/v1/ns/instance/list?serviceName=xxx&namespaceId=dev 
interface to get all service instances under a namespaceId, The output of the 
interface call is as follows
   
   
   `{                                                                           
  
       "allIPs": false,                                                         
 
       "cacheMillis": 10000,                                                    
 
       "checksum": "",                                                          
 
       "clusters": "",                                                          
 
       "groupName": "DEFAULT_GROUP",                                            
 
       "hosts": [                                                               
 
           {                                                                    
 
               "clusterName": "DEFAULT",                                        
 
               "enabled": true,                                                 
 
               "ephemeral": true,                                               
 
               "healthy": true,                                                 
 
               "instanceHeartBeatInterval": 5000,                               
 
               "instanceHeartBeatTimeOut": 15000,                               
 
               "instanceId": "192.26.0.7#9088#DEFAULT#DEFAULT_GROUP@@xxx",
               "ip": "192.26.0.7",                                              
 
               "ipDeleteTimeout": 30000,                                        
 
               "metadata": {                                                    
 
                   "app.name": "xxxr",                                     
                   "preserved.register.source": "SPRING_CLOUD",                 
 
                   "startup.time": "1638849194096",                             
 
                   "tag": "gray-feature-v1"                                     
 
               },                                                               
 
               "port": 9088,                                                    
 
               "serviceName": "DEFAULT_GROUP@@bcs-server",                      
 
               "weight": 1.0                                                    
 
           }                                                                    
 
       ],                                                                       
 
       "lastRefTime": 1638890095796,                                            
 
       "name": "DEFAULT_GROUP@@bcs-server",                                     
 
       "reachProtectionThreshold": false,                                       
 
       "valid": true }  `
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to