describe_agents
¶
describe_agents(
*,
config_overrides: Optional[ApplicationDiscoveryServiceClientConfig] = None,
agent_ids: Optional[AgentIds] = None,
filters: Optional[Filters] = None,
max_results: Optional[Integer] = None,
next_token: Optional[NextToken] = None,
) -> DescribeAgentsResponse
Lists agents or collectors as specified by ID or other filters. All agents/collectors associated with your user can be listed if you call DescribeAgents as is without passing any parameters.
Parameters:
-
agent_ids(Optional[AgentIds], default:None) –The agent or the collector IDs for which you want information. If you specify no IDs, the system returns information about all agents/collectors associated with your user.
-
filters(Optional[Filters], default:None) –You can filter the request using various logical operators and a key-value format. For example:
{"key": "collectionStatus", "value": "STARTED"} -
max_results(Optional[Integer], default:None) –The total number of agents/collectors to return in a single page of output. The maximum value is 100.
-
next_token(Optional[NextToken], default:None) –Token to retrieve the next set of results. For example, if you previously specified 100 IDs for
DescribeAgentsRequest$agentIdsbut setDescribeAgentsRequest$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
616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | |