trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ocket8...@apache.org
Subject [trafficcontrol] branch master updated: servers/details endpoint (#5611)
Date Wed, 17 Mar 2021 01:21:26 GMT
This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 0170bba  servers/details endpoint (#5611)
0170bba is described below

commit 0170bba93b4e8c3e9079b1d7f930d2c878de29e1
Author: Anuj Tyagi <tyagi.an@husky.neu.edu>
AuthorDate: Tue Mar 16 21:21:10 2021 -0400

    servers/details endpoint (#5611)
    
    * servers/details endpoint
    
    * updated structure
    
    * Added server detail endpoint
    
    * Update tosession.py
    
    * Update tosession.py
---
 CHANGELOG.md                                           | 1 +
 traffic_control/clients/python/trafficops/tosession.py | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8aa09c7..444a766 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
 
 ## [unreleased]
 ### Added
+- Python client: [#5611] Added server_detail endpoint
 - Apache Traffic Server: [#5627](https://github.com/apache/trafficcontrol/pull/5627) - Added
the creation of Centos8 RPMs for Apache Traffic Server
 - Traffic Ops/Traffic Portal: [#5479](https://github.com/apache/trafficcontrol/issues/5479)
- Added the ability to change a server capability name
 - Traffic Ops: [#3577](https://github.com/apache/trafficcontrol/issues/3577) - Added a query
param (server host_name or ID) for servercheck API
diff --git a/traffic_control/clients/python/trafficops/tosession.py b/traffic_control/clients/python/trafficops/tosession.py
index 19b2528..5e7b9df 100644
--- a/traffic_control/clients/python/trafficops/tosession.py
+++ b/traffic_control/clients/python/trafficops/tosession.py
@@ -1645,6 +1645,15 @@ class TOSession(RestApiSession):
 		:raises: Union[LoginError, OperationError]
 		"""
 
+	@api_request('get', 'servers/details?hostName={name}', ('3.0','4.0',))
+	def get_server_details(self, name=None):
+		"""
+		Get servers/details
+		:ref:`to-api-servers-details`
+		:rtype: Tuple[Union[Dict[str, Any], List[Dict[str, Any]]], requests.Response]
+		:raises: Union[LoginError, OperationError]
+		"""
+		
 	@api_request('post', 'servercheck', ('3.0',))
 	def create_servercheck(self, data=None):
 		"""


Mime
View raw message