list_server_neighbors
¶
list_server_neighbors(
configuration_id: ConfigurationId,
*,
config_overrides: Optional[ApplicationDiscoveryServiceClientConfig] = None,
port_information_needed: Optional[Boolean] = None,
neighbor_configuration_ids: Optional[ConfigurationIdList] = None,
max_results: Optional[Integer] = None,
next_token: Optional[String] = None,
) -> ListServerNeighborsResponse
Retrieves a list of servers that are one network hop away from a specified server.
Parameters:
-
configuration_id(ConfigurationId) –Configuration ID of the server for which neighbors are being listed.
-
port_information_needed(Optional[Boolean], default:None) –Flag to indicate if port and protocol information is needed as part of the response.
-
neighbor_configuration_ids(Optional[ConfigurationIdList], default:None) –List of configuration IDs to test for one-hop-away.
-
max_results(Optional[Integer], default:None) –Maximum number of results to return in a single page of output.
-
next_token(Optional[String], default:None) –Token to retrieve the next set of results. For example, if you previously specified 100 IDs for
ListServerNeighborsRequest$neighborConfigurationIdsbut setListServerNeighborsRequest$maxResultsto 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.
Raises:
-
AuthorizationErrorException–The user does not have permission to perform the action. Check the IAM policy associated with this user.
-
HomeRegionNotSetException–The home Region is not set. Set the home Region to continue.
-
InvalidParameterException–One or more parameters are not valid. Verify the parameters and try again.
-
InvalidParameterValueException–The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again.
-
ServerInternalErrorException–The server experienced an internal error. Try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_discovery_service/_services/application_discovery_service.py
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 | |