Get a connector

This API retrieves a connector by its ID.

Path and HTTP methods

  1. GET /_plugins/_ml/connectors/<connector_id>

Example request

  1. GET /_plugins/_ml/connectors/N8AE1osB0jLkkocYjz7D

copy

Example response

  1. {
  2. "name" : "BedRock Claude-Instant v1",
  3. "version" : "1",
  4. "description" : "Bedrock connector for Claude Instant testing",
  5. "protocol" : "aws_sigv4",
  6. "parameters" : {
  7. "endpoint" : "bedrock.us-east-1.amazonaws.com",
  8. "content_type" : "application/json",
  9. "auth" : "Sig_V4",
  10. "service_name" : "bedrock",
  11. "region" : "us-east-1",
  12. "anthropic_version" : "bedrock-2023-05-31"
  13. },
  14. "actions" : [
  15. {
  16. "action_type" : "PREDICT",
  17. "method" : "POST",
  18. "url" : "https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-instant-v1/invoke",
  19. "headers" : {
  20. "x-amz-content-sha256" : "required",
  21. "content-type" : "application/json"
  22. },
  23. "request_body" : "{\"prompt\":\"${parameters.prompt}\", \"max_tokens_to_sample\":${parameters.max_tokens_to_sample}, \"temperature\":${parameters.temperature}, \"anthropic_version\":\"${parameters.anthropic_version}\" }"
  24. }
  25. ]
  26. }