list_server_neighbors
(**kwargs)¶Retrieves a list of servers that are one network hop away from a specified server.
See also: AWS API Documentation
Request Syntax
response = client.list_server_neighbors(
configurationId='string',
portInformationNeeded=True|False,
neighborConfigurationIds=[
'string',
],
maxResults=123,
nextToken='string'
)
[REQUIRED]
Configuration ID of the server for which neighbors are being listed.
List of configuration IDs to test for one-hop-away.
ListServerNeighborsRequest$neighborConfigurationIds
but set ListServerNeighborsRequest$maxResults
to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.dict
Response Syntax
{
'neighbors': [
{
'sourceServerId': 'string',
'destinationServerId': 'string',
'destinationPort': 123,
'transportProtocol': 'string',
'connectionsCount': 123
},
],
'nextToken': 'string',
'knownDependencyCount': 123
}
Response Structure
(dict) --
neighbors (list) --
List of distinct servers that are one hop away from the given server.
(dict) --
Details about neighboring servers.
sourceServerId (string) --
The ID of the server that opened the network connection.
destinationServerId (string) --
The ID of the server that accepted the network connection.
destinationPort (integer) --
The destination network port for the connection.
transportProtocol (string) --
The network protocol used for the connection.
connectionsCount (integer) --
The number of open network connections with the neighboring server.
nextToken (string) --
Token to retrieve the next set of results. For example, if you specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds
but set ListServerNeighborsRequest$maxResults
to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10.
knownDependencyCount (integer) --
Count of distinct servers that are one hop away from the given server.
Exceptions
ApplicationDiscoveryService.Client.exceptions.AuthorizationErrorException
ApplicationDiscoveryService.Client.exceptions.InvalidParameterException
ApplicationDiscoveryService.Client.exceptions.InvalidParameterValueException
ApplicationDiscoveryService.Client.exceptions.ServerInternalErrorException
ApplicationDiscoveryService.Client.exceptions.HomeRegionNotSetException