- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- AgentStatusEnum
- AgentLoggingLevelEnum
- Try it!
Full name: projects.locations.instances.legacySdk.legacyGetAgentById
Legacy RPC for get agent by id.
HTTP request
Path parameters
Parameters | |
---|---|
instance |
Required. The GetAgentById request. Format: projects/{project}/locations/{location}/instances/{instance}/legacySdk:getAgentById |
Query parameters
Parameters | |
---|---|
agentId |
Required. The agent id. |
Request body
The request body must be empty.
Response body
ApiAgent message.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "id": string, "identifier": string, "name": string, "environments": [ string ], "publisherId": string, "publisherName": string, "publisherSlaveName": string, "accessLink": string, "status": enum ( |
Fields | |
---|---|
id |
Required. Agent id. |
identifier |
Agent identifier. |
name |
Agent name. |
environments[] |
Agent environments. |
publisherId |
Publisher id. |
publisherName |
Publisher name. |
publisherSlaveName |
Publisher slave name. |
accessLink |
Access link. |
status |
Agent status. |
certificate |
Certificate. |
primaryAgentIdentifier |
Required. Primary agent identifier. |
loggingLevel |
Required. Agent logging level. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
AgentStatusEnum
AgentStatusEnum enum.
Enums | |
---|---|
AGENT_STATUS_UNSPECIFIED |
Agent status is unspecified. |
ENABLED |
Agent is enabled. |
DISABLED |
Agent is disabled. |
DELETED |
Agent is deleted. |
AgentLoggingLevelEnum
AgentLoggingLevelEnum enum.
Enums | |
---|---|
ERROR |
Agent logging level is error. |
WARNING |
Agent logging level is warning. |
INFO |
Agent logging level is info. |
DEBUG |
Agent logging level is debug. |