GetTool - AWS Diagnostic Tools

GetTool

Retrieve a tool (optionally a specific version) by its id and versionId.

Request Syntax

{ "identifier": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

identifier

Version id for tool which your want information

Type: String

Length Constraints: Minimum length of 8. Maximum length of 2048.

Required: Yes

Response Syntax

{ "tool": { "id": "string", "latestVersionId": "string", "name": "string", "versions": [ { "description": "string", "labels": [ "string" ], "parametersSchema": "string", "usedFor": "string", "versionId": "string" } ] } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

tool

Information about a Diagnostic Tool.

Type: Tool object

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

User does not have sufficient access to perform this action.

HTTP Status Code: 400

InternalServerException

The request failed because of an internal error. Try your request again later

HTTP Status Code: 500

ResourceNotFoundException

The request failed because it references a resource that doesn't exist.

HTTP Status Code: 400

ThrottlingException

The request failed because it exceeded a throttling quota.

HTTP Status Code: 400

ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

Examples

This example illustrates one usage of GetTool.

Example

Using AWS JSON protocol (default)

Sample Request

POST / HTTP/1.1 Host: ts.us-east-2.amazonaws.com X-Amz-Target: Troubleshooting.GetTool Content-Type: application/x-amz-json-1.0 X-Amz-Date: <Date> Authorization: <AuthParams> Content-Length: <PayloadSizeBytes> Connection: Keep-Alive { "identifier": "RDSClustersWithMetrics" }

Sample Response

HTTP/1.1 200 OK x-amzn-RequestId: <requestId> Content-Length: 0 Date: <Date> Content-Type: application/x-amz-json-1.0 { "tool": { "id": "EC2SystemsManager", "latestVersionId": "1.0.1", "name": "EC2 Systems Manager", "versions": [ { "components": "", "description": "Lists the SSM Managed Instances, Activations, Maintenance Windows, Automation Executions, Patch Baselines, Patch Groups, Parameters and Documents", "parameters": "<Parameter Info>", "usedFor": "Investigating Systems Manager details (Managed Instances, Activations, Patch Groups, and more). on the account.", "versionId": "1.0.1" } ] } }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: