Elastic Stack (ELK Stack) Platform Configuration Trust Relationships API

The PlatformConfigurationTrustRelationships API from Elastic Stack (ELK Stack) — 2 operation(s) for platformconfigurationtrustrelationships.

Operations 5

GET /platform/configuration/trust-relationships List trust relationships #
POST /platform/configuration/trust-relationships Create trust relationship #
GET /platform/configuration/trust-relationships/{trust_relationship_id} Get trust relationship #
PUT /platform/configuration/trust-relationships/{trust_relationship_id} Update trust relationship #
DELETE /platform/configuration/trust-relationships/{trust_relationship_id} Delete trust relationship #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elk-stack-platformconfigurationtrustrelationships-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elk-stack-platformconfigurationtrustrelationships-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1'
  title: Elastic Cloud Enterprise Platform Configuration Trust Relationships API
  termsOfService: ''
servers:
- url: https://{{hostname}}/api/v1
security:
- basicAuth: []
- apiKey: []
tags:
- name: PlatformConfigurationTrustRelationships
paths:
  /platform/configuration/trust-relationships:
    get:
      tags:
      - PlatformConfigurationTrustRelationships
      summary: List trust relationships
      description: List trust relationships.
      operationId: get-trust-relationships
      parameters:
      - name: include_certificate
        in: query
        description: Whether to include the public CA certificates in the response.
        required: false
        schema:
          type: boolean
          default: false
      - name: filter
        in: query
        description: Which trust relationships to return in the response. Defaults to `all`
        required: false
        schema:
          type: string
          enum:
          - all
          - local
          - non-local
          default: all
      responses:
        '200':
          description: The list of trust relationships.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustRelationshipsListResponse'
        '401':
          description: You are not authorized to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Platform - Configuration - Trust relationships
    post:
      tags:
      - PlatformConfigurationTrustRelationships
      summary: Create trust relationship
      description: Creates a trust relationship.
      operationId: create-trust-relationship
      responses:
        '201':
          description: The request was valid and a new trust relationship was created
          headers:
            x-cloud-resource-version:
              description: The resource version, which is used to avoid update conflicts with concurrent operations
              schema:
                type: string
            x-cloud-resource-created:
              description: The date-time when the resource was created (ISO format relative to UTC)
              schema:
                type: string
            x-cloud-resource-last-modified:
              description: The date-time when the resource was last modified (ISO format relative to UTC)
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustRelationshipCreateResponse'
        '400':
          description: The trust relationship request had errors.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '401':
          description: You are not authorized to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Platform - Configuration - Trust relationships
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrustRelationshipCreateRequest'
        description: The trust relationship definition
        required: true
  /platform/configuration/trust-relationships/{trust_relationship_id}:
    get:
      tags:
      - PlatformConfigurationTrustRelationships
      summary: Get trust relationship
      description: Retrieves information about a trust relationship.
      operationId: get-trust-relationship
      parameters:
      - name: trust_relationship_id
        in: path
        description: Identifier for the trust relationship
        required: true
        schema:
          type: string
      - name: include_certificate
        in: query
        description: Whether to include the public CA certificates in the response.
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: The trust relationship info response
          headers:
            x-cloud-resource-version:
              description: The resource version, which is used to avoid update conflicts with concurrent operations
              schema:
                type: string
            x-cloud-resource-created:
              description: The date-time when the resource was created (ISO format relative to UTC)
              schema:
                type: string
            x-cloud-resource-last-modified:
              description: The date-time when the resource was last modified (ISO format relative to UTC)
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustRelationshipGetResponse'
        '401':
          description: You are not authorized to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '404':
          description: 'The trust relationship specified by {trust_relationship_id} cannot be found. (code: `trust_relationships.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - trust_relationships.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Platform - Configuration - Trust relationships
    put:
      tags:
      - PlatformConfigurationTrustRelationships
      summary: Update trust relationship
      description: Updates a trust relationship.
      operationId: update-trust-relationship
      parameters:
      - name: trust_relationship_id
        in: path
        description: Identifier for the trust relationship
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request was valid and the trust relationship was updated.
          headers:
            x-cloud-resource-version:
              description: The resource version, which is used to avoid update conflicts with concurrent operations
              schema:
                type: string
            x-cloud-resource-created:
              description: The date-time when the resource was created (ISO format relative to UTC)
              schema:
                type: string
            x-cloud-resource-last-modified:
              description: The date-time when the resource was last modified (ISO format relative to UTC)
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustRelationshipUpdateResponse'
        '400':
          description: The trust relationship request had errors.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '401':
          description: You are not authorized to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '404':
          description: 'The trust relationship specified by {trust_relationship_id} cannot be found. (code: `trust_relationships.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - trust_relationships.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Platform - Configuration - Trust relationships
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrustRelationshipUpdateRequest'
        description: The trust relationship definition
        required: true
    delete:
      tags:
      - PlatformConfigurationTrustRelationships
      summary: Delete trust relationship
      description: Deletes a trust relationship.
      operationId: delete-trust-relationship
      parameters:
      - name: trust_relationship_id
        in: path
        description: Identifier for the trust relationship
        required: true
        schema:
          type: string
      - name: version
        in: query
        description: If specified then checks for conflicts against the version stored in the persistent store (returned in 'x-cloud-resource-version' of the GET request)
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: The request was valid and the trust relationship was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '401':
          description: You are not authorized to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
        '404':
          description: 'The trust relationship specified by {trust_relationship_id} cannot be found. (code: `trust_relationships.not_found`)'
          headers:
            x-cloud-error-codes:
              description: The error codes associated with the response
              schema:
                type: string
                enum:
                - trust_relationships.not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicFailedReply'
      x-doc:
        tag: Platform - Configuration - Trust relationships
components:
  schemas:
    TrustRelationshipsListResponse:
      type: object
      required:
      - trust_relationships
      properties:
        trust_relationships:
          type: array
          description: The trust relationships
          items:
            $ref: '#/components/schemas/TrustRelationshipGetResponse'
      description: Contains a list of trust relationships
    BasicFailedReplyElement:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: A structured code representing the error type that occurred
        message:
          type: string
          description: A human readable message describing the error that occurred
        fields:
          type: array
          description: If the error can be tied to a specific field or fields in the user request, this lists those fields
          items:
            type: string
    BasicFailedReply:
      type: object
      required:
      - errors
      properties:
        errors:
          type: array
          description: A list of errors that occurred in the failing request
          items:
            $ref: '#/components/schemas/BasicFailedReplyElement'
    EmptyResponse:
      type: object
    TrustRelationshipUpdateResponse:
      type: object
      required:
      - id
      - local
      - name
      - trust_by_default
      properties:
        id:
          type: string
          description: The id of the trust relationship
        name:
          type: string
          description: The name of the trust relationship
        trust_by_default:
          type: boolean
          description: If this relationship is trusted by default by all deployments in the current environment.
        account_ids:
          type: array
          description: The ID of the accounts trusted by this relationship.
          items:
            type: string
        local:
          type: boolean
          description: If this is the trust relationship for the local environment
        installation_id:
          type: string
          description: The installation ID of the environment to trust
      description: A response returned from the trust relationship update endpoint
    TrustRelationshipUpdateRequest:
      type: object
      properties:
        name:
          type: string
          description: A name for the trust relationship
        trust_by_default:
          type: boolean
          description: If this relationship is trusted by default by all deployments in the current environment.
        account_ids:
          type: array
          description: The ID of the accounts to trust by this relationship.
          items:
            type: string
        public_ca_cert:
          type: string
          description: The public CA certificate of the environment to trust
        installation_id:
          type: string
          description: The installation ID of the environment to trust
      description: A request for updating a trust relationship with another environment
    TrustRelationshipCreateResponse:
      type: object
      required:
      - id
      - local
      - name
      - trust_by_default
      properties:
        id:
          type: string
          description: The id of the trust relationship
        name:
          type: string
          description: The name of the trust relationship
        trust_by_default:
          type: boolean
          description: If this relationship is trusted by default by all deployments in the current environment.
        account_ids:
          type: array
          description: The ID of the accounts trusted by this relationship.
          items:
            type: string
        local:
          type: boolean
          description: If this is the trust relationship for the local environment
        installation_id:
          type: string
          description: The installation ID of the environment to trust
      description: A response returned from the trust relationship create endpoint
    TrustRelationshipGetResponse:
      type: object
      required:
      - id
      - last_modified
      - local
      - name
      - trust_by_default
      properties:
        id:
          type: string
          description: The id of the trust relationship
        name:
          type: string
          description: The name of the trust relationship
        trust_by_default:
          type: boolean
          description: If this relationship is trusted by default by all deployments in the current environment.
        account_ids:
          type: array
          description: The ID of the accounts trusted by this relationship.
          items:
            type: string
        public_ca_cert:
          type: string
          description: The public CA certificate of the environment to trust
        local:
          type: boolean
          description: If this is the trust relationship for the local environment
        installation_id:
          type: string
          description: The installation ID of the environment to trust
        last_modified:
          type: string
          format: date-time
          description: The most recent time the trust relationship was changed (ISO format in UTC)
    TrustRelationshipCreateRequest:
      type: object
      required:
      - name
      - public_ca_cert
      properties:
        name:
          type: string
          description: A name for the trust relationship
        trust_by_default:
          type: boolean
          description: If this relationship is trusted by default by all deployments in the current environment.
        account_ids:
          type: array
          description: The ID of the accounts to trust by this relationship.
          items:
            type: string
        public_ca_cert:
          type: string
          description: The public CA certificate of the environment to trust
        installation_id:
          type: string
          description: The installation ID of the environment to trust
      description: A request for creating a trust relationship with another environment
  securitySchemes:
    apiKey:
      type: apiKey
      name: Authorization
      in: header
    basicAuth:
      type: http
      scheme: basic
x-elastic:
  curl:
    auth: '-H "Authorization: ApiKey $ECE_API_KEY"'