- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Searches Agents in a given project and location.
HTTP request
POST https://agentregistry.googleapis.com/v1alpha/{parent=projects/*/locations/*}/agents:search
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. Parent value for SearchAgentsRequest. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "searchString": string, "pageSize": integer, "pageToken": string } |
| Fields | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
searchString |
Optional. Search criteria used to select the Agents to return. If no search criteria is specified then all accessible Agents will be returned. Search expressions can be used to restrict results based upon searchable fields, where the operators can be used along with the suffix wildcard symbol Allowed operators: Searchable fields:
Examples:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
pageSize |
Optional. The maximum number of search results to return per page. The page size is capped at |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
pageToken |
Optional. If present, retrieve the next batch of results from the preceding call to this method. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response body
Message for response to searching Agents
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"agents": [
{
object ( |
| Fields | |
|---|---|
agents[] |
A list of Agents that match the |
nextPageToken |
If there are more results than those appearing in this response, then |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-platform.read-onlyhttps://www.googleapis.com/auth/agentregistry.read-writehttps://www.googleapis.com/auth/agentregistry.read-only
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
agentregistry.agents.search
For more information, see the IAM documentation.