openapi: '3.1.2' info: title: Elastic Cloud Enterprise API description: "This RESTful API enables you to create and manage both your Elastic Stack deployments and the ECE platform.\n\nNOTE: This documentation applies to the Elastic Cloud Enterprise API only.\nIf you are using Elasticsearch Service, use the [Elastic Cloud API](https://www.elastic.co/docs/api/doc/cloud).\n\nThis API supports both key-based and token-based authentication. Key-based is generally the preferred method.\nFor details about creating an API key or bearer token, refer to [Authentication](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-restful-api-authentication.html).\n\nNOTE: In this documentation, `{{hostname}}` refers to the coordinating host (any host with the coordinator role). You can specify either its hostname or its IP address.\n\n## Documentation source and versions\n\nThis documentation applies to Elastic Cloud Enterprise version 4.2.\nIt is derived from https://api.elastic-cloud.com/api/v1/api-docs/swagger.json.\nIt is provided under license [Attribution-NonCommercial-NoDerivatives 4.0 International](https://creativecommons.org/licenses/by-nc-nd/4.0/).\n" termsOfService: '' version: '1' x-doc-license: name: Attribution-NonCommercial-NoDerivatives 4.0 International url: https://creativecommons.org/licenses/by-nc-nd/4.0/ x-feedbackLink: label: Feedback url: https://github.com/elastic/docs-content/issues/new?assignees=&labels=feedback%2Ccommunity&projects=&template=api-feedback.yaml&title=%5BFeedback%5D%3A+ paths: /account: get: tags: - Accounts summary: Fetch current account information description: Fetch current account information. operationId: get-current-account responses: '200': description: Account fetched successfully content: application/json: schema: $ref: '#/components/schemas/AccountResponse' '404': description: 'Account not found. (code: `accounts.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - accounts.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Accounts put: tags: - Accounts summary: Updates the current account description: Updates the current account. operationId: update-current-account requestBody: description: the current account content: application/json: schema: $ref: '#/components/schemas/AccountUpdateRequest' required: true x-bodyName: body responses: '200': description: Account updated successfully content: application/json: schema: $ref: '#/components/schemas/AccountResponse' '404': description: 'Account not found. (code: `accounts.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - accounts.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Accounts patch: tags: - Accounts summary: Updates the current account description: Updates the current account. operationId: patch-current-account requestBody: description: 'All changes in the specified object are applied to the current account according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: Account updated successfully content: application/json: schema: $ref: '#/components/schemas/AccountResponse' '404': description: 'Account not found. (code: `accounts.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - accounts.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Accounts '/billing/costs/{organization_id}': get: tags: - BillingCostsAnalysis summary: Get costs overview for the organization. Currently unavailable in self-hosted ECE. description: Retrieves an overview of the costs by organization ID. operationId: get-costs-overview parameters: - name: organization_id in: path description: Identifier for the organization required: true schema: type: string - name: from in: query description: A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. schema: type: string - name: to in: query description: A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. schema: type: string responses: '200': description: Top-level cost overview for the organization content: application/json: schema: $ref: '#/components/schemas/CostsOverview' '400': description: 'The specified date range is invalid. (code: `costs.invalid_date_range`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - costs.invalid_date_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'An error occurred when fetching an overview of the costs for the organization. (code: `billing_service.failed_request`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.failed_request type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' deprecated: true x-doc: tag: Billing Costs Analysis '/billing/costs/{organization_id}/charts': get: tags: - BillingCostsAnalysis summary: Get charts for the organization. Currently unavailable in self-hosted ECE. description: Retrieves the usage charts for the organization. operationId: get-costs-charts parameters: - name: organization_id in: path description: Identifier for the organization required: true schema: type: string - name: from in: query description: A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. schema: type: string - name: to in: query description: A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. schema: type: string - name: bucketing_strategy in: query description: The desired bucketing strategy for the charts. Defaults to `daily`. schema: enum: - daily - monthly type: string default: daily responses: '200': description: The usage charts of an organization. content: application/json: schema: $ref: '#/components/schemas/ChartItems' '400': description: 'The specified date range is invalid. (code: `costs.invalid_date_range`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - costs.invalid_date_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '429': description: 'Too many requests. (code: `billing_service.rate_limited`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.rate_limited type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.failed_request type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' deprecated: true x-doc: tag: Billing Costs Analysis '/billing/costs/{organization_id}/deployments': get: tags: - BillingCostsAnalysis summary: Get deployments costs for the organization. Currently unavailable in self-hosted ECE. description: Retrieves the costs associated with all deployments for the organization. operationId: get-costs-deployments parameters: - name: organization_id in: path description: Identifier for the organization required: true schema: type: string - name: from in: query description: A datetime for the beginning of the desired range for which to fetch activity. Defaults to start of current month. schema: type: string - name: to in: query description: A datetime for the end of the desired range for which to fetch activity. Defaults to the current date. schema: type: string - name: Accept in: header description: Accept header containing the content preference. schema: type: string responses: '200': description: The costs associated to a set of products content: application/json: schema: $ref: '#/components/schemas/DeploymentsCosts' '400': description: 'Invalid date range specified. (code: `costs.invalid_date_range`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - costs.invalid_date_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'An error occurred when fetching the costs associated with all deployments for the organization. (code: `billing_service.failed_request`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.failed_request type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' deprecated: true x-doc: tag: Billing Costs Analysis '/billing/costs/{organization_id}/deployments/{deployment_id}/charts': get: tags: - BillingCostsAnalysis summary: Get charts by deployment. Currently unavailable in self-hosted ECE. description: Retrieves the usage charts for the given deployment. operationId: get-costs-charts-by-deployment parameters: - name: organization_id in: path description: Identifier for the organization required: true schema: type: string - name: deployment_id in: path description: Id of a Deployment required: true schema: type: string - name: from in: query description: A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. schema: type: string - name: to in: query description: A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. schema: type: string - name: bucketing_strategy in: query description: The desired bucketing strategy for the charts. Defaults to `daily`. schema: enum: - daily - monthly type: string default: daily responses: '200': description: The usage charts of a deployment. content: application/json: schema: $ref: '#/components/schemas/ChartItems' '400': description: 'The specified date range is invalid. (code: `costs.invalid_date_range`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - costs.invalid_date_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '429': description: 'Too many requests. (code: `billing_service.rate_limited`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.rate_limited type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.failed_request type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' deprecated: true x-doc: tag: Billing Costs Analysis '/billing/costs/{organization_id}/deployments/{deployment_id}/items': get: tags: - BillingCostsAnalysis summary: Get itemized costs by deployments. Currently unavailable in self-hosted ECE. description: Retrieves the itemized costs for the given deployment. operationId: get-costs-items-by-deployment parameters: - name: organization_id in: path description: Identifier for the organization required: true schema: type: string - name: deployment_id in: path description: Id of a Deployment required: true schema: type: string - name: from in: query description: A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. schema: type: string - name: to in: query description: A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. schema: type: string - name: Accept in: header description: Determines the response body format. Can be either application/json or text/csv. schema: type: string responses: '200': description: The costs associated to a set items billed for a single deployment. content: application/json: schema: $ref: '#/components/schemas/ItemsCosts' '400': description: 'The specified date range is invalid. (code: `costs.invalid_date_range`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - costs.invalid_date_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The organization was not found. (code: `organization.not_found`)\n* The Elasticsearch cluster was not found. (code: `billing_service.es_cluster_id_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found - billing_service.es_cluster_id_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'An error occurred when fetching the itemized costs for the given deployment of the organization. (code: `billing_service.failed_request`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.failed_request type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' deprecated: true x-doc: tag: Billing Costs Analysis '/billing/costs/{organization_id}/items': get: tags: - BillingCostsAnalysis summary: Get itemized costs for the organization. Currently unavailable in self-hosted ECE. description: Retrieves the itemized costs for the organization. operationId: get-costs-items parameters: - name: organization_id in: path description: Identifier for the organization required: true schema: type: string - name: from in: query description: A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month. schema: type: string - name: to in: query description: A datetime for the end of the desired range for which to fetch costs. Defaults to the current date. schema: type: string responses: '200': description: The costs associated to a set of items content: application/json: schema: $ref: '#/components/schemas/ItemsCosts' '400': description: 'The specified date range is invalid. (code: `costs.invalid_date_range`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - costs.invalid_date_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error fetching the itemized costs for the organization. (code: `billing_service.failed_request`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - billing_service.failed_request type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' deprecated: true x-doc: tag: Billing Costs Analysis '/comments/{resource_type}/{resource_id}': get: tags: - Comments summary: List Comments description: 'Retrieves all the comments for a given Resource, in reverse modified time order.' operationId: list-comment parameters: - name: resource_type in: path description: 'The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].' required: true schema: type: string - name: resource_id in: path description: Id of the Resource that a Comment belongs to. required: true schema: type: string responses: '200': description: The Comments content: application/json: schema: $ref: '#/components/schemas/CommentsWithMetas' x-doc: tag: Comments post: tags: - Comments summary: Create a Comment description: Creates a comment for the given Resource. operationId: create-comment parameters: - name: resource_type in: path description: 'The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].' required: true schema: type: string - name: resource_id in: path description: Id of the Resource that a Comment belongs to. required: true schema: type: string requestBody: description: Data for comment creation content: application/json: schema: $ref: '#/components/schemas/CommentCreateRequest' required: true x-bodyName: body responses: '201': description: The Comment that was just 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/Comment' '401': description: 'Your current session does not have a user id associated with it. (code: `comments.no_user_id`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'No Resource of the given type and id exist. (code: `comments.resource_does_not_exist`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.resource_does_not_exist type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'A Comment already exists with the generated id. Please try again. (code: `comments.id_already_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.id_already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Comments '/comments/{resource_type}/{resource_id}/{comment_id}': get: tags: - Comments summary: Get Comment description: Retrieves a Comment. operationId: get-comment parameters: - name: resource_type in: path description: 'The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].' required: true schema: type: string - name: resource_id in: path description: Id of the Resource that a Comment belongs to. required: true schema: type: string - name: comment_id in: path description: Id of a Comment required: true schema: type: string responses: '200': description: The Comment 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/Comment' '404': description: 'The Comment you want does not exist. (code: `comments.comment_does_not_exist`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.comment_does_not_exist type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Comments put: tags: - Comments summary: Update Comment description: Updates a Comment. operationId: update-comment parameters: - name: resource_type in: path description: 'The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].' required: true schema: type: string - name: resource_id in: path description: Id of the Resource that a Comment belongs to. required: true schema: type: string - name: comment_id in: path description: Id of a Comment 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) schema: type: string requestBody: description: The Comment update data. content: application/json: schema: $ref: '#/components/schemas/CommentUpdateRequest' required: true x-bodyName: body responses: '200': description: Comment updated successfully. 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/Comment' '401': description: "* The Comment does not belong to you. (code: `comments.unauthorised`)\n* Your current session does not have a user id associated with it. (code: `comments.no_user_id`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.unauthorised - comments.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Comment you want does not exist. (code: `comments.comment_does_not_exist`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.comment_does_not_exist type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The version you sent does not match the persisted version. (code: `comments.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Comments delete: tags: - Comments summary: Delete Comment description: Deletes a Comment. operationId: delete-comment parameters: - name: resource_type in: path description: 'The kind of Resource that a Comment belongs to. Should be one of [elasticsearch, kibana, apm, appsearch, enterprise_search, integrations_server, allocator, constructor, runner, proxy].' required: true schema: type: string - name: resource_id in: path description: Id of the Resource that a Comment belongs to. required: true schema: type: string - name: comment_id in: path description: Id of a Comment 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) schema: type: string responses: '200': description: Comment deleted successfully. 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/EmptyResponse' '401': description: "* The Comment does not belong to you. (code: `comments.unauthorised`)\n* Your current session does not have a user id associated with it. (code: `comments.no_user_id`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.unauthorised - comments.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Comment you want does not exist. (code: `comments.comment_does_not_exist`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.comment_does_not_exist type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The version you sent does not match the persisted version. (code: `comments.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - comments.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Comments /deployments: get: tags: - Deployments summary: List Deployments description: List Deployments. operationId: list-deployments responses: '200': description: The list of deployments that belong to the authenticated user. content: application/json: schema: $ref: '#/components/schemas/DeploymentsListResponse' '401': description: You are not authorized to perform this action. content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD post: tags: - Deployments summary: Create Deployment description: Creates a Deployment. operationId: create-deployment parameters: - name: request_id in: query description: 'An optional idempotency token - if two create requests share the same request_id token (min size 32 characters, max 128) then only one deployment will be created, the second request will return the info of that deployment (in the same format described below, but with blanks for auth-related fields)' schema: type: string - name: validate_only in: query description: 'If true, will just validate the Deployment definition but will not perform the creation' schema: type: boolean default: false - name: template_id in: query description: 'An optional template id - if present, the referenced template will be used to fill in the resources field of the deployment creation request. If any resources are present in the request together with the template, the ones coming in the request will prevail and no merging with the template will be performed.' schema: type: string requestBody: description: The deployment definition content: application/json: schema: $ref: '#/components/schemas/DeploymentCreateRequest' required: true x-bodyName: body responses: '200': description: The request was valid (used when validate_only is true). content: application/json: schema: $ref: '#/components/schemas/DeploymentCreateResponse' '201': description: The request was valid and a new deployment 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/DeploymentCreateResponse' '202': description: The request was valid and deployment creation had already been started. content: application/json: schema: $ref: '#/components/schemas/DeploymentCreateResponse' '400': description: The deployment 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: Deployment - CRUD /deployments/_resync: post: tags: - Deployments summary: Resynchronize Deployments description: Resynchronizes the search index for all the deployments. operationId: resync-deployments parameters: - name: skip_matching_version in: query description: 'When true, skips the document indexing when the version matches the in-memory copy.' schema: type: boolean default: true responses: '200': description: The deployments resync operation executed successfully. content: application/json: schema: $ref: '#/components/schemas/IndexSynchronizationResults' '500': description: 'The deployments resync operation failed. (code: `deployments.resync_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.resync_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - resync /deployments/_search: post: tags: - Deployments summary: Search Deployments description: Retrieves the information for all of the deployments that match the specified query. operationId: search-deployments parameters: - name: minimal_metadata in: query description: Comma separated list of attributes to include in response for deployments found. Useful for reducing response size when retrieving many deployments. Use of this parameter moves the result to the minimal_metadata section of the response. schema: type: string requestBody: description: '(Optional) The search query to run. When not specified, all of the deployments are matched.' content: application/json: schema: $ref: '#/components/schemas/SearchRequest' x-bodyName: body responses: '200': description: The list of deployments that match the specified query and belong to the authenticated user. 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/DeploymentsSearchResponse' x-doc: tag: Deployment - Commands /deployments/eligible-remote-clusters: post: tags: - Deployments summary: Get eligible remote clusters description: Returns the list of deployments which contain eligible remote clusters for a specific version. operationId: search-eligible-remote-clusters parameters: - name: version in: query description: The version of the Elasticsearch cluster cluster that will potentially be configured to have remote clusters. required: true schema: type: string requestBody: description: '(Optional) The search query to run against all deployments containing eligible remote clusters. When not specified, all the eligible deployments are matched.' content: application/json: schema: $ref: '#/components/schemas/SearchRequest' x-bodyName: body responses: '200': description: List of deployments which contains eligible remote clusters for a specific version content: application/json: schema: $ref: '#/components/schemas/DeploymentsSearchResponse' '400': description: 'The provided version is invalid. (code: `stackpack.invalid_version`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - stackpack.invalid_version type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Remote Clusters /deployments/extensions: get: tags: - Extensions summary: List Extensions description: Retrieves all of the available extensions. operationId: list-extensions responses: '200': description: The extensions that are available content: application/json: schema: $ref: '#/components/schemas/Extensions' x-doc: tag: Deployments - Extensions post: tags: - Extensions summary: Create an extension description: "Creates the extension.\n The extensions API supports two types of usage patterns.\n A). Specify a `download_url`, http or https URL, where the extension is currently hosted. This will result in extension being copied to elastic repository.\n B). Create only the extension metadata using the `POST` endpoint and then use `PUT` to upload the extension file. Leave the `download_url` unspecified in this case.\n" operationId: create-extension requestBody: description: the data that creates the extension content: application/json: schema: $ref: '#/components/schemas/CreateExtensionRequest' required: true x-bodyName: body responses: '201': description: The extension that was just 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/Extension' '400': description: 'Could not download the extension from the specified URL. (code: `extensions.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'An extension already exists with the generated id. Please try again. (code: `extensions.id_already_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.id_already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Extensions '/deployments/extensions/{extension_id}': get: tags: - Extensions summary: Get Extension description: Retrieves an extension. operationId: get-extension parameters: - name: extension_id in: path description: Id of an extension required: true schema: type: string - name: include_deployments in: query description: Include deployments referencing this extension. Up to only 10000 deployments will be included. schema: type: boolean default: false responses: '200': description: The Extension 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/Extension' '404': description: 'The extension requested does not exist. (code: `extensions.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Extensions post: tags: - Extensions summary: Update Extension description: Updates an extension. operationId: update-extension parameters: - name: extension_id in: path description: Id of an extension required: true schema: type: string requestBody: description: The extension update data. content: application/json: schema: $ref: '#/components/schemas/UpdateExtensionRequest' required: true x-bodyName: body responses: '200': description: Extension updated successfully. 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/Extension' '400': description: 'Could not download the extension from the specified URL. (code: `extensions.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: "* The extension does not belong to you. (code: `extensions.unauthorised`)\n* Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.unauthorised - extensions.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The extension you want does not exist. (code: `extensions.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The version you sent does not match the persisted version. (code: `extensions.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Extensions put: tags: - Extensions summary: Uploads the Extension description: Uploads archive for an extension. operationId: upload-extension parameters: - name: extension_id in: path description: Id of an extension required: true schema: type: string requestBody: content: multipart/form-data: schema: required: - file type: object properties: file: type: string description: Zip file that contains the extension format: binary responses: '200': description: Archive uploaded successfully. 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/Extension' '400': description: 'Could not accept the extensions file. (code: `extensions.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: "* The extension does not belong to you. (code: `extensions.unauthorised`)\n* Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.unauthorised - extensions.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The extension you want does not exist. (code: `extensions.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Extensions delete: tags: - Extensions summary: Delete Extension description: Deletes a Extension. operationId: delete-extension parameters: - name: extension_id in: path description: Id of an extension required: true schema: type: string responses: '200': description: Extension deleted successfully. 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/EmptyResponse' '401': description: "* The extension does not belong to you. (code: `extensions.unauthorised`)\n* Your current session does not have a user id associated with it. (code: `extensions.no_user_id`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.unauthorised - extensions.no_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The extension requested does not exist. (code: `extensions.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The version you sent does not match the persisted version. (code: `extensions.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - extensions.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Extensions /deployments/templates: get: tags: - DeploymentTemplates summary: Get deployment templates description: Retrieves all deployment templates. operationId: get-deployment-templates-v2 parameters: - name: metadata in: query description: An optional key/value pair in the form of (key:value) that will act as a filter and exclude any templates that do not have a matching metadata item associated. schema: type: string - name: show_instance_configurations in: query description: 'If true, will return details for each instance configuration referenced by the template.' schema: type: boolean default: true - name: show_max_zones in: query description: 'If true, will populate the max_zones field in the instance configurations. Only relevant if show_instance_configurations=true.' schema: type: boolean default: false - name: stack_version in: query description: 'If present, it will cause the returned deployment templates to be adapted to return only the elements allowed in that version.' schema: type: string - name: hide_deprecated in: query description: 'If true, templates flagged as deprecated will NOT be returned.' schema: type: boolean default: false - name: show_hidden in: query description: 'If true, templates flagged as hidden will be returned.' schema: type: boolean default: false - name: region in: query description: Region of the deployment templates required: true schema: type: string responses: '200': description: The deployment templates were returned successfully. content: application/json: schema: type: array items: $ref: '#/components/schemas/DeploymentTemplateInfoV2' '400': description: 'The requested region was not found. (code: `templates.region_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'The user is not authorized to access requested region. (code: `templates.region_not_allowed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_allowed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Templates post: tags: - DeploymentTemplates summary: Create deployment template description: Creates a deployment template. operationId: create-deployment-template-v2 parameters: - name: validate_only in: query description: 'If true, the deployment template definition will be validated but the template will not be created.' schema: type: boolean default: false - name: region in: query description: Region of the deployment template required: true schema: type: string requestBody: description: The deployment template definition. content: application/json: schema: $ref: '#/components/schemas/DeploymentTemplateRequestBody' required: true x-bodyName: body responses: '200': description: The request was valid (used when validate_only is true). content: application/json: schema: $ref: '#/components/schemas/IdResponse' '201': description: The deployment definition was valid and the template has been created. content: application/json: schema: $ref: '#/components/schemas/IdResponse' '400': description: 'The requested region is not supported. (code: `templates.region_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'The user is not authorized to access requested region. (code: `templates.region_not_allowed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_allowed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Templates '/deployments/templates/{template_id}': get: tags: - DeploymentTemplates summary: Get deployment template description: Retrieves a deployment template by id. operationId: get-deployment-template-v2 parameters: - name: template_id in: path description: The identifier for the deployment template. required: true schema: type: string - name: show_instance_configurations in: query description: 'If true, will return details for each instance configuration referenced by the template.' schema: type: boolean default: true - name: show_max_zones in: query description: 'If true, will populate the max_zones field in the instance configurations. Only relevant if show_instance_configurations=true.' schema: type: boolean default: false - name: stack_version in: query description: 'If present, it will cause the returned deployment template to be adapted to return only the elements allowed in that version.' schema: type: string - name: region in: query description: Region of the deployment template required: true schema: type: string responses: '200': description: The deployment template was found and returned successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentTemplateInfoV2' '400': description: 'The requested region is not supported. (code: `templates.region_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'The user is not authorized to access requested region. (code: `templates.region_not_allowed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_allowed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.template_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Templates put: tags: - DeploymentTemplates summary: Set deployment template description: Creates or updates a deployment template. operationId: set-deployment-template-v2 parameters: - name: template_id in: path description: The identifier for the deployment template. required: true schema: type: string - name: version in: query description: 'If specified, checks for conflicts against the version of the template (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string - name: create_only in: query description: 'If true, will fail if the deployment template already exists at the given id' schema: type: boolean default: false - name: validate_only in: query description: 'If true, the deployment template definition will be validated but the template will not be updated.' schema: type: boolean default: false - name: region in: query description: Region of the deployment template required: true schema: type: string requestBody: description: The deployment template definition. content: application/json: schema: $ref: '#/components/schemas/DeploymentTemplateRequestBody' required: true x-bodyName: body responses: '200': description: The deployment definition was valid and the template has been updated. content: application/json: schema: $ref: '#/components/schemas/IdResponse' '201': description: The deployment definition was valid and the template was created. content: application/json: schema: $ref: '#/components/schemas/IdResponse' '400': description: 'The requested region is not supported. (code: `templates.region_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'The user is not authorized to access requested region. (code: `templates.region_not_allowed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_allowed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.template_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The version supplied in the request conflicted with the version found on the server. (code: `templates.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Templates delete: tags: - DeploymentTemplates summary: Delete deployment template description: Deletes a deployment template by id. operationId: delete-deployment-template-v2 parameters: - name: template_id in: path description: The identifier for the deployment template. required: true schema: type: string - name: region in: query description: Region of the deployment template required: true schema: type: string responses: '200': description: The deployment template was successfully deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The requested region is not supported. (code: `templates.region_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'The user is not authorized to access requested region. (code: `templates.region_not_allowed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.region_not_allowed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The deployment template specified by {template_id} cannot be found. (code: `templates.template_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - templates.template_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Templates '/deployments/traffic-filter/associations/{association_type}/{associated_entity_id}/rulesets': get: tags: - DeploymentsTrafficFilter summary: Get associated rulesets description: Retrieves the rulesets associated with a deployment. operationId: get-traffic-filter-deployment-ruleset-associations parameters: - name: association_type in: path description: Association type required: true schema: type: string - name: associated_entity_id in: path description: Associated entity ID required: true schema: type: string responses: '200': description: Rulesets in the deployment were successfully returned content: application/json: schema: $ref: '#/components/schemas/TrafficFilterSettings' '400': description: 'Invalid association type. (code: `traffic_filter.invalid_association_type`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.invalid_association_type type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - Associations /deployments/traffic-filter/link-ids: get: tags: - DeploymentsTrafficFilter summary: List traffic filter claimed link id description: List all of the traffic filter claimed link id. operationId: get-traffic-filter-claimed-link-ids parameters: - name: region in: query description: If provided limits the claimed id to that region only. schema: type: string - name: organization_id in: query description: Retrieves a list of resources that are associated to the specified organization ID. It only takes effect if the user is an admin. schema: type: string responses: '200': description: The collection of traffic filter claimed link id content: application/json: schema: $ref: '#/components/schemas/TrafficFilterClaimedLinkIds' '500': description: 'Error fetching traffic filter claimed link ids. (code: `traffic_filter_claimed_link_id.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter_claimed_link_id.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter Claimed Link Id /deployments/traffic-filter/link-ids/_claim: post: tags: - DeploymentsTrafficFilter summary: Claim a link id description: Claim the ownership of a link id. operationId: claim-traffic-filter-link-id requestBody: description: The specification for traffic filter claimed link id. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterClaimedLinkIdRequest' required: true x-bodyName: body responses: '201': description: The ruleset definition is valid and the creation has started. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterClaimedLinkIdInfo' '500': description: 'Error creating the traffic filter ruleset. (code: `traffic_filter_claimed_link_id.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter_claimed_link_id.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter Claimed Link Id /deployments/traffic-filter/link-ids/_unclaim: post: tags: - DeploymentsTrafficFilter summary: Unclaims a link id description: Unclaims the ownership of a link id. operationId: unclaim-traffic-filter-link-id requestBody: description: The specification for traffic filter claimed link id. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterClaimedLinkIdRequest' required: true x-bodyName: body responses: '200': description: The claimed link id was successfully deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'Error validating the request. (code: `traffic_filter_claimed_link_id.invalid_input`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter_claimed_link_id.invalid_input type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error deleting the traffic filter claimed link id. (code: `traffic_filter_claimed_link_id.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter_claimed_link_id.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter Claimed Link Id /deployments/traffic-filter/rulesets: get: tags: - DeploymentsTrafficFilter summary: List traffic filter rulesets description: List all of the traffic filter rulesets. operationId: get-traffic-filter-rulesets parameters: - name: include_associations in: query description: Retrieves a list of resources that are associated to the specified ruleset. schema: type: boolean default: false - name: region in: query description: If provided limits the rulesets to that region only. schema: type: string - name: organization_id in: query description: Retrieves a list of resources that are associated to the specified organization ID. It only takes effect if the user is an admin. schema: type: string responses: '200': description: The collection of traffic filter routes content: application/json: schema: $ref: '#/components/schemas/TrafficFilterRulesets' '500': description: 'Error fetching traffic filter rulesets. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - CRUD post: tags: - DeploymentsTrafficFilter summary: Create a ruleset description: Creates a ruleset that consists of a set of rules. operationId: create-traffic-filter-ruleset requestBody: description: The specification for traffic filter ruleset. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterRulesetRequest' required: true x-bodyName: body responses: '201': description: The ruleset definition is valid and the creation has started. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterRulesetResponse' '500': description: 'Error creating the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - CRUD '/deployments/traffic-filter/rulesets/{ruleset_id}': get: tags: - DeploymentsTrafficFilter summary: Retrieves the ruleset by ID. description: Retrieves a list of resources that are associated to the specified ruleset. operationId: get-traffic-filter-ruleset parameters: - name: ruleset_id in: path description: The mandatory ruleset ID. required: true schema: type: string - name: include_associations in: query description: Retrieves a list of resources that are associated to the specified ruleset. schema: type: boolean default: false responses: '200': description: The container for a set of traffic filter rules. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterRulesetInfo' '404': description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error reading the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - CRUD put: tags: - DeploymentsTrafficFilter summary: Updates a ruleset description: Updates the ruleset with the definition. operationId: update-traffic-filter-ruleset parameters: - name: ruleset_id in: path description: The mandatory ruleset ID. required: true schema: type: string requestBody: description: The specification for traffic filter ruleset. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterRulesetRequest' required: true x-bodyName: body responses: '200': description: The ruleset definition was valid and the update has started. content: application/json: schema: $ref: '#/components/schemas/TrafficFilterRulesetResponse' '404': description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error reading the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - CRUD delete: tags: - DeploymentsTrafficFilter summary: Delete a ruleset description: Deletes the ruleset by ID. operationId: delete-traffic-filter-ruleset parameters: - name: ruleset_id in: path description: The mandatory ruleset ID. required: true schema: type: string - name: ignore_associations in: query description: 'When true, ignores the associations and deletes the ruleset. When false, recognizes the associations, which prevents the deletion of the rule set.' schema: type: boolean default: false responses: '200': description: The traffic filter ruleset was successfully deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Error deleting the traffic filter ruleset. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - CRUD '/deployments/traffic-filter/rulesets/{ruleset_id}/associations': get: tags: - DeploymentsTrafficFilter summary: Get associated deployments description: Retrieves a list of deployments that are associated to the specified ruleset. operationId: get-traffic-filter-ruleset-deployment-associations parameters: - name: ruleset_id in: path description: The mandatory ruleset ID. required: true schema: type: string responses: '200': description: Associations referred by traffic filter rulesets were successfully returned content: application/json: schema: $ref: '#/components/schemas/RulesetAssociations' '500': description: 'Error fetching deployments. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - Associations post: tags: - DeploymentsTrafficFilter summary: Create ruleset association description: Applies the ruleset to the specified deployment. operationId: create-traffic-filter-ruleset-association parameters: - name: ruleset_id in: path description: The mandatory ruleset ID. required: true schema: type: string requestBody: description: Mandatory ruleset association description content: application/json: schema: $ref: '#/components/schemas/FilterAssociation' required: true x-bodyName: body responses: '200': description: Create association request was valid and the association already exists content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '201': description: Create association request was valid and the association has been created content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The traffic filter ruleset specified by {ruleset_id} cannot be found. (code: `traffic_filter.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Creation failed. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - Associations '/deployments/traffic-filter/rulesets/{ruleset_id}/associations/{association_type}/{associated_entity_id}': delete: tags: - DeploymentsTrafficFilter summary: Delete ruleset association description: Deletes the traffic rules in the ruleset from the deployment. operationId: delete-traffic-filter-ruleset-association parameters: - name: ruleset_id in: path description: The mandatory ruleset ID. required: true schema: type: string - name: association_type in: path description: Association type required: true schema: type: string - name: associated_entity_id in: path description: Associated entity ID required: true schema: type: string responses: '200': description: Delete association request was valid and the association has been deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The traffic filter ruleset association cannot be found. (code: `traffic_filter.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Deletion failed. (code: `traffic_filter.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - traffic_filter.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployments - Traffic Filter - Associations '/deployments/{deployment_id}': get: tags: - Deployments summary: Get Deployment description: Retrieves information about a Deployment. operationId: get-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: show_security in: query description: Whether to include the Elasticsearch 2.x security information in the response - can be large per cluster and also include credentials schema: type: boolean default: false - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster schema: type: boolean default: false - name: show_plan_history in: query description: "Whether to include the plan history with the current and pending plan information. The results can be very large per cluster.\n By default, if a given resource kind (e.g. Elasticsearch, Kibana, etc.) has more than 100 plans\n (which should be very rare, most likely caused by a bug) only 100 plans are returned for the given resource type:\n The first 10 plans, and the last 90 plans for that resource type.\n If ALL of the plans are desired, pass the `force_all_plan_history` parameter with a value of `true`.\n" schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative)' schema: type: boolean default: false - name: convert_legacy_plans in: query description: 'If showing plans, whether to leave pre-2.0.0 plans in their legacy format (the default), or whether to update them to 2.0.x+ format (if ''true'')' schema: type: boolean default: false - name: show_system_alerts in: query description: Number of system alerts (such as forced restarts due to memory limits) to be included in the response - can be large per cluster. Negative numbers or 0 will not return field. schema: type: integer default: 0 - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: show_instance_metrics in: query description: Whether to show resources instance metrics in the response. schema: type: boolean default: true - name: show_instance_configurations in: query description: 'If true, will return details for each instance configuration referenced by the deployment.' schema: type: boolean default: true - name: enrich_with_template in: query description: 'If showing plans, whether to enrich the plan by including the missing elements from the deployment template it is based on' schema: type: boolean default: true - name: force_all_plan_history in: query description: "Force show the entire plan history no matter how long.\n As noted in the `show_plan_history` parameter description, by default, a maximum of 100 plans are shown per resource. \n If `true`, this parameter overrides the default, and ALL plans are returned.\n Use with care as the plan history can be VERY large. Consider pairing with `show_plan_logs=false`.\n " schema: type: boolean default: false - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: The Deployment 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/DeploymentGetResponse' '401': description: You are not authorized to perform this action. content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD put: tags: - Deployments summary: Update Deployment description: Updates a Deployment. operationId: update-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: hide_pruned_orphans in: query description: Whether or not to hide orphaned resources that were shut down (relevant if prune on the request is true) schema: type: boolean default: false - name: skip_snapshot in: query description: Whether or not to skip snapshots before shutting down orphaned resources (relevant if prune on the request is true) schema: type: boolean default: false - name: validate_only in: query description: 'If true, will just validate the Deployment definition but will not perform the update' schema: type: boolean default: false - 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) schema: type: string requestBody: description: The deployment definition content: application/json: schema: $ref: '#/components/schemas/DeploymentUpdateRequest' required: true x-bodyName: body responses: '200': description: The request was valid and the deployment 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/DeploymentUpdateResponse' '400': description: The deployment 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 Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD delete: tags: - Deployments summary: Delete Deployment description: Deletes a Deployment and all its resources. operationId: delete-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string responses: '200': description: The request was valid and the deployment was deleted. content: application/json: schema: $ref: '#/components/schemas/DeploymentDeleteResponse' '400': description: The Deployment resources have not been shutdown yet. 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 Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD '/deployments/{deployment_id}/_restore': post: tags: - Deployments summary: Restores a shutdown Deployment description: Restores all resources in a Deployment. operationId: restore-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: restore_snapshot in: query description: Whether or not to restore a snapshot for those resources that allow it. schema: type: boolean default: false responses: '200': description: The request was valid and the resources of the deployment were restored. content: application/json: schema: $ref: '#/components/schemas/DeploymentRestoreResponse' '400': description: There are Elasticsearch resources in the deployment which are not shut down. 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 Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD '/deployments/{deployment_id}/_resync': post: tags: - Deployments summary: Resynchronize Deployment description: Immediately resynchronizes the search index for the selected deployment. operationId: resync-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string responses: '200': description: The deployment resync operation executed successfully. content: application/json: schema: $ref: '#/components/schemas/IndexSynchronizationResults' '500': description: 'The deployment resync operation failed for deployment {deployment_id}. (code: `deployments.resync_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.resync_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - resync '/deployments/{deployment_id}/_shutdown': post: tags: - Deployments summary: Shuts down Deployment description: Shuts down all resources in a Deployment. operationId: shutdown-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: hide in: query description: Whether or not to hide the deployment and its resources.Only applicable for Platform administrators. schema: type: boolean - name: skip_snapshot in: query description: Whether or not to skip snapshots before shutting down the resources schema: type: boolean default: false responses: '200': description: The request was valid and the resources of the deployment were shutdown. content: application/json: schema: $ref: '#/components/schemas/DeploymentShutdownResponse' '400': description: 'Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.restricted_parameter type: string 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 Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD '/deployments/{deployment_id}/apm/{ref_id}': get: tags: - Deployments summary: Get Deployment APM Resource Info description: Get info about an APM Resource belonging to a given Deployment. operationId: get-deployment-apm-resource-info parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster. schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster. schema: type: boolean default: false - name: show_plan_history in: query description: Whether to include with the current and pending plan information the plan history- can be very large per cluster. schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative).' schema: type: boolean default: false - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/ApmResourceInfo' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Info '/deployments/{deployment_id}/apm/{ref_id}/_reset-token': post: tags: - Deployments summary: Reset the secret token for an APM resource. description: Reset the token of an APM resource. operationId: deployment-apm-reset-secret-token parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '202': description: 'Response containing the new secret token, plan to apply it starts' content: application/json: schema: $ref: '#/components/schemas/ApmCrudResponse' '400': description: 'Reset token is not supported when APM is managed by Elastic Agent. (code: `clusters.cluster_plan_state_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.cluster_plan_state_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: APM routes '/deployments/{deployment_id}/appsearch/{ref_id}': get: tags: - Deployments summary: Get Deployment App Search Resource Info description: Get info about an App Search Resource belonging to a given Deployment. operationId: get-deployment-appsearch-resource-info parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster. schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster. schema: type: boolean default: false - name: show_plan_history in: query description: Whether to include with the current and pending plan information the plan history- can be very large per cluster. schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative).' schema: type: boolean default: false - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/AppSearchResourceInfo' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Info '/deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode': get: tags: - Deployments summary: Set AppSearch read-only status description: Enable/Disable read-only mode on the given App Search resource. operationId: get-appsearch-read-only-mode parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '200': description: Standard response content: application/json: schema: $ref: '#/components/schemas/ReadOnlyResponse' '404': description: 'The Resource specified by ref_id cannot be found. (code: `deployments.deployment_resource_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: App Search - Read-only put: tags: - Deployments summary: Set AppSearch read-only status description: Enable/Disable read-only mode on the given App Search resource. operationId: set-appsearch-read-only-mode parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string requestBody: description: read-only request body content: application/json: schema: $ref: '#/components/schemas/ReadOnlyRequest' required: true x-bodyName: body responses: '200': description: Standard response content: application/json: schema: $ref: '#/components/schemas/ReadOnlyResponse' '404': description: 'The Resource specified by ref_id cannot be found. (code: `deployments.deployment_resource_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: App Search - Read-only '/deployments/{deployment_id}/certificate-authority': get: tags: - Deployments summary: Get certificate authority description: Returns the certificate authority used to sign the certificates of this deployment. operationId: get-deployment-certificate-authority parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string responses: '200': description: The certificate authority used to sign the certificates of this deployment content: application/json: schema: $ref: '#/components/schemas/CertificateAuthority' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Elasticsearch Resource cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Trust '/deployments/{deployment_id}/elasticsearch/{ref_id}': get: tags: - Deployments summary: Get Deployment Elasticsearch Resource Info description: Get info about an Elasticsearch Resource belonging to a given Deployment. operationId: get-deployment-es-resource-info parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: show_security in: query description: Whether to include the Elasticsearch 2.x security information in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster. schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster. schema: type: boolean default: false - name: show_plan_history in: query description: Whether to include with the current and pending plan information the plan history- can be very large per cluster. schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative).' schema: type: boolean default: false - name: convert_legacy_plans in: query description: 'If showing plans, whether to leave pre-2.0.0 plans in their legacy format (the default), or whether to update them to 2.0.x+ format (if ''true'').' schema: type: boolean default: false - name: show_system_alerts in: query description: Number of system alerts (such as forced restarts due to memory limits) to be included in the response - can be large per cluster. Negative numbers or 0 will not return field. schema: type: integer default: 0 - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: enrich_with_template in: query description: 'If showing plans, whether to enrich the plan by including the missing elements from the deployment template it is based on.' schema: type: boolean default: true - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/ElasticsearchResourceInfo' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Info '/deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ccr': post: tags: - Deployments summary: Migrate Elasticsearch and associated Kibana resources to enable CCR description: Migrates the specified Elasticsearch resource and its associated Kibana to enable CCR (if supported). operationId: enable-deployment-resource-ccr parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: validate_only in: query description: 'When `true`, will not enable CCR but returns warnings if any elements may lose availability during CCR enablement' schema: type: boolean default: false responses: '200': description: Standard response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-ilm': post: tags: - Deployments summary: Migrate Elasticsearch resource to use ILM description: Migrates the specified Elasticsearch resource to use ILM. operationId: enable-deployment-resource-ilm parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: validate_only in: query description: 'When `true`, does not enable ILM but returns warnings if any applications may lose availability during ILM migration.' schema: type: boolean default: false requestBody: description: Information to build the ILM policies that will be created content: application/json: schema: $ref: '#/components/schemas/EnableIlmRequest' required: true x-bodyName: body responses: '200': description: Standard response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/_enable-slm': post: tags: - Deployments summary: Migrate Elasticsearch resource to use SLM description: Migrates the specified Elasticsearch resource to use SLM. operationId: enable-deployment-resource-slm parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: validate_only in: query description: 'When `true`, does not enable SLM but returns warnings if any applications may lose availability during SLM migration.' schema: type: boolean default: false responses: '200': description: Standard response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password': post: tags: - Deployments summary: Reset 'elastic' user password description: Resets the password of the 'elastic' user. operationId: reset-elasticsearch-user-password parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: check_completion in: query description: 'If true, will not reset elastic user password and instead will return a status code signaling whether or not the current credentials are ready to use (eg from creation or the last call to _reset_password)' schema: type: boolean default: false responses: '200': description: The password reset was out carried successfully content: application/json: schema: $ref: '#/components/schemas/ElasticsearchElasticUserPasswordResetResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Failed to reset the ''elastic'' user''s password. (code: `deployments.elasticsearch.password_reset_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.elasticsearch.password_reset_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/_restart': post: tags: - Deployments summary: Restart Deployment Elasticsearch Resource description: 'Restarts an Elasticsearch Resource. If a Resource is active: this command re-applies the existing plan but applies a "cluster_reboot", which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan.' operationId: restart-deployment-es-resource parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: restore_snapshot in: query description: 'When set to true and restoring from shutdown, then will restore the cluster from the last snapshot (if available).' schema: type: boolean default: true - name: skip_snapshot in: query description: 'If true, will not take a snapshot of the cluster before restarting.' schema: type: boolean default: true - name: cancel_pending in: query description: 'If true, cancels any pending plans before restarting. If false and there are pending plans, returns an error.' schema: type: boolean default: false - name: group_attribute in: query description: 'Indicates the property or properties used to divide the list of instances to restart in groups. Valid options are: ''\_\_all\_\_'' (restart all at once), ''\_\_zone\_\_'' by logical zone, ''\_\_name\_\_'' one instance at a time, or a comma-separated list of attributes of the instances' schema: type: string default: __zone__ - name: shard_init_wait_time in: query description: 'The time, in seconds, to wait for shards that show no progress of initializing, before rolling the next group (default: 10 minutes)' schema: type: integer default: 600 responses: '202': description: The restart command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '422': description: 'The command sent to a Resource found the Resource in an illegal state, the error message gives more details. (code: `deployments.deployment_resource_plan_change_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_plan_change_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/_shutdown': post: tags: - Deployments summary: Shutdown Deployment Elasticsearch Resource description: Shutdown Elasticsearch Resource belonging to a given Deployment. operationId: shutdown-deployment-es-resource parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: hide in: query description: Hide cluster on shutdown. Hidden clusters are not listed by default. Only applicable for Platform administrators. schema: type: boolean - name: skip_snapshot in: query description: 'If true, will skip taking a snapshot of the cluster before shutting the cluster down (if even possible).' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '400': description: 'Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.restricted_parameter type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/eligible-remote-clusters': post: tags: - Deployments summary: Get eligible remote clusters description: Returns the list of deployments which contain eligible remote clusters for the elasticsearch resource. operationId: get-deployment-es-resource-eligible-remote-clusters parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string requestBody: description: '(Optional) The search query to run against all deployments containing eligible remote clusters. When not specified, all the eligible deployments are matched.' content: application/json: schema: $ref: '#/components/schemas/SearchRequest' x-bodyName: body responses: '200': description: List of deployments which contains eligible remote clusters for the resource content: application/json: schema: $ref: '#/components/schemas/DeploymentsSearchResponse' '400': description: 'The resource specified doesn''t yet have a valid version for the current plan or the pending plan. (code: `deployments.resource_does_not_have_a_valid_version`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.resource_does_not_have_a_valid_version type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Remote Clusters '/deployments/{deployment_id}/elasticsearch/{ref_id}/instances/{instance_ids}/_move': post: tags: - Deployments summary: Move Elasticsearch resource instances description: Moves one or more instances belonging to the given Elasticsearch resource to a different allocator. operationId: move-deployment-elasticsearch-resource-instances parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_ids in: path description: A comma-separated list of instance identifiers. required: true schema: type: array items: type: string - name: ignore_missing in: query description: 'When `true` and the instance does not exist, proceeds to the next instance, or treats the instance as an error.' schema: type: boolean default: false - name: force_update in: query description: 'When `true`, cancels and overwrites the pending plans, or treats the instance as an error.' schema: type: boolean default: false - name: instances_down in: query description: 'When `true`, the instances specified by `instance_ids` are considered permanently shut down for data migration logic.' schema: type: boolean default: false - name: move_only in: query description: 'When `true`, moves the specified instances and ignores the changes for the cluster state.' schema: type: boolean default: true - name: force_move in: query description: 'When `true`, moves instance data at file-system level (not via Elasticsearch), and re-creates instances on target allocator(s).' schema: type: boolean default: false - name: validate_only in: query description: 'When `true`, validates the move request, then returns the calculated plan without applying the plan.' schema: type: boolean default: false requestBody: description: Overrides the default move configuration content: application/json: schema: $ref: '#/components/schemas/TransientElasticsearchPlanConfiguration' x-bodyName: body responses: '200': description: 'If `validate_only` is `true`, the calculated plan is returned' content: application/json: schema: $ref: '#/components/schemas/TransientElasticsearchPlanConfiguration' '202': description: 'The move command was issued successfully. Use the "GET" command on the /{deployment_id} resource to monitor progress' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Elasticsearch Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/elasticsearch/{ref_id}/keystore': get: tags: - Deployments summary: Get the items in the Elasticsearch resource keystore description: Fetches the current fields and metadata (but not the values) of the keystore for the Elasticsearch resource. operationId: get-deployment-es-resource-keystore parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string responses: '200': description: 'The contents of the Elasticsearch keystore, with values redacted' content: application/json: schema: $ref: '#/components/schemas/KeystoreContents' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD patch: tags: - Deployments summary: Add or remove items from the Elasticsearch resource keystore description: 'Adds the specified values to the Elasticsearch keystore, or removes the keys for the unspecified values.' operationId: set-deployment-es-resource-keystore parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: validate_only in: query description: 'When `true`, does nothing except return the entries'' allowlist and reloadability statuses.' schema: type: boolean default: false requestBody: description: The new settings that will be applied to the keystore of the Elasticsearch resource. content: application/json: schema: $ref: '#/components/schemas/KeystoreContents' required: true x-bodyName: body responses: '200': description: The new contents of the Elasticsearch keystore (or the proposed contents if validate_only is true) content: application/json: schema: $ref: '#/components/schemas/KeystoreContents' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/elasticsearch/{ref_id}/remote-clusters': get: tags: - Deployments summary: Get certificate based remote clusters description: Returns the list of certificate based remote clusters for the elasticsearch resource. operationId: get-deployment-es-resource-remote-clusters parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '200': description: List of certificate based remote clusters for the resource content: application/json: schema: $ref: '#/components/schemas/RemoteResources' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Remote Clusters put: tags: - Deployments summary: Set certificate based remote clusters description: Overwrites or creates the list of certificate based remote clusters for the elasticsearch resource. operationId: set-deployment-es-resource-remote-clusters parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string requestBody: description: List of certificate based remote clusters for the resource content: application/json: schema: $ref: '#/components/schemas/RemoteResources' required: true x-bodyName: body responses: '202': description: The Remote Clusters were updated content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Remote Clusters '/deployments/{deployment_id}/elasticsearch/{ref_id}/snapshot/repository': get: tags: - Deployments summary: List the attached snapshot repositories description: Lists all the snapshot repositories this deployment has access to. These are snapshot repositories of other deployments that have been linked to this deployment. operationId: get-deployment-es-resource-snapshot-repository parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string responses: '200': description: List of snapshot repositories for this deployment content: application/json: schema: $ref: '#/components/schemas/SnapshotRepositories' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD post: tags: - Deployments summary: Create a snapshot repository for Elasticsearch resource description: 'Important: This API is currently in Tech Preview. While available for use, it is subject to change. Creates a snapshot dependency, allowing this cluster to access snapshots from the source deployment. Currently unavailable in self-hosted ECE.' operationId: create-deployment-es-resource-snapshot-repository parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string requestBody: description: The source deployment to link snapshots from content: application/json: schema: $ref: '#/components/schemas/CreateSnapshotDependencyRequest' required: true x-bodyName: body responses: '202': description: The request was accepted and the configuration change will be processed asynchronously content: application/json: schema: $ref: '#/components/schemas/CreateSnapshotDependencyResponse' '400': description: "* Cannot create a snapshot dependency from a deployment to itself. (code: `deployments.snapshot_dependency_cannot_link_to_self`)\n* Snapshot repository linking is not currently supported in this environment (e.g. self-hosted ECE). (code: `deployments.snapshot_dependency_not_supported_in_env`)\n* The request failed validation. (code: `clusters.cluster_invalid_plan`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.snapshot_dependency_cannot_link_to_self - deployments.snapshot_dependency_not_supported_in_env - clusters.cluster_invalid_plan type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The source deployment cannot be found. (code: `deployments.snapshot_dependency_source_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_not_found - deployments.snapshot_dependency_source_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Failed to create snapshot dependency. (code: `deployments.snapshot_dependency_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.snapshot_dependency_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD x-state: Technical preview '/deployments/{deployment_id}/elasticsearch/{ref_id}/snapshot/repository/{repository_name}': delete: tags: - Deployments summary: Remove the attached snapshot repository description: Removes the attached snapshot repository. This is only possible if the repository is not in use anymore by any searchable snapshots. operationId: delete-deployment-es-resource-snapshot-repository parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: repository_name in: path description: The name of the snapshot repository to remove (e.g. _clone_abcd1234) required: true schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The snapshot repository specified by {repository_name} cannot be found. (code: `deployments.snapshot_dependency_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.snapshot_dependency_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/elasticsearch/{ref_id}/tiers': get: tags: - Deployments summary: Get Elasticsearch tiers description: 'Retrieves the current memory size, zone count, and available sizes for all enabled Elasticsearch tiers in a Deployment. Disabled tiers are excluded.' operationId: get-deployment-es-resource-tiers parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string responses: '200': description: The size configuration of all enabled Elasticsearch tiers content: application/json: schema: $ref: '#/components/schemas/TiersResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Elasticsearch Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD patch: tags: - Deployments summary: Update Elasticsearch tiers description: Updates the size and/or zone count of one or more Elasticsearch topology elements (tiers) within a Deployment. operationId: update-deployment-es-resource-tier parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string requestBody: description: A map of tier IDs to their desired configuration content: application/json: schema: $ref: '#/components/schemas/TiersUpdateRequest' required: true x-bodyName: body responses: '202': description: The tier configuration was updated and a plan change was initiated. content: application/json: schema: $ref: '#/components/schemas/DeploymentUpdateResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more tier IDs in the request body are not valid for this deployment. (code: `deployments.tier_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.tier_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/enterprise_search/{ref_id}': get: tags: - Deployments summary: Get Deployment Enterprise Search Resource Info description: Get info about an Enterprise Search Resource belonging to a given Deployment. operationId: get-deployment-enterprise-search-resource-info parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster. schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster. schema: type: boolean default: false - name: show_plan_history in: query description: Whether to include with the current and pending plan information the plan history- can be very large per cluster. schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative).' schema: type: boolean default: false - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/EnterpriseSearchResourceInfo' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Info '/deployments/{deployment_id}/heap_dumps': get: tags: - Deployments summary: Get details about heap dumps for a Deployment description: Gets details about existing heap dumps and in progress heap dump captures across all instances belonging to the deployment. operationId: get-deployment-heap-dumps parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string responses: '200': description: The heap dump details for all instances belonging to the deployment content: application/json: schema: $ref: '#/components/schemas/DeploymentHeapDumps' '404': description: 'The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/integrations_server/{ref_id}': get: tags: - Deployments summary: Get Deployment Integrations Server Resource Info description: Get info about an Integrations Server Resource belonging to a given Deployment. operationId: get-deployment-integrations-server-resource-info parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster. schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster. schema: type: boolean default: false - name: show_plan_history in: query description: Whether to include with the current and pending plan information the plan history- can be very large per cluster. schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative).' schema: type: boolean default: false - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/IntegrationsServerResourceInfo' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Info '/deployments/{deployment_id}/kibana/{ref_id}': get: tags: - Deployments summary: Get Deployment Kibana Resource Info description: Get info about a Kibana Resource belonging to a given Deployment. operationId: get-deployment-kib-resource-info parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: show_metadata in: query description: Whether to include the full cluster metadata in the response - can be large per cluster and also include credentials. schema: type: boolean default: false - name: show_plans in: query description: Whether to include the full current and pending plan information in the response - can be large per cluster. schema: type: boolean default: true - name: show_plan_logs in: query description: Whether to include with the current and pending plan information the attempt log - can be very large per cluster. schema: type: boolean default: false - name: show_plan_history in: query description: Whether to include with the current and pending plan information the plan history- can be very large per cluster. schema: type: boolean default: false - name: show_plan_defaults in: query description: 'If showing plans, whether to show values that are left at their default value (less readable but more informative).' schema: type: boolean default: false - name: convert_legacy_plans in: query description: 'If showing plans, whether to leave pre-2.0.0 plans in their legacy format (the default), or whether to update them to 2.0.x+ format (if ''true'').' schema: type: boolean default: false - name: show_settings in: query description: Whether to show cluster settings in the response. schema: type: boolean default: false - name: clear_transient in: query description: 'If set (defaults to false) then removes the transient section from all child resources, making it safe to reapply via an update' schema: type: boolean default: false responses: '200': description: Standard response. content: application/json: schema: $ref: '#/components/schemas/KibanaResourceInfo' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Info '/deployments/{deployment_id}/migrate_template': get: tags: - Deployments summary: Build request to migrate deployment to a different template description: Returns a deployment update request that would migrate this deployment to a different template. operationId: migrate-deployment-template parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: template_id in: query description: The ID of the deployment template to migrate to required: true schema: type: string - name: skip_instance_metrics_check in: query description: 'If true, will skip the instance metrics check for memory and disk usage calculations' schema: type: boolean default: false responses: '200': description: The request was valid and the deployment can be migrated to the template with the provided ID. content: application/json: schema: $ref: '#/components/schemas/DeploymentUpdateRequest' '400': description: The deployment cannot be successfully migrated to the template with the provided ID. 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 Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD '/deployments/{deployment_id}/tags': get: tags: - Deployments summary: Get the tags for a Deployment description: Returns the tags for a Deployment. operationId: get-deployment-tags parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string responses: '200': description: The deployment tags were successfully returned content: application/json: schema: $ref: '#/components/schemas/DeploymentTagsResponse' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD put: tags: - Deployments summary: Set the tags for a Deployment description: 'Sets the tags for a Deployment, replacing any existing tags.' operationId: set-deployment-tags parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string requestBody: description: The tags to set on the deployment. content: application/json: schema: $ref: '#/components/schemas/DeploymentTagsResponse' required: true x-bodyName: body responses: '200': description: The deployment tags were successfully updated content: application/json: schema: $ref: '#/components/schemas/DeploymentTagsResponse' '400': description: "* The number of tags exceeds the maximum of 64 allowed per deployment. (code: `deployments.too_many_tags`)\n* A tag key exceeds the maximum of 32 characters or a tag value exceeds the maximum of 128 characters. (code: `deployments.lengthy_key_or_value`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.too_many_tags - deployments.lengthy_key_or_value type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - CRUD '/deployments/{deployment_id}/upgrade': post: tags: - Deployments summary: Upgrade a Deployment to a new Elastic Stack version description: 'Important: This API is currently in Tech Preview. While available for use, it is subject to change. Upgrades all resources (Elasticsearch, Kibana, APM, Enterprise Search, etc.) in the deployment to the specified Elastic Stack version. Both the current deployment version and the target version must be >= 8.0.0.' operationId: upgrade-deployment parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string requestBody: description: Target version must be >= 8.0.0. content: application/json: schema: $ref: '#/components/schemas/UpgradeDeploymentRequest' required: true x-bodyName: body responses: '202': description: Deployment upgrade initiated successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: "* The specified version is invalid or not available. (code: `deployments.invalid_version`)\n* The target version must be >= 8.0.0. (code: `deployments.upgrade.target_version_must_be_above_8_0_0`)\n* The current deployment version must be >= 8.0.0. (code: `deployments.upgrade.source_version_must_be_above_8_0_0`)\n* The target version must be greater than the current deployment version. (code: `deployments.upgrade_path_not_allowed`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.invalid_version - deployments.upgrade.target_version_must_be_above_8_0_0 - deployments.upgrade.source_version_must_be_above_8_0_0 - deployments.upgrade_path_not_allowed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'A resource in the deployment has a failed last plan attempt. Resolve it before upgrading. (code: `deployments.upgrade_deployment_resource_last_plan_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.upgrade_deployment_resource_last_plan_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Failed to upgrade the deployment. (code: `deployments.upgrade_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.upgrade_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD x-state: Technical preview '/deployments/{deployment_id}/upgrade_assistant/status': get: tags: - Deployments summary: Get Deployment upgrade assistant status description: Get details about an Elasticsearch resource belonging to a given deployment. operationId: get-deployment-upgrade-assistant-status parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: target_version in: query description: 'If present, value is included in resource request to provide additional context (only supported for Kibana)' schema: type: string responses: '200': description: The Upgrade Assistant returned the status successfully content: application/json: schema: $ref: '#/components/schemas/DeploymentUpgradeAssistantStatusResponse' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Upgrade Assistant '/deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore': post: tags: - Deployments summary: Restores a shutdown resource description: Restores a shutdown resource belonging to a given Deployment. operationId: restore-deployment-resource parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: restore_snapshot in: query description: Whether or not to restore a snapshot for those resources that allow it. schema: type: boolean default: false responses: '200': description: Standard Deployment Resource Crud Response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCrudResponse' '400': description: "* The Resource does not have a pending plan. (code: `deployments.resource_does_not_have_a_pending_plan`)\n* The resource is not shut down. (code: `deployments.resource_not_shutdown`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.resource_does_not_have_a_pending_plan - deployments.resource_not_shutdown type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/{resource_kind}/{ref_id}/activity/{attempt_id}': get: tags: - Deployments summary: Get plan activity description: Retrieves details for a single plan activity for the given resource. operationId: get-deployment-resource-plan-activity parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: attempt_id in: path description: Attempt id for the activity required: true schema: type: string responses: '200': description: Returning the single plan activity for the specified resource content: application/json: schema: $ref: '#/components/schemas/CommonClusterPlanInfo' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Plan - Activity '/deployments/{deployment_id}/{resource_kind}/{ref_id}/diagnostics/_capture': post: tags: - Deployments summary: Capture diagnostics for an Elasticsearch or Kibana resource description: 'Retrieves a diagnostic bundle from an active cluster. To successfully retrieve a diagnostic bundle, the cluster must be responsive.' operationId: capture-deployment-resource-diagnostics parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource (one of elasticsearch or kibana). required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: mode in: query description: 'Capture mode - whether to obtain all the diagnostics data or the lightweight, essential-only subset of it. Applicable only to Elasticsearch, ignored for any other components which have just one capture mode implemented.' schema: enum: - full - light type: string default: full responses: '200': description: The diagnostic bundle as a zip file content: application/json: schema: type: string format: byte '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '412': description: 'The diagnostics cannot be generated because the cluster is either stopped or initializing. (code: `clusters.cluster_plan_state_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.cluster_plan_state_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Diagnostics '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_start': post: tags: - Deployments summary: Start all instances description: Starts all instances belonging to a Deployment Resource. operationId: start-deployment-resource-instances-all parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '202': description: The start command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/_stop': post: tags: - Deployments summary: Stop all instances description: Stops all instances belonging to a Deployment Resource. operationId: stop-deployment-resource-instances-all parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '202': description: The stop command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The stop maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_start': post: tags: - Deployments summary: Start maintenance mode (all instances) description: Starts maintenance mode of all instances belonging to a Deployment Resource. operationId: start-deployment-resource-instances-all-maintenance-mode parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '202': description: The start maintenance command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/maintenance-mode/_stop': post: tags: - Deployments summary: Stop maintenance mode (all instances) description: Stops maintenance mode of all instances belonging to a Deployment Resource. operationId: stop-deployment-resource-instances-all-maintenance-mode parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string responses: '202': description: The stop maintenance mode command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The stop maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/overrides': put: tags: - Deployments summary: Set size overrides description: Applies size overrides for all of the instances belonging to the given resource. Instance size overrides will be reset with the next plan change. operationId: set-all-instances-settings-overrides parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: The kind of resource. Only Elasticsearch resources are currently supported. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: restart_after_update in: query description: 'After overrides are set, restarts the instance to apply the changes.' schema: type: boolean default: false requestBody: description: 'The overrides to apply to all instances. Capacity overrides the RAM size in MB of the instance, and storage multiplier overrides the multiplier of the instance RAM size that determines the storage quota of the instance. Capacity must be in the range [1024, <>] and storage multiplier must be in the range [1.0, 1000.0].' content: application/json: schema: $ref: '#/components/schemas/InstanceOverrides' required: true x-bodyName: body responses: '200': description: The updated overrides content: application/json: schema: $ref: '#/components/schemas/InstanceOverrides' '404': description: "* The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot by found. (code: `deployments.deployment_resource_not_found`)\n* The specified override was out of range. Capacity must be in the range [1024, <>] and storage multiplier must be in the range [1.0, 1000.0]. (code: `instance_overrides.out_of_range`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - instance_overrides.out_of_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_start': post: tags: - Deployments summary: Start instances description: Starts instances belonging to a Deployment Resource. operationId: start-deployment-resource-instances parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_ids in: path description: A comma-separated list of instance identifiers. required: true schema: type: array items: type: string - name: ignore_missing in: query description: 'If true and the instance does not exist then quietly proceed to the next instance, otherwise treated as an error' schema: type: boolean default: false responses: '202': description: The start command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/_stop': post: tags: - Deployments summary: Stop instances description: Stops instances belonging to a Deployment Resource. operationId: stop-deployment-resource-instances parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_ids in: path description: A comma-separated list of instance identifiers. required: true schema: type: array items: type: string - name: ignore_missing in: query description: 'If true and the instance does not exist then quietly proceed to the next instance, otherwise treated as an error.' schema: type: boolean default: false responses: '202': description: The stop command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_start': post: tags: - Deployments summary: Start maintenance mode description: Starts maintenance mode of instances belonging to a Deployment Resource. operationId: start-deployment-resource-maintenance-mode parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_ids in: path description: A comma-separated list of instance identifiers. required: true schema: type: array items: type: string - name: ignore_missing in: query description: 'If true and the instance does not exist then quietly proceed to the next instance, otherwise treated as an error.' schema: type: boolean default: false responses: '202': description: The start maintenance command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The start maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/maintenance-mode/_stop': post: tags: - Deployments summary: Stop maintenance mode description: Stops maintenance mode of instances belonging to a Resource. operationId: stop-deployment-resource-maintenance-mode parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana, apm, or integrations_server).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_ids in: path description: A comma-separated list of instance identifiers. required: true schema: type: array items: type: string - name: ignore_missing in: query description: 'If true and the instance does not exist then quietly proceed to the next instance, otherwise treated as an error.' schema: type: boolean default: false responses: '202': description: The stop maintenance mode command was issued successfully. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '403': description: 'The stop maintenance mode command was prohibited for the given Resource. (code: `deployments.instance_update_prohibited_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.instance_update_prohibited_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances of the given resource type are missing. (code: `deployments.instances_missing_on_update_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_ids}/overrides': put: tags: - Deployments summary: Set size overrides description: Applies size overrides for the given instances belonging to the given resource. Instance size overrides will be reset with the next plan change. operationId: set-instance-settings-overrides parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: The kind of resource. Only Elasticsearch resources are currently supported. required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_ids in: path description: A comma-separated list of instance identifiers. required: true schema: type: array items: type: string - name: restart_after_update in: query description: 'After overrides are set, restarts the instance to apply the changes.' schema: type: boolean default: false - name: ignore_missing in: query description: 'When `false` and a specified instance is missing, will return an error and not update any instances. When `true` will update only existing instances and not treat a missing instance as an error.' schema: type: boolean default: false requestBody: description: 'The overrides to apply to the given instances. Capacity overrides the RAM size in MB of the instance, and storage multipler overrides the multiplier of the instance RAM size that determines the storage quota of the instance. Capacity must be in the range [1024, <>] and storage multiplier must be in the range [1.0, 1000.0].' content: application/json: schema: $ref: '#/components/schemas/InstanceOverrides' required: true x-bodyName: body responses: '200': description: The updated overrides content: application/json: schema: $ref: '#/components/schemas/InstanceOverrides' '404': description: "* The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot by found. (code: `deployments.deployment_resource_not_found`)\n* One or more instances weren't found, and `ignore_missing` is false or unspecified. (code: `deployments.instances_missing_on_update_error`)\n* The specified override was out of range. Capacity must be in the range [1024, <>] and storage multiplier must be in the range [1.0, 1000.0]. (code: `instance_overrides.out_of_range`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instances_missing_on_update_error - instance_overrides.out_of_range type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_capture': post: tags: - Deployments summary: Capture a new on-demand heap dump for the given instance description: 'Captures a new on-demand heap dump for the given instance. The capture is completed asynchronously, and you can check its progress by getting heap dumps for the given resource.' operationId: capture-deployment-instance-heap-dump parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana or apm).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_id in: path description: The instance identifier required: true schema: type: string responses: '202': description: Indicates that the capture has started content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The specified instance cannot be found. (code: `deployments.instance_not_found_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instance_not_found_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/heap_dump/_download': get: tags: - Deployments summary: Download the given instance's heap dump description: Returns the given instance's heap dump for download. operationId: download-deployment-instance-heap-dump parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana or apm).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_id in: path description: The instance identifier required: true schema: type: string responses: '200': description: The given instance's heap dump content: application/json: schema: type: string format: byte '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The specified instance cannot be found. (code: `deployments.instance_not_found_error`)\n* The specified instance does not have a heap dump available to download. (code: `heap_dumps.heap_dump_not_found`)\n* The specified instance's heap dump is not ready to download. (code: `heap_dumps.heap_dump_not_ready`)\n* The specified instance's heap dump failed to capture. (code: `heap_dumps.heap_dump_failed`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instance_not_found_error - heap_dumps.heap_dump_not_found - heap_dumps.heap_dump_not_ready - heap_dumps.heap_dump_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/instances/{instance_id}/thread_dump/_capture': post: tags: - Deployments summary: Capture a new thread dump for the given instance description: Captures a new thread dump for the given instance and returns the thread dump contents. operationId: capture-deployment-instance-thread-dump parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: resource_kind in: path description: 'The kind of resource (one of elasticsearch, kibana or apm).' required: true schema: type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: instance_id in: path description: The instance identifier required: true schema: type: string responses: '200': description: The thread dump contents content: application/json: schema: type: string format: byte '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The specified instance cannot be found. (code: `deployments.instance_not_found_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - deployments.instance_not_found_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{resource_kind}/{ref_id}/metadata/raw': post: tags: - Deployments summary: Set a Deployment's resource metadata description: "Advanced use only. Sets the internal metadata, in free-form JSON, for the resource.\nOnly use the parameter to set the modified JSON that is returned from the get version of the metadata." operationId: set-deployment-resource-raw-metadata parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: version in: query description: 'If specified, checks for conflicts against the metadata version (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string requestBody: description: The freeform JSON for the cluster (should always be based on the current version retrieved from the GET) content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: The resource metadata was successfully changed (the updated JSON is returned) 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: type: string '400': description: 'The metadata is invalid. (code: `deployments.invalid_metadata`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.invalid_metadata type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The metadata names an identity field that only a platform administrator may set. (code: `clusters.restricted_field`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.restricted_field type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '449': description: 'Please retry. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD patch: tags: - Deployments summary: Patch a Deployment's resource metadata description: Advanced use only. Patches the internal metadata with the given data. operationId: patch-deployment-resource-raw-metadata parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string requestBody: description: The data that should be patched into the metadata. content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: The resource metadata was successfully changed (the updated JSON is returned) 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: type: string '400': description: 'The metadata is invalid. (code: `deployments.invalid_metadata`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.invalid_metadata type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The metadata names an identity field that only a platform administrator may set. (code: `clusters.restricted_field`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.restricted_field type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '449': description: 'Please retry. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/{resource_kind}/{ref_id}/plan/pending': delete: tags: - Deployments summary: Cancel resource pending plan description: Cancels the pending plan of a Resource belonging to a given Deployment. operationId: cancel-deployment-resource-pending-plan parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: force_delete in: query description: 'When `true`, deletes the pending plan instead of attempting a graceful cancellation. The default is `false`.' schema: type: boolean default: false - name: ignore_missing in: query description: 'When `true`, returns successfully, even when plans are missing. The default is `false`.' schema: type: boolean default: false responses: '200': description: Standard Deployment Resource Crud Response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCrudResponse' '400': description: 'The Resource does not have a pending plan. (code: `deployments.resource_does_not_have_a_pending_plan`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.resource_does_not_have_a_pending_plan type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Vacate plans can only be cancelled by platform administrators. (code: `deployments.vacate_plan_cancellation_restricted`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.vacate_plan_cancellation_restricted type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/{resource_kind}/{ref_id}/proxy/{proxy_path}': get: tags: - Deployments summary: Proxy HTTP GET request description: 'Proxies the HTTP GET request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance.' operationId: get-deployment-resource-proxy-requests parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: proxy_path in: path description: 'The URL part to proxy to the deployment resource. Example: _cat/indices, /api/spaces/space or /api/ent/v1/internal/health' required: true schema: type: string - name: X-Management-Request in: header description: 'You must specify the `X-Management-Request` HTTP header with value `true`. NOTE: Use this endpoint for management purposes. It does not provide high performance.' required: true schema: type: string requestBody: description: The JSON payload to proxy to the deployment resource. content: application/text: schema: type: string application/json: schema: type: string application/x-ndjson: schema: type: string x-bodyName: body responses: '200': description: The request has been processed successfully through the proxy. content: application/octet-stream: schema: $ref: '#/components/schemas/GenericResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - clusters.cluster_not_found type: string content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - Proxy post: tags: - Deployments summary: Proxy HTTP POST request description: 'Proxies the HTTP POST request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance.' operationId: post-deployment-resource-proxy-requests parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: proxy_path in: path description: 'The URL part to proxy to the deployment resource. Example: _cat/indices, /api/spaces/space or /api/ent/v1/internal/health' required: true schema: type: string - name: X-Management-Request in: header description: 'You must specify the `X-Management-Request` HTTP header with value `true`. NOTE: Use this endpoint for management purposes. It does not provide high performance.' required: true schema: type: string requestBody: description: The JSON payload to proxy to the deployment resource. content: application/text: schema: type: string application/json: schema: type: string application/x-ndjson: schema: type: string x-bodyName: body responses: '200': description: The request has been processed successfully through the proxy. content: application/octet-stream: schema: $ref: '#/components/schemas/GenericResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - clusters.cluster_not_found type: string content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - Proxy put: tags: - Deployments summary: Proxy HTTP PUT request description: 'Proxies the HTTP PUT request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance.' operationId: put-deployment-resource-proxy-requests parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: proxy_path in: path description: 'The URL part to proxy to the deployment resource. Example: _cat/indices, /api/spaces/space or /api/ent/v1/internal/health' required: true schema: type: string - name: X-Management-Request in: header description: 'You must specify the `X-Management-Request` HTTP header with value `true`. NOTE: Use this endpoint for management purposes. It does not provide high performance.' required: true schema: type: string requestBody: description: The JSON payload to proxy to the deployment resource. content: application/text: schema: type: string application/json: schema: type: string application/x-ndjson: schema: type: string x-bodyName: body responses: '200': description: The request has been processed successfully through the proxy. content: application/octet-stream: schema: $ref: '#/components/schemas/GenericResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - clusters.cluster_not_found type: string content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - Proxy delete: tags: - Deployments summary: Proxy HTTP DELETE request description: 'Proxies the HTTP DELETE request to the deployment resource. You must specify the `X-Management-Request` HTTP header. NOTE: Use this endpoint for management purposes. It does not provide high performance.' operationId: delete-deployment-resource-proxy-requests parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string - name: proxy_path in: path description: 'The URL part to proxy to the deployment resource. Example: _cat/indices, /api/spaces/space or /api/ent/v1/internal/health' required: true schema: type: string - name: X-Management-Request in: header description: 'You must specify the `X-Management-Request` HTTP header with value `true`. NOTE: Use this endpoint for management purposes. It does not provide high performance.' required: true schema: type: string requestBody: description: The JSON payload to proxy to the deployment resource. content: application/text: schema: type: string application/json: schema: type: string application/x-ndjson: schema: type: string x-bodyName: body responses: '200': description: The request has been processed successfully through the proxy. content: application/octet-stream: schema: $ref: '#/components/schemas/GenericResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `clusters.cluster_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found - clusters.cluster_not_found type: string content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - Proxy '/deployments/{deployment_id}/{resource_kind}/{ref_id}/user_settings': get: tags: - Deployments summary: Get the user settings of a Deployment resource description: Retrieves the current user-defined settings for a resource belonging to a given Deployment. operationId: get-deployment-resource-user-settings parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string responses: '200': description: The current user-defined settings for the resource content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceUserSettingsResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.metadata_internal_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.metadata_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD put: tags: - Deployments summary: Update user settings for a deployment resource description: Replaces the component-level user-defined settings for the specified resource kind in the deployment. All existing component-level user settings are overwritten with the provided values. Submitting an empty object will remove all component-level user settings for the resource. This endpoint does not support tier/topology-level user settings overrides. operationId: update-deployment-resource-user-settings parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: resource_kind in: path description: The kind of resource required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string requestBody: description: The user settings to apply to the deployment resource. Replaces all existing user settings. content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceUserSettings' required: true x-bodyName: body responses: '202': description: The updated user settings for the deployment resource content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceUserSettings' '400': description: "* Plan or user settings validation failed. (code: `clusters.cluster_invalid_plan`)\n* The deployment plan could not be applied; see the error message. (code: `user_settings.update_failed`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.cluster_invalid_plan - user_settings.update_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}': delete: tags: - Deployments summary: Delete Stateless Resource from Deployment description: Delete Stateless Resource belonging to a given Deployment. Deployment must be shutdown already. operationId: delete-deployment-stateless-resource parameters: - name: deployment_id in: path description: Identifier for the Deployment required: true schema: type: string - name: stateless_resource_kind in: path description: The kind of stateless resource required: true schema: enum: - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one) required: true schema: type: string responses: '200': description: Standard Deployment Resource Crud Response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCrudResponse' '400': description: 'Resource has still instances. (code: `deployments.resource_has_instances`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.resource_has_instances type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment Resources - CRUD '/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_restart': post: tags: - Deployments summary: Restart Deployment Stateless Resource description: 'Restarts a Stateless Resource. If a Resource is active: this command re-applies the existing plan but applies a "cluster_reboot", which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan.' operationId: restart-deployment-stateless-resource parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: stateless_resource_kind in: path description: The kind of stateless resource required: true schema: enum: - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: cancel_pending in: query description: 'If true, cancels any pending plans before restarting. If false and there are pending plans, returns an error.' schema: type: boolean default: false responses: '202': description: The restart command was issued successfully content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '422': description: 'The command sent to a Resource found the Resource in an illegal state, the error message gives more details. (code: `deployments.deployment_resource_plan_change_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_plan_change_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands '/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}/_shutdown': post: tags: - Deployments summary: Shutdown Deployment Stateless Resource description: "Shut down Stateless Resource belonging to a given Deployment.\nKibana cannot be shut down on Elasticsearch Service as it is required for Elasticsearch administrative functions, such as Snapshot Lifecycle Management and version upgrades." operationId: shutdown-deployment-stateless-resource parameters: - name: deployment_id in: path description: Identifier for the Deployment. required: true schema: type: string - name: stateless_resource_kind in: path description: The kind of stateless resource required: true schema: enum: - kibana - apm - appsearch - enterprise_search - integrations_server type: string - name: ref_id in: path description: User-specified RefId for the Resource (or '_main' if there is only one). required: true schema: type: string - name: hide in: query description: Hide cluster on shutdown. Hidden clusters are not listed by default. Only applicable for Platform administrators. schema: type: boolean - name: skip_snapshot in: query description: 'If true, will skip taking a snapshot of the cluster before shutting the cluster down (if even possible)' schema: type: boolean default: false responses: '200': description: Standard response content: application/json: schema: $ref: '#/components/schemas/DeploymentResourceCommandResponse' '400': description: 'Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.restricted_parameter type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)\n* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_not_found - deployments.deployment_resource_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - deployments.deployment_resource_no_longer_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Deployment - Commands /organizations: get: tags: - Organizations - IamService summary: List organizations description: Fetch organizations available to the current user. Currently unavailable in self-hosted ECE. operationId: list-organizations responses: '200': description: Organizations fetched successfully content: application/json: schema: $ref: '#/components/schemas/OrganizationList' '401': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/invitations/{invitation_token}': get: tags: - Organizations - IamService summary: Get organization invitation description: Gets a single invitation to an organization by token. Currently unavailable in self-hosted ECE. operationId: get-organization-invitation parameters: - name: invitation_token in: path description: Organization invitation token required: true schema: type: string responses: '200': description: Organization invitation fetched successfully content: application/json: schema: $ref: '#/components/schemas/OrganizationInvitation' '404': description: 'Invitation not found. (code: `organization.invitation_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invitation_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}': get: tags: - Organizations - IamService summary: Fetch organization information description: Fetch a single organization by id. Currently unavailable in self-hosted ECE. operationId: get-organization parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: Organization fetched successfully content: application/json: schema: $ref: '#/components/schemas/Organization' '401': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations put: tags: - Organizations - IamService summary: Update organization description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nUpdates an existing organization. Currently unavailable in self-hosted ECE." operationId: update-organization parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The organization to update content: application/json: schema: $ref: '#/components/schemas/OrganizationRequest' required: true x-bodyName: body responses: '200': description: Organization updated successfully content: application/json: schema: $ref: '#/components/schemas/Organization' '400': description: "* Name must be between 2 and 30 characters. (code: `organization.invalid_name`)\n* User already has an organization. (code: `organization.user_organization_already_exists`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_name - organization.user_organization_already_exists type: string 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' '403': description: 'The current user does not have access to the requested organization. (code: `organization.invalid_access`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invalid_access type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/domains': get: tags: - Organizations - IamService summary: Get domain claims description: Get domain claims for the organization. operationId: domain-claim-get-domain-claims parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: The claimed domains for the organization content: application/json: schema: $ref: '#/components/schemas/GetOrganizationClaimedDomainsResponse' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: IamService delete: tags: - Organizations - IamService summary: Delete domain claim description: Delete domain claim. operationId: domain-claim-delete parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The domain claim to remove content: application/json: schema: $ref: '#/components/schemas/DeleteDomainClaimRequest' required: true x-bodyName: body responses: '200': description: With status 200 ok to signal the domain has been unclaimed content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'An IdP is configured for the organization. (code: `org.idp.idp_configured`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.idp.idp_configured type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Concurrent organization modification. (code: `org.domain_claim.concurrent_organization_modification`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.domain_claim.concurrent_organization_modification type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: IamService '/organizations/{organization_id}/domains/_generate_verification_code': post: tags: - Organizations - IamService summary: Generate verification code description: Generate verification code for the domain claim challenge. operationId: domain-claim-generate-verification-code parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The verification code request content: application/json: schema: $ref: '#/components/schemas/VerificationCodeRequest' required: true x-bodyName: body responses: '200': description: The verification code response content: application/json: schema: $ref: '#/components/schemas/VerificationCodeResponse' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: IamService '/organizations/{organization_id}/domains/_verify': post: tags: - Organizations - IamService summary: Verify domain claim description: Verify domain claim challenge. operationId: domain-claim-verify-domain parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The verification code request content: application/json: schema: $ref: '#/components/schemas/DomainVerificationRequest' required: true x-bodyName: body responses: '200': description: With status 200 ok to signal the domain has been claimed content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'Domain claim already exists. (code: `org.domain_claim.already_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.domain_claim.already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Concurrent organization modification. (code: `org.domain_claim.concurrent_organization_modification`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.domain_claim.concurrent_organization_modification type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '449': description: 'The challenge can not be verified at the moment, please retry later' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' x-doc: tag: IamService '/organizations/{organization_id}/idp': get: tags: - Organizations - IamService summary: Get organization IdP description: Gets the oranization's IdP. Currently unavailable in self-hosted ECE. operationId: get-organization-idp parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: The IdP info content: application/json: schema: $ref: '#/components/schemas/OrganizationIdp' '404': description: 'IdP was not configured yet. (code: `org.idp.idp_not_configured`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.idp.idp_not_configured type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations put: tags: - Organizations - IamService summary: Setup organization IdP description: Sets up an organization's IdP. Currently unavailable in self-hosted ECE. operationId: setup-organization-idp parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The IdP configuration content: application/json: schema: $ref: '#/components/schemas/IdpConfigurationRequest' required: true x-bodyName: body responses: '200': description: The IdP info content: application/json: schema: $ref: '#/components/schemas/OrganizationIdp' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations delete: tags: - Organizations - IamService summary: Tear down organization IdP description: Tear down up an organization's IdP. Currently unavailable in self-hosted ECE. operationId: teardown-organization-idp parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: The IdP was successfully removed content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'Organization IdP not configured. (code: `org.idp.idp_not_configured`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.idp.idp_not_configured type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/idp/metadata.xml': get: tags: - Organizations - IamService summary: Get organization service provider SAML2 metadata.xml for configuring the identity provider description: Gets the oranization's IdP metadata.xml. Currently unavailable in self-hosted ECE. operationId: get-organization-idp-metadata parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: The IdP info content: application/xml: schema: type: string '404': description: 'IdP was not configured yet. (code: `org.idp.idp_not_configured`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.idp.idp_not_configured type: string content: application/xml: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/invitations': get: tags: - Organizations - IamService summary: List organization invitations description: Fetch open invitations to the selected organization. Currently unavailable in self-hosted ECE. operationId: list-organization-invitations parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: Organization invitations fetched successfully content: application/json: schema: $ref: '#/components/schemas/OrganizationInvitations' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations post: tags: - Organizations - IamService summary: Create organization invitations description: Creates or refreshes organization invitations. Currently unavailable in self-hosted ECE. operationId: create-organization-invitations parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The organization invitations to create or refresh content: application/json: schema: $ref: '#/components/schemas/OrganizationInvitationRequest' required: true x-bodyName: body responses: '201': description: Organization invitations created successfully content: application/json: schema: $ref: '#/components/schemas/OrganizationInvitations' '400': description: "* Invitation email was not valid. (code: `organization.invitation_invalid_email`)\n* Invitation already sent. (code: `organization.invitation_already_exists`)\n* User already belongs to organization. (code: `organization.user_organization_already_belongs`)\n* Request exceeds maximum pending invitations per organization. (code: `organization.invitations_pending_limit_exceeded`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invitation_invalid_email - organization.invitation_already_exists - organization.user_organization_already_belongs - organization.invitations_pending_limit_exceeded type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The current user authentication is not valid. (code: `root.invalid_authentication`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.invalid_authentication type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* Organization not found. (code: `organization.not_found`)\n* User not found. (code: `user.not_found`)\n* Invitation sender does not belong to organization. (code: `organization.user_organization_does_not_belong`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found - user.not_found - organization.user_organization_does_not_belong type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '429': description: 'Request exceeds organization invitation creation rate limits. (code: `organization.invitations_rate_limit_exceeded`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.invitations_rate_limit_exceeded type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/invitations/{invitation_tokens}': delete: tags: - Organizations - IamService summary: Delete organization invitations description: Deletes one or more organization invitations. Currently unavailable in self-hosted ECE. operationId: delete-organization-invitations parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string - name: invitation_tokens in: path description: CSV list of Invitation tokens required: true schema: type: string responses: '200': description: Organization invitations deleted successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'No valid invitation token was supplied. (code: `root.invalid_data`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.invalid_data type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* Organization not found. (code: `organization.not_found`)\n* Invitation not found. (code: `organization.invitation_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found - organization.invitation_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/members': get: tags: - Organizations - IamService summary: List organization members description: Fetch users belonging to the selected organization. Currently unavailable in self-hosted ECE. operationId: list-organization-members parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: Organization members fetched successfully content: application/json: schema: $ref: '#/components/schemas/OrganizationMemberships' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/members/{user_ids}': delete: tags: - Organizations - IamService summary: Delete organization memberships description: Deletes one or more organization memberships. Currently unavailable in self-hosted ECE. operationId: delete-organization-memberships parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string - name: user_ids in: path description: CSV list of User identifiers required: true schema: type: string - name: force in: query description: Whether or not to force the removal of Org memberships (effective only for Platform Admins) schema: type: boolean default: false responses: '200': description: Organization membership deleted successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: "* User not found. (code: `user.not_found`)\n* Organization not found. (code: `organization.not_found`)\n* Organization membership not found. (code: `organization.membership_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found - organization.not_found - organization.membership_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/role_mappings': get: tags: - Organizations - IamService summary: Get role mappings description: Gets the organization role mappings. Currently unavailable in self-hosted ECE. operationId: get-role-mappings parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: The IdP info content: application/json: schema: $ref: '#/components/schemas/GetRoleMappingsResponse' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations post: tags: - Organizations - IamService summary: Adds role mapping description: Adds the role assignments applicable when logging via SSO. Currently unavailable in self-hosted ECE. operationId: add-role-mappings-individually parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The role mappings to add content: application/json: schema: $ref: '#/components/schemas/AddRoleMappingRequest' required: true x-bodyName: body responses: '201': description: An empty response content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: "* Invalid rule. (code: `org.role_mapping_rule.ambiguous_rule`)\n* Empty rule. (code: `org.role_mapping_rule.empty_rule`)\n* Validation error. (code: `org.role_mapping_rule.syntax_error`)\n* Validation error. (code: `org.role_mapping_rule.email_syntax_error`)\n* Validation error. (code: `org.role_mapping_rule.too_many_role_mappings`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.role_mapping_rule.ambiguous_rule - org.role_mapping_rule.empty_rule - org.role_mapping_rule.syntax_error - org.role_mapping_rule.email_syntax_error - org.role_mapping_rule.too_many_role_mappings type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations put: tags: - Organizations - IamService summary: Updates role mappings description: Updates the role assignments applicable when logging via SSO. Currently unavailable in self-hosted ECE. operationId: update-role-mappings parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string requestBody: description: The role mappings to update content: application/json: schema: $ref: '#/components/schemas/UpdateOrganizationRoleMappingRequest' required: true x-bodyName: body responses: '200': description: An empty response content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: "* Invalid rule. (code: `org.role_mapping_rule.ambiguous_rule`)\n* Empty rule. (code: `org.role_mapping_rule.empty_rule`)\n* Validation error. (code: `org.role_mapping_rule.syntax_error`)\n* Validation error. (code: `org.role_mapping_rule.email_syntax_error`)\n* Validation error. (code: `org.role_mapping_rule.too_many_role_mappings`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.role_mapping_rule.ambiguous_rule - org.role_mapping_rule.empty_rule - org.role_mapping_rule.syntax_error - org.role_mapping_rule.email_syntax_error - org.role_mapping_rule.too_many_role_mappings type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations delete: tags: - Organizations - IamService summary: Delete role mappings description: Deletes the organization role mappings. Currently unavailable in self-hosted ECE. operationId: delete-role-mappings parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string responses: '200': description: The mappings were successfully deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/role_mappings/{role_names}': delete: tags: - Organizations - IamService summary: Delete role mapping description: Deletes the organization role mapping. Currently unavailable in self-hosted ECE. operationId: delete-role-mappings-individually parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string - name: role_names in: path description: Comma separated list of role names required: true schema: type: string responses: '200': description: The mappings were successfully deleted content: application/json: schema: $ref: '#/components/schemas/DeleteRoleMappingsResponse' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations '/organizations/{organization_id}/role_mappings/{role_name}': put: tags: - Organizations - IamService summary: Update role mapping description: Updates an existing role mapping by name. Currently unavailable in self-hosted ECE. operationId: update-role-mapping parameters: - name: organization_id in: path description: Identifier for the Organization required: true schema: type: string - name: role_name in: path description: Role name required: true schema: type: string requestBody: description: The updated role mapping content: application/json: schema: $ref: '#/components/schemas/UpdateRoleMappingRequest' required: true x-bodyName: body responses: '200': description: The updated role mapping content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'Invalid rule. (code: `org.role_mapping_rule.ambiguous_rule`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.role_mapping_rule.ambiguous_rule type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Role mapping not found. (code: `org.role_mapping_rule.role_mapping_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - org.role_mapping_rule.role_mapping_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Organizations /phone-home/config: get: tags: - Telemetry summary: Get ECE telemetry config description: Returns whether ECE telemetry is enabled. operationId: get-telemetry-config responses: '200': description: The current ECE telemetry configuration content: application/json: schema: $ref: '#/components/schemas/TelemetryConfig' '403': description: 'User must have Platform level permissions. (code: `root.unauthorized.rbac`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized.rbac type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Telemetry put: tags: - Telemetry summary: Set ECE telemetry config description: Sets whether to enable ECE telemetry. operationId: set-telemetry-config requestBody: description: The desired ECE telemetry configuration content: application/json: schema: $ref: '#/components/schemas/TelemetryConfigRequest' required: true x-bodyName: body responses: '200': description: Telemetry configuration updated successfully content: application/json: schema: $ref: '#/components/schemas/TelemetryConfig' '403': description: 'User must have Platform level permissions. (code: `root.unauthorized.rbac`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized.rbac type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The telemetry configuration did not exist so there was an attempt to create one. Another request resulted in the creation of a telemetry configuration before this request completed, resulting in the failure of this request to create a configuration. Please retry. (code: `telemetry.already_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - telemetry.already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'Failed to set the configuration due to an internal server error. (code: `telemetry.request_execution_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - telemetry.request_execution_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Telemetry /platform: get: tags: - Platform summary: Get platform info description: Retrieves information about the active platform. operationId: get-platform responses: '200': description: The platform information is retrieved. content: application/json: schema: $ref: '#/components/schemas/PlatformInfo' x-doc: tag: Platform /platform/configuration/api_base_url: get: tags: - PlatformInfrastructure summary: Get API base Url description: Gets the API base Url configuration value. operationId: get-api-base-url responses: '200': description: The API base Url was successfully retrieved 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/ApiBaseUrlData' '404': description: 'There is no configured API base value but optimistic locking was sent. (code: `adminconsole.base_url.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsole.base_url.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '500': description: 'The persisted Url is malformed. (code: `adminconsole.base_url.invalid_persisted_data`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsole.base_url.invalid_persisted_data type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: API - Base Url put: tags: - PlatformInfrastructure summary: Set API base Url description: Saves the API base Url configuration value. operationId: set-api-base-url parameters: - 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). If not specified, will unconditionally upsert.' schema: type: string - name: skip_cascading_operations in: query description: 'Whether or not to skip cascading operations, such as re-provisioning the Security Deployment.' schema: type: boolean default: false requestBody: description: Data containing the base Url to set content: application/json: schema: $ref: '#/components/schemas/ApiBaseUrlData' required: true x-bodyName: body responses: '200': description: The API base Url was successfully saved. 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/ApiBaseUrlData' '400': description: 'The optimistic locking version format was wrong. (code: `adminconsole.base_url.bad_version_format`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsole.base_url.bad_version_format type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'There is no configured API base value but optimistic locking was sent. (code: `adminconsole.base_url.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsole.base_url.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There was an optimistic locking version conflict. (code: `adminconsole.base_url.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsole.base_url.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '412': description: 'skip_cascading_operations was false but the Security Deployment already had a pending plan. (code: `security_deployment.cluster_pending_plan_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.cluster_pending_plan_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: API - Base Url /platform/configuration/instances: get: tags: - PlatformConfigurationInstances summary: Get instance configurations description: Get instance configurations. operationId: get-instance-configurations parameters: - name: show_deleted in: query description: 'If true, instance configurations marked for deletions are also returned. Otherwise, only instance configurations not marked for deletion are returned' schema: type: boolean - name: show_max_zones in: query description: 'If true, will populate the max_zones field of the instance configurations.' schema: type: boolean default: false - name: include_versions in: query description: 'If true, will return all existing versions of each instance configuration.' schema: type: boolean default: false responses: '200': description: A InstanceConfiguration content: application/octet-stream: schema: type: array items: $ref: '#/components/schemas/InstanceConfiguration' x-doc: tag: Platform - Configuration - Instances - CRUD post: tags: - PlatformConfigurationInstances summary: Create instance configuration description: Create instance configuration and return the auto-generated ID. operationId: create-instance-configuration requestBody: description: the Instance Configuration content: application/json: schema: $ref: '#/components/schemas/InstanceConfiguration' required: true x-bodyName: instance responses: '201': description: Instance Configuration added with the auto generated ID returned content: application/octet-stream: schema: $ref: '#/components/schemas/VersionedIdResponse' '400': description: 'cluster_type in the InstanceConfiguration model is invalid (code: ''configuration.invalid_cluster_type'') or the discrete_sizes in the InstanceConfiguration model is invalid (code: ''configuration.invalid_discrete_sizes'') or the metadata in the InstanceConfiguration model has empty keys or values (code: ''configuration.bad_meta_data'') ' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'system_owned or deleted_on cannot be set externally (code: ''configuration.system_owned'') ' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Instances - CRUD '/platform/configuration/instances/{id}': get: tags: - PlatformConfigurationInstances summary: Get instance configuration description: Get instance configuration by id. operationId: get-instance-configuration parameters: - name: id in: path description: ID of the instance configuration required: true schema: type: string - name: config_version in: query description: Optionally retrieve the specified config version of the IC (otherwise retrieves the latest/only version) schema: type: integer - name: show_deleted in: query description: 'If true, if the instance configuration has been marked for deletion it is still returned. Otherwise, instance configurations marked for deletion generate a 404' schema: type: boolean - name: show_max_zones in: query description: 'If true, will populate the max_zones field of the instance configuration.' schema: type: boolean default: false responses: '200': description: An InstanceConfiguration content: application/octet-stream: schema: $ref: '#/components/schemas/InstanceConfiguration' '404': description: 'Instance configuration specified by {id} cannot be found (code: ''configuration.instance_configuration_not_found'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Instances - CRUD put: tags: - PlatformConfigurationInstances summary: Set instance configuration description: Creates or updates an instance configuration. operationId: set-instance-configuration parameters: - name: id in: path description: ID of the instance configuration required: true schema: type: string - name: version in: query description: 'This is a database-level field, not related to the application-level ''config_version'', except as described in the following docs. If specified, checks for conflicts against ''x-cloud-resource-version'' from the GET request (where the ''config_version'' in the GET should match the the ''configuration_version'' in the PUT body if the IC is configuration controlled).' schema: type: integer - name: config_control in: query description: 'If true, then an update that changes immutable fields will create a new version of the IC (leaving the previous ones accessible via ''config_version''). Otherwise such updates will fail.' schema: type: boolean - name: test_config in: query description: 'If true, The IC is added as a test version (set ''instance_config_version'': -1 in the deployment request to reference), leaving the existing IC alone. Will error if the IC doesn''t already exist.' schema: type: boolean - name: strict_mode in: query description: 'If true, then allocator_filter and storage_multiplier cannot be changed in an existing IC. Defaults to false unless config_control is true (in which case a new version is created)' schema: type: boolean - name: create_only in: query description: 'If true, will fail if an instance configuration already exists at the given id' schema: type: boolean requestBody: description: the Instance Configuration content: application/json: schema: $ref: '#/components/schemas/InstanceConfiguration' required: true x-bodyName: instance responses: '200': description: The instance configuration was updated successfully. content: application/octet-stream: schema: $ref: '#/components/schemas/VersionedIdResponse' '201': description: The instance configuration was created successfully. content: application/octet-stream: schema: $ref: '#/components/schemas/VersionedIdResponse' '400': description: 'cluster_type in the InstanceConfiguration model is invalid (code: ''configuration.invalid_cluster_type'') or the ZooKeeper operation failed due to bad version, etc. (code: ''configuration.instance_configuration_update_failed'') or the id in the InstanceConfiguration model is reserved/prohibited (code: ''configuration.configuration_id_reserved'') or the discrete_sizes in the InstanceConfiguration model is invalid (code: ''configuration.invalid_discrete_sizes'') or the metadata in the InstanceConfiguration model has empty keys or values (code: ''configuration.bad_meta_data'') ' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'system_owned or deleted_on cannot be set externally (code: ''configuration.system_owned'') ' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Instance configuration specified by {id} cannot be found or the operation failed (code: ''configuration.instance_configuration_not_found'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Instances - CRUD delete: tags: - PlatformConfigurationInstances summary: Delete a instance configuration description: Delete the instance configuration with the given id. operationId: delete-instance-configuration parameters: - name: id in: path description: ID of the instance configuration required: true schema: type: string - name: version in: query description: 'This is a database-level field, not related to the application-level ''config_version'', except as described in the following docs. If specified, checks for conflicts against ''x-cloud-resource-version'' from the GET request (the GET''s ''config_version'' should be left blank if the IC is configuration controlled, ie to get the latest configuration)' schema: type: integer - name: only_test_version in: query description: 'If true, the testing version (version -1) will be permanently deleted but the latest IC version will remain untouched. Defaults to false' schema: type: boolean responses: '200': description: 'Instance configuration specified by {id} was deleted' content: application/octet-stream: schema: $ref: '#/components/schemas/EmptyResponse' '403': description: 'Instance configuration specified by {id} is system owned (code: ''configuration.system_owned'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Instance configuration specified by {id} cannot be found or the operation failed (code: ''configuration.instance_configuration_not_found'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Instances - CRUD /platform/configuration/networking/deployment_domain_name: get: tags: - PlatformConfigurationNetworking summary: Get default Deployment Domain Name description: Gets the default Deployment Domain Name configuration value. operationId: get-default-deployment-domain-name responses: '200': description: The Deployment Domain Name was successfully retrieved 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/DeploymentDomainName' '404': description: 'There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Networking - Deployment Domain Names put: tags: - PlatformConfigurationNetworking summary: Set default Deployment Domain Name description: Saves the default Deployment Domain Name configuration value. operationId: set-default-deployment-domain-name parameters: - 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). If not specified, will unconditionally upsert.' schema: type: string - name: skip_cascading_operations in: query description: 'Whether or not to skip cascading operations, such as re-provisioning the Security Deployment.' schema: type: boolean default: false requestBody: description: Data containing the Deployment Domain Name to set content: application/json: schema: $ref: '#/components/schemas/DeploymentDomainName' required: true x-bodyName: body responses: '200': description: The Deployment Domain Name was successfully saved. 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/DeploymentDomainName' '400': description: 'The optimistic locking version format was wrong. (code: `networking.cname.bad_version_format`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.bad_version_format type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There was an optimistic locking version conflict. (code: `networking.cname.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '412': description: 'skip_cascading_operations was false but the Security Deployment already had a pending plan. (code: `security_deployment.cluster_pending_plan_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.cluster_pending_plan_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Networking - Deployment Domain Names '/platform/configuration/networking/deployment_domain_name/{resource_kind}': get: tags: - PlatformConfigurationNetworking summary: Get Deployment Domain Name for a resource kind description: Gets Deployment Domain Name configuration value for a resource kind. operationId: get-resource-kind-deployment-domain-name parameters: - name: resource_kind in: path description: The kind of resource you want to manage a Deployment Domain Name for. required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server type: string responses: '200': description: The Deployment Domain Name was successfully retrieved 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/DeploymentDomainName' '404': description: 'There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Networking - Deployment Domain Names put: tags: - PlatformConfigurationNetworking summary: Set Deployment Domain Name for a resource kind. description: Saves the Deployment Domain Name configuration value for a resource kind. operationId: set-resource-kind-deployment-domain-name parameters: - name: resource_kind in: path description: The kind of resource you want to manage a Deployment Domain Name for. required: true schema: enum: - elasticsearch - kibana - apm - appsearch - enterprise_search - integrations_server 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). If not specified, will unconditionally upsert.' schema: type: string - name: skip_cascading_operations in: query description: 'Whether or not to skip cascading operations, such as re-provisioning the Security Deployment.' schema: type: boolean default: false requestBody: description: Data containing the Deployment Domain Name to set content: application/json: schema: $ref: '#/components/schemas/DeploymentDomainName' required: true x-bodyName: body responses: '200': description: The Deployment Domain Name was successfully saved. 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/DeploymentDomainName' '400': description: 'The optimistic locking version format was wrong. (code: `networking.cname.bad_version_format`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.bad_version_format type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'There is no configured Deployment Domain Name but optimistic locking was sent. (code: `networking.cname.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There was an optimistic locking version conflict. (code: `networking.cname.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - networking.cname.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '412': description: 'skip_cascading_operations was false but the Security Deployment already had a pending plan. (code: `security_deployment.cluster_pending_plan_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.cluster_pending_plan_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Networking - Deployment Domain Names /platform/configuration/security/deployment: get: tags: - PlatformConfigurationSecurity summary: Get current security deployment description: Retrieves the current security deployment. operationId: get-security-deployment responses: '200': description: The security deployment was successfully returned 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/SecurityDeployment' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_deployment.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Deployment post: tags: - PlatformConfigurationSecurity summary: Create security deployment description: Creates a new security deployment configuration. operationId: create-security-deployment requestBody: description: The deployment request content: application/json: schema: $ref: '#/components/schemas/SecurityDeploymentCreateRequest' required: true x-bodyName: body responses: '201': description: The security deployment was successfully 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/IdResponse' '409': description: "* There is a version conflict. (code: `security_deployment.version_conflict`)\n* There is a version conflict. (code: `security_deployment.already_exists`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.version_conflict - security_deployment.already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Deployment put: tags: - PlatformConfigurationSecurity summary: Update security deployment description: Updates an existing security deployment configuration. operationId: update-security-deployment requestBody: description: The update request content: application/json: schema: $ref: '#/components/schemas/SecurityDeploymentUpdateRequest' required: true x-bodyName: body responses: '200': description: The security deployment was successfully 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/IdResponse' '404': description: 'The security deployment was not found. (code: `security_deployment.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: "* There is a version conflict. (code: `security_deployment.version_conflict`)\n* There is a version conflict. (code: `security_deployment.already_exists`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_deployment.version_conflict - security_deployment.already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Deployment /platform/configuration/security/enrollment-tokens: get: tags: - PlatformConfigurationSecurity summary: Get enrollment tokens description: Retrieves a list of active enrollment tokens. operationId: get-enrollment-tokens responses: '200': description: A token has been generated that can be used to start new servers with the requested roles content: application/octet-stream: schema: $ref: '#/components/schemas/ListEnrollmentTokenReply' x-doc: tag: Platform - Configuration - Security post: tags: - PlatformConfigurationSecurity summary: Create enrollment token description: Creates an enrollment token. operationId: create-enrollment-token requestBody: description: Request parameters for the enrollment token content: application/json: schema: $ref: '#/components/schemas/EnrollmentTokenRequest' required: true x-bodyName: body responses: '200': description: A token has been generated that can be used to start new servers with the requested roles content: application/octet-stream: schema: $ref: '#/components/schemas/RequestEnrollmentTokenReply' '400': description: 'The token request format was invalid, details in the error (code: ''enrollment_tokens.invalid_token_request'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'No signing key is available to generate a token (code: ''enrollment_tokens.signing_key_not_found'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security '/platform/configuration/security/enrollment-tokens/{token}': delete: tags: - PlatformConfigurationSecurity summary: Delete enrollment token description: Revokes and deletes the enrollment token. operationId: delete-enrollment-token parameters: - name: token in: path description: The token or token identifier to revoke. required: true schema: type: string responses: '200': description: The supplied token has been revoked and can no longer be used to start services on new servers content: application/octet-stream: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'Token not found (code: ''enrollment_tokens.invalid_token_id'')' content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security /platform/configuration/security/extra_certs: get: tags: - Platform summary: List extra certificates description: List all of the extra certificates. operationId: get-extra-certificates responses: '200': description: The collection of all available extra certificates public chains content: application/json: schema: $ref: '#/components/schemas/PublicCertChainCollection' x-doc: tag: Platform - Configuration - Security - Extra Certificates - CRUD '/platform/configuration/security/extra_certs/{cert_id}': get: tags: - Platform summary: Read extra certificate description: Read an extra certificate. operationId: get-extra-certificate parameters: - name: cert_id in: path description: 'The extra certificate Id. For example, `star_my_domain_com`.' required: true schema: type: string responses: '200': description: Extra certificate public chain if exists content: application/json: schema: $ref: '#/components/schemas/PublicCertChain' '404': description: 'The extra certificate cannot be found. (code: `cert.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - cert.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security - Extra Certificates - CRUD put: tags: - Platform summary: Update extra certificate description: Add or update an extra certificate. operationId: set-extra-certificate parameters: - name: cert_id in: path description: 'The extra certificate Id. For example, `star_my_domain_com`.' required: true schema: type: string requestBody: description: Extra certificate bundle content: application/text: schema: type: string required: true x-bodyName: body responses: '200': description: Updates extra certificate under given id content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'Certificate uses unknown cryptographic algorithm. (code: `cert.unknown_cert_algorithm`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - cert.unknown_cert_algorithm type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security - Extra Certificates - CRUD delete: tags: - Platform summary: Delete extra certificate description: Delete an extra certificate. operationId: delete-extra-certificate parameters: - name: cert_id in: path description: 'The extra certificate Id. For example, `star_my_domain_com`.' required: true schema: type: string responses: '200': description: Extra certificate under the given id is deleted if exists content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The extra certificate cannot be found. (code: `cert.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - cert.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security - Extra Certificates - CRUD /platform/configuration/security/realms: get: tags: - PlatformConfigurationSecurity summary: List security realm configurations description: Retrieves a list of security realm configurations. operationId: get-security-realm-configurations responses: '200': description: The security realm configurations were successfully returned content: application/json: schema: $ref: '#/components/schemas/SecurityRealmInfoList' x-doc: tag: Platform - Configuration - Security Realms /platform/configuration/security/realms/_reorder: post: tags: - PlatformConfigurationSecurity summary: Reorder security realms description: Reorder security realms. operationId: reorder-security-realms requestBody: description: The reorder request content: application/json: schema: $ref: '#/components/schemas/SecurityRealmsReorderRequest' required: true x-bodyName: body responses: '200': description: The reorder request was successful content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: "* Invalid ids . (code: `security_realm.invalid_ids`)\n* Missing ids . (code: `security_realm.missing_ids`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.invalid_ids - security_realm.missing_ids type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms /platform/configuration/security/realms/active-directory: post: tags: - PlatformConfigurationSecurity summary: Create Active Directory configuration description: 'Creates a new Active Directory configuration. ' operationId: create-active-directory-configuration requestBody: description: The Active Directory configuration content: application/json: schema: $ref: '#/components/schemas/ActiveDirectorySettings' required: true x-bodyName: body responses: '201': description: The Active Directory configuration was successfully 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/EmptyResponse' '400': description: "* The realm id is already in use. (code: `security_realm.id_conflict`)\n* The selected id is not valid. (code: `security_realm.invalid_id`)\n* Order must be greater than zero. (code: `security_realm.invalid_order`)\n* Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`)\n* The realm order is already in use. (code: `security_realm.order_conflict`)\n* Advanced YAML format is invalid. (code: `security_realm.invalid_yaml`)\n* The url format is invalid. (code: `security_realm.invalid_url`)\n* Invalid Active Directory URL. (code: `security_realm.active_directory.invalid_url`)\n* Invalid certificate bundle URL. (code: `security_realm.invalid_bundle_url`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.id_conflict - security_realm.invalid_id - security_realm.invalid_order - security_realm.invalid_type - security_realm.order_conflict - security_realm.invalid_yaml - security_realm.invalid_url - security_realm.active_directory.invalid_url - security_realm.invalid_bundle_url type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms '/platform/configuration/security/realms/active-directory/{realm_id}': get: tags: - PlatformConfigurationSecurity summary: Get Active Directory configuration description: 'Retrieves a single Active Directory security realm configuration. ' operationId: get-active-directory-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string responses: '200': description: The Active Directory configuration was successfully retrieved 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/ActiveDirectorySettings' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms put: tags: - PlatformConfigurationSecurity summary: Update Active Directory configuration description: 'Updates an existing Active Directory configuration. ' operationId: update-active-directory-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string requestBody: description: The Active Directory configuration content: application/json: schema: $ref: '#/components/schemas/ActiveDirectorySettings' required: true x-bodyName: body responses: '200': description: The Active Directory configuration was successfully 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/EmptyResponse' '400': description: "* The realm id is already in use. (code: `security_realm.id_conflict`)\n* The selected id is not valid. (code: `security_realm.invalid_id`)\n* Order must be greater than zero. (code: `security_realm.invalid_order`)\n* Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`)\n* The realm order is already in use. (code: `security_realm.order_conflict`)\n* Advanced YAML format is invalid. (code: `security_realm.invalid_yaml`)\n* The url format is invalid. (code: `security_realm.invalid_url`)\n* Invalid Active Directory URL. (code: `security_realm.active_directory.invalid_url`)\n* Invalid certificate bundle URL. (code: `security_realm.invalid_bundle_url`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.id_conflict - security_realm.invalid_id - security_realm.invalid_order - security_realm.invalid_type - security_realm.order_conflict - security_realm.invalid_yaml - security_realm.invalid_url - security_realm.active_directory.invalid_url - security_realm.invalid_bundle_url type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `security_realm.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms delete: tags: - PlatformConfigurationSecurity summary: Delete Active Directory configuration description: 'Deletes a single Active Directory configuration. ' operationId: delete-active-directory-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string responses: '200': description: The Active Directory configuration was successfully deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `security_realm.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms /platform/configuration/security/realms/ldap: post: tags: - PlatformConfigurationSecurity summary: Create LDAP configuration description: Creates a new LDAP configuration. operationId: create-ldap-configuration requestBody: description: The LDAP configuration content: application/json: schema: $ref: '#/components/schemas/LdapSettings' required: true x-bodyName: body responses: '201': description: The LDAP configuration was successfully 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/EmptyResponse' '400': description: "* The realm id is already in use. (code: `security_realm.id_conflict`)\n* The selected id is not valid. (code: `security_realm.invalid_id`)\n* Order must be greater than zero. (code: `security_realm.invalid_order`)\n* Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`)\n* The realm order is already in use. (code: `security_realm.order_conflict`)\n* Advanced YAML format is invalid. (code: `security_realm.invalid_yaml`)\n* The url format is invalid. (code: `security_realm.invalid_url`)\n* Invalid LDAP URL. (code: `security_realm.ldap.invalid_url`)\n* Invalid certificate bundle URL. (code: `security_realm.invalid_bundle_url`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.id_conflict - security_realm.invalid_id - security_realm.invalid_order - security_realm.invalid_type - security_realm.order_conflict - security_realm.invalid_yaml - security_realm.invalid_url - security_realm.ldap.invalid_url - security_realm.invalid_bundle_url type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms '/platform/configuration/security/realms/ldap/{realm_id}': get: tags: - PlatformConfigurationSecurity summary: Get LDAP configuration description: Retrieves a single LDAP security realm configuration. operationId: get-ldap-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string responses: '200': description: The LDAP configuration was successfully retrieved 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/LdapSettings' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms put: tags: - PlatformConfigurationSecurity summary: Update LDAP configuration description: Updates an existing LDAP configuration. operationId: update-ldap-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string requestBody: description: The LDAP configuration content: application/json: schema: $ref: '#/components/schemas/LdapSettings' required: true x-bodyName: body responses: '200': description: The LDAP configuration was successfully 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/EmptyResponse' '400': description: "* The realm id is already in use. (code: `security_realm.id_conflict`)\n* The selected id is not valid. (code: `security_realm.invalid_id`)\n* Order must be greater than zero. (code: `security_realm.invalid_order`)\n* Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`)\n* The realm order is already in use. (code: `security_realm.order_conflict`)\n* Advanced YAML format is invalid. (code: `security_realm.invalid_yaml`)\n* The url format is invalid. (code: `security_realm.invalid_url`)\n* Invalid LDAP URL. (code: `security_realm.ldap.invalid_url`)\n* Invalid certificate bundle URL. (code: `security_realm.invalid_bundle_url`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.id_conflict - security_realm.invalid_id - security_realm.invalid_order - security_realm.invalid_type - security_realm.order_conflict - security_realm.invalid_yaml - security_realm.invalid_url - security_realm.ldap.invalid_url - security_realm.invalid_bundle_url type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `security_realm.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms delete: tags: - PlatformConfigurationSecurity summary: Delete LDAP configuration description: Deletes a single LDAP configuration. operationId: delete-ldap-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string responses: '200': description: The LDAP configuration was successfully deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `security_realm.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms /platform/configuration/security/realms/saml: post: tags: - PlatformConfigurationSecurity summary: Create SAML configuration description: Creates a new SAML configuration. operationId: create-saml-configuration requestBody: description: The SAML configuration content: application/json: schema: $ref: '#/components/schemas/SamlSettings' required: true x-bodyName: body responses: '201': description: The SAML configuration was successfully 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/EmptyResponse' '400': description: "* The realm id is already in use. (code: `security_realm.id_conflict`)\n* The selected id is not valid. (code: `security_realm.invalid_id`)\n* Order must be greater than zero. (code: `security_realm.invalid_order`)\n* Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`)\n* The realm order is already in use. (code: `security_realm.order_conflict`)\n* Advanced YAML format is invalid. (code: `security_realm.invalid_yaml`)\n* The SAML IDP metadata endpoint returned an error response code 200 OK. (code: `security_realm.saml.invalid_idp_metadata_url`)\n* Invalid certificate bundle URL. (code: `security_realm.invalid_bundle_url`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.id_conflict - security_realm.invalid_id - security_realm.invalid_order - security_realm.invalid_type - security_realm.order_conflict - security_realm.invalid_yaml - security_realm.saml.invalid_idp_metadata_url - security_realm.invalid_bundle_url type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms '/platform/configuration/security/realms/saml/{realm_id}': get: tags: - PlatformConfigurationSecurity summary: Get SAML configuration description: Retrieves a single SAML security realm configuration. operationId: get-saml-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string responses: '200': description: The SAML configuration was successfully retrieved 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/SamlSettings' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms put: tags: - PlatformConfigurationSecurity summary: Update SAML configuration description: Updates an existing SAML configuration. operationId: update-saml-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string requestBody: description: The SAML configuration content: application/json: schema: $ref: '#/components/schemas/SamlSettings' required: true x-bodyName: body responses: '200': description: The SAML configuration was successfully 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/EmptyResponse' '400': description: "* The realm id is already in use. (code: `security_realm.id_conflict`)\n* The selected id is not valid. (code: `security_realm.invalid_id`)\n* Order must be greater than zero. (code: `security_realm.invalid_order`)\n* Invalid Elasticsearch Security realm type. (code: `security_realm.invalid_type`)\n* The realm order is already in use. (code: `security_realm.order_conflict`)\n* Advanced YAML format is invalid. (code: `security_realm.invalid_yaml`)\n* The SAML IDP metadata endpoint returned an error response code 200 OK. (code: `security_realm.saml.invalid_idp_metadata_url`)\n* Invalid certificate bundle URL. (code: `security_realm.invalid_bundle_url`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.id_conflict - security_realm.invalid_id - security_realm.invalid_order - security_realm.invalid_type - security_realm.order_conflict - security_realm.invalid_yaml - security_realm.saml.invalid_idp_metadata_url - security_realm.invalid_bundle_url type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `security_realm.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms delete: tags: - PlatformConfigurationSecurity summary: Delete SAML configuration description: Deletes a single SAML configuration. operationId: delete-saml-configuration parameters: - name: realm_id in: path description: The Elasticsearch Security realm identifier. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string responses: '200': description: The SAML configuration was successfully deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The realm specified by {realm_id} cannot be found. (code: `security_realm.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `security_realm.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - security_realm.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Security Realms '/platform/configuration/security/tls/{service_name}': get: tags: - PlatformConfigurationSecurity summary: Get TLS certificate description: Retrieves a certificate in the TLS certificate chain. operationId: get-tls-certificate parameters: - name: service_name in: path description: The service certificate chain to read. required: true schema: enum: - adminconsole - proxy - ui - internalca type: string responses: '200': description: 'The TLS certificate chain, with private key omitted, for the given service and whether it was user specified' content: application/octet-stream: schema: $ref: '#/components/schemas/TlsPublicCertChain' x-doc: tag: Platform - Configuration - TLS post: tags: - PlatformConfigurationSecurity summary: Set TLS certificate description: Creates or updates the TLS certificate chain. operationId: set-tls-certificate parameters: - name: service_name in: path description: The service certificate chain to read. required: true schema: enum: - adminconsole - proxy - ui - internalca type: string requestBody: description: 'New certificate chain: the PEM encoded RSA private key, followed by the server certificate, followed by the CA certificate' content: application/json: schema: type: string required: true x-bodyName: chain responses: '202': description: The TLS update has been accepted for the given service and will take effect throughout the system content: application/octet-stream: schema: $ref: '#/components/schemas/UpdatedTlsChain' x-doc: tag: Platform - Configuration - TLS /platform/configuration/snapshots/repositories: get: tags: - PlatformConfigurationSnapshots summary: Get snapshot repositories description: 'Retrieves a list of available snapshot repository configurations. To access the configuration contents, you must have privileged permissions.' operationId: get-snapshot-repositories responses: '200': description: List of snapshot repository configs content: application/octet-stream: schema: $ref: '#/components/schemas/RepositoryConfigs' x-doc: tag: Platform - Repository - CRUD '/platform/configuration/snapshots/repositories/{repository_name}': get: tags: - PlatformConfigurationSnapshots summary: Get snapshot repository description: 'Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions.' operationId: get-snapshot-repository parameters: - name: repository_name in: path description: The name of the snapshot repository configuration. required: true schema: type: string responses: '200': description: Retrieve snapshot repository config content: application/octet-stream: schema: $ref: '#/components/schemas/RepositoryConfig' x-doc: tag: Platform - Repository - CRUD put: tags: - PlatformConfigurationSnapshots summary: Set snapshot repository description: Creates or updates the snapshot repository configuration. operationId: set-snapshot-repository parameters: - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: integer - name: repository_name in: path description: The name of the snapshot repository configuration. required: true schema: type: string requestBody: description: The Elasticsearch snapshot repository configuration content: application/json: schema: $ref: '#/components/schemas/SnapshotRepositoryConfiguration' required: true x-bodyName: body responses: '200': description: New snapshot repository config content: application/octet-stream: schema: $ref: '#/components/schemas/RepositoryConfig' x-doc: tag: Platform - Repository - CRUD delete: tags: - PlatformConfigurationSnapshots summary: Delete snapshot repository description: Deletes the snapshot repository configuration. operationId: delete-snapshot-repository parameters: - name: repository_name in: path description: The name of the snapshot repository configuration. required: true schema: type: string - name: cleanup_deployments in: query description: 'Removes references to this snapshot repository configuration and disables snapshots on the clusters that were referencing this configuration. If a request is made to delete a repository configuration that has already been deleted and this parameter is set to true and clusters still reference the configuration, then the request will have the side effects of removing references and disabling snapshots for clusters that reference the previously deleted configuration.' schema: type: boolean default: false responses: '200': description: successful operation content: application/octet-stream: schema: $ref: '#/components/schemas/EmptyResponse' '202': description: Delete snapshot repository config content: application/octet-stream: schema: $ref: '#/components/schemas/EmptyResponse' '500': description: Failed to delete references and disable snapshots in one or more referencing clusters. content: application/octet-stream: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Repository - CRUD /platform/configuration/store: get: tags: - PlatformInfrastructure summary: List Config Store Option description: List all existing Config Store Option. operationId: list-config-store-option responses: '200': description: List of existing Config Store Option content: application/json: schema: $ref: '#/components/schemas/ConfigStoreOptionList' x-doc: tag: Platform - configuration - Store '/platform/configuration/store/{config_option_id}': get: tags: - PlatformInfrastructure summary: Find Config Store Option by name description: Find Config Store Option by name. operationId: get-config-store-option parameters: - name: config_option_id in: path description: Name of the Config Store Option that you would like to find required: true schema: type: string responses: '200': description: Config Store Option retrieved successfully 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/ConfigStoreOption' '404': description: 'Config Store Option do not exist by that name. (code: `platform.config.store.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - platform.config.store.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - configuration - Store post: tags: - PlatformInfrastructure summary: Create Config Store Option description: Inserts new Config Store Option. operationId: create-config-store-option parameters: - name: config_option_id in: path description: Name of the Config Store Option that you would like to create required: true schema: type: string requestBody: description: The Config Store Option definition content: application/json: schema: $ref: '#/components/schemas/ConfigStoreOptionData' required: true x-bodyName: body responses: '201': description: The Config Store Option was inserted successfully 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/ConfigStoreOption' '400': description: 'Config Store Option data already exists for the given name. (code: `platform.config.store.already_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - platform.config.store.already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - configuration - Store put: tags: - PlatformInfrastructure summary: Update Config Store Option description: Update existing Config Store Option. operationId: put-config-store-option parameters: - name: config_option_id in: path description: Name of the Config Store Option that you would like to modify 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) schema: type: string requestBody: description: The Config Store Option definition content: application/json: schema: $ref: '#/components/schemas/ConfigStoreOptionData' required: true x-bodyName: body responses: '200': description: Config Store Option retrieved successfully 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/ConfigStoreOption' '404': description: 'There was no existing data for the given Config Store Id. (code: `platform.config.store.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - platform.config.store.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `platform.config.store.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - platform.config.store.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - configuration - Store delete: tags: - PlatformInfrastructure summary: Delete Config Store Option by name description: Delete Config Store Option by name. operationId: delete-config-store-option parameters: - name: config_option_id in: path description: Name of the Config Store Option that you would like to delete required: true schema: type: string responses: '200': description: Config Store Option deleted successfully 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/EmptyResponse' '404': description: 'Config Store Option do not exist by that name. (code: `platform.config.store.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - platform.config.store.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - configuration - Store /platform/configuration/templates/deployments/global: get: tags: - PlatformConfigurationTemplates summary: Get all templates cross region. description: Global deployment template endpoint which fetches the deployment templates across all region services. operationId: get-global-deployment-templates responses: '200': description: The deployment templates were returned successfully. content: application/json: schema: type: array items: $ref: '#/components/schemas/GlobalDeploymentTemplateInfo' '204': description: There are no deployment templates available. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' x-doc: tag: Templates - Deployments - Global /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. schema: type: boolean default: false - name: filter in: query description: Which trust relationships to return in the response. Defaults to `all` schema: enum: - all - local - non-local type: string 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 requestBody: description: The trust relationship definition content: application/json: schema: $ref: '#/components/schemas/TrustRelationshipCreateRequest' required: true x-bodyName: body 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 '/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. 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: enum: - trust_relationships.not_found type: string 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 requestBody: description: The trust relationship definition content: application/json: schema: $ref: '#/components/schemas/TrustRelationshipUpdateRequest' required: true x-bodyName: body 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: enum: - trust_relationships.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Trust relationships 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) 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: enum: - trust_relationships.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Configuration - Trust relationships /platform/infrastructure/adminconsoles: get: tags: - PlatformInfrastructure summary: Get adminconsoles description: Retrieves an overview of all adminconsoles. operationId: get-adminconsoles responses: '200': description: An overview of all adminconsoles. 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/AdminconsolesOverview' x-doc: tag: Platform - Adminconsoles /platform/infrastructure/adminconsoles/_reindex: post: tags: - PlatformInfrastructure summary: Reindex region indices description: Start reindex of all regional indices. operationId: reindex-adminconsoles responses: '202': description: Started reindexing of regional indices. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' x-doc: tag: Platform - Adminconsoles '/platform/infrastructure/adminconsoles/{adminconsole_id}/logging_settings': get: tags: - PlatformInfrastructure summary: Get adminconsole logging settings description: Get the logging settings for this adminconsole instance. operationId: get-adminconsole-logging-settings parameters: - name: adminconsole_id in: path description: The identifier for the adminconsole instance required: true schema: type: string responses: '200': description: The logging settings for the adminconsole instance 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/LoggingSettings' '404': description: 'The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsoles.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Adminconsoles put: tags: - PlatformInfrastructure summary: Set adminconsole logging settings description: Set the logging settings for this adminconsole instance. operationId: set-adminconsole-logging-settings parameters: - name: adminconsole_id in: path description: The identifier for the adminconsole instance required: true schema: type: string requestBody: description: The new logging settings for the adminconsole instance content: application/json: schema: $ref: '#/components/schemas/LoggingSettings' required: true x-bodyName: body responses: '200': description: The updated logging settings for the adminconsole instance 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/LoggingSettings' '404': description: 'The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsoles.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Adminconsoles delete: tags: - PlatformInfrastructure summary: Delete adminconsole logging settings description: Reset the default logging settings for this adminconsole instance. operationId: delete-adminconsole-logging-settings parameters: - name: adminconsole_id in: path description: The identifier for the adminconsole instance required: true schema: type: string responses: '200': description: The updated logging settings for the adminconsole instance 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/LoggingSettings' '404': description: 'The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsoles.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Adminconsoles patch: tags: - PlatformInfrastructure summary: Update adminconsole logging settings description: 'All changes in the specified object are applied to the logging settings for this adminconsole instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' operationId: update-adminconsole-logging-settings parameters: - name: adminconsole_id in: path description: The identifier for the adminconsole instance required: true schema: type: string requestBody: description: The logging settings to update content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: The updated logging settings for the adminconsole instance 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/LoggingSettings' '400': description: 'The update request is invalid. (code: `patch.request_malformed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - patch.request_malformed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The logging settings for this adminconsole were not found. (code: `adminconsoles.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - adminconsoles.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Adminconsoles /platform/infrastructure/allocators: get: tags: - PlatformInfrastructure summary: Get allocators description: Retrieves the information for all of the allocators in the platform. operationId: get-allocators parameters: - name: q in: query description: (Optional) The query that filters the allocators. Maps to an Elasticsearch `query_string` query. schema: type: string - name: size in: query description: (Optional) The maximum number of search results to return. Defaults to 100. schema: type: integer default: 100 - name: from in: query description: (Optional) The offset from the first result you want to fetch. Defaults to 0. schema: type: integer default: 0 - name: sort in: query description: (Optional) A comma-separated array of fields to sort the search results by. Defaults to `allocator_id`. schema: type: string responses: '200': description: An overview of all allocators content: application/json: schema: $ref: '#/components/schemas/AllocatorOverview' x-doc: tag: Platform - Allocators /platform/infrastructure/allocators/_resync: post: tags: - PlatformInfrastructure summary: Resynchronize allocators description: Asynchronously synchronizes all allocator information in the back-end search index. operationId: resync-allocators parameters: - name: skip_matching_version in: query description: 'When true, skips the document indexing when the version matches the in-memory copy.' schema: type: boolean default: true responses: '202': description: 'The ids of documents, organized by model version, that will be synchronized.' content: application/json: schema: $ref: '#/components/schemas/ModelVersionIndexSynchronizationResults' x-doc: tag: Platform - Allocators /platform/infrastructure/allocators/_search: post: tags: - PlatformInfrastructure summary: Search allocators description: Retrieves the information for all the allocators in the platform that match a specified query. operationId: search-allocators requestBody: description: The optional search request to execute. If not supplied then all allocators are matched content: application/json: schema: $ref: '#/components/schemas/SearchRequest' x-bodyName: body responses: '200': description: An overview of allocators that matched the given search query content: application/json: schema: $ref: '#/components/schemas/AllocatorOverview' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}': get: tags: - PlatformInfrastructure summary: Get allocator description: Retrieves the allocator by the ID. operationId: get-allocator parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string responses: '200': description: 'The information for the allocator specified by {allocator_id}' content: application/json: schema: $ref: '#/components/schemas/AllocatorInfo' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators delete: tags: - PlatformInfrastructure summary: Delete allocator description: Deletes the allocator. operationId: delete-allocator parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: remove_instances in: query description: Removes the instances from the deleted allocator. schema: type: boolean default: false responses: '200': description: 'The allocator specified by {allocator_id} was successfully deleted' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: "* The allocator specified by {allocator_id} could not be deleted. (code: `allocators.delete_connected_allocator_attempt`)\n* The allocator specified by {allocator_id} could not be deleted. (code: `allocators.delete_allocator_with_instances_attempt`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.delete_connected_allocator_attempt - allocators.delete_allocator_with_instances_attempt type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/_resync': post: tags: - PlatformInfrastructure summary: Resynchronize allocator description: Immediately synchronizes the allocator information in the back-end search index and caches. operationId: resync-allocator parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string responses: '200': description: The allocator resync operation executed successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '500': description: 'The allocator resync operation failed for allocator {allocator_id}. (code: `allocators.resync_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.resync_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/clusters/_move': post: tags: - PlatformInfrastructure summary: Move clusters description: Moves the clusters to a different allocator. operationId: move-clusters parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: force_update in: query description: 'When `true`, cancels and overwrites the pending plans, or treats the instance as an error.' schema: type: boolean default: false - name: move_only in: query description: 'When `true`, moves the specified instances and ignores the changes for the cluster state.' schema: type: boolean default: true - name: force_move in: query description: 'When `true`, execute a primitive vacate by moving data at file-system level, and recreating instances on the target allocator(s).' schema: type: boolean default: false - name: allocator_down in: query description: 'When `true`, considers all instances on the allocator as permanently shut down when deciding how to migrate data to new nodes.When left blank, the system automatically decides. NOTE: The default treats the allocator as up.' schema: type: boolean - name: validate_only in: query description: 'When `true`, validates the plan overrides, then returns the plan without performing the move.' schema: type: boolean default: false requestBody: description: Overrides defaults for the move of each cluster content: application/json: schema: $ref: '#/components/schemas/MoveClustersRequest' x-bodyName: body responses: '202': description: 'The move command was issued successfully, use the "GET" command on each /{cluster_id} resource to monitor progress' content: application/json: schema: $ref: '#/components/schemas/MoveClustersCommandResponse' '400': description: "* The cluster definition contained errors. (code: `clusters.cluster_invalid_plan`)\n* The cluster definition contained errors. (code: `clusters.plan_feature_not_implemented`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.cluster_invalid_plan - clusters.plan_feature_not_implemented type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The move command was prohibited for the given cluster. (code: `clusters.command_prohibited`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.command_prohibited type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/clusters/{cluster_type}/_move': post: tags: - PlatformInfrastructure summary: Move clusters by type description: 'Moves the clusters, by type, to a different allocator.' operationId: move-clusters-by-type parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: cluster_type in: path description: 'The cluster types to move off of the allocator. NOTE: When unspecified, all clusters are moved.' required: true schema: enum: - apm - appsearch - elasticsearch - enterprise_search - kibana type: string - name: force_update in: query description: 'When true, cancels and overwrites pending plans, or treats instance as an error' schema: type: boolean default: false - name: move_only in: query description: 'When true, bypasses the cluster state changes, but continues to move the specified instances' schema: type: boolean default: true - name: force_move in: query description: 'When `true`, execute a primitive vacate by moving data at file-system level, and recreating instances on the target allocator(s).' schema: type: boolean default: false - name: allocator_down in: query description: 'When `true`, considers all instances on the allocator as permanently shut down when deciding how to migrate data to new nodes.When left blank, the system automatically decides. NOTE: The default treats the allocator as up.' schema: type: boolean - name: validate_only in: query description: 'When `true`, validates the plan overrides, then returns the plan without performing the move.' schema: type: boolean default: false requestBody: description: Overrides defaults for the move of each cluster content: application/json: schema: $ref: '#/components/schemas/MoveClustersRequest' x-bodyName: body responses: '202': description: 'The move command was issued successfully, use the "GET" command on each /{cluster_id} resource to monitor progress' content: application/json: schema: $ref: '#/components/schemas/MoveClustersCommandResponse' '400': description: "* The cluster definition contained errors. (code: `clusters.cluster_invalid_plan`)\n* The cluster definition contained errors. (code: `clusters.plan_feature_not_implemented`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.cluster_invalid_plan - clusters.plan_feature_not_implemented type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'The move command was prohibited for the given cluster. (code: `clusters.command_prohibited`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - clusters.command_prohibited type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/logging_settings': get: tags: - PlatformInfrastructure summary: Get allocator logging settings description: Get the logging settings for this allocator instance. operationId: get-allocator-logging-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string responses: '200': description: The logging settings for the allocator instance 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/LoggingSettings' '404': description: 'The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators put: tags: - PlatformInfrastructure summary: Set allocator logging settings description: Set the logging settings for this allocator instance. operationId: set-allocator-logging-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string requestBody: description: The new logging settings for the allocator instance content: application/json: schema: $ref: '#/components/schemas/LoggingSettings' required: true x-bodyName: body responses: '200': description: The updated logging settings for the allocator instance 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/LoggingSettings' '404': description: 'The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators delete: tags: - PlatformInfrastructure summary: Delete allocator logging settings description: Reset the default logging settings for this allocator instance. operationId: delete-allocator-logging-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string responses: '200': description: The updated logging settings for the allocator instance 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/LoggingSettings' '404': description: 'The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators patch: tags: - PlatformInfrastructure summary: Update allocator logging settings description: 'All changes in the specified object are applied to the logging settings for this allocator instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' operationId: update-allocator-logging-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string requestBody: description: The logging settings to update content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: The updated logging settings for the allocator instance 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/LoggingSettings' '400': description: 'The update request is invalid. (code: `patch.request_malformed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - patch.request_malformed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The logging settings for this allocator were not found. (code: `allocators.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_start': post: tags: - PlatformInfrastructure summary: Start maintenance mode description: Starts maintenance mode on the allocator. operationId: start-allocator-maintenance-mode parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: reason in: query description: Provides a reason for changing the maintenance mode which will appear as a message on the allocator. schema: type: string responses: '202': description: The start maintenance mode command was issued successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '403': description: 'The start maintenance mode command was prohibited for the given allocator. (code: `root.unauthorized.rbac`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized.rbac type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/maintenance-mode/_stop': post: tags: - PlatformInfrastructure summary: Stop maintenance mode description: Stops maintenance mode on the allocator. operationId: stop-allocator-maintenance-mode parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: reason in: query description: Provides a reason for changing the maintenance mode which will appear as a message on the allocator. schema: type: string responses: '202': description: The stop maintenance mode command was issued successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '403': description: 'The stop maintenance mode command was prohibited for the given allocator. (code: `root.unauthorized.rbac`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized.rbac type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/metadata': get: tags: - PlatformInfrastructure summary: Get allocator metadata description: Retrieves the allocator metadata. operationId: get-allocator-metadata parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string responses: '200': description: The allocator metadata was successfully returned 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: type: array items: $ref: '#/components/schemas/MetadataItem' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators put: tags: - PlatformInfrastructure summary: Set allocator metadata description: Sets the allocator metadata. operationId: set-allocator-metadata parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string requestBody: description: The metadata to update the allocator with content: application/json: schema: $ref: '#/components/schemas/MetadataItems' required: true x-bodyName: body responses: '200': description: The allocator metadata was successfully changed (the updated JSON is returned) content: application/json: schema: type: array items: $ref: '#/components/schemas/MetadataItem' '400': description: 'The value specified is empty for at least one of the metadata tags. (code: `allocators.invalid_empty_metadata_items`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.invalid_empty_metadata_items type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/metadata/{key}': put: tags: - PlatformInfrastructure summary: Set allocator metadata item description: Adds or updates a single item in the allocator metadata. operationId: set-allocator-metadata-item parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: key in: path description: The metadata item key. required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string requestBody: description: The value of the metadata item to add or update content: application/json: schema: $ref: '#/components/schemas/MetadataItemValue' required: true x-bodyName: body responses: '200': description: The allocator metadata was successfully changed (the updated JSON is returned) content: application/json: schema: type: array items: $ref: '#/components/schemas/MetadataItem' '400': description: 'The value specified for the metadata tag is empty. (code: `allocators.invalid_empty_metadata_item`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.invalid_empty_metadata_item type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: "* The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)\n* The metadata item specified by {key} cannot be found. (code: `allocators.metadata_item_not_found`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found - allocators.metadata_item_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators delete: tags: - PlatformInfrastructure summary: Delete allocator metadata item description: Removes a single item from the allocator metadata. operationId: delete-allocator-metadata-item parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: key in: path description: The metadata item key. required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string responses: '200': description: The allocator metadata was successfully changed (the updated JSON is returned) content: application/json: schema: type: array items: $ref: '#/components/schemas/MetadataItem' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators '/platform/infrastructure/allocators/{allocator_id}/settings': get: tags: - PlatformInfrastructure summary: Get allocator settings description: Retrieves the allocator override settings. operationId: get-allocator-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string responses: '200': description: Returns the settings for the specified Allocator 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/AllocatorSettings' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators put: tags: - PlatformInfrastructure summary: Set allocator settings description: 'Overwrites the allocator settings with the specified settings. WARNING: Any unspecified fields are deleted.' operationId: set-allocator-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string requestBody: description: The allocator settings to apply content: application/json: schema: $ref: '#/components/schemas/AllocatorSettings' required: true x-bodyName: body responses: '200': description: Returns the updated settings for the specified allocator content: application/json: schema: $ref: '#/components/schemas/AllocatorSettings' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators patch: tags: - PlatformInfrastructure summary: Update allocator settings description: Applies the settings as a patch. Only the fields that are referenced in the update are altered. operationId: update-allocator-settings parameters: - name: allocator_id in: path description: The allocator identifier. required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string requestBody: description: The allocator settings to update content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: Returns the updated settings for the specified allocator content: application/json: schema: $ref: '#/components/schemas/AllocatorSettings' '404': description: 'The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - allocators.allocator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Allocators /platform/infrastructure/blueprinter/roles: get: tags: - PlatformInfrastructure summary: List roles description: Retrieve all persisted roles. operationId: list-blueprinter-roles responses: '200': description: The role aggregates. content: application/json: schema: $ref: '#/components/schemas/RoleAggregates' x-doc: tag: Roles post: tags: - PlatformInfrastructure summary: Create a role description: Create a Blueprinter role. operationId: create-blueprinter-role requestBody: description: The data you want to use for creating a role. content: application/json: schema: $ref: '#/components/schemas/RoleAggregateCreateData' required: true x-bodyName: body responses: '201': description: The role aggregate that was just created. content: application/json: schema: $ref: '#/components/schemas/RoleAggregate' '409': description: 'The role ID you specified is already in use. (code: `roles.already_exists`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Roles '/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}': get: tags: - PlatformInfrastructure summary: Get role description: Retrieve a role. operationId: get-blueprinter-role parameters: - name: blueprinter_role_id in: path description: User-specified Blueprinter role ID. required: true schema: type: string responses: '200': description: The role aggregate definition. content: application/json: schema: $ref: '#/components/schemas/RoleAggregate' '404': description: 'The role can''t be found. (code: `roles.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Roles put: tags: - PlatformInfrastructure summary: Update role description: Update a role. operationId: update-blueprinter-role parameters: - name: blueprinter_role_id in: path description: User-specified Blueprinter role ID. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: integer requestBody: description: The role update data. content: application/json: schema: $ref: '#/components/schemas/Role' required: true x-bodyName: body responses: '200': description: The role was successfully updated. content: application/json: schema: $ref: '#/components/schemas/RoleAggregate' '400': description: 'The role is currently running container sets. (code: `roles.in_use`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.in_use type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The role can''t be found. (code: `roles.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Roles delete: tags: - PlatformInfrastructure summary: Delete role description: Delete a role. operationId: delete-blueprinter-role parameters: - name: blueprinter_role_id in: path description: User-specified Blueprinter role ID. required: true schema: type: string - name: skip_validations in: query description: 'When sent as true, ignores validation errors.' schema: type: boolean default: false - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: integer responses: '200': description: The role was successfully deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The role is currently running container sets. (code: `roles.in_use`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.in_use type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The role can''t be found. (code: `roles.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Roles '/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings': put: tags: - PlatformInfrastructure summary: Set blessings description: Set blessings for a role. operationId: set-blueprinter-blessings parameters: - name: blueprinter_role_id in: path description: User-specified Blueprinter role ID. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: integer requestBody: description: The blessings to set. content: application/json: schema: $ref: '#/components/schemas/Blessings' required: true x-bodyName: body responses: '200': description: The blessings were successfully set. content: application/json: schema: $ref: '#/components/schemas/RoleAggregate' '404': description: 'The role can''t be found. (code: `roles.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Roles '/platform/infrastructure/blueprinter/roles/{blueprinter_role_id}/blessings/{runner_id}': put: tags: - PlatformInfrastructure summary: Add Blessing description: Add a Blessing for a runner to a role. operationId: add-blueprinter-blessing parameters: - name: blueprinter_role_id in: path description: User-specified Blueprinter role ID. required: true schema: type: string - name: runner_id in: path description: Runner ID for a blessing associated with a role. required: true schema: type: string - name: version in: query description: 'When specified, checks for conflicts against the version stored in the persistent store (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: integer requestBody: description: The blessing to add. content: application/json: schema: $ref: '#/components/schemas/Blessing' required: true x-bodyName: body responses: '200': description: Blessing added successfully. content: application/json: schema: $ref: '#/components/schemas/RoleAggregate' '404': description: 'The role can''t be found. (code: `roles.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'Your request failed because the specified version does not match the persisted version. (code: `roles.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - roles.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Roles /platform/infrastructure/constructors: get: tags: - PlatformInfrastructure summary: Get constructors description: Retrieves an overview of all constructors in an ECE installation. operationId: get-constructors responses: '200': description: An overview of all constructors. content: application/json: schema: $ref: '#/components/schemas/ConstructorOverview' x-doc: tag: Platform - Constructors /platform/infrastructure/constructors/_resync: post: tags: - PlatformInfrastructure summary: Resynchronize constructors description: Asynchronously synchronizes all constructor information in the back-end search index. operationId: resync-constructors parameters: - name: skip_matching_version in: query description: 'When true, skips the document indexing when the version matches the in-memory copy.' schema: type: boolean default: true responses: '202': description: 'The ids of documents, organized by model version, that will be synchronized.' content: application/json: schema: $ref: '#/components/schemas/ModelVersionIndexSynchronizationResults' x-doc: tag: Platform - Constructors '/platform/infrastructure/constructors/{constructor_id}': get: tags: - PlatformInfrastructure summary: Get constructor description: Retrieves a constructor by id. operationId: get-constructor parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string responses: '200': description: 'The information for the constructor specified by {constructor_id}.' content: application/json: schema: $ref: '#/components/schemas/ConstructorInfo' '404': description: 'The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.constructor_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors '/platform/infrastructure/constructors/{constructor_id}/_resync': post: tags: - PlatformInfrastructure summary: Resynchronize constructor description: Immediately resynchronizes the search index and cache for the selected constructor. operationId: resync-constructor parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string responses: '200': description: The constructor resync operation executed successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '500': description: 'The constructor resync operation failed for allocator {constructor_id}. (code: `constructors.resync_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.resync_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors '/platform/infrastructure/constructors/{constructor_id}/logging_settings': get: tags: - PlatformInfrastructure summary: Get constructor logging settings description: Get the logging settings for this constructor instance. operationId: get-constructor-logging-settings parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string responses: '200': description: The logging settings for the constructor instance 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/LoggingSettings' '404': description: 'The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors put: tags: - PlatformInfrastructure summary: Set constructor logging settings description: Set the logging settings for this constructor instance. operationId: set-constructor-logging-settings parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string requestBody: description: The new logging settings for the constructor instance content: application/json: schema: $ref: '#/components/schemas/LoggingSettings' required: true x-bodyName: body responses: '200': description: The updated logging settings for the constructor instance 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/LoggingSettings' '404': description: 'The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors delete: tags: - PlatformInfrastructure summary: Delete constructor logging settings description: Reset the default logging settings for this constructor instance. operationId: delete-constructor-logging-settings parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string responses: '200': description: The updated logging settings for the constructor instance 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/LoggingSettings' '404': description: 'The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors patch: tags: - PlatformInfrastructure summary: Update constructor logging settings description: 'All changes in the specified object are applied to the logging settings for this constructor instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' operationId: update-constructor-logging-settings parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string requestBody: description: The logging settings to update content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: The updated logging settings for the constructor instance 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/LoggingSettings' '400': description: 'The update request is invalid. (code: `patch.request_malformed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - patch.request_malformed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The logging settings for this constructor were not found. (code: `constructors.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors '/platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_start': post: tags: - PlatformInfrastructure summary: Start maintenance mode description: Start maintenance mode of a constructor. It will stop constructing new plans while continuing with on-going ones. operationId: start-constructor-maintenance-mode parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string responses: '202': description: The start maintenance mode command was issued successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '403': description: 'The start maintenance mode command was prohibited for the given constructor. (code: `constructors.command_prohibited`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.command_prohibited type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.constructor_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors '/platform/infrastructure/constructors/{constructor_id}/maintenance-mode/_stop': post: tags: - PlatformInfrastructure summary: Stop maintenance mode description: Stop maintenance mode of a constructor. It will resume the construction of submitted plans. operationId: stop-constructor-maintenance-mode parameters: - name: constructor_id in: path description: Identifier for the constructor required: true schema: type: string responses: '202': description: The stop maintenance mode command was issued successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '403': description: 'The stop maintenance mode command was prohibited for the given constructor. (code: `constructors.command_prohibited`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.command_prohibited type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - constructors.constructor_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Constructors /platform/infrastructure/coordinators: get: tags: - PlatformInfrastructure summary: Get coordinators description: Retrieves an overview of all coordinators. operationId: get-coordinators responses: '200': description: An overview of all coordinators. content: application/json: schema: $ref: '#/components/schemas/CoordinatorsSummary' x-doc: tag: Platform - Coordinators /platform/infrastructure/coordinators/candidates: get: tags: - PlatformInfrastructure summary: Get coordinator candidates description: Retrieve a list of all coordinator candidates. operationId: get-coordinator-candidates responses: '200': description: A list of all coordinator candidates. content: application/json: schema: $ref: '#/components/schemas/CoordinatorCandidatesSummary' x-doc: tag: Platform - Coordinators '/platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}': get: tags: - PlatformInfrastructure summary: Get a coordinator candidate description: Retrieve a coordinator candidate. operationId: get-coordinator-candidate parameters: - name: coordinator_candidate_id in: path description: The identifier for the coordinator candidate required: true schema: type: string responses: '200': description: Info about a coordinator candidate. content: application/json: schema: $ref: '#/components/schemas/CoordinatorCandidateInfo' '404': description: 'Unable to find coordinator candidate {coordinator_candidate_id}. Edit your request, then try again. (code: `coordinators.candidate_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.candidate_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Coordinators delete: tags: - PlatformInfrastructure summary: Delete coordinator candidate description: Delete a coordinator candidate by id. operationId: delete-coordinator-candidate parameters: - name: coordinator_candidate_id in: path description: The identifier for the coordinator candidate required: true schema: type: string - name: version in: query description: cloud resource version schema: type: string responses: '200': description: 'The coordinator candidate specified by {coordinator_candidate_id} was deleted.' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The coordinator specified by {coordinator_candidate_id} could not be deleted. (code: `coordinators.candidate_deletion_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.candidate_deletion_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The coordinator candidate specified by {coordinator_candidate_id} cannot be found. (code: `coordinators.candidate_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.candidate_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Coordinators '/platform/infrastructure/coordinators/candidates/{coordinator_candidate_id}/_promote': post: tags: - PlatformInfrastructure summary: Promote a coordinator candidate description: Promotes a coordinator candidate. operationId: promote-coordinator-candidate parameters: - name: coordinator_candidate_id in: path description: The identifier for the coordinator candidate required: true schema: type: string responses: '202': description: Accepted promote of coordinator candidate. content: application/json: schema: $ref: '#/components/schemas/CoordinatorCandidateInfo' '404': description: 'Unable to find coordinator candidate {coordinator_id}. Edit your request, then try again. (code: `coordinators.candidate_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.candidate_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Coordinators '/platform/infrastructure/coordinators/{coordinator_id}': get: tags: - PlatformInfrastructure summary: Get a coordinator description: Retrieve overview of a single coordinator. operationId: get-coordinator parameters: - name: coordinator_id in: path description: The identifier for the coordinator required: true schema: type: string responses: '200': description: An overview of a coordinator instance. content: application/json: schema: $ref: '#/components/schemas/CoordinatorSummary' '404': description: 'Unable to find coordinator {coordinator_id}. Edit your request, then try again. (code: `coordinators.coordinator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.coordinator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Coordinators '/platform/infrastructure/coordinators/{coordinator_id}/_demote': post: tags: - PlatformInfrastructure summary: Demote a coordinator description: Demotes a coordinator and removes Zookeeper from the host. operationId: demote-coordinator parameters: - name: coordinator_id in: path description: The identifier for the coordinator required: true schema: type: string responses: '200': description: Accepted demote of coordinator. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The coordinator specified by {coordinator_id} could not be demoted. (code: `coordinators.coordinator_demote_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.coordinator_demote_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Unable to find the coordinator {coordinator_id}. Edit your request, then try again. (code: `coordinators.coordinator_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - coordinators.coordinator_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Coordinators /platform/infrastructure/proxies: get: tags: - PlatformInfrastructure summary: Get proxies description: Retrieves an overview of all proxies. operationId: get-proxies responses: '200': description: An overview of all proxies. content: application/json: schema: $ref: '#/components/schemas/ProxyOverview' x-doc: tag: Platform - proxies /platform/infrastructure/proxies/filtered-groups: post: tags: - PlatformInfrastructure summary: Create filtered group of proxies description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nCreate the settings for a filtered group of proxies." operationId: create-proxies-filtered-group requestBody: description: Data for the filtered group of proxies to create content: application/json: schema: $ref: '#/components/schemas/ProxiesFilteredGroup' required: true x-bodyName: body responses: '200': description: Returns the created or updated filtered group of proxies 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/ProxiesFilteredGroup' '400': description: "* The filtered group of proxies has empty id. (code: `proxies.proxies_filtered_group_empty_id`)\n* A filtered group of proxies with the same identifier already exists. (code: `proxies.proxies_filtered_group_already_exists`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxies_filtered_group_empty_id - proxies.proxies_filtered_group_already_exists type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies '/platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}': get: tags: - PlatformInfrastructure summary: Get filtered group of proxies description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nGet data for a filtered group of proxies." operationId: get-proxies-filtered-group parameters: - name: proxies_filtered_group_id in: path description: '"The identifier for the filtered group of proxies' required: true schema: type: string responses: '200': description: 'Data for the filtered group of proxies identified by {proxies_filtered_group_id}' 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/ProxiesFilteredGroup' '404': description: 'Unable to find the {proxies_filtered_group_id} specified filtered group of proxies. Edit your request, then try again. (code: `proxies.proxies_filtered_group_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxies_filtered_group_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies put: tags: - PlatformInfrastructure summary: Update filtered group of proxies description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nUpdate the settings for a filtered group of proxies." operationId: update-proxies-filtered-group parameters: - name: proxies_filtered_group_id in: path description: '"The identifier for the filtered group of proxies' required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string requestBody: description: Data for the filtered group of proxies to update content: application/json: schema: $ref: '#/components/schemas/ProxiesFilteredGroup' required: true x-bodyName: body responses: '200': description: Returns the created or updated filtered group of proxies 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/ProxiesFilteredGroup' '400': description: 'The provided identifier doesn''t match the identifier in the object. (code: `proxies.proxies_filtered_group_id_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxies_filtered_group_id_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `proxies.proxies_filtered_group_version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxies_filtered_group_version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies delete: tags: - PlatformInfrastructure summary: Delete filtered group of proxies description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nDeletes a filtered group of proxies by ID." operationId: delete-proxies-filtered-group parameters: - name: proxies_filtered_group_id in: path description: '"The identifier for the filtered group of proxies' required: true schema: type: string - name: version in: query description: 'Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.' schema: type: string responses: '200': description: The filtered group of proxies was successfully deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'Unable to find the {proxies_filtered_group_id} specified filtered group of proxies. Edit your request, then try again. (code: `proxies.proxies_filtered_group_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxies_filtered_group_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'There is a version conflict. (code: `proxies.proxies_filtered_group_version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxies_filtered_group_version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies '/platform/infrastructure/proxies/filtered-groups/{proxies_filtered_group_id}/health': get: tags: - PlatformInfrastructure summary: Get health for a filtered group of proxies description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nGet the health status of a filtered group of proxies." operationId: get-proxies-filtered-group-health parameters: - name: proxies_filtered_group_id in: path description: '"The identifier for the filtered group of proxies' required: true schema: type: string - name: expect_status in: query description: The expected status schema: type: string responses: '200': description: Returns health information on a filtered group of proxies content: application/json: schema: $ref: '#/components/schemas/ProxiesFilteredGroupHealth' '417': description: The health status is worse than the expected one. content: application/json: schema: $ref: '#/components/schemas/ProxiesFilteredGroupHealth' x-doc: tag: Platform - proxies /platform/infrastructure/proxies/health: get: tags: - PlatformInfrastructure summary: Get proxy health description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nGet the health status of all proxies." operationId: get-proxies-health parameters: - name: expect_status in: query description: The expected status schema: type: string responses: '200': description: Returns health information on all the proxies content: application/json: schema: $ref: '#/components/schemas/ProxiesHealth' '417': description: The health status is worse than the expected one. content: application/json: schema: $ref: '#/components/schemas/ProxiesHealth' x-doc: tag: Platform - proxies /platform/infrastructure/proxies/settings: get: tags: - PlatformInfrastructure summary: Get proxies settings description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nRetrieves the settings for all proxies." operationId: get-proxies-settings responses: '200': description: Settings for all proxies. content: application/json: schema: $ref: '#/components/schemas/ProxiesSettings' x-doc: tag: Platform - proxies put: tags: - PlatformInfrastructure summary: Set proxy settings description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nOverwrites the proxy settings. All unspecified fields are deleted." operationId: set-proxies-settings parameters: - name: version in: query description: 'If specified, checks for conflicts against the version of the settings (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string requestBody: description: The proxy settings to apply content: application/json: schema: $ref: '#/components/schemas/ProxiesSettings' required: true x-bodyName: body responses: '200': description: Returns the updated settings content: application/json: schema: $ref: '#/components/schemas/ProxiesSettings' '409': description: 'There is a version conflict. (code: `proxies.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies patch: tags: - PlatformInfrastructure summary: Update proxy settings description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version.\n\nApplies the settings as a patch. Only the fields that are referenced in the update are changed." operationId: update-proxies-settings parameters: - name: version in: query description: 'If specified, checks for conflicts against the version of the repository configuration (returned in ''x-cloud-resource-version'' of the GET request)' schema: type: string requestBody: description: A JSON to merge with the existing settings content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: Returns the updated settings content: application/json: schema: $ref: '#/components/schemas/ProxiesSettings' '409': description: 'There is a version conflict. (code: `proxies.version_conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.version_conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies '/platform/infrastructure/proxies/{proxy_id}': get: tags: - PlatformInfrastructure summary: Get proxy description: Retrieves a single proxy by ID. operationId: get-proxy parameters: - name: proxy_id in: path description: The identifier for the proxy required: true schema: type: string responses: '200': description: 'The information for the proxy specified by {proxy_id}.' content: application/json: schema: $ref: '#/components/schemas/ProxyInfo' '404': description: 'Unable to find the {proxy_id} specified proxy. Edit your request, then try again. (code: `proxies.proxy_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - proxies.proxy_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - proxies /platform/infrastructure/runners: get: tags: - PlatformInfrastructure summary: Get runners description: Retrieves an overview of all runners. operationId: get-runners parameters: - name: q in: query description: An optional query to filter runners by. Maps to an Elasticsearch query_string query. schema: type: string responses: '200': description: An overview of all runners. content: application/json: schema: $ref: '#/components/schemas/RunnerOverview' x-doc: tag: Platform - Runners /platform/infrastructure/runners/_resync: post: tags: - PlatformInfrastructure summary: Resynchronize runners description: Asynchronously synchronizes all runner information in the search index. operationId: resync-runners parameters: - name: skip_matching_version in: query description: 'When true, skips the document indexing when the version matches the in-memory copy.' schema: type: boolean default: true responses: '202': description: 'The ids of documents, organized by model version, that will be synchronized.' content: application/json: schema: $ref: '#/components/schemas/ModelVersionIndexSynchronizationResults' x-doc: tag: Platform - Runners /platform/infrastructure/runners/_search: post: tags: - PlatformInfrastructure summary: Search runners description: Retrieves runners that match a given query. operationId: search-runners requestBody: description: The optional search request to execute. If not supplied then all runners are matched. content: application/json: schema: $ref: '#/components/schemas/SearchRequest' x-bodyName: body responses: '200': description: An overview of runners that matched the given search query. content: application/json: schema: $ref: '#/components/schemas/RunnerOverview' '400': description: 'The search request failed. (code: `runners.search_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.search_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners '/platform/infrastructure/runners/{runner_id}': get: tags: - PlatformInfrastructure summary: Get runner description: Retrieves a runner by id. operationId: get-runner parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string responses: '200': description: 'The information for the runner specified by {runner_id}.' content: application/json: schema: $ref: '#/components/schemas/RunnerInfo' '404': description: 'Unable to find the {runner_id} specified runner. Edit your request, then try again. (code: `runners.runner_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.runner_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners delete: tags: - PlatformInfrastructure summary: Delete runner description: Delete a runner by id. operationId: delete-runner parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string responses: '200': description: 'The runner specified by {runner_id} was deleted.' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The runner specified by {runner_id} could not be deleted. (code: `runners.runner_deletion_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.runner_deletion_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The runner specified by {runner_id} cannot be found. (code: `runners.runner_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.runner_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners '/platform/infrastructure/runners/{runner_id}/_resync': post: tags: - PlatformInfrastructure summary: Resynchronize runner description: Immediately resynchronizes the search index and cache for the selected runner. operationId: resync-runner parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string responses: '200': description: The runner resync operation executed successfully content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '500': description: 'The runner resync operation failed for runner {runner_id}. (code: `runners.resync_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.resync_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners '/platform/infrastructure/runners/{runner_id}/logging_settings': get: tags: - PlatformInfrastructure summary: Get runner logging settings description: Get the logging settings for this runner instance. operationId: get-runner-logging-settings parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string responses: '200': description: The logging settings for the runner instance 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/LoggingSettings' '404': description: 'The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners put: tags: - PlatformInfrastructure summary: Set runner logging settings description: Set the logging settings for this runner instance. operationId: set-runner-logging-settings parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string requestBody: description: The new logging settings for the runner instance content: application/json: schema: $ref: '#/components/schemas/LoggingSettings' required: true x-bodyName: body responses: '200': description: The updated logging settings for the runner instance 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/LoggingSettings' '404': description: 'The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners delete: tags: - PlatformInfrastructure summary: Delete runner logging settings description: Reset the default logging settings for this runner instance. operationId: delete-runner-logging-settings parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string responses: '200': description: The updated logging settings for the runner instance 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/LoggingSettings' '404': description: 'The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners patch: tags: - PlatformInfrastructure summary: Update runner logging settings description: 'All changes in the specified object are applied to the logging settings for this runner instance according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' operationId: update-runner-logging-settings parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string requestBody: description: The logging settings to update content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: The updated logging settings for the runner instance 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/LoggingSettings' '400': description: 'The update request is invalid. (code: `patch.request_malformed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - patch.request_malformed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'The logging settings for this runner were not found. (code: `runners.logging_settings.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.logging_settings.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners '/platform/infrastructure/runners/{runner_id}/roles': put: tags: - PlatformInfrastructure summary: Set runner roles description: Set runner roles. operationId: set-runner-roles parameters: - name: runner_id in: path description: The identifier for the runner required: true schema: type: string - name: bless in: query description: Assigns the runner to the roles. schema: type: boolean requestBody: description: The roles for the runner that you want to apply. content: application/json: schema: $ref: '#/components/schemas/RunnerRolesInfo' required: true x-bodyName: body responses: '200': description: 'The roles for the {runner_id} specified runner are assigned.' content: application/json: schema: $ref: '#/components/schemas/RunnerRolesInfo' '400': description: 'There was an error while assigning the roles for the {runner_id} specified runner. Try your request again. (code: `runners.runner_set_roles_failed`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.runner_set_roles_failed type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'Unable to find the {runner_id} specified runner. Edit your request, then try again. (code: `runners.runner_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - runners.runner_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - Runners /platform/license: get: tags: - PlatformInfrastructure summary: Get license description: Retrieves the license. operationId: get-license responses: '200': description: The information for the license. content: application/json: schema: $ref: '#/components/schemas/LicenseObject' '404': description: 'The license cannot be found. (code: `license.license_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - license.license_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - License put: tags: - PlatformInfrastructure summary: Add or update license description: Adds a new or updates an existing license. operationId: set-license requestBody: description: The license to add or update. content: application/json: schema: $ref: '#/components/schemas/LicenseObject' required: true x-bodyName: body responses: '200': description: The license was updated. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The license could not be updated. (code: `license.invalid_license`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - license.invalid_license type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - License delete: tags: - PlatformInfrastructure summary: Delete license description: Deletes the license. operationId: delete-license responses: '200': description: The license was deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The license cannot be found. (code: `license.license_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - license.license_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Platform - License /stack/instance-types: get: tags: - Stack summary: "DEPRECATED: Scheduled to be removed in a future release.\n\nGet instance types" description: Retrieves a list of all instance types. operationId: get-instance-types responses: '200': description: List of node types content: application/octet-stream: schema: type: array items: $ref: '#/components/schemas/InstanceTypeResource' deprecated: true x-doc: tag: Stack - Instance Types - CRUD /stack/versions: get: tags: - Stack summary: Get stack versions description: 'By default, retrieves only the available Elastic Stack versions. To retrieve all of the Elastic Stack versions, use the `show_deleted parameter`.' operationId: get-version-stacks parameters: - name: show_deleted in: query description: Whether to show deleted stack versions or not schema: type: boolean default: false - name: show_unusable in: query description: Whether to show versions that are unusable by the authenticated user schema: type: boolean default: false responses: '200': description: 'The list of all available Elastic Stack versions are retrieved, including the template version and structure.' content: application/json: schema: $ref: '#/components/schemas/StackVersionConfigs' x-doc: tag: Stack - Versions - CRUD post: tags: - Stack summary: Upload stack pack description: "Creates or updates an Elastic Stack pack and template.\nThe endpoint supports `multipart/form-data` requests, as well as `application/zip` and `application/octet-stream` requests with a binary body. The maximum size of the payload is 1Mb.\nWhen the archive contains an Elastic Stack configuration that is available through the API, the configuration and template are overwritten." operationId: update-stack-packs requestBody: content: multipart/form-data: schema: required: - file type: object properties: file: type: string description: Zip file that contains one or multiple stack configurations format: binary responses: '200': description: The Elastic Stack pack successfully processed. content: application/json: schema: $ref: '#/components/schemas/StackVersionArchiveProcessingResult' '400': description: "* There is an error in the file. Choose a different file, then try again. (code: `stackpack.bad_archive`)\n* Some unexpected error occurred. (code: `stackpack.unknown_internal_error`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - stackpack.bad_archive - stackpack.unknown_internal_error type: string content: application/json: schema: $ref: '#/components/schemas/StackVersionArchiveProcessingResult' x-doc: tag: Stack - Versions - CRUD '/stack/versions/{version}': get: tags: - Stack summary: Get stack version description: Retrieves the Elastic Stack version and template. operationId: get-version-stack parameters: - name: version in: path description: 'The Elastic Stack version. For example, `5.3.1` or `5.0.0-RC4`.' required: true schema: type: string responses: '200': description: The Elastic Stack version is found. content: application/json: schema: $ref: '#/components/schemas/StackVersionConfig' '404': description: 'The Elastic Stack version can''t be found. (code: `stackpack.version_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - stackpack.version_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Stack - Versions - CRUD put: tags: - Stack summary: Update stack version description: Updates the Elastic Stack version configuration. operationId: update-version-stack parameters: - name: version in: path description: 'The Elastic Stack version. For example, `5.3.1` or `5.0.0-RC4`.' required: true schema: type: string requestBody: description: Elastic Stack configuration object content: application/json: schema: $ref: '#/components/schemas/StackVersionConfigPost' required: true x-bodyName: body responses: '200': description: The Elastic Stack version successfully updated. content: application/json: schema: $ref: '#/components/schemas/StackVersionConfig' '404': description: 'The Elastic Stack version can''t be found. (code: `stackpack.missing_platform_version`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - stackpack.missing_platform_version type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Stack - Versions - CRUD delete: tags: - Stack summary: Delete stack version description: 'Uses the `deleted` flag, which removes only that version of the Elastic Stack from the list of available versions. To restore the version, send an update request. For more information, see the PUT request.' operationId: delete-version-stack parameters: - name: version in: path description: 'The Elastic Stack version. For example, `5.3.1` or `5.0.0-RC4`.' required: true schema: type: string responses: '200': description: The `deleted` flag is applied to the specified Elastic Stack version. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The Elastic Stack version can''t be found. (code: `stackpack.version_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - stackpack.version_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Stack - Versions - CRUD /trusted-environments: get: tags: - TrustedEnvironments summary: Get trusted environments description: 'Returns the list of trusted environments for the organization. If no organization is passed in, the organization attached to the user is assumed.' operationId: get-trusted-envs parameters: - name: organization_id in: query description: (Optional) Organization Id for which to retrieve the trusted environments schema: type: string responses: '200': description: Trusted environments for this organization content: application/json: schema: $ref: '#/components/schemas/ElasticsearchClusterTrustSettings' '404': description: 'Organization not found. (code: `organization.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - organization.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: TrustedEnvironments /user: get: tags: - Users - IamService summary: Fetch current user information description: Fetch current user information. operationId: get-current-user responses: '200': description: User successfully fetched content: application/json: schema: $ref: '#/components/schemas/User' '401': description: 'Invalid user authentication. (code: `root.unauthenticated`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthenticated type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users patch: tags: - Users - IamService summary: Updates the current user description: Updates the current user. operationId: update-current-user requestBody: description: 'All changes in the specified object are applied to the current user according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: User successfully updated content: application/json: schema: $ref: '#/components/schemas/User' '400': description: "* Some of the provided roles are invalid. (code: `user.roles.invalid`)\n* Some of the provided roles are forbidden. (code: `user.roles.forbidden`)\n* Trying to set a restricted field. (code: `user.restricted_field`)\n* External users cannot be modified. (code: `user.cannot_modify_external`)\n* Built-in users cannot be modified. (code: `user.cannot_modify`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.roles.invalid - user.roles.forbidden - user.restricted_field - user.cannot_modify_external - user.cannot_modify type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'Invalid user authentication. (code: `root.unauthenticated`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthenticated type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users /users: get: tags: - Users - IamService summary: Fetch all users description: Fetches all available users. operationId: get-users parameters: - name: include_disabled in: query description: True if disabled users should be included in the response schema: type: boolean default: false responses: '200': description: Users successfully fetched content: application/json: schema: $ref: '#/components/schemas/UserList' x-doc: tag: Users post: tags: - Users - IamService summary: Creates a new user description: Creates a new user. operationId: create-user requestBody: description: The user to create content: application/json: schema: $ref: '#/components/schemas/User' required: true x-bodyName: body responses: '200': description: User successfully created content: application/json: schema: $ref: '#/components/schemas/User' '400': description: "* The provided user name is invalid. Check that it is not empty and it does not contain special characters. (code: `user.user_name.invalid`)\n* Some of the provided roles are invalid. (code: `user.roles.invalid`)\n* Some of the provided roles are forbidden. (code: `user.roles.forbidden`)\n* Trying to set a restricted field. (code: `user.restricted_field`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.user_name.invalid - user.roles.invalid - user.roles.forbidden - user.restricted_field type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '409': description: 'The username is already in use. (code: `user.user_name.conflict`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.user_name.conflict type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users /users/auth: get: tags: - Authentication - IamService summary: User authentication information description: 'Provides authentication information about a user, including elevated permission status and TOTP device availability.' operationId: get-authentication-info responses: '200': description: User authentication information response content: application/json: schema: $ref: '#/components/schemas/AuthenticationInfo' x-doc: tag: Authentication /users/auth/_login: post: tags: - Authentication - IamService summary: Login to ECE description: Authenticates against available users. operationId: login requestBody: description: The login request content: application/json: schema: $ref: '#/components/schemas/LoginRequest' required: true x-bodyName: body responses: '200': description: 'Login successful, returns the token in the body (if ''login_state.path'' not specified)' content: application/json: schema: $ref: '#/components/schemas/TokenResponse' '302': description: Redirects to '/sso/token#BEARER_TOKEN?state=LOGIN_STATE' with the fragment containing a bearer token (if 'login_state.path' is specified) content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '401': description: 'The supplied authentication is invalid. (code: `root.unauthenticated`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthenticated type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '501': description: 'The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.no_authentication_cluster type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '502': description: 'The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.authentication_cluster_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication /users/auth/_logout: post: tags: - Authentication - IamService summary: Logout from ECE description: Destroys the current session. operationId: logout responses: '200': description: The current session was successfully destroyed. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '501': description: 'The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.no_authentication_cluster type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '502': description: 'The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.authentication_cluster_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication /users/auth/_refresh: post: tags: - Authentication - IamService summary: Refresh authentication token description: Issues a new authentication token. operationId: refresh-token responses: '200': description: The token refreshed successfully and was returned in the body of the response. content: application/json: schema: $ref: '#/components/schemas/TokenResponse' '401': description: 'The authentication token is invalid or expired. (code: `root.unauthorized`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '501': description: 'The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.no_authentication_cluster type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '502': description: 'The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.authentication_cluster_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication /users/auth/keys: get: tags: - Authentication - IamService summary: Get all API keys description: Retrieves the metadata for the API keys the caller is allowed to see. operationId: get-api-keys parameters: - name: next_page in: query description: Pagination cursor to get the next page of records schema: type: string responses: '200': description: The metadata for the API keys is retrieved. content: application/json: schema: $ref: '#/components/schemas/ApiKeysResponse' x-doc: tag: Authentication post: tags: - Authentication - IamService summary: Create API key description: Creates a new API key. operationId: create-api-key requestBody: description: The request to create the API key content: application/json: schema: $ref: '#/components/schemas/CreateApiKeyRequest' required: true x-bodyName: body responses: '201': description: The API key is created and returned in the body of the response. content: application/json: schema: $ref: '#/components/schemas/ApiKeyResponse' '400': description: 'The request is invalid. Specify a different request, then try again. (code: `api_keys.invalid_input`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.invalid_input type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication delete: tags: - Authentication - IamService summary: Delete API keys description: Delete or invalidate API keys. operationId: delete-api-keys requestBody: description: The request to delete API keys content: application/json: schema: $ref: '#/components/schemas/DeleteApiKeysRequest' required: true x-bodyName: body responses: '200': description: The API keys are deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' x-doc: tag: Authentication /users/auth/keys/_all: get: tags: - Authentication - IamService summary: Get all API keys for all users description: "DEPRECATED: Scheduled to be removed in a future release.\n\nRetrieves the metadata for all of the API keys for all users." operationId: get-users-api-keys responses: '200': description: The metadata for the API keys is retrieved. content: application/json: schema: $ref: '#/components/schemas/ApiKeysResponse' x-doc: tag: Authentication delete: tags: - Authentication - IamService summary: Delete API keys of multiple users description: Delete or invalidate the API keys for multiple users. operationId: delete-users-api-keys requestBody: description: The request to delete API keys. content: application/json: schema: $ref: '#/components/schemas/DeleteUsersApiKeysRequest' required: true x-bodyName: body responses: '200': description: The API keys are deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' x-doc: tag: Authentication '/users/auth/keys/{api_key_id}': get: tags: - Authentication - IamService summary: Get API key description: Retrieves the metadata for an API key. operationId: get-api-key parameters: - name: api_key_id in: path description: The API Key ID. required: true schema: type: string responses: '200': description: The API key metadata is retrieved. content: application/json: schema: $ref: '#/components/schemas/ApiKeyResponse' '404': description: 'The {api_key_id} can''t be found. (code: `api_keys.key_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.key_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication delete: tags: - Authentication - IamService summary: Delete API key description: Delete or invalidate the API key. operationId: delete-api-key parameters: - name: api_key_id in: path description: The API Key ID. required: true schema: type: string responses: '200': description: The API key is deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The {api_key_id} can''t be found. (code: `api_keys.key_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.key_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication /users/auth/methods: get: tags: - Authentication - IamService summary: Available authentication methods description: Provides information about available authentication methods. operationId: methods responses: '200': description: Available authentication methods response content: application/json: schema: $ref: '#/components/schemas/AvailableAuthenticationMethods' x-doc: tag: Authentication /users/auth/saml/_callback: post: tags: - Authentication - IamService summary: SAML callback description: Accepts a callback request from an identity provider and authenticates the user. operationId: saml-callback requestBody: content: application/x-www-form-urlencoded: schema: required: - SAMLResponse type: object properties: SAMLResponse: type: string description: A message issued by the identity provider to the service provider RelayState: type: string description: The optional relay state that the API (service provider) sent to the identity provider. responses: '302': description: 'Redirects to the UI endpoint with an authorization token in the fragment and the relay state, if it was specified during the initialization.' content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '401': description: 'The supplied SAML response is invalid. (code: `root.unauthenticated`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthenticated type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '501': description: 'The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.no_authentication_cluster type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '502': description: 'The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.authentication_cluster_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication /users/auth/saml/_init: get: tags: - Authentication - IamService summary: Initiate SAML protocol description: Calls the authentication cluster to initiate SAML Single Sign-on (Web Browser SSO profile) protocol and redirects the user to the identity provider for authentication. The authentication cluster must be configured prior to initiation. operationId: saml-init parameters: - name: state in: query description: An optional relay state that is sent back to the client after the user is authenticated schema: type: string - name: realm in: query description: An optional SAML realm to use for authentication schema: type: string responses: '302': description: Redirects the client to the identity provider with a SAML authentication request content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '501': description: 'The administrator needs to configure the authentication cluster. (code: `authc.no_authentication_cluster`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.no_authentication_cluster type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '502': description: 'The authentication cluster failed to process the request. The response body contains details about the error. (code: `authc.authentication_cluster_error`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - authc.authentication_cluster_error type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication '/users/{user_id}/auth/keys': get: tags: - Authentication - IamService summary: Get API key metadata for all keys created by the user description: Retrieves metadata for all API keys created by the given user. operationId: get-user-api-keys parameters: - name: user_id in: path description: The user ID. required: true schema: type: string responses: '200': description: The API key metadata is retrieved. content: application/json: schema: $ref: '#/components/schemas/ApiKeysResponse' '404': description: 'The {user_id} can''t be found. (code: `api_keys.user_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.user_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication delete: tags: - Authentication - IamService summary: Delete API keys for a user description: Delete or invalidate all of the API keys for a user. operationId: delete-user-api-keys parameters: - name: user_id in: path description: The user ID. required: true schema: type: string responses: '200': description: The API key is deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The {user_id} can''t be found. (code: `api_keys.user_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.user_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication '/users/{user_id}/auth/keys/{api_key_id}': get: tags: - Authentication - IamService summary: Get a user API key description: Retrieves the API key metadata for a user. operationId: get-user-api-key parameters: - name: user_id in: path description: The user ID. required: true schema: type: string - name: api_key_id in: path description: The API Key ID. required: true schema: type: string responses: '200': description: The API key metadata is retrieved. content: application/json: schema: $ref: '#/components/schemas/ApiKeyResponse' '404': description: 'The {api_key_id} can''t be found. (code: `api_keys.key_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.key_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication delete: tags: - Authentication - IamService summary: Delete an API key for a user description: Delete or invalidate an API key for a user. operationId: delete-user-api-key parameters: - name: user_id in: path description: The user ID. required: true schema: type: string - name: api_key_id in: path description: The API Key ID. required: true schema: type: string responses: '200': description: The API key is deleted. content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '404': description: 'The {api_key_id} can''t be found. (code: `api_keys.key_not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - api_keys.key_not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Authentication '/users/{user_id}/role_assignments': post: tags: - UserRoleAssignments - IamService summary: Add Role Assignments description: Adds a set of RoleAssignments to the specified User. Currently unavailable in self-hosted ECE. operationId: add-role-assignments parameters: - name: user_id in: path description: Identifier for the user; include realm name and id if required required: true schema: type: string requestBody: description: The Role Assignments to add content: application/json: schema: $ref: '#/components/schemas/RoleAssignments' required: true x-bodyName: body responses: '200': description: Role Assignments were successfully added to the target User content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The target user Id is invalid. (code: `role_assignments.invalid_target_user_id`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - role_assignments.invalid_target_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'Credentials were invalid. (code: `root.unauthorized`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'You are not authorised to add the specified RoleAssignments. (code: `role_assignments.unauthorized_role_assignments`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - role_assignments.unauthorized_role_assignments type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users - Role Assignments delete: tags: - UserRoleAssignments - IamService summary: Remove Role Assignments description: Removes a set of RoleAssignments from the specified User. Currently unavailable in self-hosted ECE. operationId: remove-role-assignments parameters: - name: user_id in: path description: Identifier for the user; include realm name and id if required required: true schema: type: string - name: force in: query description: Whether or not to force the removal of role assignments (effective only for Platform Admins) schema: type: boolean default: false requestBody: description: The Role Assignments to remove content: application/json: schema: $ref: '#/components/schemas/RoleAssignments' required: true x-bodyName: body responses: '200': description: Role Assignments were successfully removed from the target User content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: 'The target user Id is invalid. (code: `role_assignments.invalid_target_user_id`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - role_assignments.invalid_target_user_id type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '401': description: 'Credentials were invalid. (code: `root.unauthorized`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - root.unauthorized type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '403': description: 'You are not authorised to remove the specified RoleAssignments. (code: `role_assignments.unauthorized_role_assignments`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - role_assignments.unauthorized_role_assignments type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users - Role Assignments '/users/{user_name}': get: tags: - Users - IamService summary: Fetch a single user description: Fetches a single user. operationId: get-user parameters: - name: user_name in: path description: Identifier for the user required: true schema: type: string responses: '200': description: User successfully fetched content: application/json: schema: $ref: '#/components/schemas/User' '404': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users delete: tags: - Users - IamService summary: Deletes an existing user description: Deletes an existing user. operationId: delete-user parameters: - name: user_name in: path description: Identifier for the user required: true schema: type: string responses: '200': description: User successfully deleted content: application/json: schema: $ref: '#/components/schemas/EmptyResponse' '400': description: "* The user cannot be deleted. (code: `user.restricted_deletion`)\n* External users cannot be modified. (code: `user.cannot_modify_external`)\n* Built-in users cannot be modified. (code: `user.cannot_modify`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.restricted_deletion - user.cannot_modify_external - user.cannot_modify type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users patch: tags: - Users - IamService summary: Updates an existing user description: Updates an existing user. operationId: update-user parameters: - name: user_name in: path description: Identifier for the user required: true schema: type: string requestBody: description: 'All changes in the specified object are applied to the user according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.' content: application/json: schema: type: string required: true x-bodyName: body responses: '200': description: User successfully updated content: application/json: schema: $ref: '#/components/schemas/User' '400': description: "* Some of the provided roles are invalid. (code: `user.roles.invalid`)\n* Some of the provided roles are forbidden. (code: `user.roles.forbidden`)\n* Trying to set a restricted field. (code: `user.restricted_field`)\n* External users cannot be modified. (code: `user.cannot_modify_external`)\n* Built-in users cannot be modified. (code: `user.cannot_modify`)" headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.roles.invalid - user.roles.forbidden - user.restricted_field - user.cannot_modify_external - user.cannot_modify type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' '404': description: 'User not found. (code: `user.not_found`)' headers: x-cloud-error-codes: description: The error codes associated with the response schema: enum: - user.not_found type: string content: application/json: schema: $ref: '#/components/schemas/BasicFailedReply' x-doc: tag: Users components: schemas: AccountResponse: required: - id type: object properties: id: type: string description: The account's identifier trust: $ref: '#/components/schemas/AccountTrustSettings' description: 'An account is the entity that owns deployments, and it is accessed by users. Accounts are isolated from each other.' AccountTrustRelationship: required: - account_id - trust_all type: object properties: account_id: type: string description: the ID of the Account name: type: string description: A human readable name of the trust relationship trust_all: type: boolean description: 'If true, all clusters in this account will by default be trusted and the `trust_allowlist` is ignored.' trust_allowlist: type: array items: type: string description: The list of clusters to trust. Only used when `trust_all` is false. description: The trust relationship with the clusters of one account. AccountTrustSettings: required: - trust_all type: object properties: trust_all: type: boolean description: 'If true, all clusters in this account will by default trust all other clusters in the same account' description: Settings related to the level of trust of the clusters in this account AccountUpdateRequest: type: object properties: trust: $ref: '#/components/schemas/AccountTrustSettings' description: A request to update an account ActiveDirectoryGroupSearch: type: object properties: base_dn: type: string description: Specifies a container DN to search for groups in which the user has membership scope: enum: - sub_tree - one_level - base type: string description: 'Specifies whether the group search should be sub_tree, one_level or base. one_level only searches objects directly contained within the base_dn. The default sub_tree searches all objects contained under base_dn. base specifies that the base_dn is a group object, and that it is the only group considered.' description: Elasticsearch Security Active Directory realm group search configuration ActiveDirectorySecurityRealmLoadBalance: type: object properties: type: enum: - failover - dns_failover - round_robin - dns_round_robin type: string description: The behavior to use when there are multiple Active Directory URLs defined cache_ttl: type: string description: 'When using dns_failover or dns_round_robin as the load balancing type, this setting controls the amount of time to cache DNS lookups. Defaults to 1h.' description: Elasticsearch Security Active Directory load balancing configuration ActiveDirectorySecurityRealmRoleMappingRule: required: - roles - type - value type: object properties: type: enum: - user_dn - group_dn type: string description: The type of role mapping rule roles: type: array items: type: string description: The roles that are applied when the mapping rule is successfully evaluated value: type: string description: The value to match when evaluating this rule description: Elasticsearch Security Active Directory role mapping rule ActiveDirectorySecurityRealmRoleMappingRules: required: - default_roles - rules type: object properties: default_roles: type: array items: type: string description: The default roles applied to all users rules: type: array items: $ref: '#/components/schemas/ActiveDirectorySecurityRealmRoleMappingRule' description: The role mapping rules to evaluate description: Elasticsearch Security Active Directory role mapping rule set ActiveDirectorySettings: required: - bind_anonymously - domain_name - id - name - urls type: object properties: id: type: string description: The identifier for the security realm name: type: string description: The friendly name of the security realm urls: type: array items: type: string description: 'The Active Directory URLs used to authenticate against, in the format ldap[s]://server:port. Note that ldap and ldaps protocols cannot be mixed together.' domain_name: type: string description: Specifies the domain name of the Active Directory (the forest root domain name). bind_anonymously: type: boolean description: 'When true, bindDb credentials are ignored' group_search: $ref: '#/components/schemas/ActiveDirectoryGroupSearch' user_search: $ref: '#/components/schemas/ActiveDirectoryUserSearch' bind_dn: type: string description: The distinguished name of the user that is used to bind to the Active Directory and perform searches. bind_password: type: string description: The user password that is used to bind to the Active Directory server. load_balance: $ref: '#/components/schemas/ActiveDirectorySecurityRealmLoadBalance' certificate_url: type: string description: 'The SSL trusted CA certificate bundle URL. The bundle should be a zip file containing a single keystore file ''keystore.ks'' in the directory ''/active_directory/:id/truststore'', where :id is the value of the [id] field.' certificate_url_truststore_password: type: string description: The password to the certificate bundle URL truststore certificate_url_truststore_type: enum: - jks - PKCS12 type: string description: The format of the truststore file. Should be jks to use the Java Keystore format or PKCS12 to use PKCS#12 files. The default is jks. role_mappings: $ref: '#/components/schemas/ActiveDirectorySecurityRealmRoleMappingRules' enabled: type: boolean description: 'When true, enables the security realm' order: type: integer description: The order that the security realm is evaluated format: int32 override_yaml: type: string description: 'Advanced configuration options in YAML format. Any settings defined here will override any configuration set via the API. Note that all keys should omit the ''xpack.security.authc.realms.active_directory.{realm_id}'' prefix. For example, when the realm ID is set to ''ad1'', the advanced configuration ''xpack.security.authc.realms.active_directory.ad1.ssl.verification_mode: full'' should be added as ''ssl.verification_mode: full''.' description: Elasticsearch Security Active Directory realm configuration ActiveDirectoryUserSearch: type: object properties: base_dn: type: string description: Specifies a container DN to search for users scope: enum: - sub_tree - one_level - base type: string description: 'The scope of the user search. Valid values are sub_tree, one_level, or base. one_level only searches objects directly contained in the base_dn. sub_tree searches all objects contained in base_dn. base specifies that the base_dn is the user object, and that it is the only user considered. Defaults to sub_tree.' filter: type: string description: 'Specifies the filter to search the directory and match an entry with the username provided by the user. Defaults to (uid={0}). {0} is substituted with the username provided when searching.' description: Elasticsearch Security Active Directory realm user search configuration AddRoleMappingRequest: required: - mappings type: object properties: mappings: type: array items: $ref: '#/components/schemas/RoleMapping' description: A rule to add to the role assignments in the organization AdminconsoleInfo: required: - adminconsole_id type: object properties: adminconsole_id: type: string description: Identifier for this adminconsole description: Information for the adminconsole. AdminconsolesOverview: required: - adminconsoles type: object properties: adminconsoles: type: array items: $ref: '#/components/schemas/AdminconsoleInfo' description: List of adminconsoles description: Information about all of the adminconsoles. AllocatedInstancePlansInfo: required: - pending type: object properties: pending: type: boolean description: Whether or not there is a pending plan. version: type: string description: 'The version of the current plan, falling back to that of the pending plan if it exists.' zone_count: type: integer description: 'The number of zones in the current plan, falling back to that of the pending plan if it exists.' format: int32 description: The plan information for the Elasticsearch cluster associated with the Kibana instance or APM Server. AllocatedInstanceStatus: required: - cluster_id - cluster_type - instance_name - node_memory type: object properties: cluster_type: enum: - elasticsearch - kibana - apm - integrations_server - appsearch - enterprise_search type: string description: Type of instance that is running cluster_id: type: string description: Identifier for the cluster this instance belongs cluster_name: type: string description: 'Name of cluster this instance belongs, if available' instance_name: type: string description: Instance ID of the instance node_memory: type: integer description: Memory assigned to this instance format: int32 healthy: type: boolean description: Indicates whether the instance is healthy cluster_healthy: type: boolean description: Indicates whether the cluster the instance belongs to is healthy instance_configuration_id: type: string description: The instance configuration id of this instance moving: type: boolean description: Indicates whether the instance is vacating away from this allocator. Note that this is currently not populated when returned from the search endpoint. plans_info: $ref: '#/components/schemas/AllocatedInstancePlansInfo' deployment_id: type: string description: The id of the deployment this cluster belongs to. description: The status of the allocated Kibana instance or APM Server. AllocatorBuildInfo: type: object properties: commit_hash: type: string description: Git commit hash version: type: string description: Version of the artifact description: Information about the build that is running on the allocator. AllocatorCapacity: required: - memory - storage type: object properties: memory: $ref: '#/components/schemas/AllocatorCapacityMemory' storage: $ref: '#/components/schemas/AllocatorCapacityStorage' available_cpus: type: integer description: Total number of CPUs available on this allocator format: int32 additional_master_bonus: type: number description: Additional bonus CPU shares available to Elasticsearch master instances format: float description: The total and used capacity of the allocator. AllocatorCapacityMemory: required: - total - used type: object properties: total: type: integer description: Total memory in MB capacity installed on this allocator format: int32 used: type: integer description: Used memory in MB used by instances assigned to this allocator format: int32 description: The available and used memory of the allocator. AllocatorCapacityStorage: required: - total type: object properties: total: type: integer description: Total storage in MiB capacity installed on this allocator format: int64 description: The storage capacity of the allocator. AllocatorHealthChecks: required: - has_instances - is_connected_to_zk - is_docker_healthy type: object properties: is_docker_healthy: type: boolean description: Check performed by the allocator to figure out if docker is healthy is_connected_to_zk: type: boolean description: Whether the allocator is connected to zk or not has_instances: type: boolean description: Whether the allocator has allocated instances description: The checks performed to determine if an allocator is healthy or not. AllocatorHealthStatus: required: - connected - healthy - maintenance_mode type: object properties: connected: type: boolean description: Whether the allocator is connected healthy: type: boolean description: 'Whether the allocator is healthy, meaning it is either connected or has no instances' health_checks: $ref: '#/components/schemas/AllocatorHealthChecks' maintenance_mode: type: boolean description: Whether the allocator is in maintenance mode (meaning that new workload won't be assigned to it) maintenance_mode_timestamp: type: string description: Timestamp when allocator last entered or exited maintenance mode format: date-time description: The health status of the allocator. AllocatorInfo: required: - allocator_id - capacity - external_links - features - host_ip - instances - metadata - public_hostname - settings - status - zone_id type: object properties: status: $ref: '#/components/schemas/AllocatorHealthStatus' allocator_id: type: string description: Identifier for this allocator zone_id: type: string description: Identifier of the zone host_ip: type: string description: Host IP of this allocator public_hostname: type: string description: Public hostname of this allocator capacity: $ref: '#/components/schemas/AllocatorCapacity' settings: $ref: '#/components/schemas/AllocatorSettings' instances: type: array items: $ref: '#/components/schemas/AllocatedInstanceStatus' metadata: type: array items: $ref: '#/components/schemas/MetadataItem' description: Arbitrary metadata associated with this allocator build_info: $ref: '#/components/schemas/AllocatorBuildInfo' features: type: array items: type: string description: List of features associated with this allocator. Note this is only present for backwards compatibility purposes and is scheduled for removal in the next major version release. external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to this allocator. region: type: string description: The region that this allocator belongs to. Only populated in SaaS or federated ECE. description: The overview information for the allocator. AllocatorMoveRequest: required: - from type: object properties: from: type: string description: The allocator id off which all instances in the cluster should be moved to: type: array items: type: string description: An optional list of allocator ids to which the instance(s) should be moved. If not specified then any available allocator can be used (including the current one if it is healthy) allocator_down: type: boolean description: 'Tells the infrastructure that all instances on the allocator should be considered as permanently down when deciding how to migrate data to new nodes. If left blank then the system will auto-decide (currently: will treat the allocator as up)' description: 'As part of the upgrade plan, identifies the move requests for the Kibana instances or APM Servers on the allocators.' AllocatorOverview: required: - zones type: object properties: zones: type: array items: $ref: '#/components/schemas/AllocatorZoneInfo' description: The overview information for the installed allocators. AllocatorSettings: type: object properties: capacity: type: integer description: A memory capacity (in MB) that overrides the capacity defined during installation - requires separate restart of Allocator services on each host to take full effect. format: int32 description: The settings for the allocator. AllocatorZoneInfo: required: - allocators - zone_id type: object properties: zone_id: type: string description: Identifier of the zone allocators: type: array items: $ref: '#/components/schemas/AllocatorInfo' description: The allocators for the specified zone. AllocatorsSummary: required: - healthy - zone_summaries type: object properties: healthy: type: boolean description: Whether all allocators are healthy zone_summaries: type: array items: $ref: '#/components/schemas/AllocatorsZoneSummary' description: Summarized information on allocators in each zone description: Summarized information about allocators. AllocatorsZoneSummary: required: - connected_allocators - connected_capacity - disconnected_allocators - healthy_allocators - in_maintenance_allocators - instances - max_available_capacity - total_allocators - zone_id type: object properties: zone_id: type: string description: Identifier of the zone total_allocators: type: integer description: Total number of allocators format: int32 healthy_allocators: type: integer description: Number of healthy allocators format: int32 connected_allocators: type: integer description: Number of connected allocators format: int32 disconnected_allocators: type: integer description: Number of disconnected allocators format: int32 in_maintenance_allocators: type: integer description: Number of connected allocators in maintenance format: int32 connected_capacity: type: integer description: Capacity of connected allocators in megabytes format: int32 max_available_capacity: type: integer description: Maximum capacity available in one allocator in megabytes format: int32 instances: type: integer description: Number of instances across all allocators in the region format: int32 description: Summary of the allocators for the specified zone. ApiBaseUrlData: required: - value type: object properties: value: type: string description: The configured base Url description: Information about the API base Url ApiKeyResponse: required: - creation_date - description - id type: object properties: id: type: string description: The API key ID. user_id: type: string description: The user ID. organization_id: type: string description: The organization ID linked to the API key description: type: string description: 'The API key description. TIP: Useful when you have multiple API keys.' key: type: string description: 'The API key. TIP: Since the API key is returned only once, save it in a safe place.' creation_date: type: string description: The date/time for when the API key is created. format: date-time expiration_date: type: string description: The date/time when the API key expires. format: date-time role_assignments: $ref: '#/components/schemas/RoleAssignments' description: The response model for an API key. ApiKeysResponse: required: - keys type: object properties: keys: type: array items: $ref: '#/components/schemas/ApiKeyResponse' description: The list of API keys. next_page: type: string description: A cursor to get the next page of results description: The response model for the API keys. Apm: required: - backend_plan - display_name - elasticsearch_cluster_ref_id - ref_id type: object properties: ref_id: type: string description: A locally-unique user-specified id display_name: type: string description: The human readable name (defaults to the generated cluster id if not specified) elasticsearch_cluster_ref_id: type: string description: The user-specified id of the Elasticsearch Cluster that this will link to backend_plan: type: object description: The backend plan as JSON description: Holds diagnostics for an APM resource ApmConfiguration: type: object properties: version: type: string description: 'The version of the Apm cluster (must be one of the ECE supported versions, and won''t work unless it matches the APM version. Leave blank to auto-detect version.)' docker_image: type: string description: A docker URI that allows overriding of the default docker image specified for this version system_settings: $ref: '#/components/schemas/ApmSystemSettings' user_settings_json: type: object description: 'An arbitrary JSON object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_yaml'' is allowed), provided the parameters are on the allowlist and not on the denylist. (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Apm settings)' user_settings_yaml: type: string description: 'An arbitrary YAML object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_json'' is allowed), provided the parameters are on the allowlist and not on the denylist. (These field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Apm settings)' user_settings_override_json: type: object description: 'An arbitrary JSON object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_yaml'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Apm settings)' user_settings_override_yaml: type: string description: 'An arbitrary YAML object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_json'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Apm settings)' description: The configuration options for the APM Server. ApmCrudResponse: required: - secret_token type: object properties: apm_id: type: string description: 'For an operation creating or updating an APM server, the Id of that server' secret_token: type: string description: The secret token for accessing the server diagnostics: type: object description: 'If the endpoint is called with URL param ''validate_only=true'', then this contains advanced debug info (the internal plan representation)' description: The response to an APM CRUD (create/update-plan) request. ApmInfo: required: - elasticsearch_cluster - external_links - healthy - id - name - plan_info - status - topology type: object properties: id: type: string description: The id of the APM name: type: string description: The name of the APM elasticsearch_cluster: $ref: '#/components/schemas/TargetElasticsearchCluster' deployment_id: type: string description: The id of the deployment that this APM Server belongs to. healthy: type: boolean description: 'Whether the APM is healthy or not (one or more of the info subsections will have healthy: false)' status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: APM status plan_info: $ref: '#/components/schemas/ApmPlansInfo' metadata: $ref: '#/components/schemas/ClusterMetadataInfo' topology: $ref: '#/components/schemas/ClusterTopologyInfo' external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to the APM links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation settings: $ref: '#/components/schemas/ApmSettings' region: type: string description: The region that this APM belongs to. Only populated in SaaS or federated ECE. apm_server_mode: enum: - standalone - managed type: string description: The mode APM is operating in. description: The overview information for the APM Server. ApmPayload: required: - elasticsearch_cluster_ref_id - plan - ref_id - region type: object properties: ref_id: type: string description: A locally-unique user-specified id for APM elasticsearch_cluster_ref_id: type: string description: Alias to the Elasticsearch Cluster to attach APM to display_name: type: string description: 'The human readable name for the APM cluster (default: takes the name of its Elasticsearch cluster)' region: type: string description: The region where this resource exists plan: $ref: '#/components/schemas/ApmPlan' settings: $ref: '#/components/schemas/ApmSettings' description: An APM creation request paired with the alias of the Elasticsearch cluster it should be paired with ApmPlan: required: - apm type: object properties: cluster_topology: type: array items: $ref: '#/components/schemas/ApmTopologyElement' apm: $ref: '#/components/schemas/ApmConfiguration' transient: $ref: '#/components/schemas/TransientApmPlanConfiguration' description: The plan for the APM Server. ApmPlanControlConfiguration: type: object properties: timeout: type: integer description: The total timeout in seconds after which the plan is cancelled even if it is not complete. Defaults to 4x the max memory capacity per node (in MB) format: int64 calm_wait_time: type: integer description: This timeout determines how long to give a cluster after it responds to API calls before performing actual operations on it. It defaults to 5s format: int64 move_instances: type: array items: $ref: '#/components/schemas/InstanceMoveRequest' move_allocators: type: array items: $ref: '#/components/schemas/AllocatorMoveRequest' reallocate_instances: type: boolean description: 'If true (default: false) does not allow re-using any existing instances currently in the cluster, ie even unchanged instances will be re-created' preferred_allocators: type: array items: type: string description: List of allocators on which instances are placed if possible (if not possible/not specified then any available allocator with space is used) preferred_allocator_tags: type: object additionalProperties: type: string description: 'Map containing allocators tags in form of key value pairs, increasing the likelihood during move requests for allocators with matching tags, to be selected as target allocators' extended_maintenance: type: boolean description: 'If true (default false), does not clear the maintenance flag (which prevents its API from being accessed except by the constructor) on new instances added until after a snapshot has been restored, otherwise, the maintenance flag is cleared once the new instances successfully join the new cluster' cluster_reboot: enum: - forced type: string description: Set to 'forced' to force a reboot as part of the upgrade plan override_failsafe: type: boolean description: 'If false (the default), the plan fails if it determines that the request can result in unsafe operations. Setting this flag overrides some of these check restraints.' description: The plan control configuration options for the APM Server. ApmPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string description: A UUID for each plan attempt plan_attempt_name: type: string description: 'A human readable name for each plan attempt, only populated when retrieving plan histories' healthy: type: boolean description: 'Either the plan ended successfully, or is not yet completed (and no errors have occurred)' attempt_start_time: type: string description: When this plan attempt (ie to apply the plan to the APM) started (ISO format in UTC) format: date-time attempt_end_time: type: string description: 'If this plan completed or failed (ie is not pending), when the attempt ended (ISO format in UTC)' format: date-time plan_end_time: type: string description: 'If this plan is not current or pending, when the plan was no longer active (ISO format in UTC)' format: date-time plan: $ref: '#/components/schemas/ApmPlan' plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' description: Information about the APM Server plan. ApmPlansInfo: required: - healthy - history type: object properties: healthy: type: boolean description: 'Whether the plan situation is healthy (if unhealthy, means the last plan attempt failed)' current: $ref: '#/components/schemas/ApmPlanInfo' pending: $ref: '#/components/schemas/ApmPlanInfo' history: type: array items: $ref: '#/components/schemas/ApmPlanInfo' description: 'Information about current, pending, and past APM Server plans.' ApmResourceInfo: required: - elasticsearch_cluster_ref_id - id - info - ref_id - region type: object properties: ref_id: type: string description: The locally-unique user-specified id of a Resource elasticsearch_cluster_ref_id: type: string description: The Elasticsearch cluster that this resource depends on. id: type: string description: The randomly-generated id of a Resource region: type: string description: The region where this resource exists info: $ref: '#/components/schemas/ApmInfo' description: Describes an APM resource belonging to a Deployment ApmSettings: type: object properties: metadata: $ref: '#/components/schemas/ClusterMetadataSettings' description: The settings for the APM Server. ApmSubInfo: required: - apm_id - enabled type: object properties: apm_id: type: string description: The APM cluster Id enabled: type: boolean description: Whether the associated APM cluster is currently available links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation description: Information about the APM Servers associated with the Elasticsearch cluster. ApmSystemSettings: type: object properties: elasticsearch_username: type: string description: 'Optionally override the account within APM - defaults to a system account that always exists (if specified, the password must also be specified). Note that this field is never returned from the API, it is write only.' elasticsearch_password: type: string description: 'Optionally override the account within APM - defaults to a system account that always exists (if specified, the username must also be specified). Note that this field is never returned from the API, it is write only.' secret_token: type: string description: Optionally override the secret token within APM - defaults to the previously existing secretToken debug_enabled: type: boolean description: Optionally enable debug mode for APM servers - defaults false description: "A structure that defines a curated subset of the APM Server settings. \nTIP: To define the complete set of APM Server setting, use `ApmSystemSettings` with `user_settings_override_` and `user_settings_`." ApmTopologyElement: type: object properties: instance_configuration_id: type: string description: Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the id of an existing instance configuration. instance_configuration_version: type: integer description: 'The version of the Instance Configuration Id. If it is unset, the meaning depends on read vs writes. For deployment reads, it is equivalent to version 0 (or the IC is unversioned); for deployment creates and deployment template use, it is equivalent to ''the latest version''; and for deployment updates, it is equivalent to ''retain the current version''.' format: int32 size: $ref: '#/components/schemas/TopologySize' zone_count: type: integer description: number of zones in which nodes will be placed format: int32 apm: $ref: '#/components/schemas/ApmConfiguration' description: 'Defines the topology of the APM Server nodes. For example, the number or capacity of the nodes, and where you can allocate the nodes.' AppSearch: required: - backend_plan - display_name - elasticsearch_cluster_ref_id - ref_id type: object properties: ref_id: type: string description: A locally-unique user-specified id display_name: type: string description: The human readable name (defaults to the generated cluster id if not specified) elasticsearch_cluster_ref_id: type: string description: The user-specified id of the Elasticsearch Cluster that this will link to backend_plan: type: object description: The backend plan as JSON description: Holds diagnostics for an AppSearch resource AppSearchConfiguration: type: object properties: version: type: string description: 'The version of the AppSearch cluster (must be one of the ECE supported versions, and won''t work unless it matches the Elasticsearch version. Leave blank to auto-detect version.)' docker_image: type: string description: A docker URI that allows overriding of the default docker image specified for this version system_settings: $ref: '#/components/schemas/AppSearchSystemSettings' user_settings_json: type: object description: 'An arbitrary JSON object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_yaml'' is allowed), provided the parameters are on the allowlist and not on the denylist. (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of AppSearch settings)' user_settings_yaml: type: string description: 'An arbitrary YAML object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_json'' is allowed), provided the parameters are on the allowlist and not on the denylist. (These field together with ''user_settings_override*'' and ''system_settings'' defines the total set of AppSearch settings)' user_settings_override_json: type: object description: 'An arbitrary JSON object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_yaml'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of AppSearch settings)' user_settings_override_yaml: type: string description: 'An arbitrary YAML object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_json'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of AppSearch settings)' AppSearchInfo: required: - elasticsearch_cluster - external_links - healthy - id - name - plan_info - status - topology type: object properties: id: type: string description: The id of the App Search name: type: string description: The name of the App Search elasticsearch_cluster: $ref: '#/components/schemas/TargetElasticsearchCluster' deployment_id: type: string description: The id of the deployment that this App Search belongs to. healthy: type: boolean description: 'Whether the App Search is healthy or not (one or more of the info subsections will have healthy: false)' status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: App Search status plan_info: $ref: '#/components/schemas/AppSearchPlansInfo' metadata: $ref: '#/components/schemas/ClusterMetadataInfo' topology: $ref: '#/components/schemas/ClusterTopologyInfo' external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to the App Search links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation settings: $ref: '#/components/schemas/AppSearchSettings' region: type: string description: The region that this App Search belongs to. Only populated in SaaS or federated ECE. description: The overview information for the App Search Server. AppSearchNodeTypes: required: - appserver - worker type: object properties: appserver: type: boolean description: Defines whether this instance should run as Application/API server worker: type: boolean description: Defines whether this instance should run as background worker description: Node types to enable for an AppSearch instance AppSearchPayload: required: - elasticsearch_cluster_ref_id - plan - ref_id - region type: object properties: ref_id: type: string description: A locally-unique user-specified id for AppSearch elasticsearch_cluster_ref_id: type: string description: Alias to the Elasticsearch Cluster to attach AppSearch to display_name: type: string description: 'The human readable name for the AppSearch cluster (default: takes the name of its Elasticsearch cluster)' region: type: string description: The region where this resource exists plan: $ref: '#/components/schemas/AppSearchPlan' settings: $ref: '#/components/schemas/AppSearchSettings' description: An AppSearch creation request paired with the alias of the Elasticsearch cluster it should be paired with AppSearchPlan: required: - appsearch type: object properties: cluster_topology: type: array items: $ref: '#/components/schemas/AppSearchTopologyElement' appsearch: $ref: '#/components/schemas/AppSearchConfiguration' transient: $ref: '#/components/schemas/TransientAppSearchPlanConfiguration' description: The plan for the App Search cluster. AppSearchPlanControlConfiguration: type: object properties: timeout: type: integer description: The total timeout in seconds after which the plan is cancelled even if it is not complete. Defaults to 4x the max memory capacity per node (in MB) format: int64 calm_wait_time: type: integer description: This timeout determines how long to give a cluster after it responds to API calls before performing actual operations on it. It defaults to 5s format: int64 move_instances: type: array items: $ref: '#/components/schemas/InstanceMoveRequest' move_allocators: type: array items: $ref: '#/components/schemas/AllocatorMoveRequest' reallocate_instances: type: boolean description: 'If true (default: false) does not allow re-using any existing instances currently in the cluster, ie even unchanged instances will be re-created' preferred_allocators: type: array items: type: string description: List of allocators on which instances are placed if possible (if not possible/not specified then any available allocator with space is used) preferred_allocator_tags: type: object additionalProperties: type: string description: 'Map containing allocators tags in form of key value pairs, increasing the likelihood during move requests for allocators with matching tags, to be selected as target allocators' extended_maintenance: type: boolean description: 'If true (default false), does not clear the maintenance flag (which prevents its API from being accessed except by the constructor) on new instances added until after a snapshot has been restored, otherwise, the maintenance flag is cleared once the new instances successfully join the new cluster' cluster_reboot: enum: - forced type: string description: Set to 'forced' to force a reboot as part of the upgrade plan override_failsafe: type: boolean description: 'If false (the default), the plan fails if it determines that the request can result in unsafe operations. Setting this flag overrides some of these check restraints.' AppSearchPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string description: A UUID for each plan attempt plan_attempt_name: type: string description: 'A human readable name for each plan attempt, only populated when retrieving plan histories' healthy: type: boolean description: 'Either the plan ended successfully, or is not yet completed (and no errors have occurred)' attempt_start_time: type: string description: When this plan attempt (ie to apply the plan to the App Search) started (ISO format in UTC) format: date-time attempt_end_time: type: string description: 'If this plan completed or failed (ie is not pending), when the attempt ended (ISO format in UTC)' format: date-time plan_end_time: type: string description: 'If this plan is not current or pending, when the plan was no longer active (ISO format in UTC)' format: date-time plan: $ref: '#/components/schemas/AppSearchPlan' plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' description: Information about the App Search Server plan. AppSearchPlansInfo: required: - healthy - history type: object properties: healthy: type: boolean description: 'Whether the plan situation is healthy (if unhealthy, means the last plan attempt failed)' current: $ref: '#/components/schemas/AppSearchPlanInfo' pending: $ref: '#/components/schemas/AppSearchPlanInfo' history: type: array items: $ref: '#/components/schemas/AppSearchPlanInfo' description: 'Information about current, pending, and past App Search Server plans.' AppSearchResourceInfo: required: - elasticsearch_cluster_ref_id - id - info - ref_id - region type: object properties: ref_id: type: string description: The locally-unique user-specified id of a Resource elasticsearch_cluster_ref_id: type: string description: The Elasticsearch cluster that this resource depends on. id: type: string description: The randomly-generated id of a Resource region: type: string description: The region where this resource exists info: $ref: '#/components/schemas/AppSearchInfo' description: Describes an App Search resource belonging to a Deployment AppSearchSettings: type: object properties: metadata: $ref: '#/components/schemas/ClusterMetadataSettings' description: The settings for the App Search. AppSearchSubInfo: required: - app_search_id - enabled type: object properties: app_search_id: type: string description: The App Search Id enabled: type: boolean description: Whether the associated App Search is currently available links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation description: Information about the APM Servers associated with the Elasticsearch cluster. AppSearchSystemSettings: type: object properties: elasticsearch_url: type: string description: 'Optionally override the URL to which to send data (for advanced users only, if unspecified the system selects an internal URL)' elasticsearch_username: type: string description: 'Optionally override the account within App Search - defaults to a system account that always exists (if specified, the password must also be specified). Note that this field is never returned from the API, it is write only.' elasticsearch_password: type: string description: 'Optionally override the account within App Search - defaults to a system account that always exists (if specified, the username must also be specified). Note that this field is never returned from the API, it is write only.' secret_session_key: type: string description: 'Optionally override the secret session key within App Search - defaults to the previously existing secretSession. Note that this field is never returned from the API, it is write only.' description: This structure defines a curated subset of the AppSearch settings. (This field together with 'user_settings_override*' and 'user_settings*' defines the total set of AppSearch settings) AppSearchTopologyElement: type: object properties: node_type: $ref: '#/components/schemas/AppSearchNodeTypes' instance_configuration_id: type: string description: Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the id of an existing instance configuration. instance_configuration_version: type: integer description: 'The version of the Instance Configuration Id. If it is unset, the meaning depends on read vs writes. For deployment reads, it is equivalent to version 0 (or the IC is unversioned); for deployment creates and deployment template use, it is equivalent to ''the latest version''; and for deployment updates, it is equivalent to ''retain the current version''.' format: int32 size: $ref: '#/components/schemas/TopologySize' zone_count: type: integer description: number of zones in which nodes will be placed format: int32 appsearch: $ref: '#/components/schemas/AppSearchConfiguration' description: 'Defines the topology of the AppSearch nodes (eg number/capacity of nodes, and where they can be allocated)' AuthenticationInfo: required: - has_elevated_permissions - refresh_token_url type: object properties: has_totp_device: type: boolean description: 'Deprecated: True if the user has an available TOTP device' totp_device_source: type: string description: 'Deprecated: The TOTP device source' has_elevated_permissions: type: boolean description: 'Deprecated: True if the user has elevated permissions' elevated_permissions_expire_at: type: string description: 'Deprecated: The UTC time when elevated permissions will expire, if the user has elevated permissions' format: date-time totp_device_source_enable_mfa_href: type: string description: 'Deprecated: URL for configuring an MFA TOTP device. Does not apply when totp_device_source is ''native''.' refresh_token_url: type: string description: The API to be used when refreshing the current user's JWT expires_at: type: string description: The UTC time when current authentication will expire. Applies to only token based authentication format: date-time description: A user's authentication info AutoOpsSettings: required: - status type: object properties: status: enum: - connected - not_connected - excluded type: string description: See AutoOps integration status for this deployment. description: AutoOps settings for this deployment. AutodetectStrategyConfig: type: object description: A strategy that lets constructor choose the most optimal way to execute the plan. AvailableAuthenticationMethods: required: - openid - password - saml - sso_methods type: object properties: password: type: boolean description: Indicates that username and password authentication is available. saml: type: boolean description: Indicates that SAML single sign-on authentication is available. openid: type: boolean description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version. This field is no longer used and will always be false.\n\n" sso_methods: type: array items: $ref: '#/components/schemas/SsoAuthenticationMethodInfo' description: Lists details for the available single sign-on methods. description: 'Specifies the authentication methods that are enabled on the Elasticsearch cluster. NOTE: When all fields are `false`, only the Platform admin and Platform viewer are available.' Balance: required: - available - line_items - remaining type: object properties: available: type: number description: Available balance format: double remaining: type: number description: Remaining balance format: double line_items: type: array items: $ref: '#/components/schemas/SimplifiedLineItem' description: A collection of order line items for for an organization description: The available balance for an organization BasicFailedReply: required: - errors type: object properties: errors: type: array items: $ref: '#/components/schemas/BasicFailedReplyElement' description: A list of errors that occurred in the failing request BasicFailedReplyElement: required: - code - message type: object 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 items: type: string description: 'If the error can be tied to a specific field or fields in the user request, this lists those fields' Blessing: required: - value type: object properties: value: type: boolean description: Whether something is blessed or not description: Whether something is blessed or not Blessings: required: - runner_ids_to_blessing type: object properties: runner_ids_to_blessing: type: object additionalProperties: $ref: '#/components/schemas/Blessing' description: A mapping of Runner Ids to whether or not they are blessed to run the associated role description: Describes whether certain runners are blessed to run a Role. BlessingsWithMeta: required: - meta - value type: object properties: value: $ref: '#/components/schemas/Blessings' meta: $ref: '#/components/schemas/Metadata' description: Persisted Blessings along with metadata BoolQuery: type: object properties: must: type: array items: $ref: '#/components/schemas/QueryContainer' should: type: array items: $ref: '#/components/schemas/QueryContainer' must_not: type: array items: $ref: '#/components/schemas/QueryContainer' filter: type: array items: $ref: '#/components/schemas/QueryContainer' minimum_should_match: type: integer description: The minimum number of optional should clauses to match. format: int32 description: A query for documents that match boolean combinations of other queries. ByokSettings: required: - key_resource_path type: object properties: key_resource_path: type: string description: Key path (i.e arn:aws:kms:us-east-1:1234567890:key/12345678-0000-0000-0000-000000000000). description: Information required to create a Bring Your Own Key (BYOK) deployment. CapacityConstraintsResource: required: - max - min type: object properties: min: type: integer description: Min capacity format: int64 max: type: integer description: Max capacity format: int64 description: Specifies the maximum and minimum capacity constraints. CertificateAuthority: required: - public_certificates - recommended_trust_restriction type: object properties: recommended_trust_restriction: type: string description: The trust restriction expression to use that would provide trust with the Elasticsearch nodes of this deployment public_certificates: type: array items: $ref: '#/components/schemas/PublicCertificate' description: The certificates used by this certificate authority. The active certificate is the one that has been used to sign the current certificates of the Elasticsearch instances. All others are either certificates used in the past or certificates that will be used in the future when the currently active certificate expires. description: The certificate authority used to sign the certificates of this deployment CertificateMetaData: required: - fingerprint - valid_from - valid_to type: object properties: fingerprint: type: string description: The fingerprint of the certificate valid_to: type: string description: The expiry date of the certificate in UTC format: date-time valid_from: type: string description: The valid from date of the certificate in UTC format: date-time also_trusted_by: type: array items: type: string description: Other deployments also trusting this certificate description: The certificate MetaData ChainStatus: required: - expiration_date - first_certificate_to_expire type: object properties: expiration_date: type: string description: When this chain is going to expire due any of its certificates expiring (ISO format in UTC) format: date-time first_certificate_to_expire: type: string description: Information on the first certificate expiring in the chain description: Chain expiration information ChangeSourceInfo: required: - action - date - facilitator type: object properties: facilitator: type: string description: The service where the change originated from action: type: string description: The type of plan change that was initiated date: type: string description: The time the change was initiated format: date-time user_id: type: string description: The user that requested the change admin_id: type: string description: The admin user that requested the change remote_addresses: type: array items: type: string description: The host addresses of the user that originated the change description: A container for information about the source of a change. ChartItem: required: - timestamp - values type: object properties: timestamp: type: integer description: Axis X position format: int64 values: type: array items: $ref: '#/components/schemas/ChartItemValue' description: the collection of values to plot the chart item description: Chart Item ChartItemValue: required: - id - name - value type: object properties: id: type: string description: The id of chart item value name: type: string description: The name of the chart item value value: type: number description: The actual value of the chart item value format: double description: A ChartItem value ChartItems: required: - data type: object properties: data: type: array items: $ref: '#/components/schemas/ChartItem' description: The list of chart item description: A collection of ChartItems ClusterCredentials: required: - password - username type: object properties: username: type: string description: The username of the newly created cluster password: type: string description: The password of the newly created cluster description: 'The username and password for the new Elasticsearch cluster, which is returned from the Elasticsearch cluster `create` command.' ClusterCurationSettings: required: - specs type: object properties: specs: type: array items: $ref: '#/components/schemas/ClusterCurationSpec' description: Specifications for curation description: The index curation settings for an Elasticsearch cluster. ClusterCurationSpec: required: - index_pattern - trigger_interval_seconds type: object properties: index_pattern: type: string description: Index matching pattern trigger_interval_seconds: type: integer description: Number of seconds after index creation to trigger this spec format: int32 description: Specifies the conditions to trigger an Elasticsearch cluster curation. ClusterInstanceConfigurationInfo: required: - id - name - resource type: object properties: id: type: string description: The id of the configuration used to create the instance name: type: string description: The name of the configuration used to create the instance config_version: type: integer description: 'If the IC is configuration controlled, this field is the version either being read back (reads return the latest IC unless specified by the ''config_version'' URL param), or the version to update. Cannot be used in creates. For unversioned IC reads it is left empty.' format: int32 resource: enum: - memory - storage type: string description: The resource type of the instance configuration description: Information about a configuration that creates a Kibana instance or APM Server. ClusterInstanceDiskInfo: required: - disk_space_used - storage_multiplier type: object properties: disk_space_available: type: integer description: 'If known, the amount of total disk space available to the container in MB' format: int64 disk_space_used: type: integer description: The amount of disk space being used by the service in MB format: int64 storage_multiplier: type: number description: The storage multiplier originally defined to calculate disk space. format: double description: Information about the use and storage capacity of a Kibana instance or APM Server. ClusterInstanceInfo: required: - container_started - healthy - instance_name - maintenance_mode - service_running type: object properties: instance_name: type: string description: The name of the instance in Elastic Cloud instance_configuration: $ref: '#/components/schemas/ClusterInstanceConfigurationInfo' service_version: type: string description: 'The version of the service that the instance is running (eg Elasticsearch or Kibana), if available' healthy: type: boolean description: Whether the instance is healthy (ie started and running) container_started: type: boolean description: Whether the container has started (does not tell you anything about the service -ie Elasticsearch- running inside the container) service_running: type: boolean description: Whether the service launched inside the container -ie Elasticsearch- is actually running maintenance_mode: type: boolean description: Whether the service is is maintenance mode (meaning that the proxy is not routing external traffic to it) zone: type: string description: The zone in which this instance is being allocated allocator_id: type: string description: The id of the allocator on which this instance is running (if the container is started or starting) memory: $ref: '#/components/schemas/ClusterInstanceMemoryInfo' disk: $ref: '#/components/schemas/ClusterInstanceDiskInfo' service_roles: type: array items: type: string description: 'List of roles assigned to the service running in the instance. Currently only populated for Elasticsearch, with possible values: master,data,ingest,ml' node_roles: type: array items: enum: - master - ingest - ml - data_hot - data_content - data_warm - data_cold - data_frozen - remote_cluster_client - transform - voting_only type: string description: A list of the node roles assigned to the service running in the instance. Currently populated only for Elasticsearch. instance_overrides: $ref: '#/components/schemas/InstanceOverrides' description: Information about each Kibana instance and APM Server in the Elasticsearch cluster. ClusterInstanceMemoryInfo: required: - instance_capacity type: object properties: instance_capacity: type: integer description: The memory capacity in MB of the instance format: int32 instance_capacity_planned: type: integer description: The planned memory capacity in MB of the instance (only shown when an override is present) format: int32 memory_pressure: type: integer description: 'The % memory pressure of Elasticsearch JVM heap space if available (60-75% consider increasing capacity, >75% can incur significant performance and stability issues)' format: int32 native_memory_pressure: type: integer description: The % memory pressure of the instance Docker container (if available) format: int32 description: Information about the specific instances memory capacity and its usage ClusterLicenseInfo: required: - license type: object properties: license: type: object description: Object containing the cluster license data description: Information about the Elasticsearch cluster license. ClusterMetadataCpuResourcesSettings: type: object properties: boost: type: boolean description: Indicates if the CPU boost flag is enabled or not. hard_limit: type: boolean description: 'Indicates if the CPU hard limit flag is enabled or not. When set to true (default), allocates CPU timeshare based on the total CPU time multiplied by the relative RAM capacity of the instance on a given host. When set to false, delegates CPU allocation to the operating system to schedule CPU timeshares.' description: Specifies the CPU resource settings for the Elasticsearch cluster. ClusterMetadataInfo: required: - last_modified - version type: object properties: version: type: integer description: The resource version number of the cluster metadata format: int32 last_modified: type: string description: The most recent time the cluster metadata was changed (ISO format in UTC) format: date-time endpoint: type: string description: 'The DNS name of the cluster endpoint, if available' service_url: type: string description: The full URL to access this deployment resource aliased_endpoint: type: string description: 'The DNS name of the cluster endpoint derived from the deployment alias, if available' aliased_url: type: string description: The full aliased URL to access this deployment resource cloud_id: type: string description: 'The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana (only present if both exist)' raw: type: object description: 'An unstructured JSON representation of the public and internal state (can be filtered out via URL parameter). The contents and structure of the `raw` field can change at any time. ' ports: $ref: '#/components/schemas/ClusterMetadataPortInfo' services_urls: type: array items: $ref: '#/components/schemas/ServiceUrl' description: 'A list of the URLs to access services that the resource provides at this time. Note that if the service is not running or has not started yet, the URL to access it won''t be available' description: 'Information about the public and internal state, and the configuration settings of an Elasticsearch cluster.' ClusterMetadataPortInfo: required: - http - https - transport_passthrough type: object properties: http: type: integer description: Port where the cluster listens for HTTP traffic format: int32 https: type: integer description: Port where the cluster listens for HTTPS traffic format: int32 transport_passthrough: type: integer description: Port where the cluster listens for transport traffic using TLS format: int32 description: Information about the ports that allow communication between the Elasticsearch cluster and various protocols. ClusterMetadataResourcesSettings: type: object properties: cpu: $ref: '#/components/schemas/ClusterMetadataCpuResourcesSettings' description: The top-level configuration settings for the Elasticsearch cluster resources. ClusterMetadataSettings: type: object properties: name: type: string description: The display name of the cluster owner_id: type: string description: The user id (referencing whatever user database is in use) of the cluster owner organization_id: type: string description: The organization that owns the deployment readOnly: true subscription_level: type: string description: Subscription level of the cluster system_owned: type: boolean description: Indicates if a cluster is system owned (restricts the set of operations that can be performed on it) contact_email: type: string description: Contact email for the cluster hidden: type: boolean description: Whether or not this cluster is hidden from the normal clusters list readOnly: true resources: $ref: '#/components/schemas/ClusterMetadataResourcesSettings' description: The top-level configuration settings for the Elasticsearch cluster. ClusterPlanAttemptError: required: - details - message - timestamp type: object properties: timestamp: type: string description: Timestamp marking on info log of step format: date-time message: type: string description: Human readable error message details: type: object additionalProperties: type: string description: 'A map with details regarding the error. Both the keys and values are always strings, representing the name of the detail and its value, respectively.' failure_type: type: string description: The failure type description: Information about an error during a plan attempt. ClusterPlanStepInfo: required: - info_log - stage - started - status - step_id type: object properties: step_id: type: string description: ID of current step started: type: string description: When the step started (ISO format in UTC) format: date-time completed: type: string description: When the step completed (ISO format in UTC) format: date-time duration_in_millis: type: integer description: The duration of the step in MS format: int64 status: enum: - success - warning - error - pending type: string description: 'The status of the step (success, warning, error - warning means something didn''t go as expected but it was not serious enough to abort the plan)' stage: enum: - starting - completed - in_progress type: string description: Current stage that the step is in info_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepLogMessageInfo' description: 'Human readable summaries of the step, including messages for each stage of the step' description: Information about a step in a plan. ClusterPlanStepLogMessageInfo: required: - details - message - stage - timestamp type: object properties: timestamp: type: string description: Timestamp marking on info log of step format: date-time delta_in_millis: type: integer description: Time in milliseconds since previous log message format: int64 stage: enum: - starting - completed - in_progress type: string description: Stage that info log message takes place in message: type: string description: Human readable log message details: type: object additionalProperties: type: string description: 'A map with details for the log about what happened during the step execution. Keys and values for are always both strings, representing the name of the detail and its value, respectively.' internal_details: type: object additionalProperties: type: string description: 'A json object with sensitive details for the log, visible only to admins. May contain nested json objects.' failure_type: type: string description: 'The failure type, in case the step failed' description: The log message from a specified stage of an executed step in a plan. ClusterPlanWarning: required: - code - message type: object properties: code: type: string description: A unique warning code message: type: string description: A description of the warning step_id: type: string description: 'The ID of the step which produced a warning, if any' description: Information about a warning from a plan. ClusterSnapshotRepositoryDefault: type: object description: The default object for the Elasticsearch cluster snapshot repository. ClusterSnapshotRepositoryInfo: type: object properties: static: $ref: '#/components/schemas/ClusterSnapshotRepositoryStatic' reference: $ref: '#/components/schemas/ClusterSnapshotRepositoryReference' default: $ref: '#/components/schemas/ClusterSnapshotRepositoryDefault' description: Information about the Elasticsearch cluster snapshot repository. ClusterSnapshotRepositoryReference: type: object properties: repository_name: type: string description: 'ECE snapshot repository name, from the ''/platform/configuration/snapshots/repositories'' endpoint' description: The reference object for the Elasticsearch cluster snapshot repository. ClusterSnapshotRepositoryStatic: type: object properties: repository_type: type: string description: 'Type of snapshot repository, ie: S3' settings: type: object description: Settings associated with snapshot repository description: The static object for the Elasticsearch cluster snapshot repository. ClusterSnapshotRetention: type: object properties: snapshots: type: integer description: Number of snapshots to retain format: int32 max_age: type: string description: 'Total retention period for all snapshots, with the format ''length unit'' (space is optional), where unit can be one of: d (day), h (hour), min (minute)' description: Information about the Elasticsearch cluster snapshot retention. ClusterSnapshotSettings: type: object properties: repository: $ref: '#/components/schemas/ClusterSnapshotRepositoryInfo' interval: type: string description: 'Interval between snapshots, with the format ''length unit'' (space is optional), where unit can be one of: d (day), h (hour), min (minute). Default is 30 minutes' pending_interval: type: string description: 'Interval between snapshot progress checks, with the format ''length unit'' (space is optional), where unit can be one of: d (day), h (hour), min (minute). Default is 1 minute' wait_time_after_snapshotting: type: string description: 'The time to wait between snapshot phases (snapshot, purge), with the format ''length unit'' (space is optional), where unit can be one of: d (day), h (hour), min (minute). Default is 10 minutes' enabled: type: boolean description: Indicates if Snapshotting is enabled suspended: type: array items: type: string description: List of temporary snapshot suspensions retention: $ref: '#/components/schemas/ClusterSnapshotRetention' slm: type: boolean description: 'When set to true, the deployment will have SLM enabled. Default value is true.' readOnly: true cron_expression: type: string description: Cron expression indicating when should snapshots be taken. This can be enabled only if SLM is enabled for the deployment and 'interval' is not present description: The snapshot configuration settings for an Elasticsearch cluster. ClusterSystemAlert: required: - alert_type - instance_name - timestamp type: object properties: timestamp: type: string description: Timestamp marking the system alert format: date-time instance_name: type: string description: Instance that caused the system alert alert_type: enum: - automatic_restart - heap_dump - unknown_event type: string description: Type of system alert url: type: string description: 'The URL related to the event. Only applicable for alert_type: heap_dump' exit_code: type: integer description: 'The exit_code related to the event. Only applicable for alert_type: slain' format: int32 description: Information about a system alert on an Elasticsearch cluster. ClusterTopologyInfo: required: - healthy - instances type: object properties: healthy: type: boolean description: Whether the cluster topology is healthy (ie all instances are started and the services they run - ie elasticsearch - are available instances: type: array items: $ref: '#/components/schemas/ClusterInstanceInfo' description: 'The topology for Elasticsearch clusters, multiple Kibana instances, or multiple APM Servers. The `ClusterTopologyInfo` also includes the instances and containers, and where they are located.' Comment: required: - id - message - user_id type: object properties: id: type: string description: The id of this Comment user_id: type: string description: The user id of the user who wrote this Comment message: type: string description: The message content of this Comment description: A persisted Comment CommentCreateRequest: required: - message type: object properties: message: type: string description: The message for the Comment. description: A request for creating a new Comment CommentUpdateRequest: required: - message type: object properties: message: type: string description: The message for the Comment. description: A request for updating an existing Comment CommentWithMeta: required: - comment - metadata type: object properties: comment: $ref: '#/components/schemas/Comment' metadata: $ref: '#/components/schemas/Metadata' description: A persisted Comment along with its metadata CommentsWithMetas: required: - values type: object properties: values: type: array items: $ref: '#/components/schemas/CommentWithMeta' description: The list of comments description: A list of persisted Comments CommonClusterPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string plan_attempt_name: type: string healthy: type: boolean attempt_start_time: type: string format: date-time attempt_end_time: type: string format: date-time plan_end_time: type: string format: date-time plan: type: object plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' CompatibleNodeTypesResource: required: - compatible_node_types - node_type type: object properties: node_type: type: string description: Type of this node compatible_node_types: type: array items: type: string description: Compatible node types for the this node type capacity_constraints: $ref: '#/components/schemas/CapacityConstraintsResource' description: Information about the compatible node types. CompatibleVersionResource: required: - node_types - version type: object properties: version: type: string description: 'Compatible version, the key for this resource' node_types: type: array items: $ref: '#/components/schemas/CompatibleNodeTypesResource' description: Supported node types for the version capacity_constraints: $ref: '#/components/schemas/CapacityConstraintsResource' description: Information about the compatible version. ConfigStoreOption: required: - changed - name - value type: object properties: name: type: string description: Name of this Config Store Option value: type: string description: Value of this Config Store Option changed: type: boolean description: Whether or not this Config Store Option has changed description: Information about the Config Store options. ConfigStoreOptionData: required: - value type: object properties: value: type: string description: Value of this Config Store Option description: The data for the Config Store options. ConfigStoreOptionList: required: - values type: object properties: values: type: array items: $ref: '#/components/schemas/ConfigStoreOption' description: List of Config Store Options description: A list of Config Store values. ConstructorHealthStatus: required: - connected - maintenance_mode type: object properties: connected: type: boolean description: Whether the constructor is connected maintenance_mode: type: boolean description: Whether the constructor is in maintenance mode description: The health status of the constructor. ConstructorInfo: required: - constructor_id - status type: object properties: status: $ref: '#/components/schemas/ConstructorHealthStatus' constructor_id: type: string description: Identifier for this constructor description: Information about the constructor. ConstructorOverview: required: - constructors type: object properties: constructors: type: array items: $ref: '#/components/schemas/ConstructorInfo' description: The overview information for the installed constructors. ContainerConfigHostConfig: required: - binds - extra_hosts - port_bindings - privileged type: object properties: extra_hosts: type: array items: type: string description: Ports that are exposed by the container. network_mode: type: string description: ' Sets the networking mode for the container.' cpu_period: type: integer description: The length of a CPU period in microsecond format: int32 restart_policy: $ref: '#/components/schemas/RestartPolicy' port_bindings: type: object additionalProperties: type: array items: $ref: '#/components/schemas/PortBinding' description: Map of ports that should be exposed on the host. binds: type: array items: type: string description: Volume bindings for the container. privileged: type: boolean description: List of environment variables on the form KEY=value description: ' Docker host config' ContainerSetSummary: required: - container_set_id - containers_created_count - containers_expected_running_count - containers_running_count - containers_started_count - healthy - hidden type: object properties: container_set_id: type: string description: The identifier for this container set healthy: type: boolean description: Whether the container set is healthy hidden: type: boolean description: True if the container set is hidden containers_created_count: type: integer description: Number of containers created in this container set format: int32 containers_started_count: type: integer description: Number of containers started in this container set format: int32 containers_running_count: type: integer description: Number of containers running in this container set format: int32 containers_expected_running_count: type: integer description: Expected number of running containers in this container set format: int32 description: Summarized information about a container set ContainerSetsSummary: required: - healthy - healthy_container_sets_count - unhealthy_container_sets - unhealthy_container_sets_count type: object properties: healthy: type: boolean description: Whether all container sets are healthy healthy_container_sets_count: type: integer description: Number of healthy container sets format: int32 unhealthy_container_sets_count: type: integer description: Number of unhealthy container sets format: int32 unhealthy_container_sets: type: array items: $ref: '#/components/schemas/ContainerSetSummary' description: Summarized information about unhealthy container sets description: Summarized information about container sets ContainersEntry: required: - container_set_name - kind - name - options type: object properties: name: type: string description: Name of the association container_set_name: type: string description: The container set name (id) kind: type: string description: 'The kind of container set, should be one of ''docker'', ''elasticsearch'', ''kibana'', or ''apm''' options: $ref: '#/components/schemas/ContainersEntryOptions' description: Represents the association between a Role and a Container Set ContainersEntryOptions: required: - acls - auths - enabled type: object properties: enabled: type: boolean description: Whether this allocation is active and should be created. auths: type: array items: $ref: '#/components/schemas/ContainersEntryOptionsAuth' description: ZooKeeper Auths associated with this allocation acls: type: array items: $ref: '#/components/schemas/ContainersEntryOptionsACL' description: ZooKeeper ACLs associated with this allocation runners_secret: type: string description: Secret shared between the runners that have containers in this container set allocated. container_set_secret: type: string description: Secret shared between the containers that are part of this container set. enabled_by_named_feature_flag: type: string description: 'A named feature flag to check whether this container is enabled or not ' overrides: $ref: '#/components/schemas/ContainersEntryOptionsOverrides' description: Options for a ContainersEntry belonging to a role ContainersEntryOptionsACL: required: - id - perms - scheme type: object properties: id: type: string description: Identity within the provided scheme. perms: type: integer description: Permissions format: int32 scheme: type: string description: 'Auth scheme, in Elastic Cloud this is usually "digest"' description: ZooKeeper ACL information. ContainersEntryOptionsAuth: required: - auth - scheme type: object properties: scheme: type: string description: 'Scheme identifier, usually "digest"' example: digest auth: type: string description: Plain-text auth. For the "digest" scheme description: ZooKeeper Authentication information. ContainersEntryOptionsContainerConfig: required: - env type: object properties: env: type: array items: type: string description: List of environment variables on the form KEY=value example: DB=localhost:4567 host_config: $ref: '#/components/schemas/ContainerConfigHostConfig' description: Container config. Roughly corresponds to Docker container config ContainersEntryOptionsOverrides: type: object properties: container_config: $ref: '#/components/schemas/ContainersEntryOptionsContainerConfig' description: Overrides for the container allocation. CoordinatorCandidateInfo: required: - acl - attributes - name - public_hostname - state type: object properties: name: type: string description: Name of this coordinator candidate. public_hostname: type: string description: Public hostname of this coordinator candidate acl: $ref: '#/components/schemas/ZkAcl' id: type: integer description: Zookeeper server identifier corresponding to this coordinator candidate format: int32 attributes: type: object additionalProperties: type: string description: Attributes of this coordinator candidate state: enum: - accepted - pending type: string description: State of the candidate description: Summarized information about a coordinator candidate. CoordinatorCandidatesSummary: required: - candidates type: object properties: candidates: type: array items: $ref: '#/components/schemas/CoordinatorCandidateInfo' description: Summarized information on each coordinator candidate description: Summarized information about coordinator candidates. CoordinatorSummary: required: - attributes - client_port - election_port - leader_port - name - public_hostname type: object properties: name: type: string description: Name of this coordinator public_hostname: type: string description: Public hostname of this coordinator leader_port: type: integer description: Leader port of this coordinator format: int32 election_port: type: integer description: Election port of this coordinator format: int32 client_port: type: integer description: Client port of this coordinator format: int32 attributes: type: object additionalProperties: type: string description: Attributes of this coordinator description: Summarized information about a coordinator. CoordinatorsSummary: required: - coordinators type: object properties: coordinators: type: array items: $ref: '#/components/schemas/CoordinatorSummary' description: Summarized information on each coordinator description: Summarized information about coordinators. Costs: required: - dimensions - total type: object properties: total: type: number description: Total costs format: double dimensions: type: array items: $ref: '#/components/schemas/Dimension' description: A collection of billing details by dimension. description: 'Costs overview for an organization. All of the costs, credits, trials are expressed in Elastic Consumption Unit (ECU).' CostsOverview: required: - costs - hourly_rate - trials type: object properties: costs: $ref: '#/components/schemas/Costs' trials: type: number description: Trial costs for the organization format: double hourly_rate: type: number description: Hourly rate applied. format: double balance: $ref: '#/components/schemas/Balance' description: 'The top level costs overview for an organization. All of the costs, credits, trials are expressed in Elastic Consumption Unit (ECU).' CreateApiKeyRequest: required: - description type: object properties: description: type: string description: API key description. Useful if there are multiple keys expiration: type: string description: 'The optional expiration for the API key, provided as a duration (ex: ''1d'', ''3h'')' role_assignments: $ref: '#/components/schemas/RoleAssignments' description: The request payload that creates the API keys. CreateExtensionRequest: required: - extension_type - name - version type: object properties: name: type: string description: 'The extension name. Only ASCII alphanumeric and [_.-] characters allowed' description: type: string description: The extension description. download_url: type: string description: The URL to download the extension archive. extension_type: enum: - plugin - bundle type: string description: The extension type. version: type: string description: The Elasticsearch version. description: The body of a request to create a new extension CreateSnapshotDependencyRequest: required: - source_deployment_id type: object properties: source_deployment_id: type: string description: Source deployment ID whose snapshots will be accessible from the target cluster description: Request to create a snapshot dependency between deployments CreateSnapshotDependencyResponse: required: - message type: object properties: message: type: string description: Message indicating the request status description: Response from creating a snapshot dependency Creates: type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/Elasticsearch' description: Diagnostics for Elasticsearch clusters kibana: type: array items: $ref: '#/components/schemas/Kibana' description: Diagnostics for Kibanas apm: type: array items: $ref: '#/components/schemas/Apm' description: Diagnostics for APMs integrations_server: type: array items: $ref: '#/components/schemas/IntegrationsServer' description: Diagnostics for Integrations Server appsearch: type: array items: $ref: '#/components/schemas/AppSearch' description: Diagnostics for AppSearches enterprise_search: type: array items: $ref: '#/components/schemas/EnterpriseSearch' description: Diagnostics for Enterprise Search resources description: Holds diagnostics for resources that will be created DeleteApiKeysRequest: required: - keys type: object properties: keys: type: array items: type: string description: The list of API key IDs. description: The request payload that deletes the API keys. DeleteDomainClaimRequest: required: - domain_claim_request type: object properties: domain_claim_request: type: string description: The request to remove a domain claim DeleteRoleMappingsResponse: required: - mappings type: object properties: mappings: type: array items: type: string description: The list of deleted role assignments to the organization DeleteUsersApiKeysRequest: required: - user_api_keys type: object properties: user_api_keys: type: array items: $ref: '#/components/schemas/UserApiKey' description: The list of API key IDs. description: The request payload that deletes the API keys. DeploymentCosts: required: - costs - deployment_id - deployment_name - hourly_rate type: object properties: deployment_id: type: string description: Elasticsearch deployment id deployment_name: type: string description: Elasticsearch deployment name costs: $ref: '#/components/schemas/Costs' hourly_rate: type: number description: Price per hour format: double period: $ref: '#/components/schemas/Period' description: Detailed costs for a deployment for an organization. All of the costs are expressed in Elastic Consumption Unit (ECU). DeploymentCreateMetadata: type: object properties: system_owned: type: boolean description: Indicates if a deployment is system owned (restricts the set of operations that can be performed on it) tags: type: array items: $ref: '#/components/schemas/MetadataItem' description: Arbitrary user-defined metadata associated with this deployment description: Additional information about the new deployment object. DeploymentCreateRequest: type: object properties: name: type: string description: A name for the deployment; otherwise this will be the generated deployment id resources: $ref: '#/components/schemas/DeploymentCreateResources' settings: $ref: '#/components/schemas/DeploymentCreateSettings' metadata: $ref: '#/components/schemas/DeploymentCreateMetadata' alias: type: string description: A user-defined alias to use in place of Cluster IDs for user-friendly URLs region: type: string description: Identifier of the region to be used as the default for all the resources of the deployment version: type: string description: The version for all the resources of the deployment (must be one of the supported versions). Defaults to the latest version if not specified. description: A request for creating a new Deployment consisting of multiple clusters DeploymentCreateResources: type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/ElasticsearchPayload' description: A list of payloads for Elasticsearch cluster creation. kibana: type: array items: $ref: '#/components/schemas/KibanaPayload' description: A list of payloads for Kibana creation. apm: type: array items: $ref: '#/components/schemas/ApmPayload' description: 'A list of payloads for APM creation. WARNING: For stack versions 8.0.0 and higher the integrations_server payload should be used instead, as this field becomes deprecated.' appsearch: type: array items: $ref: '#/components/schemas/AppSearchPayload' description: A list of payloads for AppSearch updates. AppSearch has been replaced by Enterprise Search in the Elastic Stack 7.7 and higher. enterprise_search: type: array items: $ref: '#/components/schemas/EnterpriseSearchPayload' description: A list of payloads for Enterprise Search creation. integrations_server: type: array items: $ref: '#/components/schemas/IntegrationsServerPayload' description: A list of payloads for Integrations Server creation. description: Describes the resources that will belong to a Deployment DeploymentCreateResponse: required: - created - id - name - resources type: object properties: id: type: string description: The id of the deployment name: type: string description: The name of the deployment alias: type: string description: A user-defined deployment alias for user-friendly resource URLs created: type: boolean description: Whether or not the deployment was freshly created resources: type: array items: $ref: '#/components/schemas/DeploymentResource' description: List of created resources. diagnostics: $ref: '#/components/schemas/DeploymentDiagnostics' description: A response returned from the Deployment create endpoint DeploymentCreateSettings: type: object properties: traffic_filter_settings: $ref: '#/components/schemas/TrafficFilterSettings' observability: $ref: '#/components/schemas/DeploymentObservabilitySettings' byok: $ref: '#/components/schemas/ByokSettings' autoscaling_enabled: type: boolean description: Enable autoscaling for this deployment. solution_type: type: string description: 'An optional string that declares the deployment''s expected application. Example supported values are: elasticsearch, observability, security.' description: Additional configuration for the new deployment object. DeploymentDeleteResponse: required: - id - name type: object properties: id: type: string description: The id of the deployment name: type: string description: The name of the deployment orphaned: $ref: '#/components/schemas/Orphaned' description: A response returned from the Deployment delete endpoint DeploymentDiagnostics: type: object properties: creates: $ref: '#/components/schemas/Creates' updates: $ref: '#/components/schemas/Updates' description: Describes the diagnostics for a given Deployment-modifying payload DeploymentDomainName: required: - value type: object properties: value: type: string description: 'The domain name for all deployments. The hostname of an application in a deployment is constructed from the application ID and the domain name (for example, 1234567890.example.com).' description: Deployment domain name configuration DeploymentGetResponse: required: - healthy - id - name - resources type: object properties: id: type: string description: A randomly-generated id of this Deployment name: type: string description: The name of this deployment alias: type: string description: A user-defined deployment alias for user-friendly resource URLs healthy: type: boolean description: 'Whether the deployment is overall healthy or not (one or more of the resource info subsections will have healthy: false)' resources: $ref: '#/components/schemas/DeploymentResources' settings: $ref: '#/components/schemas/DeploymentSettings' metadata: $ref: '#/components/schemas/DeploymentMetadata' observability: $ref: '#/components/schemas/DeploymentObservability' instance_configurations: type: array items: $ref: '#/components/schemas/InstanceConfigurationInfo' description: List of instance configurations used in the deployment. description: Describes a given Deployment DeploymentHeapDumps: required: - elasticsearch - enterprise_search type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/ResourceHeapDumps' description: The list of Elasticsearch resources and their heap dumps enterprise_search: type: array items: $ref: '#/components/schemas/ResourceHeapDumps' description: The list of Enterprise Search resources and their heap dumps DeploymentLogging: required: - healthy type: object properties: healthy: type: boolean description: Whether the deployment logging is healthy or not urls: type: object additionalProperties: type: string description: The URLs to view this deployment's logs in Kibana issues: type: array items: $ref: '#/components/schemas/ObservabilityIssue' description: Logging health issues for the deployment description: Logging information for a deployment DeploymentLoggingSettings: required: - destination type: object properties: destination: $ref: '#/components/schemas/ObservabilityAbsoluteDeployment' description: The logging settings for a deployment DeploymentMetadata: required: - last_modified type: object properties: owner_id: type: string description: The user id (referencing whatever user database is in use) of the deployment owner organization_id: type: string description: The organization that owns the deployment readOnly: true system_owned: type: boolean description: Indicates if a deployment is system owned (restricts the set of operations that can be performed on it) hidden: type: boolean description: Whether or not this deployment is hidden from the normal deployment list readOnly: true subscription_level: type: string description: Subscription level of the cluster readOnly: true last_modified: type: string description: The most recent time the cluster metadata was changed (ISO format in UTC) format: date-time last_resource_plan_modified: type: string description: The most recent time the resource's plan was changed (ISO format in UTC) format: date-time tags: type: array items: $ref: '#/components/schemas/MetadataItem' description: Arbitrary user-defined metadata associated with this deployment byok_enabled: type: boolean description: Indicates if the Deployment is BYOK enabled or not readOnly: true byok_migration: type: boolean description: 'True if a BYOK migration was requested for this deployment via the migrate_to_byok API. Set at request time, before any plan runs — not a completion signal.' readOnly: true created_at: type: string description: The time the cluster was created (ISO format in UTC) format: date-time description: Additional information about the current deployment object. DeploymentMetrics: required: - healthy type: object properties: healthy: type: boolean description: Whether the deployment metrics are healthy or not urls: type: object additionalProperties: type: string description: The URLs to view this deployment's metrics in Kibana issues: type: array items: $ref: '#/components/schemas/ObservabilityIssue' description: Metrics health issues for the deployment description: Metrics information for a deployment DeploymentMetricsSettings: required: - destination type: object properties: destination: $ref: '#/components/schemas/ObservabilityAbsoluteDeployment' force_legacy_monitoring: type: boolean description: Set to true to force the deployment to use legacy monitoring instead of Metricbeat-based monitoring. Only available for versions lower than 9.0. description: The metrics settings for a deployment DeploymentObservability: required: - healthy type: object properties: healthy: type: boolean description: 'Whether the deployment observability is healthy or not (one or more of the subsections will have healthy: false)' logging: $ref: '#/components/schemas/DeploymentLogging' metrics: $ref: '#/components/schemas/DeploymentMetrics' issues: type: array items: $ref: '#/components/schemas/ObservabilityIssue' description: General observability health issues for the deployment description: Observability information for a deployment DeploymentObservabilitySettings: type: object properties: logging: $ref: '#/components/schemas/DeploymentLoggingSettings' metrics: $ref: '#/components/schemas/DeploymentMetricsSettings' description: The observability settings for a deployment DeploymentResource: required: - id - kind - ref_id - region type: object properties: ref_id: type: string description: A locally-unique friendly alias for this Elasticsearch cluster elasticsearch_cluster_ref_id: type: string description: The Elasticsearch cluster that this resource depends on. id: type: string description: A system-unique id for the created resource kind: type: string description: The kind of resource region: type: string description: Identifier of the region in which this resource runs. cloud_id: type: string description: An encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana credentials: $ref: '#/components/schemas/ClusterCredentials' secret_token: type: string description: Secret token for using a created resource. Only provided on initial create and absent otherwise. warnings: type: array items: $ref: '#/components/schemas/ReplyWarning' description: List of warnings generated from validating resource updates description: Data for a deployment resource DeploymentResourceCommandResponse: type: object properties: warnings: type: array items: $ref: '#/components/schemas/ReplyWarning' description: List of warnings generated from validating command description: Response returned when a command is successfully issued against a given Deployment resource DeploymentResourceCrudResponse: required: - id - kind - ref_id type: object properties: id: type: string description: The id of the deployment kind: type: string description: The kind of the stateless resource ref_id: type: string description: The reference id of the resource description: A response returned from the Deployment Resource endpoints DeploymentResourceUserSettings: required: - user_settings type: object properties: user_settings: type: object description: A JSON object containing the user settings for the resource. Replaces all existing user settings when submitted via PUT. description: The user-defined settings for a deployment resource DeploymentResourceUserSettingsResponse: type: object properties: user_settings: type: object description: The user-defined settings for the resource description: The user-defined settings for a Deployment resource. DeploymentResources: required: - apm - appsearch - elasticsearch - enterprise_search - integrations_server - kibana type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/ElasticsearchResourceInfo' description: List of Elasticsearch resources in your Deployment kibana: type: array items: $ref: '#/components/schemas/KibanaResourceInfo' description: List of Kibana resources in your Deployment apm: type: array items: $ref: '#/components/schemas/ApmResourceInfo' description: List of Apm resources in your Deployment appsearch: type: array items: $ref: '#/components/schemas/AppSearchResourceInfo' description: List of App Search resources in your Deployment enterprise_search: type: array items: $ref: '#/components/schemas/EnterpriseSearchResourceInfo' description: List of Enterprise Search resources in your Deployment integrations_server: type: array items: $ref: '#/components/schemas/IntegrationsServerResourceInfo' description: List of Integrations Server resources in your Deployment description: Describes a resource belonging to a Deployment DeploymentRestoreResponse: required: - id type: object properties: id: type: string description: The id of the deployment description: A response returned from the Deployment restore endpoint DeploymentRoleAssignment: required: - organization_id - role_id type: object properties: role_id: type: string description: The ID of the role that is assigned. organization_id: type: string description: The ID of the organization the role is scoped to. all: type: boolean description: 'When true, the role applies to all deployments in the organization, otherwise the role is scoped to the deployments specified in `deployment_ids`.' deployment_ids: type: array items: type: string description: 'The IDs of the deployments the role is scoped to. Must be absent if `all` is true, and present if `all` is false.' application_roles: type: array items: type: string description: 'If provided, the user assigned this role assignment will be granted this application role when signing in to the deployment(s) specified in the role assignment.' description: Assignment for a role with deployment scope. DeploymentSearchResponse: required: - healthy - id - name - resources type: object properties: id: type: string description: A randomly-generated id of this Deployment name: type: string description: The name of this deployment alias: type: string description: A user-defined deployment alias for user-friendly resource URLs healthy: type: boolean description: 'Whether the deployment is overall healthy or not (one or more of the resource info subsections will have healthy: false)' resources: $ref: '#/components/schemas/DeploymentResources' settings: $ref: '#/components/schemas/DeploymentSettings' metadata: $ref: '#/components/schemas/DeploymentMetadata' description: Describes a searched Deployment DeploymentSettings: required: - auto_ops type: object properties: traffic_filter_settings: $ref: '#/components/schemas/TrafficFilterSettings' observability: $ref: '#/components/schemas/DeploymentObservabilitySettings' autoscaling_enabled: type: boolean description: If autoscaling is enabled for this deployment. auto_ops: $ref: '#/components/schemas/AutoOpsSettings' byok: $ref: '#/components/schemas/ByokSettings' solution_type: type: string description: 'An optional string that declares the deployment''s expected application. Example supported values are: elasticsearch, observability, security.' description: Additional configuration about the current deployment object. DeploymentShutdownResponse: required: - id - name type: object properties: id: type: string description: The id of the deployment name: type: string description: The name of the deployment orphaned: $ref: '#/components/schemas/Orphaned' description: A response returned from the Deployment shutdown endpoint DeploymentTagsResponse: type: object properties: tags: type: array items: $ref: '#/components/schemas/MetadataItem' description: Arbitrary user-defined metadata associated with this deployment description: A response returned from the Deployment tags endpoints DeploymentTemplateInfoV2: required: - deployment_template - id - instance_configurations - name type: object properties: id: type: string description: The unique identifier for the template. name: type: string description: A human readable name for the template. description: type: string description: An optional description for the template. deployment_template: $ref: '#/components/schemas/DeploymentCreateRequest' system_owned: type: boolean description: Whether or not if this is system owned template. source: $ref: '#/components/schemas/ChangeSourceInfo' metadata: type: array items: $ref: '#/components/schemas/MetadataItem' description: Optional arbitrary metadata to associate with this template. instance_configurations: type: array items: $ref: '#/components/schemas/InstanceConfigurationInfo' description: List of instance configurations used in the cluster template. order: type: integer description: 'Determines the order in which this template should be returned when listed. Templates are returned in ascending order. If not specified, then the template willbe appended to the end of the list.' format: int32 hidden: type: boolean description: Whether or not the deployment template is hidden by default. min_version: type: string description: 'Minimum stack version required by this template, if any.' template_category_id: type: string description: Provider and version agnostic template identifier used for grouping related template types. kibana_deeplink: type: array items: $ref: '#/components/schemas/KibanaDeeplink' description: The Kibana Deeplink for this type of deployment. description: Deployment template detailed information DeploymentTemplateReference: required: - id type: object properties: id: type: string description: The unique identifier of the deployment template version: type: string description: A version identifier to disambiguate multiple revisions of the same template description: Specifies the deployment template used to create the plan. DeploymentTemplateRequestBody: required: - deployment_template - name type: object properties: name: type: string description: A human readable name for the template. description: type: string description: An optional description for the template. deployment_template: $ref: '#/components/schemas/DeploymentCreateRequest' system_owned: type: boolean description: Whether or not if this is system owned template. metadata: type: array items: $ref: '#/components/schemas/MetadataItem' description: Optional arbitrary metadata to associate with this template. order: type: integer description: 'Determines the order in which this template should be returned when listed. Templates are returned in ascending order. If not specified, then the template willbe appended to the end of the list.' format: int32 hidden: type: boolean description: Whether or not the deployment template is hidden by default. min_version: type: string description: 'Minimum stack version required by this template, if any.' template_category_id: type: string description: Provider and version agnostic template identifier used for grouping related template types. kibana_deeplink: type: array items: $ref: '#/components/schemas/KibanaDeeplink' description: The Kibana Deeplink for this type of deployment. description: Request body to create or update a Deployment Template DeploymentUpdateMetadata: type: object properties: system_owned: type: boolean description: Indicates if a deployment is system owned (restricts the set of operations that can be performed on it) hidden: type: boolean description: Whether or not this deployment is hidden from the normal deployment list tags: type: array items: $ref: '#/components/schemas/MetadataItem' description: Arbitrary user-defined metadata associated with this deployment description: Additional information about the current deployment object. DeploymentUpdateRequest: required: - prune_orphans type: object properties: name: type: string description: 'A new name for the deployment, otherwise stays the same.' prune_orphans: type: boolean description: 'Whether or not to prune orphan resources that are no longer mentioned in this request. Note that resourcesare tracked by ref_id, and if a resource''s ref_id is changed, any previous running resources created with that previousref_id are considered to be orphaned as well.' resources: $ref: '#/components/schemas/DeploymentUpdateResources' settings: $ref: '#/components/schemas/DeploymentUpdateSettings' metadata: $ref: '#/components/schemas/DeploymentUpdateMetadata' alias: type: string description: A user-defined alias to use in place of Cluster IDs for user-friendly URLs description: A request for updating a Deployment consisting of multiple resources DeploymentUpdateResources: type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/ElasticsearchPayload' description: A list of payloads for Elasticsearch cluster updates kibana: type: array items: $ref: '#/components/schemas/KibanaPayload' description: A list of payloads for Kibana updates apm: type: array items: $ref: '#/components/schemas/ApmPayload' description: A list of payloads for APM updates appsearch: type: array items: $ref: '#/components/schemas/AppSearchPayload' description: A list of payloads for AppSearch updates. AppSearch has been replaced by Enterprise Search in the Elastic Stack 7.7 and higher enterprise_search: type: array items: $ref: '#/components/schemas/EnterpriseSearchPayload' description: A list of payloads for Enterprise Search updates integrations_server: type: array items: $ref: '#/components/schemas/IntegrationsServerPayload' description: A list of payloads for Integrations Server updates description: Describes the Deployment resource updates DeploymentUpdateResponse: required: - id - name - resources type: object properties: id: type: string description: The id of the deployment name: type: string description: The name of the deployment alias: type: string description: A user-defined alias to use in place of ResourceIds for user-friendly resource URLs resources: type: array items: $ref: '#/components/schemas/DeploymentResource' description: List of resources that are part of the deployment after the update operation. shutdown_resources: $ref: '#/components/schemas/Orphaned' diagnostics: $ref: '#/components/schemas/DeploymentDiagnostics' settings: $ref: '#/components/schemas/DeploymentSettings' description: A response returned from the Deployment update endpoint DeploymentUpdateSettings: type: object properties: observability: $ref: '#/components/schemas/DeploymentObservabilitySettings' autoscaling_enabled: type: boolean description: Enable autoscaling for this deployment. auto_ops: $ref: '#/components/schemas/AutoOpsSettings' description: Additional configuration for the new deployment object. DeploymentUpgradeAssistantStatusResponse: required: - details - ready_for_upgrade type: object properties: ready_for_upgrade: type: boolean description: A boolean indicating whether or not the cluster is ready to be upgraded details: type: string description: Message with information about the number of Elasticsearch and Kibana deprecations description: The status of your cluster and its readiness to be upgraded DeploymentsCosts: required: - deployments - total_cost type: object properties: total_cost: type: number description: Total cost for all deployments format: double deployments: type: array items: $ref: '#/components/schemas/DeploymentCosts' description: Costs of the list of deployments description: Costs associated to a set of deployments for an organization. All of the costs are expressed in Elastic Consumption Unit (ECU). DeploymentsListResponse: required: - deployments type: object properties: deployments: type: array items: $ref: '#/components/schemas/DeploymentsListingData' description: The deployments description: Contains a list of deployments DeploymentsListingData: required: - id - name - resources type: object properties: id: type: string description: The id of this deployment name: type: string description: The name of this deployment resources: type: array items: $ref: '#/components/schemas/DeploymentResource' description: List of resources in this deployment DeploymentsSearchResponse: required: - deployments - return_count type: object properties: return_count: type: integer description: 'The number of deployments actually returned, either as deployment instances or as minimalMetadata objects' format: int32 match_count: type: integer description: 'If a query is supplied, then the total number of deployments that matched' format: int32 deployments: type: array items: $ref: '#/components/schemas/DeploymentSearchResponse' minimal_metadata: type: array items: type: object cursor: type: string description: 'To retrieve the next batch of deployments from this search, specify this value in the cursor field of the next search request. For paginated searches, it is recommended to sort on a static and unique field, like deployment or cluster id. A static and unique sort avoids concurrent updates causing a deployment to move across pages and becoming a duplicate or lost entry. The default sort of rank and modified date is often good for getting a particular deployment into the first page, but if a not yet seen deployment is modified in between page requests, then it would be left out from the next page.' description: Contains a list of Deployments as result of a search request. Dimension: required: - cost - type type: object properties: type: enum: - capacity - data_in - data_internode - data_out - storage_api - storage_bytes type: string description: The type of the billing dimension cost: type: number description: The cost of the billing dimension format: double description: Billing dimension DirectTrustRelationship: required: - certificates - name - trust_all type: object properties: uid: type: string description: 'Auto generated identifier for this trust, allows distinguishing between update vs remove and add.' name: type: string description: a human readable name of the trust relationship type: enum: - ECE - ESS - generic - proxy type: string description: 'The type can either be ESS, ECE, generic or proxy. If none is specified, then generic is assumed. If proxy is specified, trust_all should be false and trust_allowlist, scope_id and additional_node_names should be omitted.' trust_all: type: boolean description: 'If true, scope_id is required and the `trust_allowlist` is ignored and all clusters matching the scope id will be trusted.' trust_allowlist: type: array items: type: string description: The list of clusters with matching scope to trust. Only used when `trust_all` is false. Providing one or more clusters makes scope_id mandatory. scope_id: type: string description: 'A lowercase alphanumerical string of max 32 characters. Usually an organization id or an environment id, but could really be any suitable suffix for clusters using the CA certificate of this trust. Required unless trust_all is false and trust_allowlist is empty.' example: abc123 additional_node_names: type: array items: type: string description: A list of node names trusted in addition to those deducible from trust_allowlist and scope id. Allows trusting nodes that don't have a scoped name at the cost of maintaining the list. Mandatory if scope id is not defined. Wildcards are not allowed. certificates: type: array items: $ref: '#/components/schemas/TrustedCertificate' description: 'The public ca certificate(s) to trust. Only one is required, but it is possible to specify multiple certificates in order to facilitate key rotation.' description: The trust relationship with entities trusted directly having their certificate bundled together with the trust settings. DiscreteSizes: required: - sizes type: object properties: sizes: type: array items: type: integer format: int32 description: List of supported sizes default_size: type: integer description: The default size format: int32 resource: enum: - memory - storage type: string description: 'The unit that each size represents. If not specified, it will default to ''memory''.' description: 'Instance sizes that are supported by the Elasticsearch instance, Kibana instance, or APM Server configuration.' DomainVerificationRequest: required: - domain_claim_request type: object properties: domain_claim_request: type: string description: The domain claim request DtsDimensionCosts: required: - cost - name - quantity - rate - sku - type type: object properties: cost: type: number description: Costs associated to the Data Transfer and Storage (DTS) dimensions for an organization format: double name: type: string description: DTS dimension name quantity: $ref: '#/components/schemas/DtsQuantity' rate: $ref: '#/components/schemas/DtsRate' sku: type: string description: DTS dimension Stock Keeping Unit (SKU) type: type: string description: Type of the DTS dimension usage description: 'The costs associated to a Data Transfer and Storage (DTS) dimension for an organization. All of the costs, credits, and trials are expressed in Elastic Consumption Units (ECU).' DtsQuantity: required: - formatted_value - value type: object properties: value: type: integer description: Raw quantity format: int64 formatted_value: type: string description: Quantity in human readable format description: DTS quantity DtsRate: required: - formatted_value - value type: object properties: value: type: number description: Raw rate format: double formatted_value: type: string description: Rate in human readable format description: DTS Rate Elasticsearch: required: - backend_plan - display_name - ref_id type: object properties: ref_id: type: string description: A locally-unique user-specified id display_name: type: string description: The human readable name for the cluster (defaults to the generated cluster id if not specified) backend_plan: type: object description: The backend plan as JSON description: Holds diagnostics for an Elasticsearch cluster ElasticsearchBlockingIssueElement: required: - description - level type: object properties: description: type: string description: Description of the block level: enum: - index - global type: string description: Applicable level for the block. Either global ie. cluster-wide or index level description: Information about index or cluster blocks ElasticsearchBlockingIssues: required: - blocks - healthy type: object properties: healthy: type: boolean description: Whether the cluster has issues (false) or not (true) blocks: type: array items: $ref: '#/components/schemas/ElasticsearchBlockingIssueElement' description: A list of blocks that affect the availability of the cluster description: Issues that prevent the Elasticsearch cluster or index from correctly operating. ElasticsearchClusterBlockingIssueElement: required: - description - instances type: object properties: description: type: string description: Description of the issue instances: type: array items: type: string description: A list of instances that are affected by the issue description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version. Use `blocks` in `cluster_blocking_issues` instead\n\nInformation about an issue and the Elasticsearch instance it affects." ElasticsearchClusterBlockingIssues: required: - cluster_level - healthy - index_level type: object properties: healthy: type: boolean description: Whether the cluster has issues (false) or not (true) cluster_level: type: array items: $ref: '#/components/schemas/ElasticsearchClusterBlockingIssueElement' description: A list of issues that affect availability of entire cluster index_level: type: array items: $ref: '#/components/schemas/ElasticsearchClusterBlockingIssueElement' description: A list of issues that affect availability of the cluster's indices description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version. Use `cluster_blocking_issues` instead\n\nIssues that prevent the Elasticsearch cluster or index from operating correctly." ElasticsearchClusterInfo: required: - associated_apm_clusters - associated_appsearch_clusters - associated_enterprise_search_clusters - associated_kibana_clusters - cluster_id - cluster_name - elasticsearch - external_links - healthy - metadata - plan_info - snapshots - status - topology type: object properties: cluster_id: type: string description: The id of the cluster cluster_name: type: string description: The name of the cluster deployment_id: type: string description: The id of the deployment that this Elasticsearch belongs to. healthy: type: boolean description: 'Whether the cluster is healthy or not (one or more of the info subsections will have healthy: false)' status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: Cluster status plan_info: $ref: '#/components/schemas/ElasticsearchClusterPlansInfo' elasticsearch: $ref: '#/components/schemas/ElasticsearchInfo' metadata: $ref: '#/components/schemas/ClusterMetadataInfo' topology: $ref: '#/components/schemas/ClusterTopologyInfo' system_alerts: type: array items: $ref: '#/components/schemas/ClusterSystemAlert' description: List of cluster system alerts associated_kibana_clusters: type: array items: $ref: '#/components/schemas/KibanaSubClusterInfo' associated_apm_clusters: type: array items: $ref: '#/components/schemas/ApmSubInfo' associated_appsearch_clusters: type: array items: $ref: '#/components/schemas/AppSearchSubInfo' associated_enterprise_search_clusters: type: array items: $ref: '#/components/schemas/EnterpriseSearchSubInfo' security: $ref: '#/components/schemas/ElasticsearchClusterSecurityInfo' elasticsearch_monitoring_info: $ref: '#/components/schemas/ElasticsearchMonitoringInfo' snapshots: $ref: '#/components/schemas/SnapshotStatusInfo' external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to the cluster links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation settings: $ref: '#/components/schemas/ElasticsearchClusterSettings' region: type: string description: The region that this cluster belongs to. Only populated in SaaS or federated ECE. locked: type: boolean description: Whether or not this cluster is locked. Only populated in SaaS. description: The information for an Elasticsearch cluster. ElasticsearchClusterPlan: required: - cluster_topology - elasticsearch type: object properties: cluster_topology: type: array items: $ref: '#/components/schemas/ElasticsearchClusterTopologyElement' elasticsearch: $ref: '#/components/schemas/ElasticsearchConfiguration' deployment_template: $ref: '#/components/schemas/DeploymentTemplateReference' transient: $ref: '#/components/schemas/TransientElasticsearchPlanConfiguration' autoscaling_enabled: type: boolean description: Enable autoscaling for this Elasticsearch cluster. description: The plan for the Elasticsearch cluster. ElasticsearchClusterPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string description: A UUID for each plan attempt plan_attempt_name: type: string description: 'A human readable name for each plan attempt, only populated when retrieving plan histories' healthy: type: boolean description: 'Either the plan ended successfully, or is not yet completed (and no errors have occurred)' attempt_start_time: type: string description: When this plan attempt (ie to apply the plan to the cluster) started (ISO format in UTC) format: date-time attempt_end_time: type: string description: 'If this plan completed or failed (ie is not pending), when the attempt ended (ISO format in UTC)' format: date-time plan_end_time: type: string description: 'If this plan is not current or pending, when the plan was no longer active (ISO format in UTC)' format: date-time plan: $ref: '#/components/schemas/ElasticsearchClusterPlan' plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' description: Information about the Elasticsearch cluster plan. ElasticsearchClusterPlansInfo: required: - healthy - history type: object properties: healthy: type: boolean description: 'Whether the plan situation is healthy (if unhealthy, means the last plan attempt failed)' current: $ref: '#/components/schemas/ElasticsearchClusterPlanInfo' pending: $ref: '#/components/schemas/ElasticsearchClusterPlanInfo' history: type: array items: $ref: '#/components/schemas/ElasticsearchClusterPlanInfo' description: 'Information about the current, pending, and past Elasticsearch cluster plans.' ElasticsearchClusterRole: required: - roles - username type: object properties: username: type: string description: The username roles: type: array items: type: string description: The list of roles for this user description: The authorization information for an Elasticsearch cluster user. ElasticsearchClusterSecurityInfo: required: - last_modified - roles - users - users_roles - version type: object properties: version: type: integer description: The resource version number of the security settings format: int32 last_modified: type: string description: The most recent time the security settings were changed (ISO format in UTC) format: date-time users: type: array items: $ref: '#/components/schemas/ElasticsearchClusterUser' roles: type: object description: An arbitrarily nested JSON object mapping roles to sets of resources and permissions - see the Elasticsearch security documentation for more details on roles users_roles: type: array items: $ref: '#/components/schemas/ElasticsearchClusterRole' description: 'For 2.x Elasticsearch clusters, specifies the information about the users and roles. For 5.x Elasticsearch clusters, use the Kibana management UI.' ElasticsearchClusterSettings: type: object properties: snapshot: $ref: '#/components/schemas/ClusterSnapshotSettings' monitoring: $ref: '#/components/schemas/ManagedMonitoringSettings' metadata: $ref: '#/components/schemas/ClusterMetadataSettings' curation: $ref: '#/components/schemas/ClusterCurationSettings' dedicated_masters_threshold: type: integer description: 'Threshold starting from which the number of instances in the cluster results in the introduction of dedicated masters. If the cluster is downscaled to a number of nodes below this one, dedicated masters will be removed. Limit is inclusive. When provided the threshold setting is updated. A `null` value removes the field. Otherwise, the setting remains as it was set previously.' format: int32 traffic_filter: $ref: '#/components/schemas/TrafficFilterSettings' trust: $ref: '#/components/schemas/ElasticsearchClusterTrustSettings' keystore_contents: $ref: '#/components/schemas/KeystoreContents' description: The settings for an Elasticsearch cluster. ElasticsearchClusterTopologyElement: type: object properties: id: type: string description: Unique identifier of this topology element node_type: $ref: '#/components/schemas/ElasticsearchNodeType' node_roles: type: array items: enum: - master - ingest - ml - data_hot - data_content - data_warm - data_cold - data_frozen - remote_cluster_client - transform type: string description: 'The list of node roles for this topology element (ES version >= 7.10). Allowable values are: master, ingest, ml, data_hot, data_content, data_warm, data_cold, data_frozen, remote_cluster_client, transform' memory_per_node: type: integer description: The memory capacity in MB for each node of this type built in each zone. format: int32 node_count_per_zone: type: integer description: 'The number of nodes of this type that are allocated within each zone. (i.e. total capacity per zone = `node_count_per_zone` * `memory_per_node` in MB). Cannot be set for tiebreaker topologies. For dedicated master nodes, must be 1 if an entry exists.' format: int32 zone_count: type: integer description: The default number of zones in which data nodes will be placed format: int32 elasticsearch: $ref: '#/components/schemas/ElasticsearchConfiguration' instance_configuration_id: type: string description: Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the id of an existing instance configuration. instance_configuration_version: type: integer description: 'The version of the Instance Configuration Id. If it is unset, the meaning depends on read vs writes. For deployment reads, it is equivalent to version 0 (or the IC is unversioned); for deployment creates and deployment template use, it is equivalent to ''the latest version''; and for deployment updates, it is equivalent to ''retain the current version''.' format: int32 size: $ref: '#/components/schemas/TopologySize' autoscaling_min: $ref: '#/components/schemas/TopologySize' autoscaling_max: $ref: '#/components/schemas/TopologySize' autoscaling_policy_override_json: type: object description: An arbitrary JSON object overriding the default autoscaling policy. Don't set unless you really know what you are doing. topology_element_control: $ref: '#/components/schemas/TopologyElementControl' autoscaling_tier_override: type: boolean description: 'Set to true to enable autoscaling for this topology element, even if the cluster-level ''autoscaling_enabled'' field is false. Note that ''autoscaling_tier_override'' cannot be set to false if cluster-level ''autoscaling_enabled'' is true. Currently only supported for the ''ml'' tier' description: 'The topology of the Elasticsearch nodes, including the number, capacity, and type of nodes, and where they can be allocated.' ElasticsearchClusterTrustSettings: type: object properties: accounts: type: array items: $ref: '#/components/schemas/AccountTrustRelationship' description: The list of trust relationships with different accounts external: type: array items: $ref: '#/components/schemas/ExternalTrustRelationship' description: The list of trust relationships with external entities direct: type: array items: $ref: '#/components/schemas/DirectTrustRelationship' description: The list of trust relationships where the certificate is bundled with the trust setting. Allows configuring trust for clusters running outside of an Elastic Cloud managed environment or in an Elastic Cloud environment without an environment level trust established. description: Configuration of trust with other clusters. ElasticsearchClusterUser: required: - password_hash - username type: object properties: username: type: string description: The username password_hash: type: string description: The hashed password description: The information about an Elasticsearch cluster user. ElasticsearchConfiguration: type: object properties: version: type: string description: The version of the Elasticsearch cluster (must be one of the ECE supported versions). Currently cannot be different across the topology (and is generally specified in the globals). Defaults to the latest version if not specified. docker_image: type: string description: A docker URI that allows overriding of the default docker image specified for this version system_settings: $ref: '#/components/schemas/ElasticsearchSystemSettings' user_settings_json: type: object description: 'An arbitrary JSON object allowing cluster owners to set their parameters (only one of this and ''user_settings_yaml'' is allowed), provided the parameters arey are on the allowlist and not on the denylist. NOTES: (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Elasticsearch settings)' user_settings_yaml: type: string description: 'An arbitrary YAML object allowing cluster owners to set their parameters (only one of this and ''user_settings_json'' is allowed), provided the parameters arey are on the allowlist and not on the denylist. NOTES: (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Elasticsearch settings)' user_settings_override_json: type: object description: 'An arbitrary JSON object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_yaml'' is allowed), ie in addition to the documented ''system_settings''. NOTES: (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Elasticsearch settings)' user_settings_override_yaml: type: string description: 'An arbitrary YAML object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_json'' is allowed), ie in addition to the documented ''system_settings''. NOTES: (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Elasticsearch settings)' enabled_built_in_plugins: type: array items: type: string description: 'A list of plugin names from the Elastic-supported subset that are bundled with the version images. NOTES: (Users should consult the Elastic stack objects to see what plugins are available, this is currently only available from the UI)' user_plugins: type: array items: $ref: '#/components/schemas/ElasticsearchUserPlugin' description: A list of admin-uploaded plugin objects that are available for this user. user_bundles: type: array items: $ref: '#/components/schemas/ElasticsearchUserBundle' description: 'A list of admin-uploaded bundle objects (eg scripts, synonym files) that are available for this user.' curation: $ref: '#/components/schemas/ElasticsearchCuration' node_attributes: type: object additionalProperties: type: string description: Defines the Elasticsearch node attributes for the instances in the topology description: 'The Elasticsearch cluster settings. When specified at the top level, provides a field-by-field default. When specified at the topology level, provides the override settings.' ElasticsearchCuration: required: - from_instance_configuration_id - to_instance_configuration_id type: object properties: from_instance_configuration_id: type: string description: The source instance configuration to_instance_configuration_id: type: string description: The destination instance configuration description: The structure that defines the routing settings for index curation. ElasticsearchDependant: required: - id - kind type: object properties: id: type: string description: The id of the orphaned resource kind: type: string description: The kind of resource description: Details about an orphaned Elasticsearch-dependent resources. ElasticsearchElasticUserPasswordResetResponse: required: - password - username type: object properties: username: type: string description: The username for the newly-reset password for the given Elasticsearch cluster password: type: string description: The newly-reset password for the given Elasticsearch cluster description: Envelope holding the newly-reset password for a cluster's user ElasticsearchInfo: required: - blocking_issues - healthy - master_info - shard_info type: object properties: healthy: type: boolean description: Whether the Elasticsearch cluster is healthy (check the sub-objects for more details if not) shard_info: $ref: '#/components/schemas/ElasticsearchShardsInfo' shards_status: $ref: '#/components/schemas/ElasticsearchShardsStatus' master_info: $ref: '#/components/schemas/ElasticsearchMasterInfo' blocking_issues: $ref: '#/components/schemas/ElasticsearchClusterBlockingIssues' cluster_blocking_issues: $ref: '#/components/schemas/ElasticsearchBlockingIssues' description: Information about the Elasticsearch cluster. ElasticsearchMasterElement: required: - instances - master_node_id type: object properties: master_node_id: type: string description: The Elasticsearch node id of a master node master_instance_name: type: string description: 'The corresponding instance name of the container hosting the Elasticsearch master node, if available' instances: type: array items: type: string description: The names of the instance/container hosting the node belong to the cluster with the given master description: 'Information about the Elasticsearch instances. For split-brain cases, this also includes sub-clusters.' ElasticsearchMasterInfo: required: - healthy - instances_with_no_master - masters type: object properties: healthy: type: boolean description: 'Whether the master situation in the cluster is healthy (ie is the number of masters != 1), or do any instances have no master' masters: type: array items: $ref: '#/components/schemas/ElasticsearchMasterElement' instances_with_no_master: type: array items: type: string description: A list of any instances with no master description: Information about the master nodes in the Elasticsearch cluster. ElasticsearchMonitoringInfo: required: - destination_cluster_ids - healthy - last_modified - last_update_status - source_cluster_ids type: object properties: healthy: type: boolean description: Whether the Monitoring configuration has been successfully applied last_modified: type: string description: The time the monitoring configuration was last changed format: date-time last_update_status: type: string description: The status message from the last update (successful or not) source_cluster_ids: type: array items: type: string description: The list of clusters Ids from which this cluster is currently receiving monitoring data destination_cluster_ids: type: array items: type: string description: The list of clusters Ids to which this cluster is currently sending monitoring data description: Information about the monitoring status for the Elasticsearch cluster. ElasticsearchNodeType: type: object properties: master: type: boolean description: 'Defines whether this node can be elected master (default: false)' data: type: boolean description: 'Defines whether this node can hold data (default: false)' ingest: type: boolean description: 'Defines whether this node can run an ingest pipeline (default: false)' ml: type: boolean description: 'Defines whether this node can run ml jobs, valid only for versions 5.4.0 or greater (default: false)' description: 'Controls the combinations of Elasticsearch node types. TIP: By default, the Elasticsearch node is master eligible, can hold data, and run ingest pipelines. WARNING: Do not set for tiebreaker topologies.' ElasticsearchPayload: required: - plan - ref_id - region type: object properties: ref_id: type: string description: A locally-unique user-specified id for this Elasticsearch cluster display_name: type: string description: The human readable name for the cluster (defaults to the generated cluster id if not specified) region: type: string description: The region where this resource exists plan: $ref: '#/components/schemas/ElasticsearchClusterPlan' settings: $ref: '#/components/schemas/ElasticsearchClusterSettings' description: An alias for an Elasticsearch Cluster paired with a request for creating one ElasticsearchPlanControlConfiguration: type: object properties: timeout: type: integer description: 'The total timeout in seconds after which the plan is cancelled even if it is not complete. Defaults to 4x the max memory capacity per node (in MB). NOTES: A 3 zone cluster with 2 nodes of 2048 each would have a timeout of 4*2048=8192 seconds. Timeout does not include time required to run rollback actions.' format: int64 calm_wait_time: type: integer description: This timeout determines how long to give a cluster after it responds to API calls before performing actual operations on it. It defaults to 5s format: int64 move_instances: type: array items: $ref: '#/components/schemas/InstanceMoveRequest' move_allocators: type: array items: $ref: '#/components/schemas/AllocatorMoveRequest' move_only: type: boolean description: 'If true (default: false) only move_instances and move_allocators instructions will be executed, all other changes will be ignored' reallocate_instances: type: boolean description: 'If true (default: false) does not allow re-using any existing instances currently in the cluster, ie even unchanged instances will be re-created' preferred_allocators: type: array items: type: string description: List of allocators on which instances are placed if possible (if not possible/not specified then any available allocator with space is used) preferred_allocator_tags: type: object additionalProperties: type: string description: 'Map containing allocators tags in form of key value pairs, increasing the likelihood during move requests for allocators with matching tags, to be selected as target allocators' skip_snapshot: type: boolean description: 'If true (default: false), does not take (or require) a successful snapshot to be taken before performing any potentially destructive changes to this cluster' max_snapshot_attempts: type: integer description: 'If taking a snapshot (ie unless ''skip_snapshots'': true) then will retry on failure at most this number of times (default: 5)' format: int32 max_snapshot_age: type: integer description: 'When you take a snapshot and ''skip_snapshots'' is false, specifies the maximum age in seconds of the most recent snapshot before a new snapshot is created. Default is 300' format: int64 extended_maintenance: type: boolean description: 'If true (default false), does not clear the maintenance flag (which prevents its API from being accessed except by the constructor) on new instances added until after a snapshot has been restored, otherwise, the maintenance flag is cleared once the new instances successfully join the new cluster' cluster_reboot: enum: - forced type: string description: 'Set to ''forced'' to force a reboot as part of the upgrade plan. NOTES: (ie taking an existing plan and leaving it alone except for setting ''transient.plan_configuration.cluster_reboot'': ''forced'' will reboot the cluster)' override_failsafe: type: boolean description: If false (the default) then the plan will fail out if it believes the requested sequence of operations can result in data loss - this flag will override some of these restraints skip_data_migration: type: boolean description: 'If true (default: false) then the plan will not wait for data to be migrated from old instances to new instances before continuing the plan (potentially deleting the old instances and losing data)' skip_upgrade_checker: type: boolean description: 'If false, the cluster is checked for issues that should be resolved before migration (eg contains old Lucene segments), if true this is bypassed' skip_post_upgrade_steps: type: boolean description: 'If false (the default), the cluster will run (currently) 2.x->5.x operations for any plan change ending with a 5.x cluster (eg apply a cluster license, ensure Monitoring is configured)' skip_snapshot_post_major_upgrade: type: boolean description: 'If false (the default), the cluster will perform a snapshot after a major version upgrade takes place' description: The configuration settings for the timeout and fallback parameters. ElasticsearchReplicaElement: required: - instance_name - replica_count type: object properties: instance_name: type: string description: The Elastic Cloud name/id of the instance (container) replica_count: type: integer description: The number of unavailable replicas on this instance format: int32 description: 'Information about the unavailable replicas. NOTE: Unlike shards, unavailable replicas indicate a loss of redundancy rather than a loss of availability.' ElasticsearchResourceInfo: required: - id - info - ref_id - region type: object properties: ref_id: type: string description: The locally-unique user-specified id of a Resource id: type: string description: The randomly-generated id of a Resource region: type: string description: The region where this resource exists info: $ref: '#/components/schemas/ElasticsearchClusterInfo' description: Describes an Elasticsearch resource belonging to a Deployment ElasticsearchScriptTypeSettings: type: object properties: enabled: type: boolean description: 'If enabled (default: true) then scripts are enabled, either for sandboxing languages (by default), or for all installed languages if ''sandbox_mode'' is disabled (or for 6.x). NOTES: (Corresponds to the parameter ''script.file|stored/indexed|inline'')' sandbox_mode: type: boolean description: 'If enabled (default: true) and this script type is enabled, then only the sandbox languages are allowed. By default the sandbox languages are painless, expressions and mustache, but this can be restricted via the ''painless_enabled'', ''mustache_enabled'' ''expression_enabled'' settings.NOTES: Not supported in 6.x. (Corresponds to the parameters ''script.engine.[painless|mustache|expressions].[file|stored|inline]'')' description: 'Enables scripting for the specified type and controls other parameters. Store scripts in indexes (`stored`), upload in file bundles (`file`), or use in API requests (`inline`).' ElasticsearchScriptingUserSettings: type: object properties: painless_enabled: type: boolean description: '(5.x+ only) If enabled (the default) then the painless scripting engine is allowed as a sandboxed language. Sandboxed languages are the only ones allowed if ''sandbox_mode'' is set to true. NOTES: (Corresponds to the parameters ''script.engine.painless.[file|stored|inline]'')' mustache_enabled: type: boolean description: '(5.x+ only) If enabled (the default) then the mustache scripting engine is allowed as a sandboxed language. Sandboxed languages are the only ones allowed if ''sandbox_mode'' is set to true. NOTES: (Corresponds to the parameters ''script.engine.mustache.[file|stored|inline]'')' expressions_enabled: type: boolean description: '(5.x+ only) If enabled (the default) then the expressions scripting engine is allowed as a sandboxed language. Sandboxed languages are the only ones allowed if ''sandbox_mode'' is set to true. NOTES: (Corresponds to the parameters ''script.engine.expression.[file|stored|inline]'')' stored: $ref: '#/components/schemas/ElasticsearchScriptTypeSettings' file: $ref: '#/components/schemas/ElasticsearchScriptTypeSettings' inline: $ref: '#/components/schemas/ElasticsearchScriptTypeSettings' description: 'Controls the languages supported by the Elasticsearch cluster, such as Painless, Mustache, and Expressions. Controls how the languages are used, such as file, index, and inline. TIP: For complex configurations, leave these blank and configure these settings in the user YAML or JSON.' ElasticsearchShardElement: required: - instance_name - shard_count type: object properties: instance_name: type: string description: The Elastic Cloud name/id of the instance (container) shard_count: type: integer description: The number of shards of the given type (available/unavailable) on this instance format: int32 description: 'Information about the shards for each Elasticsearch instance container that hosts an Elasticsearch node. TIP: When the shard is unavailable, the cluster is unable to serve all of the data.' ElasticsearchShardsInfo: required: - available_shards - healthy - unavailable_replicas - unavailable_shards type: object properties: healthy: type: boolean description: Whether the shard situation is healthy (any unavailable shards is unhealthy) available_shards: type: array items: $ref: '#/components/schemas/ElasticsearchShardElement' unavailable_shards: type: array items: $ref: '#/components/schemas/ElasticsearchShardElement' unavailable_replicas: type: array items: $ref: '#/components/schemas/ElasticsearchReplicaElement' description: "> WARNING\n> This endpoint is deprecated and scheduled to be removed in the next major version. Use `shards_status` instead.\n\nInformation about the shards and replicas that comprise the Elasticsearch indices." ElasticsearchShardsStatus: required: - status type: object properties: status: enum: - green - red - yellow type: string description: Indicates the elasticsearch cluster health status as a color description: 'Shards status represented as green, yellow, or red, as returned by the Elasticsearch cluster health API' ElasticsearchSystemSettings: type: object properties: scripting: $ref: '#/components/schemas/ElasticsearchScriptingUserSettings' reindex_whitelist: type: array items: type: string description: Limits remote Elasticsearch clusters that can be used as the source for '_reindex' API commands auto_create_index: type: boolean description: 'If true (the default), then any write operation on an index that does not currently exist will create it. NOTES: (Corresponds to the parameter ''action.auto_create_index'')' enable_close_index: type: boolean description: 'Defaults to false on versions <= 7.2.0, true otherwise. If false, then the API commands to close indices are disabled. This is important because Elasticsearch does not snapshot or migrate close indices on versions under 7.2.0, therefore standard Elastic Cloud configuration operations will cause irretrievable loss of indices'' data. NOTES: (Corresponds to the parameter ''cluster.indices.close.enable'')' destructive_requires_name: type: boolean description: 'If true (default is false) then the index deletion API will not support wildcards or ''_all''. NOTES: (Corresponds to the parameter ''action.destructive_requires_name'')' watcher_trigger_engine: type: string description: 'The trigger engine for Watcher, defaults to ''scheduler'' - see the xpack documentation for more information. NOTES: (Corresponds to the parameter ''(xpack.)watcher.trigger.schedule.engine'', depending on version. Ignored from 6.x onwards.)' default_shards_per_index: type: integer description: '(2.x only - to get the same result in 5.x template mappings must be used) Sets the default number of shards per index, defaulting to 1 if not specified. (Corresponds to the parameter ''index.number_of_shards'' in 2.x, not supported in 5.x)' format: int32 monitoring_collection_interval: type: integer description: 'The default interval at which monitoring information from the cluster if collected, if monitoring is enabled. NOTES: (Corresponds to the parameter ''marvel.agent.interval'' in 2.x and ''xpack.monitoring.collection.interval'' in 5.x)' format: int32 monitoring_history_duration: type: string description: 'The duration for which monitoring history is stored (format ''(NUMBER)d'' eg ''3d'' for 3 days). NOTES: (''Corresponds to the parameter xpack.monitoring.history.duration'' in 5.x, defaults to ''7d'')' description: 'A subset of Elasticsearch settings. TIP: To define the complete set of Elasticsearch settings, use `ElasticsearchSystemSettings` with `user_settings_override*` and `user_settings*`.' ElasticsearchUserBundle: required: - elasticsearch_version - name - url type: object properties: name: type: string description: The name of the bundle url: type: string description: 'The URL of the bundle, which must be accessible from the ECE infrastructure. This URL could be cached by platform, make sure to change it when updating the bundle' elasticsearch_version: type: string description: The supported Elasticsearch version (must match the version in the plan) description: 'A list of admin-uploaded bundle objects, such as scripts and synonym files.' ElasticsearchUserPlugin: required: - elasticsearch_version - name - url type: object properties: name: type: string description: The name of the plugin url: type: string description: The URL of the plugin (must be accessible from the ECE infrastructure) elasticsearch_version: type: string description: The supported Elasticsearch version (must match the version in the plan) description: A list of admin-uploaded plugin objects. ElevatedPermissions: required: - enabled type: object properties: enabled: type: boolean description: True if the user has elevated permissions expires_at: type: string description: The time at which the user's elevated permissions expire format: date-time description: A user's elevated permissions status EmptyResponse: type: object EnableIlmRequest: required: - index_patterns type: object properties: index_patterns: type: array items: $ref: '#/components/schemas/IndexPattern' description: A locally-unique user-specified id for Kibana description: Request sent to enable ILM on a deployment. EnrollmentTokenRequest: required: - persistent type: object properties: roles: type: array items: type: string description: 'The additional services for which this enrollment token applies (empty if not specified, ie system services only)' persistent: type: boolean description: Whether this token can subsequently to its grant be revoked from the UI validity_in_seconds: type: integer description: 'The time in seconds for which this token is valid (defaults to 1 hour). Currently this can only be set for ephemeral (persistent: false) tokens.' format: int32 description: An enrollment token request for one or more services. EnterpriseSearch: required: - backend_plan - display_name - elasticsearch_cluster_ref_id - ref_id type: object properties: ref_id: type: string description: A locally-unique user-specified id display_name: type: string description: The human readable name (defaults to the generated cluster id if not specified) elasticsearch_cluster_ref_id: type: string description: The user-specified id of the Elasticsearch Cluster that this will link to backend_plan: type: object description: The backend plan as JSON description: Holds diagnostics for an Enterprise Search resource EnterpriseSearchConfiguration: type: object properties: version: type: string description: 'The version of the Enterprise Search cluster (must be one of the ECE supported versions, and won''t work unless it matches the Elasticsearch version. Leave blank to auto-detect version.)' docker_image: type: string description: A docker URI that allows overriding of the default docker image specified for this version system_settings: $ref: '#/components/schemas/EnterpriseSearchSystemSettings' user_settings_json: type: object description: 'An arbitrary JSON object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_yaml'' is allowed), provided the parameters are on the allowlist and not on the denylist. (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Enterprise Search settings)' user_settings_yaml: type: string description: 'An arbitrary YAML object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_json'' is allowed), provided the parameters are on the allowlist and not on the denylist. (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Enterprise Search settings)' user_settings_override_json: type: object description: 'An arbitrary JSON object allowing ECE admins to set clusters'' parameters (only one of this and ''user_settings_override_yaml'' is allowed), i.e. in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Enterprise Search settings)' user_settings_override_yaml: type: string description: 'An arbitrary YAML object allowing ECE admins to set clusters'' parameters (only one of this and ''user_settings_override_json'' is allowed), i.e. in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Enterprise Search settings)' EnterpriseSearchInfo: required: - elasticsearch_cluster - external_links - healthy - id - name - plan_info - status - topology type: object properties: id: type: string description: The id of the Enterprise Search name: type: string description: The name of the Enterprise Search elasticsearch_cluster: $ref: '#/components/schemas/TargetElasticsearchCluster' deployment_id: type: string description: The id of the deployment that this Enterprise Search belongs to. healthy: type: boolean description: 'Whether the Enterprise Search is healthy or not (one or more of the info subsections will have healthy: false)' status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: Enterprise Search status plan_info: $ref: '#/components/schemas/EnterpriseSearchPlansInfo' metadata: $ref: '#/components/schemas/ClusterMetadataInfo' topology: $ref: '#/components/schemas/ClusterTopologyInfo' external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to the Enterprise Search links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation settings: $ref: '#/components/schemas/EnterpriseSearchSettings' region: type: string description: The region that this Enterprise Search belongs to. Only populated in SaaS or federated ECE. description: The overview information for the Enterprise Search Server. EnterpriseSearchNodeTypes: required: - appserver - connector - worker type: object properties: appserver: type: boolean description: Defines whether this instance should run as Application/API server worker: type: boolean description: Defines whether this instance should run as background worker connector: type: boolean description: Defines whether this instance should run as Connector description: Node types to enable for an Enterprise Search instance EnterpriseSearchPayload: required: - elasticsearch_cluster_ref_id - plan - ref_id - region type: object properties: ref_id: type: string description: A locally-unique user-specified id for Enterprise Search elasticsearch_cluster_ref_id: type: string description: Alias to the Elasticsearch Cluster to attach Enterprise Search to display_name: type: string description: 'The human readable name for the Enterprise Search cluster (default: takes the name of its Elasticsearch cluster)' region: type: string description: The region where this resource exists plan: $ref: '#/components/schemas/EnterpriseSearchPlan' settings: $ref: '#/components/schemas/EnterpriseSearchSettings' description: An Enterprise Search creation request paired with the alias of the Elasticsearch cluster it should be paired with EnterpriseSearchPlan: required: - enterprise_search type: object properties: cluster_topology: type: array items: $ref: '#/components/schemas/EnterpriseSearchTopologyElement' enterprise_search: $ref: '#/components/schemas/EnterpriseSearchConfiguration' transient: $ref: '#/components/schemas/TransientEnterpriseSearchPlanConfiguration' description: The plan for the Enterprise Search cluster. EnterpriseSearchPlanControlConfiguration: type: object properties: timeout: type: integer description: The total timeout in seconds after which the plan is cancelled even if it is not complete. Defaults to 4x the max memory capacity per node (in MB) format: int64 calm_wait_time: type: integer description: This timeout determines how long to give a cluster after it responds to API calls before performing actual operations on it. It defaults to 5s format: int64 move_instances: type: array items: $ref: '#/components/schemas/InstanceMoveRequest' move_allocators: type: array items: $ref: '#/components/schemas/AllocatorMoveRequest' reallocate_instances: type: boolean description: 'If true (default: false) does not allow re-using any existing instances currently in the cluster, i.e. even unchanged instances will be re-created' preferred_allocators: type: array items: type: string description: List of allocators on which instances are placed if possible (if not possible/not specified then any available allocator with space is used) preferred_allocator_tags: type: object additionalProperties: type: string description: 'Map containing allocators tags in form of key value pairs, increasing the likelihood during move requests for allocators with matching tags, to be selected as target allocators' extended_maintenance: type: boolean description: 'If true (default false), does not clear the maintenance flag (which prevents its API from being accessed except by the constructor) on new instances added until after a snapshot has been restored, otherwise, the maintenance flag is cleared once the new instances successfully join the new cluster' cluster_reboot: enum: - forced type: string description: Set to 'forced' to force a reboot as part of the upgrade plan override_failsafe: type: boolean description: 'If false (the default), the plan fails if it determines that the request can result in unsafe operations. Setting this flag overrides some of these check restraints.' EnterpriseSearchPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string description: A UUID for each plan attempt plan_attempt_name: type: string description: 'A human readable name for each plan attempt, only populated when retrieving plan histories' healthy: type: boolean description: 'Either the plan ended successfully, or is not yet completed (and no errors have occurred)' attempt_start_time: type: string description: When this plan attempt (ie to apply the plan to the Enterprise Search) started (ISO format in UTC) format: date-time attempt_end_time: type: string description: 'If this plan completed or failed (ie is not pending), when the attempt ended (ISO format in UTC)' format: date-time plan_end_time: type: string description: 'If this plan is not current or pending, when the plan was no longer active (ISO format in UTC)' format: date-time plan: $ref: '#/components/schemas/EnterpriseSearchPlan' plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' description: Information about the Enterprise Search Server plan. EnterpriseSearchPlansInfo: required: - healthy - history type: object properties: healthy: type: boolean description: 'Whether the plan situation is healthy (if unhealthy, means the last plan attempt failed)' current: $ref: '#/components/schemas/EnterpriseSearchPlanInfo' pending: $ref: '#/components/schemas/EnterpriseSearchPlanInfo' history: type: array items: $ref: '#/components/schemas/EnterpriseSearchPlanInfo' description: 'Information about current, pending, and past Enterprise Search Server plans.' EnterpriseSearchResourceInfo: required: - elasticsearch_cluster_ref_id - id - info - ref_id - region type: object properties: ref_id: type: string description: The locally-unique user-specified id of a Resource elasticsearch_cluster_ref_id: type: string description: The Elasticsearch cluster that this resource depends on. id: type: string description: The randomly-generated id of a Resource region: type: string description: The region where this resource exists info: $ref: '#/components/schemas/EnterpriseSearchInfo' description: Describes an Enterprise Search resource belonging to a Deployment EnterpriseSearchSettings: type: object properties: metadata: $ref: '#/components/schemas/ClusterMetadataSettings' description: The settings for the Enterprise Search. EnterpriseSearchSubInfo: required: - enabled - enterprise_search_id type: object properties: enterprise_search_id: type: string description: The Enterprise Search Id enabled: type: boolean description: Whether the associated Enterprise Search is currently available links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation description: Information about the APM Servers associated with the Elasticsearch cluster. EnterpriseSearchSystemSettings: type: object properties: elasticsearch_username: type: string description: 'Optionally override the account within Enterprise Search - defaults to a system account that always exists (if specified, the password must also be specified). Note that this field is never returned from the API, it is write only.' elasticsearch_password: type: string description: 'Optionally override the account within Enterprise Search - defaults to a system account that always exists (if specified, the username must also be specified). Note that this field is never returned from the API, it is write only.' secret_session_key: type: string description: 'Optionally override the secret session key within Enterprise Search - defaults to the previously existing secretSession. Note that this field is never returned from the API, it is write only.' description: This structure defines a curated subset of the Enterprise Search settings. (This field together with 'user_settings_override*' and 'user_settings*' defines the total set of Enterprise Search settings) EnterpriseSearchTopologyElement: type: object properties: node_type: $ref: '#/components/schemas/EnterpriseSearchNodeTypes' instance_configuration_id: type: string description: Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the id of an existing instance configuration. instance_configuration_version: type: integer description: 'The version of the Instance Configuration Id. If it is unset, the meaning depends on read vs writes. For deployment reads, it is equivalent to version 0 (or the IC is unversioned); for deployment creates and deployment template use, it is equivalent to ''the latest version''; and for deployment updates, it is equivalent to ''retain the current version''.' format: int32 size: $ref: '#/components/schemas/TopologySize' zone_count: type: integer description: number of zones in which nodes will be placed format: int32 enterprise_search: $ref: '#/components/schemas/EnterpriseSearchConfiguration' allocator_filter: type: object node_configuration: type: string memory_per_node: type: object node_count_per_zone: type: object description: 'Defines the topology of the Enterprise Search nodes (e.g. number/capacity of nodes, and where they can be allocated)' ExistsQuery: required: - field type: object properties: field: type: string description: The field to check for non-null values in. description: Matches documents that have at least one non-`null` value in the original field. Extension: required: - extension_type - id - name - url - version type: object properties: id: type: string description: The extension ID name: type: string description: The extension name. description: type: string description: The extension description. url: type: string description: The extension URL to be used in the plan. download_url: type: string description: The download URL specified during extension creation. extension_type: enum: - plugin - bundle type: string description: The extension type. version: type: string description: The Elasticsearch version. deployments: type: array items: type: string description: List of deployments using this extension. Up to only 10000 deployments will be included in the list. file_metadata: $ref: '#/components/schemas/ExtensionFileMetadata' description: An API extension. It represents clusters' plugins and bundles ExtensionFileMetadata: type: object properties: last_modified_date: type: string description: The date and time the extension was last modified. format: date-time size: type: integer description: The extension file size in bytes. format: int64 url: type: string description: The temporary URL to download the extension file. Usable for verification. format: uri Extensions: required: - extensions type: object properties: extensions: type: array items: $ref: '#/components/schemas/Extension' description: The list of extensions. description: A collection of extensions ExternalHyperlink: required: - id - label type: object properties: id: type: string description: Identifier of the external link label: type: string description: Human-readable description of the external link uri: type: string description: hyperlink to an external resource ExternalTrustRelationship: required: - trust_all - trust_relationship_id type: object properties: trust_relationship_id: type: string description: The ID of the external trust relationship name: type: string description: The name of the external trust relationship. Retrieved from the TrustRelationship and ignored on write. trust_all: type: boolean description: 'If true, all clusters in this external entity will be trusted and the `trust_allowlist` is ignored.' trust_allowlist: type: array items: type: string description: The list of clusters to trust. Only used when `trust_all` is false. description: 'The trust relationship with external entities (remote environments, remote accounts...).' FilterAssociation: required: - entity_type - id type: object properties: entity_type: type: string description: 'Type of the traffic filter ruleset association, such as ''deployment'', ''cluster''' id: type: string description: 'ID of the entity, such as the deployment ID or Elasticsearch cluster ID.' description: 'The association with a ruleset or user auth token for a deployment, template, or product.' GenericResponse: required: - value type: object properties: value: type: string GetOrganizationClaimedDomainsResponse: required: - domains type: object properties: domains: type: array items: type: string description: The list of claimed domains in the organization GetRoleMappingsResponse: required: - mappings type: object properties: mappings: type: array items: $ref: '#/components/schemas/RoleMapping' description: The list of role assignments for the organization GlobalDeploymentTemplateInfo: required: - description - name - order - regions type: object properties: template_category_id: type: string description: Provider agnostic template identifier. name: type: string description: Long name of the Template description: type: string description: An optional description for the template. order: type: integer description: The order in which the templates should be displayed in the front-end. format: int32 metadata: type: array items: $ref: '#/components/schemas/MetadataItem' description: Optional arbitrary metadata to associate with this template. regions: type: array items: $ref: '#/components/schemas/GlobalDeploymentTemplateRegion' description: List of regions this template is used in. description: The top-level model for global (regionless) templates. GlobalDeploymentTemplateRegion: required: - deployment_template_id - region_id - versions type: object properties: region_id: type: string description: The region identifier. deployment_template_id: type: string description: The (region-specific) ID of the deployment template. versions: type: array items: type: string description: Versions supported in this region. kibana_deeplink: type: array items: $ref: '#/components/schemas/KibanaDeeplink' description: The Kibana Deeplink for this type of deployment. description: Region-specific details about a template. GrowShrinkStrategyConfig: type: object description: 'A strategy that creates instances with the new plan, migrates data from the old instances, then shuts down the old instances. `GrowShrinkStrategyConfig` is safer than ''rolling'' and ensures single node availability during a plan change, but can be a lot slower on larger clusters.' HeapDump: required: - captured - instance_id - status - type type: object properties: instance_id: type: string description: The Elastic Cloud name/id of the instance (container) size: type: integer description: The size in bytes of the heap dump format: int64 type: type: string description: The type of heap dump status: type: string description: The status of the heap dump error: type: string description: An error message if the heap dump failed captured: type: string description: The time at which the heap dump was captured Hyperlink: type: object properties: need_elevated_permissions: type: boolean description: 'Whether the operation requires elevated permissions (when the field is present, elevated permissions are required).' IdResponse: required: - id type: object properties: id: type: string description: The ID IdpConfigurationRequest: required: - enabled - login_identifier_prefix - saml_idp type: object properties: enabled: type: boolean description: Whether or not the IdP is enabled login_identifier_prefix: type: string description: The prefix of the login identifier that will be generated saml_idp: $ref: '#/components/schemas/SamlIdp' description: A request to setup an organization IdP IndexPattern: required: - index_pattern - policy_name type: object properties: index_pattern: type: string description: Index pattern to which the ILM policy will be applied. policy_name: type: string description: Name of the policy to create node_attributes: type: object additionalProperties: type: string description: Defines the Elasticsearch node attributes for the warm element of the topology description: An index pattern described indicating how it has to be migrated to ILM. IndexSynchronizationResults: required: - created - deleted - errors - updated type: object properties: created: type: array items: type: string description: The ids of documents created in the index by index version updated: type: array items: type: string description: The ids of documents updated in the index by index version deleted: type: array items: type: string description: The ids of documents deleted from the index by index version errors: type: array items: type: string description: The regions where document synchronization may have failed description: Results from synchronizing indices InstanceConfiguration: required: - discrete_sizes - name type: object properties: id: type: string description: Unique identifier for the instance configuration name: type: string description: Display name for the instance configuration. config_version: type: integer description: 'If the IC is configuration controlled, this field is the version either being read back (reads return the latest IC unless specified by the ''config_version'' URL param), or the version to update. Cannot be used in creates. For unversioned IC reads it is left empty.' format: int32 description: type: string description: Optional description for the instance configuration instance_type: enum: - elasticsearch - kibana - apm - integrations_server - appsearch - enterprise_search type: string description: 'The type of instance. For instance configurations where the type is specified in the ''id'', the default value of ''instance_type'' will be automatically inferred.' node_types: type: array items: type: string description: 'Node types (master, data) for the instance. For instance configurations where the type (and tier) is specified in the ''id'', the default value of ''node_types'' will be automatically inferred.' discrete_sizes: $ref: '#/components/schemas/DiscreteSizes' allocator_filter: $ref: '#/components/schemas/QueryContainer' storage_multiplier: type: number description: Settings for the instance storage multiplier format: double deleted_on: type: string description: Date/time that this instance configuration was marked for deletion format: date-time system_owned: type: boolean description: Indicates if a instance configuration is system owned (restricts the set of operations that can be performed on it) metadata: type: object description: Optional arbitrary metadata to associate with this template. cpu_multiplier: type: number description: Settings for the instance CPU multiplier format: double allowed_zones: type: array items: type: string description: 'The zones this instance configuration may exist in. Leaving out this parameter or specifying an empty list implies all zones are allowed. Normally not needed, but can be useful for exceptional infrastructure constraints.' max_zones: type: integer description: The maximum number of availability zones in which this instance configuration has allocators. This field will be missing unless explicitly requested with the show_max_zones parameter. format: int32 readOnly: true description: 'The configuration template for Elasticsearch instances, Kibana instances, and APM Servers.' InstanceConfigurationInfo: required: - discrete_sizes - name type: object properties: id: type: string description: Unique identifier for the instance configuration name: type: string description: Display name for the instance configuration. config_version: type: integer description: 'If the IC is configuration controlled, this field is the version either being read back (reads return the latest IC unless specified by the ''config_version'' URL param), or the version to update. Cannot be used in creates. For unversioned IC reads it is left empty.' format: int32 description: type: string description: Optional description for the instance configuration instance_type: enum: - elasticsearch - kibana - apm - integrations_server - appsearch - enterprise_search type: string description: 'The type of instance. For instance configurations where the type is specified in the ''id'', the default value of ''instance_type'' will be automatically inferred.' node_types: type: array items: type: string description: 'Node types (master, data) for the instance. For instance configurations where the type (and tier) is specified in the ''id'', the default value of ''node_types'' will be automatically inferred.' discrete_sizes: $ref: '#/components/schemas/DiscreteSizes' storage_multiplier: type: number description: Settings for the instance storage multiplier format: double cpu_multiplier: type: number description: Settings for the instance CPU multiplier format: double metadata: type: object description: Optional arbitrary metadata to associate with this template. max_zones: type: integer description: The maximum number of availability zones in which this instance configuration has allocators. This field will be missing unless explicitly requested with the show_max_zones parameter. format: int32 readOnly: true description: 'The configuration template for Elasticsearch instances, Kibana instances, and APM Servers.' InstanceMoveRequest: required: - from type: object properties: from: type: string description: The instance id that is going to be moved to: type: array items: type: string description: An optional list of allocator ids to which the instance should be moved. If not specified then any available allocator can be used (including the current one if it is healthy) instance_down: type: boolean description: 'Tells the infrastructure that the instance should be considered as permanently down when deciding how to migrate data to new nodes. If left blank then the system will automatically decide (currently: will treat the instances as up)' description: 'The request that specifies the Elasticsearch or stateless (eg Kibana) instances to move to allocators as part of the upgrade plan. When used in conjunction with ''\_\_all\_\_'' (roll all instances as a single unit) strategy, these instances are not restarted, which can sometimes enable recovery plans when these instances are boot-looping.' InstanceOverrides: type: object properties: capacity: type: integer description: Sets the memory capacity for the instances container. Requires a restart to take effect. format: int32 storage_multiplier: type: number description: Overrides the disk quota multiplier for the instance format: double InstanceTypeResource: required: - compatibility - description - instance_type - name - node_types type: object properties: instance_type: enum: - elasticsearch - kibana - apm - integrations_server - appsearch - enterprise_search type: string description: 'Instance type, the key for this resource' name: type: string description: Instance type name description: type: string description: Instance type description node_types: type: array items: $ref: '#/components/schemas/NodeTypeResource' description: Supported node types compatibility: type: array items: $ref: '#/components/schemas/CompatibleVersionResource' description: Compatible versions default_instance_configuration_id: type: string description: Id of the default instance configuration to use for this instance type. IntegrationsServer: required: - backend_plan - display_name - elasticsearch_cluster_ref_id - ref_id type: object properties: ref_id: type: string description: A locally-unique user-specified id display_name: type: string description: The human readable name (defaults to the generated cluster id if not specified) elasticsearch_cluster_ref_id: type: string description: The user-specified id of the Elasticsearch Cluster that this will link to backend_plan: type: object description: The backend plan as JSON description: Holds diagnostics for an Integrations Server resource IntegrationsServerConfiguration: type: object properties: version: type: string description: 'The version of the Integrations Server cluster (must be one of the ECE supported versions, and won''t work unless it matches the Integrations Server version. Leave blank to auto-detect version.)' docker_image: type: string description: A docker URI that allows overriding of the default docker image specified for this version system_settings: $ref: '#/components/schemas/IntegrationsServerSystemSettings' user_settings_json: type: object description: 'An arbitrary JSON object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_yaml'' is allowed), provided the parameters are on the allowlist and not on the denylist. (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Integrations Server settings)' user_settings_yaml: type: string description: 'An arbitrary YAML object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_json'' is allowed), provided the parameters are on the allowlist and not on the denylist. (These field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Integrations Server settings)' user_settings_override_json: type: object description: 'An arbitrary JSON object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_yaml'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Integrations Server settings)' user_settings_override_yaml: type: string description: 'An arbitrary YAML object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_json'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Integrations Server settings)' mode: enum: - standalone - managed type: string description: The mode the Integrations Server is operating in. description: The configuration options for the Integrations Server. IntegrationsServerInfo: required: - elasticsearch_cluster - external_links - healthy - id - name - plan_info - status - topology type: object properties: id: type: string description: The id of the Integrations Server name: type: string description: The name of the Integrations Server elasticsearch_cluster: $ref: '#/components/schemas/TargetElasticsearchCluster' deployment_id: type: string description: The id of the deployment that this Integrations Server belongs to. healthy: type: boolean description: 'Whether the Integrations Server is healthy or not (one or more of the info subsections will have healthy: false)' status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: Integrations Server status plan_info: $ref: '#/components/schemas/IntegrationsServerPlansInfo' metadata: $ref: '#/components/schemas/ClusterMetadataInfo' topology: $ref: '#/components/schemas/ClusterTopologyInfo' external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to the Integrations Server links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation settings: $ref: '#/components/schemas/IntegrationsServerSettings' region: type: string description: The region that this Integrations Server belongs to. Only populated in SaaS or federated ECE. apm_server_mode: enum: - standalone - managed type: string description: The mode APM is operating in. description: The overview information for the Integrations Server. IntegrationsServerPayload: required: - elasticsearch_cluster_ref_id - plan - ref_id - region type: object properties: ref_id: type: string description: A locally-unique user-specified id for the Integrations Server elasticsearch_cluster_ref_id: type: string description: Alias to the Elasticsearch Cluster to attach the Integrations Server to display_name: type: string description: 'The human readable name for the Integrations Server cluster (default: takes the name of its Elasticsearch cluster)' region: type: string description: The region where this resource exists plan: $ref: '#/components/schemas/IntegrationsServerPlan' settings: $ref: '#/components/schemas/IntegrationsServerSettings' description: An Integrations Server creation request paired with the alias of the Elasticsearch cluster it should be paired with IntegrationsServerPlan: required: - integrations_server type: object properties: cluster_topology: type: array items: $ref: '#/components/schemas/IntegrationsServerTopologyElement' integrations_server: $ref: '#/components/schemas/IntegrationsServerConfiguration' transient: $ref: '#/components/schemas/TransientIntegrationsServerPlanConfiguration' description: The plan for the Integrations Server. IntegrationsServerPlanControlConfiguration: type: object properties: timeout: type: integer description: The total timeout in seconds after which the plan is cancelled even if it is not complete. Defaults to 4x the max memory capacity per node (in MB) format: int64 calm_wait_time: type: integer description: This timeout determines how long to give a cluster after it responds to API calls before performing actual operations on it. It defaults to 5s format: int64 move_instances: type: array items: $ref: '#/components/schemas/InstanceMoveRequest' move_allocators: type: array items: $ref: '#/components/schemas/AllocatorMoveRequest' reallocate_instances: type: boolean description: 'If true (default: false) does not allow re-using any existing instances currently in the cluster, ie even unchanged instances will be re-created' preferred_allocators: type: array items: type: string description: List of allocators on which instances are placed if possible (if not possible/not specified then any available allocator with space is used) preferred_allocator_tags: type: object additionalProperties: type: string description: 'Map containing allocators tags in form of key value pairs, increasing the likelihood during move requests for allocators with matching tags, to be selected as target allocators' extended_maintenance: type: boolean description: 'If true (default false), does not clear the maintenance flag (which prevents its API from being accessed except by the constructor) on new instances added until after a snapshot has been restored, otherwise, the maintenance flag is cleared once the new instances successfully join the new cluster' cluster_reboot: enum: - forced type: string description: Set to 'forced' to force a reboot as part of the upgrade plan override_failsafe: type: boolean description: 'If false (the default), the plan fails if it determines that the request can result in unsafe operations. Setting this flag overrides some of these check restraints.' description: The plan control configuration options for the Integrations Server. IntegrationsServerPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string description: A UUID for each plan attempt plan_attempt_name: type: string description: 'A human readable name for each plan attempt, only populated when retrieving plan histories' healthy: type: boolean description: 'Either the plan ended successfully, or is not yet completed (and no errors have occurred)' attempt_start_time: type: string description: When this plan attempt (ie to apply the plan to the Integrations Server) started (ISO format in UTC) format: date-time attempt_end_time: type: string description: 'If this plan completed or failed (ie is not pending), when the attempt ended (ISO format in UTC)' format: date-time plan_end_time: type: string description: 'If this plan is not current or pending, when the plan was no longer active (ISO format in UTC)' format: date-time plan: $ref: '#/components/schemas/IntegrationsServerPlan' plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' description: Information about the Integrations Server plan. IntegrationsServerPlansInfo: required: - healthy - history type: object properties: healthy: type: boolean description: 'Whether the plan situation is healthy (if unhealthy, means the last plan attempt failed)' current: $ref: '#/components/schemas/IntegrationsServerPlanInfo' pending: $ref: '#/components/schemas/IntegrationsServerPlanInfo' history: type: array items: $ref: '#/components/schemas/IntegrationsServerPlanInfo' description: 'Information about current, pending, and past Integrations Server plans.' IntegrationsServerResourceInfo: required: - elasticsearch_cluster_ref_id - id - info - ref_id - region type: object properties: ref_id: type: string description: The locally-unique user-specified id of a Resource elasticsearch_cluster_ref_id: type: string description: The Elasticsearch cluster that this resource depends on. id: type: string description: The randomly-generated id of a Resource region: type: string description: The region where this resource exists info: $ref: '#/components/schemas/IntegrationsServerInfo' description: Describes an Integrations Server resource belonging to a Deployment IntegrationsServerSettings: type: object properties: metadata: $ref: '#/components/schemas/ClusterMetadataSettings' description: The settings for the Integrations Server. IntegrationsServerSystemSettings: type: object properties: elasticsearch_username: type: string description: 'Optionally override the account within Integrations Server - defaults to a system account that always exists (if specified, the password must also be specified). Note that this field is never returned from the API, it is write only.' elasticsearch_password: type: string description: 'Optionally override the account within Integrations Server - defaults to a system account that always exists (if specified, the username must also be specified). Note that this field is never returned from the API, it is write only.' secret_token: type: string description: Optionally override the secret token within Integrations Server - defaults to the previously existing secretToken debug_enabled: type: boolean description: Optionally enable debug mode for Integrations Server - defaults false description: "A structure that defines a curated subset of the Integrations Server settings. \nTIP: To define the complete set of Integrations Server setting, use `IntegrationsSystemSettings` with `user_settings_override_` and `user_settings_`." IntegrationsServerTopologyElement: type: object properties: instance_configuration_id: type: string description: Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the id of an existing instance configuration. instance_configuration_version: type: integer description: 'The version of the Instance Configuration Id. If it is unset, the meaning depends on read vs writes. For deployment reads, it is equivalent to version 0 (or the IC is unversioned); for deployment creates and deployment template use, it is equivalent to ''the latest version''; and for deployment updates, it is equivalent to ''retain the current version''.' format: int32 size: $ref: '#/components/schemas/TopologySize' zone_count: type: integer description: number of zones in which nodes will be placed format: int32 integrations_server: $ref: '#/components/schemas/IntegrationsServerConfiguration' description: 'Defines the topology of the Integrations Server nodes. For example, the number or capacity of the nodes, and where you can allocate the nodes.' ItemCosts: required: - hours - instance_count - kind - name - period - price - price_per_hour - sku type: object properties: hours: type: integer description: Resource usage in hours format: int64 instance_count: type: integer description: Number of instances format: int32 period: $ref: '#/components/schemas/Period' kind: enum: - elasticsearch - kibana - apm - integrations_server - appsearch - enterprise_search type: string description: Kind of resource price: type: number description: Resource price format: double price_per_hour: type: number description: Price per hour format: double name: type: string description: Resource name sku: type: string description: Stock Keeping Unit (SKU) description: Detailed costs associated to an Elastic Cloud Resource for an organization. All of the costs are expressed in Elastic Consumption Unit (ECU). ItemsCosts: required: - costs - data_transfer_and_storage - resources type: object properties: costs: $ref: '#/components/schemas/Costs' data_transfer_and_storage: type: array items: $ref: '#/components/schemas/DtsDimensionCosts' description: List of the detailed costs associated to the Data Transfer and Storage (DTS) dimensions resources: type: array items: $ref: '#/components/schemas/ItemCosts' description: Costs of the list of resources description: Costs associated to a set of Elastic Cloud resources for an organization. All of the costs are expressed in Elastic Consumption Unit (ECU). KeystoreContents: required: - secrets type: object properties: secrets: type: object additionalProperties: $ref: '#/components/schemas/KeystoreSecret' description: List of secrets description: The contents of the Elasticsearch keystore. KeystoreSecret: type: object properties: value: type: object description: 'Value of this setting. This can either be a string or a JSON object that is stored as a JSON string in the keystore. NOTE: When the keystore secret is unspecified, it is removed.' as_file: type: boolean description: 'Stores the keystore secret as a file. The default is false, which stores the keystore secret as string when value is a plain string, or true when value is an object.' is_allowlisted: type: boolean description: 'Read-only field, ignored on write. Only returned when calling the set-deployment-es-resource-keystore endpoint with `validate_only=true`. True if this setting/value pair is allowlisted (the allowlist is for informational purposes).' is_reloadable: type: boolean description: 'Read-only field, ignored on write. Only returned when calling the set-deployment-es-resource-keystore endpoint with `validate_only=true`. True if this setting is reloadable, or if false it requires a cluster restart.' description: The value that you configure for the Elasticsearch keystore secret. Kibana: required: - backend_plan - display_name - elasticsearch_cluster_ref_id - ref_id type: object properties: ref_id: type: string description: A locally-unique user-specified id display_name: type: string description: The human readable name (defaults to the generated cluster id if not specified) elasticsearch_cluster_ref_id: type: string description: The user-specified id of the Elasticsearch Cluster that this will link to backend_plan: type: object description: The backend plan as JSON description: Holds diagnostics for a Kibana resource KibanaClusterInfo: required: - cluster_id - cluster_name - elasticsearch_cluster - external_links - healthy - metadata - plan_info - status - topology type: object properties: cluster_id: type: string description: The id of the cluster cluster_name: type: string description: The name of the cluster elasticsearch_cluster: $ref: '#/components/schemas/TargetElasticsearchCluster' deployment_id: type: string description: The id of the deployment to which this Kibana Server belongs to. healthy: type: boolean description: 'Whether the cluster is healthy or not (one or more of the info subsections will have healthy: false)' status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: Cluster status plan_info: $ref: '#/components/schemas/KibanaClusterPlansInfo' metadata: $ref: '#/components/schemas/ClusterMetadataInfo' topology: $ref: '#/components/schemas/ClusterTopologyInfo' external_links: uniqueItems: true type: array items: $ref: '#/components/schemas/ExternalHyperlink' description: External resources related to the cluster links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation settings: $ref: '#/components/schemas/KibanaClusterSettings' region: type: string description: The region that this cluster belongs to. Only populated in SaaS or federated ECE. description: The top-level object information for a Kibana instance. KibanaClusterPlan: required: - kibana type: object properties: cluster_topology: type: array items: $ref: '#/components/schemas/KibanaClusterTopologyElement' kibana: $ref: '#/components/schemas/KibanaConfiguration' transient: $ref: '#/components/schemas/TransientKibanaPlanConfiguration' description: The plan for the Kibana instance. KibanaClusterPlanInfo: required: - healthy - plan_attempt_log - warnings type: object properties: plan_attempt_id: type: string description: A UUID for each plan attempt plan_attempt_name: type: string description: 'A human readable name for each plan attempt, only populated when retrieving plan histories' healthy: type: boolean description: 'Either the plan ended successfully, or is not yet completed (and no errors have occurred)' attempt_start_time: type: string description: When this plan attempt (ie to apply the plan to the cluster) started (ISO format in UTC) format: date-time attempt_end_time: type: string description: 'If this plan completed or failed (ie is not pending), when the attempt ended (ISO format in UTC)' format: date-time plan_end_time: type: string description: 'If this plan is not current or pending, when the plan was no longer active (ISO format in UTC)' format: date-time plan: $ref: '#/components/schemas/KibanaClusterPlan' plan_attempt_log: type: array items: $ref: '#/components/schemas/ClusterPlanStepInfo' source: $ref: '#/components/schemas/ChangeSourceInfo' warnings: type: array items: $ref: '#/components/schemas/ClusterPlanWarning' error: $ref: '#/components/schemas/ClusterPlanAttemptError' description: 'Information about the current, pending, or past Kibana instance plan.' KibanaClusterPlansInfo: required: - healthy - history type: object properties: healthy: type: boolean description: 'Whether the plan situation is healthy (if unhealthy, means the last plan attempt failed)' current: $ref: '#/components/schemas/KibanaClusterPlanInfo' pending: $ref: '#/components/schemas/KibanaClusterPlanInfo' history: type: array items: $ref: '#/components/schemas/KibanaClusterPlanInfo' description: 'Information about the current, pending, or past Kibana instance plans.' KibanaClusterSettings: type: object properties: metadata: $ref: '#/components/schemas/ClusterMetadataSettings' description: The settings for multiple Kibana instances. KibanaClusterTopologyElement: type: object properties: memory_per_node: type: integer description: The memory capacity in MB for each node of this type built in each zone. format: int32 node_count_per_zone: type: integer description: The number of nodes of this type that are allocated within each zone (i.e. total capacity per zone = `node_count_per_zone` * `memory_per_node` in MB). format: int32 instance_configuration_id: type: string description: Controls the allocation of this topology element as well as allowed sizes and node_types. It needs to match the id of an existing instance configuration. instance_configuration_version: type: integer description: 'The version of the Instance Configuration Id. If it is unset, the meaning depends on read vs writes. For deployment reads, it is equivalent to version 0 (or the IC is unversioned); for deployment creates and deployment template use, it is equivalent to ''the latest version''; and for deployment updates, it is equivalent to ''retain the current version''.' format: int32 size: $ref: '#/components/schemas/TopologySize' zone_count: type: integer description: number of zones in which nodes will be placed format: int32 kibana: $ref: '#/components/schemas/KibanaConfiguration' description: 'The topology of the Kibana nodes, including the number, capacity, and type of nodes, and where they can be allocated.' KibanaConfiguration: type: object properties: version: type: string description: 'The version of the Kibana cluster (must be one of the ECE supported versions, and won''t work unless it matches the Elasticsearch version. Leave blank to auto-detect version.)' docker_image: type: string description: A docker URI that allows overriding of the default docker image specified for this version system_settings: $ref: '#/components/schemas/KibanaSystemSettings' user_settings_json: type: object description: 'An arbitrary JSON object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_yaml'' is allowed), provided the parameters are on the allowlist and not on the denylist. (This field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Kibana settings)' user_settings_yaml: type: string description: 'An arbitrary YAML object allowing (non-admin) cluster owners to set their parameters (only one of this and ''user_settings_json'' is allowed), provided the parameters are on the allowlist and not on the denylist. (These field together with ''user_settings_override*'' and ''system_settings'' defines the total set of Kibana settings)' user_settings_override_json: type: object description: 'An arbitrary JSON object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_yaml'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Kibana settings)' user_settings_override_yaml: type: string description: 'An arbitrary YAML object allowing ECE admins owners to set clusters'' parameters (only one of this and ''user_settings_override_json'' is allowed), ie in addition to the documented ''system_settings''. (This field together with ''system_settings'' and ''user_settings*'' defines the total set of Kibana settings)' description: 'The Kibana instance settings. When specified at the top level, provides a field-by-field default. When specified at the topology level, provides the override settings.' KibanaDeeplink: required: - semver - uri type: object properties: semver: type: string description: Semver condition when to apply the URI. uri: type: string description: URI to which the user should be directed. description: Embedded object that contains information for linking into a specific Kibana page configured via the template. KibanaPayload: required: - elasticsearch_cluster_ref_id - plan - ref_id - region type: object properties: ref_id: type: string description: A locally-unique user-specified id for Kibana elasticsearch_cluster_ref_id: type: string description: Alias to the Elasticsearch Cluster to attach Kibana to display_name: type: string description: 'The human readable name for the Kibana cluster (default: takes the name of its Elasticsearch cluster)' region: type: string description: The region where this resource exists plan: $ref: '#/components/schemas/KibanaClusterPlan' settings: $ref: '#/components/schemas/KibanaClusterSettings' description: A Kibana creation request paired with the alias of the Elasticsearch cluster it should be paired with KibanaPlanControlConfiguration: type: object properties: timeout: type: integer description: The total timeout in seconds after which the plan is cancelled even if it is not complete. Defaults to 4x the max memory capacity per node (in MB) format: int64 calm_wait_time: type: integer description: This timeout determines how long to give a cluster after it responds to API calls before performing actual operations on it. It defaults to 5s format: int64 move_instances: type: array items: $ref: '#/components/schemas/InstanceMoveRequest' move_allocators: type: array items: $ref: '#/components/schemas/AllocatorMoveRequest' reallocate_instances: type: boolean description: 'If true (default: false) does not allow re-using any existing instances currently in the cluster, ie even unchanged instances will be re-created' preferred_allocators: type: array items: type: string description: List of allocators on which instances are placed if possible (if not possible/not specified then any available allocator with space is used) preferred_allocator_tags: type: object additionalProperties: type: string description: 'Map containing allocators tags in form of key value pairs, increasing the likelihood during move requests for allocators with matching tags, to be selected as target allocators' extended_maintenance: type: boolean description: 'If true (default false), does not clear the maintenance flag (which prevents its API from being accessed except by the constructor) on new instances added until after a snapshot has been restored, otherwise, the maintenance flag is cleared once the new instances successfully join the new cluster' cluster_reboot: enum: - forced type: string description: Set to 'forced' to force a reboot as part of the upgrade plan override_failsafe: type: boolean description: 'If false (the default), the plan fails if it determines that the request can result in unsafe operations. Setting this flag overrides some of these check restraints.' description: The configuration settings for the timeout and fallback parameters. KibanaResourceInfo: required: - elasticsearch_cluster_ref_id - id - info - ref_id - region type: object properties: ref_id: type: string description: The locally-unique user-specified id of a Resource elasticsearch_cluster_ref_id: type: string description: The Elasticsearch cluster that this resource depends on. id: type: string description: The randomly-generated id of a Resource region: type: string description: The region where this resource exists info: $ref: '#/components/schemas/KibanaClusterInfo' description: Describes an Kibana resource belonging to a Deployment KibanaSubClusterInfo: required: - enabled - kibana_id type: object properties: kibana_id: type: string description: The Kibana cluster Id enabled: type: boolean description: Whether the associated Kibana cluster is currently available links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation description: Information about the Kibana instances associated with the Elasticsearch cluster. KibanaSystemSettings: type: object properties: elasticsearch_username: type: string description: 'Optionally override the account within Elasticsearch - defaults to a system account that always exists (if specified, the password must also be specified). Note that this field is never returned from the API, it is write only.' elasticsearch_password: type: string description: 'Optionally override the account within Elasticsearch - defaults to a system account that always exists (if specified, the username must also be specified). Note that this field is never returned from the API, it is write only.' description: 'A subset of Kibana settings. TIP: To define the complete set of Elasticsearch settings, use `KibanaSystemSettings` with `user_settings_override_` and `user_settings_`.' LdapGroupSearch: type: object properties: base_dn: type: string description: Specifies a container DN to search for groups in which the user has membership scope: enum: - sub_tree - one_level - base type: string description: 'Specifies whether the group search should be sub_tree, one_level or base. one_level only searches objects directly contained within the base_dn. The default sub_tree searches all objects contained under base_dn. base specifies that the base_dn is a group object, and that it is the only group considered.' filter: type: string description: 'Specifies a filter to search for a group. When unspecified, the security realm searches for group, groupOfNames, groupOfUniqueNames, or posixGroup with the attributes member, memberOf, or memberUid. Any instance of {0} in the filter is replaced by the user attribute defined in user_attribute.' user_attribute: type: string description: 'Specifies the user attribute that is fetched and provided as a parameter to the filter. When unspecified, the user DN is passed to the filter.' description: The group search configuration for the Elasticsearch security LDAP realm. LdapSecurityRealmLoadBalance: type: object properties: type: enum: - failover - dns_failover - round_robin - dns_round_robin type: string description: The behavior to use when there are multiple LDAP URLs defined cache_ttl: type: string description: 'When using dns_failover or dns_round_robin as the load balancing type, this setting controls the amount of time to cache DNS lookups. Defaults to 1h.' description: The load balancing configuration for the Elasticsearch security LDAP realm. LdapSecurityRealmRoleMappingRule: required: - roles - type - value type: object properties: type: enum: - user_dn - group_dn type: string description: The type of role mapping rule roles: type: array items: type: string description: The roles that are applied when the mapping rule is successfully evaluated value: type: string description: The value to match when evaluating this rule description: The role mapping rule for the Elasticsearch security LDAP realm. LdapSecurityRealmRoleMappingRules: required: - default_roles - rules type: object properties: default_roles: type: array items: type: string description: The default roles applied to all users rules: type: array items: $ref: '#/components/schemas/LdapSecurityRealmRoleMappingRule' description: The role mapping rules to evaluate description: The role mapping ruleset for the Elasticsearch security LDAP realm. LdapSettings: required: - bind_anonymously - bind_type - id - name - urls type: object properties: id: type: string description: The identifier for the security realm name: type: string description: The friendly name of the security realm urls: type: array items: type: string description: 'The LDAP URLs used to authenticate against, in the format ldap[s]://server:port. Note that ldap and ldaps protocols cannot be mixed together.' bind_anonymously: type: boolean description: 'When true, bindDb credentials are ignored' bind_type: enum: - user_search - user_templates type: string description: The type of user binding to apply group_search: $ref: '#/components/schemas/LdapGroupSearch' user_search: $ref: '#/components/schemas/LdapUserSearch' user_dn_templates: type: array items: type: string description: 'The distinguished name template that replaces the user name with the string {0}. Only used when bind_type is set to ''user_templates''.' bind_dn: type: string description: The distinguished name of the user that is used to bind to the LDAP and perform searches. Only used when bind_type is set to 'user_search'. bind_password: type: string description: The user password that is used to bind to the LDAP server. Only used when bind_type is set to 'user_search'. user_group_attribute: type: string description: 'Specifies the attribute to examine on the user for group membership. If any ''group_search'' settings are specified, this setting is ignored. Defaults to ''memberOf''.' load_balance: $ref: '#/components/schemas/LdapSecurityRealmLoadBalance' certificate_url: type: string description: 'The SSL trusted CA certificate bundle URL. The bundle should be a zip file containing a single keystore file ''keystore.ks'' in the directory ''/ldap/:id/truststore'', where :id is the value of the [id] field.' certificate_url_truststore_password: type: string description: The password to the certificate bundle URL truststore certificate_url_truststore_type: enum: - jks - PKCS12 type: string description: The format of the truststore file. Should be jks to use the Java Keystore format or PKCS12 to use PKCS#12 files. The default is jks. role_mappings: $ref: '#/components/schemas/LdapSecurityRealmRoleMappingRules' enabled: type: boolean description: 'When true, enables the security realm' order: type: integer description: The order that the security realm is evaluated format: int32 override_yaml: type: string description: 'Advanced configuration options in YAML format. Any settings defined here will override any configuration set via the API. Note that all keys should omit the ''xpack.security.authc.realms.ldap.{realm_id}'' prefix. For example, when the realm ID is set to ''ldap1'', the advanced configuration ''xpack.security.authc.realms.ldap.ldap1.ssl.verification_mode: full'' should be added as ''ssl.verification_mode: full''.' description: The configuration for the Elasticsearch security LDAP realm. LdapUserSearch: type: object properties: base_dn: type: string description: Specifies a container DN to search for users scope: enum: - sub_tree - one_level - base type: string description: 'The scope of the user search. Valid values are sub_tree, one_level, or base. one_level only searches objects directly contained in the base_dn. sub_tree searches all objects contained in base_dn. base specifies that the base_dn is the user object, and that it is the only user considered. Defaults to sub_tree.' filter: type: string description: 'Specifies the filter to search the directory and match an entry with the username provided by the user. Defaults to (uid={0}). {0} is substituted with the username provided when searching.' description: The user search configuration for the Elasticsearch security LDAP realm. LicenseInfo: required: - expiry_date_in_millis - issue_date_in_millis - issued_to - issuer - signature - start_date_in_millis - type - uid type: object properties: version: type: integer description: Version of the license format: int32 uid: type: string description: Unique identifier of the license issuer: type: string description: Issuer of the license issued_to: type: string description: Entity the license was issued to issue_date_in_millis: type: integer description: 'When the license was issued, in milliseconds since the Unix epoch' format: int64 type: type: string description: Type of the license subscription_type: type: string description: Type of the license subscription signature: type: string description: Digital signature start_date_in_millis: type: integer description: 'Initial validity of the license, in milliseconds since the Unix epoch' format: int64 expiry_date_in_millis: type: integer description: 'When the license expires, in milliseconds since the Unix epoch' format: int64 max_allocators: type: integer description: Maximum number of allocators. Empty for version >= 3 format: int32 max_ram_per_allocator_mb: type: integer description: Maximum RAM per allocator in MB. Empty for version >= 3 format: int32 max_instances: type: integer description: Maximum number of instances. Only present for version 3 format: int32 max_resource_units: type: integer description: 'Maximum number of resource units, where each unit is 64GB. Only present for version > 3' format: int32 operation_mode: type: string description: Operation mode cluster_licenses: type: array items: $ref: '#/components/schemas/ClusterLicenseInfo' description: List of cluster licenses description: Information about a license. LicenseObject: required: - license type: object properties: license: $ref: '#/components/schemas/LicenseInfo' usage_stats: $ref: '#/components/schemas/UsageStats' description: The container for a license. ListEnrollmentTokenElement: required: - roles - token_id type: object properties: token_id: type: string description: An identifier for the token roles: type: array items: type: string description: The services for which this enrollment token applies description: Information about an active enrollment token. ListEnrollmentTokenReply: required: - tokens type: object properties: tokens: type: array items: $ref: '#/components/schemas/ListEnrollmentTokenElement' description: The list of currently active enrollment tokens description: Information about active enrollment tokens. LoggingSettings: required: - logging_levels type: object properties: logging_levels: type: object additionalProperties: type: string description: 'Overridden logging levels. Keys are logging levels. Allowable values are OFF, ERROR, WARN, INFO, DEBUG, TRACE, ALL' description: Information about logging settings. LoginRequest: required: - password - username type: object properties: username: type: string description: The username part of the login request password: type: string description: The plain text password part of the login request login_state: $ref: '#/components/schemas/LoginState' description: The body of a login request. LoginState: type: object properties: path: type: string description: 'The path to which to redirect post login - if not specified then no redirect is performed, instead 200 is returned with the token in the body' description: Configure how the API responds after a successful login. ManagedMonitoringSettings: required: - target_cluster_id type: object properties: target_cluster_id: type: string description: The Id of the target cluster to which to send monitoring information description: The settings for sending monitoring information to another cluster. MatchAllQuery: type: object description: A query that matches all documents. MatchNoneQuery: type: object description: A query that doesn't match any documents. MatchQuery: required: - query type: object properties: query: type: string description: The text/numeric/date to query for. operator: type: string description: The operator flag can be set to or or and to control the boolean clauses (defaults to or). minimum_should_match: type: integer description: The minimum number of optional should clauses to match. format: int32 analyzer: type: string description: The analyzer that will be used to perform the analysis process on the text. Defaults to the analyzer that was used to index the field. description: 'Consumes and analyzes text, numbers, and dates, then constructs a query.' Metadata: required: - created_time - modified_time - version type: object properties: created_time: type: string description: Creation time format: date-time modified_time: type: string description: Modification time format: date-time version: type: string description: Version description: Metadata of an entity MetadataItem: required: - key - value type: object properties: key: type: string description: The metadata field name value: type: string description: The metadata value description: The key-value pair. MetadataItemValue: required: - value type: object properties: value: type: string description: The metadata value description: 'The value of the metadata item, which is primarily used to add a single item when the key is provided in the URL.' MetadataItems: required: - items type: object properties: items: type: array items: $ref: '#/components/schemas/MetadataItem' description: A collection of arbitrary metadata items associated with a resource. description: The container object for metadata items. ModelVersionIndexSynchronizationResults: required: - results type: object properties: results: type: object additionalProperties: $ref: '#/components/schemas/IndexSynchronizationResults' description: The results of synchronizing indices organized by model version description: Results from synchronizing indices by model version MoveApmClusterConfiguration: required: - cluster_ids type: object properties: cluster_ids: type: array items: type: string description: Identifiers for the Apm clusters. plan_override: $ref: '#/components/schemas/TransientApmPlanConfiguration' description: The configuration object for moving APM Servers. MoveApmClusterDetails: required: - cluster_id type: object properties: cluster_id: type: string description: Identifier for the Apm cluster. calculated_plan: $ref: '#/components/schemas/TransientApmPlanConfiguration' errors: type: array items: $ref: '#/components/schemas/BasicFailedReplyElement' description: A list of errors that occurred if the attempt to move the cluster failed. description: Information about the APM Server that you want to move. MoveAppSearchConfiguration: required: - cluster_ids type: object properties: cluster_ids: type: array items: type: string description: Identifiers for the App Searches. plan_override: $ref: '#/components/schemas/TransientAppSearchPlanConfiguration' description: The configuration object for moving App Searches. MoveAppSearchDetails: required: - cluster_id type: object properties: cluster_id: type: string description: Identifier for the App Search. calculated_plan: $ref: '#/components/schemas/TransientAppSearchPlanConfiguration' errors: type: array items: $ref: '#/components/schemas/BasicFailedReplyElement' description: A list of errors that occurred if the attempt to move the cluster failed. description: Information about the App Search that you want to move. MoveClustersCommandResponse: required: - failures - moves type: object properties: failures: $ref: '#/components/schemas/MoveClustersDetails' moves: $ref: '#/components/schemas/MoveClustersDetails' description: 'Information about the move operations for the Elasticsearch clusters, multiple Kibana instances, and multiple APM Servers, prior to the move.' MoveClustersDetails: required: - apm_clusters - appsearch_clusters - elasticsearch_clusters - enterprise_search_clusters - kibana_clusters type: object properties: elasticsearch_clusters: type: array items: $ref: '#/components/schemas/MoveElasticsearchClusterDetails' description: Detailed information about the Elasticsearch clusters being moved. kibana_clusters: type: array items: $ref: '#/components/schemas/MoveKibanaClusterDetails' description: Detailed information about the Kibana clusters being moved. apm_clusters: type: array items: $ref: '#/components/schemas/MoveApmClusterDetails' description: Detailed information about the Apm clusters being moved. appsearch_clusters: type: array items: $ref: '#/components/schemas/MoveAppSearchDetails' description: Detailed information about the App Search clusters being moved. enterprise_search_clusters: type: array items: $ref: '#/components/schemas/MoveEnterpriseSearchDetails' description: Detailed information about the Elastic Enterprise Search clusters being moved. description: 'Information about the Elasticsearch clusters, multiple Kibana instances, and multiple APM Servers that are moved off of the allocator.' MoveClustersRequest: type: object properties: elasticsearch_clusters: type: array items: $ref: '#/components/schemas/MoveElasticsearchClusterConfiguration' description: Optional list of Elasticsearch clusters to move off the allocator. kibana_clusters: type: array items: $ref: '#/components/schemas/MoveKibanaClusterConfiguration' description: Optional list of Kibana clusters to move off the allocator. apm_clusters: type: array items: $ref: '#/components/schemas/MoveApmClusterConfiguration' description: Optional list of Apm clusters to move off the allocator. appsearch_clusters: type: array items: $ref: '#/components/schemas/MoveAppSearchConfiguration' description: Optional list of App Search clusters to move off the allocator. enterprise_search_clusters: type: array items: $ref: '#/components/schemas/MoveEnterpriseSearchConfiguration' description: Optional list of Elastic Enterprise Search clusters to move off the allocator. description: The request for moving Elasticsearch clusters off an allocator. MoveElasticsearchClusterConfiguration: required: - cluster_ids type: object properties: cluster_ids: type: array items: type: string description: Identifiers for the Elasticsearch clusters. plan_override: $ref: '#/components/schemas/TransientElasticsearchPlanConfiguration' description: The configuration object for moving Elasticsearch clusters. MoveElasticsearchClusterDetails: required: - cluster_id type: object properties: cluster_id: type: string description: Identifier for the Elasticsearch cluster. calculated_plan: $ref: '#/components/schemas/TransientElasticsearchPlanConfiguration' errors: type: array items: $ref: '#/components/schemas/BasicFailedReplyElement' description: A list of errors that occurred if the attempt to move the cluster failed. description: Information about the Elasticsearch cluster that you want to move. MoveEnterpriseSearchConfiguration: required: - cluster_ids type: object properties: cluster_ids: type: array items: type: string description: Identifiers for the Elastic Enterprise Search clusters. plan_override: $ref: '#/components/schemas/TransientEnterpriseSearchPlanConfiguration' description: The configuration object for moving Elastic Enterprise Search instances. MoveEnterpriseSearchDetails: required: - cluster_id type: object properties: cluster_id: type: string description: Identifier for the Elastic Enterprise Search. calculated_plan: $ref: '#/components/schemas/TransientEnterpriseSearchPlanConfiguration' errors: type: array items: $ref: '#/components/schemas/BasicFailedReplyElement' description: A list of errors that occurred if the attempt to move the cluster failed. description: Information about the Elastic Enterprise Search that you want to move. MoveKibanaClusterConfiguration: required: - cluster_ids type: object properties: cluster_ids: type: array items: type: string description: Identifiers for the Kibana clusters. plan_override: $ref: '#/components/schemas/TransientKibanaPlanConfiguration' description: The configuration object for moving Kibana instances. MoveKibanaClusterDetails: required: - cluster_id type: object properties: cluster_id: type: string description: Identifier for the Kibana cluster. calculated_plan: $ref: '#/components/schemas/TransientKibanaPlanConfiguration' errors: type: array items: $ref: '#/components/schemas/BasicFailedReplyElement' description: A list of errors that occurred if the attempt to move the cluster failed. description: Information about the Kibana instance that you want to move. NestedQuery: required: - path - query type: object properties: query: $ref: '#/components/schemas/QueryContainer' path: type: string description: The path to the nested object. score_mode: enum: - avg - sum - min - max - none type: string description: Allows to specify how inner children matching affects score of the parent. Refer to the Elasticsearch documentation for details. description: A query that matches nested objects. NodeTypeResource: required: - description - name - node_type type: object properties: node_type: type: string description: 'Node type, part of the key for this resource' name: type: string description: Node type name description: type: string description: Node type description default_instance_configuration_id: type: string description: Id of the default instance configuration to use for this node type. mandatory: type: boolean description: Flag to specify a node type is mandatory in the corresponding cluster's plan description: Information about the node type. ObservabilityAbsoluteDeployment: required: - deployment_id type: object properties: deployment_id: type: string description: The deployment to send logs and/or metrics to. Contains either the deployment's ID or 'self'. ref_id: type: string description: 'RefId of the Elasticsearch cluster to send logs and/or metrics to. If not specified, refId is resolved automatically as long as the destination deployment contains a single Elasticsearch resource.' description: The destination to send logs and metrics to ObservabilityIssue: required: - description - severity type: object properties: description: type: string description: A user-friendly description of the observability health issue severity: type: string description: Severity of the health issue description: Observability health issue Organization: required: - id - name type: object properties: id: type: string description: The organization's identifier name: type: string description: The organization's friendly name default_disk_usage_alerts_enabled: type: boolean description: Whether the default disk alerts are enabled notifications_allowed_email_domains: type: array items: type: string description: The list of allowed domains for notification-email recipients billing_contacts: type: array items: type: string description: 'The list of contacts for billing notifications, if specified' operational_contacts: type: array items: type: string description: 'The list of contacts for operational notifications, if specified' sso_login_identifier: type: string description: The login identifier for initiating SSO description: An organization OrganizationIdp: required: - acs - configuration - encryption_certificate - login_identifier - metadata_url - signing_certificate - sp_entity_id - sso_login_url type: object properties: login_identifier: type: string description: The login identifier that is unique to this organization sso_login_url: type: string description: The Elastic Cloud login URL for this IdP metadata_url: type: string description: The SAML2 metadata url for downloading the SAML2 SP metadata XML acs: type: string description: The SAML2 assertion consumer service of the SP sp_entity_id: type: string description: The SP entity ID and the audience for SAML2 response assertions signing_certificate: type: array items: type: string description: The certificate that will sign SAML2 requests to the IdP encryption_certificate: type: array items: type: string description: The certificate that the IdP can use to encrypt SAML assertions. Encryption is optional configuration: $ref: '#/components/schemas/OrganizationIdpConfiguration' description: The organization's IdP info OrganizationIdpConfiguration: required: - enabled - login_identifier_prefix - saml_idp type: object properties: enabled: type: boolean description: Whether or not the IdP is enabled login_identifier_prefix: type: string description: The prefix of the login identifier that will be generated saml_idp: $ref: '#/components/schemas/SamlIdp' description: The organization's IdP configuration OrganizationInvitation: required: - created_at - email - expired - expires_at - organization - token type: object properties: token: type: string description: The token used to accept the invitation email: type: string description: The email address to invite to the organization created_at: type: string description: The date and time when the invitation was created format: date-time expires_at: type: string description: The date and time when the invitation expires format: date-time expired: type: boolean description: True if the invitation is expired accepted_at: type: string description: The date and time when the invitation was accepted format: date-time organization: $ref: '#/components/schemas/Organization' role_assignments: $ref: '#/components/schemas/RoleAssignments' description: An invitation to an organization OrganizationInvitationRequest: required: - emails type: object properties: emails: type: array items: type: string description: The email addresses to invite to the organization expires_in: type: string description: The date and time when the invitation expires. Defaults to three days from now. role_assignments: $ref: '#/components/schemas/RoleAssignments' description: A request to create one or more invitations to an organization OrganizationInvitations: required: - invitations type: object properties: invitations: type: array items: $ref: '#/components/schemas/OrganizationInvitation' description: The list of organization invitations description: A collection of invitations to an organization OrganizationList: required: - organizations type: object properties: organizations: type: array items: $ref: '#/components/schemas/Organization' description: The list of organizations next_page: type: string description: A cursor to get the next page of results description: A collection of Organizations OrganizationMembership: required: - member_since - organization_id - user_id type: object properties: organization_id: type: string description: The organization's identifier user_id: type: string description: The users's identifier name: type: string description: The user's full name email: type: string description: The user's email address member_since: type: string description: The date and time the user was added to the organization format: date-time role_assignments: $ref: '#/components/schemas/RoleAssignments' description: A user's membership to an organization OrganizationMemberships: required: - members type: object properties: members: type: array items: $ref: '#/components/schemas/OrganizationMembership' description: The list of organization memberships description: All user memberships to an organization OrganizationRequest: type: object properties: name: type: string description: The organization's friendly name default_disk_usage_alerts_enabled: type: boolean description: Whether the default disk alerts are enabled notifications_allowed_email_domains: type: array items: type: string description: The list of allowed domains for notification-email recipients billing_contacts: type: array items: type: string description: The list of contacts for billing notifications operational_contacts: type: array items: type: string description: The list of contacts for operational notifications description: A request to create or update an organization OrganizationRoleAssignment: required: - organization_id - role_id type: object properties: role_id: type: string description: The ID of the role that is assigned. organization_id: type: string description: The ID of the organization the role is scoped to. application_roles: type: array items: type: string description: 'If provided, the user assigned this role assignment will be granted this application role when signing in to a deployment or project' description: Assignment for a role with organization scope. Orphaned: required: - apm - appsearch - elasticsearch - enterprise_search - integrations_server - kibana type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/OrphanedElasticsearch' description: List of orphaned Elasticsearch resources kibana: type: array items: type: string description: List of orphaned Kibana resource ids apm: type: array items: type: string description: List of orphaned APM resource ids appsearch: type: array items: type: string description: List of orphaned AppSearch resource ids enterprise_search: type: array items: type: string description: List of orphaned Enterprise Search resource ids integrations_server: type: array items: type: string description: List of orphaned Integrations Server resource ids description: Details about orphaned resources. OrphanedElasticsearch: required: - dependents - id type: object properties: id: type: string description: The id of the orphaned resource dependents: type: array items: $ref: '#/components/schemas/ElasticsearchDependant' description: List of orphaned dependent resources description: Details about an orphaned Elasticsearch resources. PendingState: required: - value type: object properties: value: type: boolean description: Whether a runner is pending blessings or not description: Pending state PendingStates: required: - runner_ids_to_pending_state type: object properties: runner_ids_to_pending_state: type: object additionalProperties: $ref: '#/components/schemas/PendingState' description: A mapping of Runner Ids to whether or not they are waiting to be blessed to run the associated role description: Describes whether certain runners are waiting to be blessed. PendingStatesWithMeta: required: - meta - value type: object properties: value: $ref: '#/components/schemas/PendingStates' meta: $ref: '#/components/schemas/Metadata' description: Persisted pending states for a role along with metadata Period: required: - end - start type: object properties: start: type: string description: Start format: date-time end: type: string description: End format: date-time description: Period PlanStrategy: type: object properties: rolling: $ref: '#/components/schemas/RollingStrategyConfig' grow_and_shrink: $ref: '#/components/schemas/GrowShrinkStrategyConfig' rolling_grow_and_shrink: $ref: '#/components/schemas/RollingGrowShrinkStrategyConfig' autodetect: $ref: '#/components/schemas/AutodetectStrategyConfig' description: The options for performing a plan change. Specify only one property each time. The default is `grow_and_shrink`. PlatformInfo: required: - eula_accepted - phone_home_enabled - regions - services - unreachable_regions - version type: object properties: version: type: string description: Platform version services: type: array items: $ref: '#/components/schemas/PlatformServiceInfo' phone_home_enabled: type: boolean description: 'Is the phone-home service, which returns anonymized usage statistics to Elastic, enabled' eula_accepted: type: boolean description: Indicates if the End User License Agreement been accepted regions: type: array items: $ref: '#/components/schemas/RegionInfo' description: Information on regions unreachable_regions: type: array items: $ref: '#/components/schemas/UnreachableRegionInfo' description: Information on currently unreachable regions description: Information about the platform. PlatformResourcesSummary: required: - account_count - available_count - healthy - minimum_available_count - missing_count - used_count type: object properties: healthy: type: boolean description: Whether all resources are healthy available_count: type: integer description: Number of available resources format: int32 used_count: type: integer description: Number of used resources format: int32 missing_count: type: integer description: Number of missing resources format: int32 minimum_available_count: type: integer description: Minimum number of available resources format: int32 account_count: type: integer description: Number of accounts format: int32 description: Information about resources. PlatformRoleAssignment: required: - role_id type: object properties: role_id: type: string description: The ID of the role that is assigned. description: Assignment for a role with platform scope. PlatformServiceImageInfo: required: - hash - id - tag - version type: object properties: id: type: string description: Id of runner that hosts the container example: docker.elastic.co/elastic-cloud-enterprise:1.0.0-GA tag: type: string description: Image tag example: docker.elastic.co/elastic-cloud-enterprise:1.0.0-GA version: type: string description: Version of service example: 1.0.0-GA hash: type: string description: Image hash code example: sha256:04a5be1ab07de64269ffa52da26044e0ecc36fa1164e7914468e69d65a2090d4 description: The docker image that is used to run a service. PlatformServiceInfo: required: - image - type type: object properties: type: type: string description: Name of service image: type: array items: $ref: '#/components/schemas/PlatformServiceImageInfo' description: The platform service information. PortBinding: required: - host_port type: object properties: host_port: type: string description: Port as observed by the host. host_ip: type: string description: 'IP to bind to on the host. I.e {@code 0.0.0.0}' example: 0.0.0.0 description: Value used to bind to a port on the host. PrefixQuery: required: - value type: object properties: value: type: string description: The prefix to search for. boost: type: number description: An optional boost value to apply to the query. format: float description: 'The query that matches documents with fields that contain terms with a specified, not analyzed, prefix.' ProjectRoleAssignment: required: - organization_id - role_id type: object properties: role_id: type: string description: The ID of the role that is assigned. organization_id: type: string description: The ID of the organization the role is scoped to. all: type: boolean description: 'When true, the role applies to all projects in the organization, otherwise the role is scoped to the projects specified in `project_ids`.' project_ids: type: array items: type: string description: 'The IDs of the projects the role is scoped to. Must be absent if `all` is true, and present if `all` is false.' application_roles: type: array items: type: string description: 'If provided, the user assigned this role assignment will be granted this application role when signing in to the project(s) specified in the role assignment.' description: Assignment for a role with project scope. ProjectRoleAssignments: type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/ProjectRoleAssignment' description: The Elasticsearch project-scoped role assignments to set observability: type: array items: $ref: '#/components/schemas/ProjectRoleAssignment' description: The Observability project-scoped role assignments to set security: type: array items: $ref: '#/components/schemas/ProjectRoleAssignment' description: The Security project-scoped role assignments to set workplaceai: type: array items: $ref: '#/components/schemas/ProjectRoleAssignment' description: The WorkplaceAI project-scoped role assignments to set vectordb: type: array items: $ref: '#/components/schemas/ProjectRoleAssignment' description: The VectorDB project-scoped role assignments to set description: Assignments for roles with project scope. ProxiesAllocationsInfo: required: - allocations_type - max_allocations - proxies_at_max_allocations type: object properties: allocations_type: type: string description: 'The type of proxy allocations (e.g. Elasticsearch, Kibana, APM)' max_allocations: type: integer description: The maximum number of allocations format: int32 proxies_at_max_allocations: type: integer description: The number of proxies that have the maximum number of allocations format: int32 description: 'The allocation status for a specified type, such as Elasticsearch, Kibana, or APM. The status is part of the overall proxy health information.' ProxiesFilter: required: - key - value type: object properties: key: type: string description: Key of the proxy metadata item to be matched value: type: string description: Value of the proxy metadata item to be matched description: Selects proxies by matching a proxy metadata item. ProxiesFilteredGroup: required: - expected_proxies_count - filters type: object properties: id: type: string description: Identifier of the filtered group of proxies filters: type: array items: $ref: '#/components/schemas/ProxiesFilter' description: Filters to be matched expected_proxies_count: type: integer description: Expected minimum number of proxies matching all filters in this group format: int32 description: A set of proxy filters with an expected number of matching proxies. ProxiesFilteredGroupHealth: required: - group - observed_proxies_count - status type: object properties: group: $ref: '#/components/schemas/ProxiesFilteredGroup' observed_proxies_count: type: integer description: The number of proxies that match all of the filters in the group format: int32 status: type: string description: '"Health status for this filtered group. One of "Green", "Yellow" or "Red"' description: The health status of a filtered proxy group. ProxiesHealth: required: - allocations - expected_proxies_count - filtered_groups - observed_proxies_count - status type: object properties: observed_proxies_count: type: integer description: Total number of proxies format: int32 expected_proxies_count: type: integer description: Expected minimum number of proxies format: int32 allocations: type: array items: $ref: '#/components/schemas/ProxiesAllocationsInfo' description: Allocations for proxies filtered_groups: type: array items: $ref: '#/components/schemas/ProxiesFilteredGroupHealth' description: Filtered groups of proxies with associated status status: type: string description: '"Health status for all proxies. One of "Green", "Yellow" or "Red"' ProxiesHttpSettings: required: - cookie_secret - dashboards_base_url - disconnected_cutoff - minimum_proxy_services - sso_settings - user_cookie_key type: object properties: disconnected_cutoff: type: integer description: Cutoff interval after disconnection in milliseconds format: int64 minimum_proxy_services: type: integer description: Minimum number of proxy instances format: int32 sso_settings: $ref: '#/components/schemas/ProxiesSSOSettings' dashboards_base_url: type: string description: Base URL for the dashboard cookie_secret: type: string description: Secret string for the HTTP cookie user_cookie_key: type: string description: User key for the HTTP cookie description: "> WARNING\n> This object is deprecated and scheduled to be removed in the next major version." ProxiesSSOSettings: required: - cookie_name - default_redirect_path - dont_log_requests - maintenance_bypass_cookie_name - max_age - sso_secret type: object properties: max_age: type: integer description: Maximum age of single-sign-on token in milliseconds format: int64 sso_secret: type: string description: Secret string for single-sign-on cookie_name: type: string description: Name of the HTTP cookie used for single-sign-on dont_log_requests: type: boolean description: 'If true, don''t log requests' default_redirect_path: type: string description: Default path where users are redirected after a successful single-sign-on maintenance_bypass_cookie_name: type: string description: Name of the cookie that bypasses maintenance description: "> WARNING\n> This object is deprecated and scheduled to be removed in the next major version." ProxiesSettings: required: - expected_proxies_count - http_settings - signature_secret - signature_valid_for_millis type: object properties: expected_proxies_count: type: integer description: Expected number of proxies format: int32 signature_secret: type: string description: Secret string for signature generation signature_valid_for_millis: type: integer description: Signature validity in milliseconds format: int64 http_settings: $ref: '#/components/schemas/ProxiesHttpSettings' description: "> WARNING\n> This object is deprecated and scheduled to be removed in the next major version." ProxiesSummary: required: - expected_proxies_count - healthy - proxies - proxies_count type: object properties: healthy: type: boolean description: Whether all proxies are healthy expected_proxies_count: type: integer description: Expected number of proxies format: int32 proxies_count: type: integer description: Total number of proxies format: int32 proxies: type: array items: $ref: '#/components/schemas/ProxySummary' description: Summarized information about each proxy description: Summarized information about proxies. ProxyAllocationCounts: required: - allocations - connectors type: object properties: allocations: type: integer description: The allocations count. format: int32 connectors: type: integer description: The connector count. format: int32 description: The number of proxy allocations. ProxyAllocationInfo: required: - allocations_type - counts type: object properties: allocations_type: enum: - elasticsearch - kibana - apm - integrations_server - appsearch - enterprise_search type: string description: The type of proxy allocations counts: $ref: '#/components/schemas/ProxyAllocationCounts' description: 'The single proxy allocation for a specified type, such as Elasticsearch, Kibana, or APM.' ProxyInfo: required: - allocations - healthy - host_ip - metadata - proxy_id - public_hostname type: object properties: proxy_id: type: string description: The proxy identifier runner_id: type: string description: Identifier of the runner for the proxy host_ip: type: string description: IP of the host the proxy runs on public_hostname: type: string description: Public hostname of the host the proxy runs on metadata: type: object description: Arbitrary metadata associated with the proxy healthy: type: boolean description: Specifies if the proxy is healthy zone: type: string description: The zone. allocations: type: array items: $ref: '#/components/schemas/ProxyAllocationInfo' description: Allocation information by type. description: Information about a proxy. ProxyOverview: required: - proxies - proxies_count - settings type: object properties: proxies_count: type: integer description: Number of proxies format: int32 settings: $ref: '#/components/schemas/ProxiesSettings' proxies: type: array items: $ref: '#/components/schemas/ProxyInfo' description: Proxies description: Information about all of the proxies. ProxySummary: required: - healthy - proxy_id type: object properties: proxy_id: type: string description: The proxy identifier healthy: type: boolean description: Whether this proxy is healthy description: Summarized information about a proxy. PublicCertChain: required: - chain type: object properties: chain: type: array items: type: string description: The list of PEM encoded X509 certificates that make up the certificate chain description: 'The public portion of the certificate chain that contains the PEM encoded server certificate, intermediate certificates, and the CA certificate. NOTE: The private key, normally included in certificate chains, is omitted.' PublicCertChainCollection: required: - certs type: object properties: certs: type: object additionalProperties: $ref: '#/components/schemas/PublicCertChain' description: The map of extra certificate ids to their public certificate chains description: Collections of public certificate chains for all the defined extra certificates PublicCertificate: required: - active - metadata - pem type: object properties: active: type: boolean description: 'If true, this certificate is the one which has been used to sign the current certificates. Otherwise, it may be the one that will be used when this certificate expires.' pem: type: string description: The public certificate as string in PEM format. metadata: $ref: '#/components/schemas/CertificateMetaData' description: A certificate used to sign the certificates of this deployment QueryContainer: type: object properties: match: type: object additionalProperties: $ref: '#/components/schemas/MatchQuery' match_all: $ref: '#/components/schemas/MatchAllQuery' match_none: $ref: '#/components/schemas/MatchNoneQuery' term: type: object additionalProperties: $ref: '#/components/schemas/TermQuery' bool: $ref: '#/components/schemas/BoolQuery' query_string: $ref: '#/components/schemas/QueryStringQuery' nested: $ref: '#/components/schemas/NestedQuery' prefix: type: object additionalProperties: $ref: '#/components/schemas/PrefixQuery' exists: $ref: '#/components/schemas/ExistsQuery' range: type: object additionalProperties: $ref: '#/components/schemas/RangeQuery' simple_query_string: $ref: '#/components/schemas/SimpleQueryStringQuery' description: The container for all of the allowed Elasticsearch queries. Specify only one property each time. QueryStringQuery: required: - query type: object properties: query: type: string description: The actual query to be parsed. default_field: type: string description: The default field for query terms if no prefix field is specified. analyzer: type: string description: The analyzer used to analyze each term of the query when creating composite queries. default_operator: type: string description: The default operator used if no explicit operator is specified. allow_leading_wildcard: type: boolean description: 'When set, * or ? are allowed as the first character. Defaults to false.' description: A query that uses the strict query string syntax for parsing. Will return an error for invalid syntax. RangeQuery: type: object properties: gt: type: object description: Greater-than gte: type: object description: Greater-than or equal to lt: type: object description: Less-than lte: type: object description: Less-than or equal to. boost: type: number description: An optional boost value to apply to the query. format: float format: type: string description: 'Formatted dates will be parsed using the format specified on the date field by default, but it can be overridden by passing the format parameter.' time_zone: type: string description: 'Dates can be converted from another timezone to UTC either by specifying the time zone in the date value itself (if the format accepts it), or it can be specified as the time_zone parameter.' description: The query that matches documents with fields that contain terms within a specified range. ReadOnlyRequest: required: - enabled type: object properties: enabled: type: boolean description: Enabled or disabled read-only mode description: Read-only mode request payload ReadOnlyResponse: required: - enabled type: object properties: enabled: type: boolean description: Whether read-only mode is enabled or disabled description: Read-only mode response RegionInfo: required: - allocators - constructors - container_sets_status - coordinators - proxies - region_id - resources - runners - zookeeper_states type: object properties: region_id: type: string description: Identifier of this region zookeeper_states: $ref: '#/components/schemas/ZookeeperSummary' allocators: $ref: '#/components/schemas/AllocatorsSummary' runners: $ref: '#/components/schemas/RunnersSummary' proxies: $ref: '#/components/schemas/ProxiesSummary' container_sets_status: $ref: '#/components/schemas/ContainerSetsSummary' constructors: $ref: '#/components/schemas/ConstructorOverview' coordinators: $ref: '#/components/schemas/CoordinatorsSummary' resources: $ref: '#/components/schemas/PlatformResourcesSummary' description: Information about a region. RemoteResourceInfo: required: - compatible - connected - healthy - trusted - trusted_back type: object properties: healthy: type: boolean description: Whether or not the remote cluster is healthy connected: type: boolean description: Whether or not there is at least one connection to the remote cluster. compatible: type: boolean description: Whether or not the remote cluster version is compatible with this cluster version. trusted: type: boolean description: Whether or not the remote cluster is trusted by this cluster. trusted_back: type: boolean description: Whether or not the remote cluster trusts this cluster back. description: Information about a Remote Cluster. RemoteResourceRef: required: - alias - deployment_id - elasticsearch_ref_id type: object properties: deployment_id: type: string description: The id of the deployment elasticsearch_ref_id: type: string description: The locally-unique user-specified id of an Elasticsearch Resource alias: type: string description: 'The alias for this remote cluster. Aliases must only contain letters, digits, dashes and underscores' skip_unavailable: type: boolean description: 'If true, skip this cluster during search if it is disconnected. Default: false' info: $ref: '#/components/schemas/RemoteResourceInfo' description: The Elasticsearch resource used as a Remote Cluster. RemoteResources: required: - resources type: object properties: resources: type: array items: $ref: '#/components/schemas/RemoteResourceRef' description: The remote resources description: The list of resources used as remote clusters ReplyWarning: required: - code type: object properties: code: type: string description: A structured code representing the error type that occurred message: type: string description: A human readable message describing the warning that occurred RepositoryConfig: required: - config - repository_name type: object properties: repository_name: type: string description: Elasticsearch snapshot repository name config: type: object description: Elasticsearch configuration JSON for a snapshot repository description: The snapshot repository configuration. RepositoryConfigs: required: - configs type: object properties: configs: type: array items: $ref: '#/components/schemas/RepositoryConfig' description: List of snapshot configurations description: A list of snapshot repository configurations. RequestEnrollmentTokenReply: required: - token type: object properties: token: type: string description: The requested token token_id: type: string description: An identifier for the requested token (if persistent) that can be used in listing and deletion description: Returns the enrollment token that is used to securely start a new server with designated roles. ResourceHeapDumps: required: - heap_dumps - id - ref_id type: object properties: ref_id: type: string description: The locally-unique user-specified id of the resource that the heap dump was captured from id: type: string description: The randomly-generated id of a Resource heap_dumps: type: array items: $ref: '#/components/schemas/HeapDump' description: The heap dumps belonging to this resource RestartPolicy: required: - name type: object properties: name: type: string description: Identifier for the policy. maximum_retry_count: type: integer description: Maximum number of times to re-try before giving up format: int32 description: A policy that is applied when a container unexpectedly exits RestoreSnapshotApiConfiguration: type: object properties: indices: type: array items: type: string description: The list of indices to restore (supports +ve and -ve selection and wildcarding - see the default Elasticsearch index format documentation) raw_settings: type: object description: This JSON object (merged with the 'indices' field (if present) is passed untouched into the restore command - see the Elasticsearch '_snapshot' documentation for more details on supported formats description: 'The configuration for the restore command, such as which indices you want to restore.' RestoreSnapshotConfiguration: required: - snapshot_name type: object properties: repository_name: type: string description: 'If specified, contains the name of the snapshot repository - else will default to the Elastic Cloud system repo (''found-snapshots'')' snapshot_name: type: string description: The name of the snapshot to restore. Use '\_\_latest_success\_\_' to get the most recent snapshot from the specified repository repository_config: $ref: '#/components/schemas/RestoreSnapshotRepoConfiguration' restore_payload: $ref: '#/components/schemas/RestoreSnapshotApiConfiguration' strategy: enum: - partial - full - recovery type: string description: The restore strategy to use. Defaults to a full restore. Partial restore will attempt to restore unavailable indices only source_cluster_id: type: string description: 'If specified, contains the name of the source cluster id. Do not send this if you are sending repository_config' description: Restores a snapshot from a local or remote repository. RestoreSnapshotRepoConfiguration: type: object properties: raw_settings: type: object description: The remote snapshot settings raw JSON - see the Elasticsearch '_snapshot' documentation for more details on supported formats description: Configures the location of a remote repository. The default is the system repository. Role: required: - auto_blessed - containers - id type: object properties: id: type: string description: The unique id of this role example: constructor auto_blessed: type: boolean description: Whether runners are automatically allowed to be assigned the containers of this role. containers: type: array items: $ref: '#/components/schemas/ContainersEntry' description: The containers that are part of this role description: Describes whether certain runners are blessed to run a Role. RoleAggregate: required: - id - role type: object properties: id: type: string description: The unique id of this role example: constructor role: $ref: '#/components/schemas/RoleWithMeta' blessings: $ref: '#/components/schemas/BlessingsWithMeta' pending: $ref: '#/components/schemas/PendingStatesWithMeta' description: Describes whether certain runners are blessed to run a Role. RoleAggregateCreateData: required: - role type: object properties: role: $ref: '#/components/schemas/Role' blessings: $ref: '#/components/schemas/Blessings' description: Creation data for a role RoleAggregates: required: - values type: object properties: values: type: array items: $ref: '#/components/schemas/RoleAggregate' description: The list description: A list of Role aggregates RoleAssignments: type: object properties: platform: type: array items: $ref: '#/components/schemas/PlatformRoleAssignment' description: Assignments for roles with platform scope. organization: type: array items: $ref: '#/components/schemas/OrganizationRoleAssignment' description: Assignments for roles with organization scope. deployment: type: array items: $ref: '#/components/schemas/DeploymentRoleAssignment' description: Assignments for roles with deployment scope. project: $ref: '#/components/schemas/ProjectRoleAssignments' description: 'Roles assigned to users, API keys or organization invitations. Currently unavailable in self-hosted ECE.' RoleMapping: required: - enabled - name - role_assignments - rule type: object properties: enabled: type: boolean description: Whether or not the role mapping is enabled name: type: string description: The name of the role mapping rule: $ref: '#/components/schemas/RoleMappingRule' role_assignments: $ref: '#/components/schemas/RoleAssignments' RoleMappingPropertyRule: type: object properties: group: type: string description: The group to match. Can have wildcards. Must specify either `group` or `email` but not both. email: type: string description: The email to match. Can have wildcards. Must specify either `group` or `email` but not both. RoleMappingRule: type: object properties: any: type: array items: $ref: '#/components/schemas/RoleMappingPropertyRule' description: The rules that must match. Only one rule must match for the role assignment to be applied. all: type: array items: $ref: '#/components/schemas/RoleMappingPropertyRule' description: The rules that must match. All rules must match for the role assignment to be applied. RoleWithMeta: required: - meta - value type: object properties: value: $ref: '#/components/schemas/Role' meta: $ref: '#/components/schemas/Metadata' description: Persisted role along with metadata RollingGrowShrinkStrategyConfig: type: object description: 'A strategy that creates new Elasticsearch instances, Kibana instances, and APM Servers with the new plan, then migrates the node data to minimize the amount of spare capacity.' RollingStrategyConfig: type: object properties: group_by: type: string description: 'Specifies the grouping attribute to use when rolling several instances. Instances that share the same value for the provided attribute key are rolled together as a unit. Examples that make sense to use are ''\_\_all\_\_'' (roll all instances as a single unit), ''logical_zone_name'' (roll instances by zone), ''\_\_name\_\_'' (roll one instance at a time, the default if not specified). Note that ''\_\_all\_\_'' is required when performing a major version upgrade' allow_inline_resize: type: boolean description: 'Whether we allow changing the capacity of instances (default false). This is currently implemented by stopping, re-creating then starting the affected instance on its associated allocator when performing the changes. NOTES: This requires a round-trip through the allocation infrastructure of the active constructor, as it has to reserve the target capacity without over-committing' skip_synced_flush: type: boolean description: 'Whether to skip attempting to do a synced flush on the filesystem of the container (default: false), which is less safe but may be required if the container is unhealthy' shard_init_wait_time: type: integer description: 'The time, in seconds, to wait for shards that show no progress of initializing before rolling the next group (default: 10 minutes)' format: int64 description: 'Performs inline, rolling configuration changes that mutate existing containers. TIP: This is the fastest way to update a plan, but can fail for complex plan changes, such as topology changes. Also, this is less safe for configuration changes that leave a cluster in a non running state. NOTE: When you perform a major version upgrade, and ''group_by'' is set to ''pass:macros[__all__]'';, rolling is required.' RulesetAssociations: required: - associations - total_associations type: object properties: associations: type: array items: $ref: '#/components/schemas/FilterAssociation' description: List of associations total_associations: type: integer description: Total number of associations. This includes associations the user does not have permission to view. format: int32 description: The configuration settings for the traffic filter. RunnerBuildInfo: type: object properties: commit_hash: type: string description: Git commit hash version: type: string description: Version of the runner artifact RunnerContainerInfo: required: - container_name - container_set_name type: object properties: container_name: type: string description: Name of this container container_set_name: type: string description: Name of the container set for the container description: Information about a container within a runner. RunnerHealthChecks: required: - has_containers - is_connected_to_zk - is_docker_healthy type: object properties: is_docker_healthy: type: boolean description: Check performed by the runner to figure out if docker is healthy is_connected_to_zk: type: boolean description: Whether the runner is connected to zk or not has_containers: type: boolean description: Whether the runner has containers that it manages description: The checks performed to determine if an runner is healthy or not. RunnerInfo: required: - connected - containers - healthy - host_ip - public_hostname - roles - runner_id type: object properties: runner_id: type: string description: The runner identifier runner_name: type: string description: The runner name zone: type: string description: Identifier of the zone tags: type: object additionalProperties: type: string description: 'Meta data of the runner, like image ID or processor architecture' features: type: object additionalProperties: type: boolean description: State of features of the runner build_info: $ref: '#/components/schemas/RunnerBuildInfo' host_ip: type: string description: Host IP for the runner public_hostname: type: string description: Public hostname for the runner containers: type: array items: $ref: '#/components/schemas/RunnerContainerInfo' description: Containers for the runner roles: type: array items: $ref: '#/components/schemas/RunnerRoleInfo' description: Roles for the runner connected: type: boolean description: Specifies if the runner is connected healthy: type: boolean description: Specifies if the runner is healthy health_checks: $ref: '#/components/schemas/RunnerHealthChecks' region: type: string description: The region that this runner belongs to. Only populated in SaaS or federated ECE. description: Information about a specified runner. RunnerOverview: required: - runners type: object properties: runners: type: array items: $ref: '#/components/schemas/RunnerInfo' description: List of runners description: Information about all of the runners. RunnerRoleInfo: required: - role_name type: object properties: role_name: type: string description: Name of the role description: Information about a runner role. RunnerRolesInfo: required: - roles type: object properties: roles: type: array items: $ref: '#/components/schemas/RunnerRoleInfo' description: List of roles description: A list of runner roles. RunnersSummary: required: - connected_capacity - connected_runners - containers_count - healthy - healthy_runners - max_available_capacity - total_runners type: object properties: healthy: type: boolean description: Whether all runners are healthy total_runners: type: integer description: Total number of runners format: int32 healthy_runners: type: integer description: Number of healthy runners format: int32 connected_runners: type: integer description: Number of connected runners format: int32 connected_capacity: type: integer description: Total capacity of connected runners in megabytes format: int32 max_available_capacity: type: integer description: Maximum capacity available in one runner in megabytes format: int32 containers_count: type: integer description: Total number of containers format: int32 description: Summarized information about the runners. SamlAttributeSettings: required: - groups - principal type: object properties: principal: type: string description: The name of the SAML attribute that contains the user's principal (username). This name should map to a value that does not contain commas or slashes. groups: type: string description: The name of the SAML attribute that contains the user's groups name: type: string description: The name of the SAML attribute that contains the user's full name mail: type: string description: The name of the SAML attribute that contains the user's email address dn: type: string description: The name of the SAML attribute that contains the user's X.50 Distinguished Name description: The mapping configuration for the Elasticsearch security SAML attribute. SamlIdp: required: - issuer - public_certificate - sso_url type: object properties: public_certificate: type: array items: type: string description: Base64-encoded PEM-format X.509 certificate issuer: type: string description: The IdP URI that identifies the issuer of a SAML2 response message assertion sso_url: type: string description: The IdP SAML HTTP-POST endpoint URL that will receive SAML requests during SP-initiated login description: SAML2 IdP configuration object SamlIdpSettings: required: - entity_id - metadata_path type: object properties: entity_id: type: string description: The Entity ID of the SAML Identity Provider. An Entity ID is a URI with a maximum length of 1024 characters. It can be a URL or a URN and can be found in the configuration or the SAML metadata of the Identity Provider. metadata_path: type: string description: The URL to a SAML 2.0 metadata file describing the capabilities and configuration of the Identity Provider use_single_logout: type: boolean description: Indicates whether to utilise the Identity Provider's Single Logout service description: The configuration for the Elasticsearch security SAML Identity Provider. SamlSecurityRealmRoleMappingRule: required: - roles - type - value type: object properties: type: enum: - username - groups - dn type: string description: The type of role mapping rule roles: type: array items: type: string description: The roles that are applied when the mapping rule is successfully evaluated value: type: string description: The value to match when evaluating this rule description: The mapping rule for the Elasticsearch security SAML role. SamlSecurityRealmRoleMappingRules: required: - default_roles - rules type: object properties: default_roles: type: array items: type: string description: The default roles applied to all users rules: type: array items: $ref: '#/components/schemas/SamlSecurityRealmRoleMappingRule' description: The role mapping rules to evaluate description: The mapping ruleset for the Elasticsearch security SAML role. SamlSettings: required: - attributes - id - idp - name - sp type: object properties: id: type: string description: The identifier for the security realm name: type: string description: The friendly name of the security realm idp: $ref: '#/components/schemas/SamlIdpSettings' sp: $ref: '#/components/schemas/SamlSpSettings' attributes: $ref: '#/components/schemas/SamlAttributeSettings' nameid_format: type: string description: 'The NameID format. If not specified the IdP default is used. Example: ''urn:oasis:names:tc:SAML:2.0:nameid-format:persistent''' role_mappings: $ref: '#/components/schemas/SamlSecurityRealmRoleMappingRules' enabled: type: boolean description: 'When true, enables the security realm' order: type: integer description: The order that the security realm is evaluated format: int32 force_authn: type: boolean description: 'Specifies whether to set the ForceAuthn attribute when requesting that the IdP authenticate the current user. If set to true, the IdP is required to verify the user''s identity, irrespective of any existing sessions they might have.' signing_certificate_url: type: string description: 'The SAML signing certificate bundle URL. The bundle should be a zip file containing ''signing.key'' and ''signing.pem'' files in the directory ''/saml/:id'', where :id is the value of the [id] field.' signing_certificate_url_password: type: string description: The password to the signing certificate bundle signing_saml_messages: type: array items: type: string description: 'A list of SAML message types that should be signed. Each element in the list should be the local name of a SAML XML Element. Supported element types are AuthnRequest, LogoutRequest and LogoutResponse. Only valid if a signing certificate is also specified.' encryption_certificate_url: type: string description: 'The SAML encryption certificate bundle URL. The bundle should be a zip file containing ''encryption.key'' and ''encryption.pem'' files in the directory ''/saml/:id'', where :id is the value of the [id] field.' encryption_certificate_url_password: type: string description: The password to the encryption certificate bundle ssl_certificate_url: type: string description: 'The SSL trusted CA certificate bundle URL. The bundle should be a zip file containing a single keystore file ''keystore.ks'' Note that all keys should omit the ''xpack.security.authc.realms.saml.{realm_id}'' prefix. For example, when the realm ID is set to ''saml1'', the advanced configuration ''xpack.security.authc.realms.saml.saml1.ssl.verification_mode: full'' should be added as ''ssl.verification_mode: full''.' ssl_certificate_url_truststore_password: type: string description: The password to the SSL certificate bundle URL truststore ssl_certificate_url_truststore_type: enum: - jks - PKCS12 type: string description: The format of the keystore file. Should be jks to use the Java Keystore format or PKCS12 to use PKCS#12 files. The default is jks. override_yaml: type: string description: 'Advanced configuration options in YAML format. Any settings defined here will override any configuration set via the API. Note that all keys should omit ''xpack.security.authc.realms.{realm_type}.{realm_id}''.' description: The configuration for the Elasticsearch security SAML realm. SamlSpSettings: required: - acs - entity_id - logout type: object properties: entity_id: type: string description: The Entity ID to use for this SAML Service Provider. This should be entered as a URI. acs: type: string description: The URL of the Assertion Consumer service logout: type: string description: The URL of the Single Logout service description: The configuration for the Elasticsearch security SAML Service Provider. SearchRequest: type: object properties: from: type: integer description: 'Deprecated, use cursor for a more scalable approach to paging.' format: int32 cursor: type: string description: 'To retrieve the next page of hits, set this to the cursor value of the previous response. When set, all other fields are ignored.' size: type: integer description: The maximum number of search results to return. format: int32 query: $ref: '#/components/schemas/QueryContainer' sort: type: array items: type: object description: An array of fields to sort the search results by. Defaults to query rank and last modified date descending. description: An Elasticsearch search request with a subset of options. SecurityDeployment: required: - cluster_id - has_pending_plan - is_enabled - is_healthy - name - status type: object properties: cluster_id: type: string description: The identifier for the security deployment cluster deployment_id: type: string description: The identifier for the security deployment name: type: string description: The name of the security deployment cluster version: type: string description: The version of the Elasticsearch cluster status: enum: - initializing - stopping - stopped - rebooting - restarting - reconfiguring - started type: string description: The current status of the cluster has_pending_plan: type: boolean description: True if a pending plan is in progress is_healthy: type: boolean description: True if the cluster is healthy is_enabled: type: boolean description: True if the security cluster is currently enabled description: The Elasticsearch security deployment. SecurityDeploymentCreateRequest: type: object properties: name: type: string description: The name of the security deployment cluster version: type: string description: The version of the Elasticsearch cluster topology: $ref: '#/components/schemas/SecurityDeploymentTopology' description: The creation request for the Elasticsearch security deployment. SecurityDeploymentTopology: type: object properties: size: $ref: '#/components/schemas/TopologySize' zone_count: type: integer description: The number of zones in which data nodes will be placed format: int32 description: The cluster topology for the Elasticsearch security deployment. SecurityDeploymentUpdateRequest: type: object properties: version: type: string description: 'The version of Elasticsearch to upgrade to. When not included, no upgrade is performed.' topology: $ref: '#/components/schemas/SecurityDeploymentTopology' description: The update request for the Elasticsearch security deployment. SecurityRealmInfo: required: - id - name - type - urls type: object properties: id: type: string description: The identifier for the security realm name: type: string description: The friendly name of the security realm type: enum: - native - ldap - saml - active_directory type: string description: The type of the security realm enabled: type: boolean description: True if the security realm is enabled order: type: integer description: The order the security realm should be evaluated format: int32 urls: type: array items: type: string description: The URLs associated with the security realm description: The overview for the Elasticsearch security realm. SecurityRealmInfoList: required: - realms type: object properties: realms: type: array items: $ref: '#/components/schemas/SecurityRealmInfo' description: The list of security realms description: A list of Elasticsearch security realms. SecurityRealmsReorderRequest: required: - realms type: object properties: realms: type: array items: type: string description: The list of security realms in the desired order description: A reorder request for Elasticsearch security realms. ServiceUrl: required: - service - url type: object properties: service: type: string description: Name of the service url: type: string description: The full URL to access the service description: A URL to access the service of a resource SimpleQueryStringQuery: required: - query type: object properties: query: type: string description: The query expressed in simple query string syntax. fields: type: array items: type: string description: Array of fields to search default_operator: type: string description: The boolean operator used to combine the terms of the query. Valid values are `OR` (default) and `AND`. analyze_wildcard: type: boolean description: 'If `true`, the query attempts to analyze wildcard terms. Defaults to `false`.' analyzer: type: string description: The name of the analyzer to use to convert the query text into tokens. auto_generate_synonyms_phrase_query: type: boolean description: 'If `true`, the parse creates a `match_phrase` uery for each multi-position token. Defaults to `true`.' flags: type: string description: List of enabled operators for the simple query string syntax. Defaults to `ALL`. fuzzy_max_expansions: type: integer description: Maximum number of terms to which the query expands for fuzzy matching. Defaults to 50. format: int32 fuzzy_prefix_length: type: integer description: Number of beginning characters left unchanged for fuzzy matching. Defaults to 0. format: int32 fuzzy_transpositions: type: boolean description: 'If `true`, edits for fuzzy matching include transpositions of two adjacent characters. Defaults to `false`.' lenient: type: boolean description: 'If `true`, format-based errors, such as providing a text value for a numeric field are ignored. Defaults to `false`.' minimum_should_match: type: string description: Minimum number of clauses that must match for a document to be returned. quote_field_suffix: type: string description: Suffix appended to quoted text in the query string. description: A query that uses simple query string syntax. Will ignore invalid syntax. SimplifiedLineItem: required: - ecu_balance - ecu_quantity - end - id - start type: object properties: id: type: string description: Line Item ID ecu_quantity: type: number description: Original Elastic Consumption Unit (ECU) quantity format: double ecu_balance: type: number description: Elastic Consumption Unit (ECU) Balance format: double start: type: string description: Start of the line item's validity format: date-time end: type: string description: Expiration of the line item format: date-time description: Line Item SnapshotDependency: required: - cluster_id - repository_name type: object properties: cluster_id: type: string description: Elasticsearch cluster id deployment_id: type: string description: Deployment id deployment_name: type: string description: Deployment name repository_name: type: string description: The name of the snapshot repository in Elasticsearch (e.g. _clone_abcd1234) description: The additional resource of Elasticsearch cluster. SnapshotDependencyConfiguration: required: - source_cluster_id type: object properties: source_cluster_id: type: string description: The cluster ID of the source cluster whose snapshots will be made available description: Configuration for attaching a snapshot repository dependency from another cluster. This creates a snapshot repository in the target cluster pointing to the source cluster's snapshots. SnapshotRepositories: required: - repositories type: object properties: repositories: type: array items: $ref: '#/components/schemas/SnapshotDependency' description: List of snapshot repositories (other deployments whose snapshots this deployment can access) description: The snapshot repositories linked to this deployment. SnapshotRepositoryConfiguration: required: - settings - type type: object properties: type: type: string description: 'Repository type, (Currently supported: ''s3'')' settings: type: object description: 'Elasticsearch repository configuration settings JSON. See [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html) for more information' description: The configuration for an Elasticsearch snapshot repository. SnapshotStatusInfo: required: - count - healthy - recent_success type: object properties: healthy: type: boolean description: Health status of snapshots for this cluster count: type: integer description: Number of snapshots stored for this cluster format: int32 latest_successful: type: boolean description: Latest snapshot status latest_status: type: string description: 'Status of the latest snapshot attempt, if any exist.' scheduled_time: type: string description: Scheduled time of next snapshot attempt format: date-time latest_end_time: type: string description: The end time of the most recently attempted snapshot format: date-time latest_successful_end_time: type: string description: The end time of the most recently successful snapshot format: date-time recent_success: type: boolean description: Indicates whether the cluster has a relatively recent successful snapshot. description: 'Information about the snapshot status for the Elasticsearch cluster. For example, the health status.' SsoAuthenticationMethodInfo: required: - name - sso_type - url type: object properties: sso_type: enum: - saml type: string description: Indicates the protocol of the single sign-on method. name: type: string description: The friendly name of the single sign-on method. url: type: string description: The URL to initiate the single sign-on login. description: 'Specifies the authentication methods that are enabled on the Elasticsearch cluster. NOTE: When all fields are `false`, only the Platform admin and Platform viewer are available.' StackVersionApmConfig: required: - blacklist - docker_image type: object properties: version: type: string description: Version of APM docker_image: type: string description: Docker image for the APM blacklist: type: array items: type: string description: List of configuration options that cannot be overridden by user settings settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one description: The APM Server configuration for an Elastic Stack version. StackVersionAppSearchConfig: required: - blacklist - docker_image type: object properties: version: type: string description: Version of AppSearch docker_image: type: string description: Docker image for the AppSearch blacklist: type: array items: type: string description: List of configuration options that cannot be overridden by user settings settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one node_types: type: array items: $ref: '#/components/schemas/StackVersionNodeType' description: Node types that are supported by this stack version description: AppSearch related configuration of an Elastic Stack version StackVersionArchiveProcessingError: required: - errors - stack_version type: object properties: stack_version: type: string description: Version of the stack (ie directory name in archive root) errors: $ref: '#/components/schemas/BasicFailedReply' description: Information about the errors that occurred from processing an Elastic Stack version. StackVersionArchiveProcessingResult: required: - errors - stacks type: object properties: stacks: type: array items: $ref: '#/components/schemas/StackVersionConfig' errors: type: array items: $ref: '#/components/schemas/StackVersionArchiveProcessingError' description: 'Errors occurred while processing the Elastic Stack pack. Key: stack version, Value: List of errors' description: The result from processing an archive of an Elastic Stack version. StackVersionConfig: required: - elasticsearch - kibana - template - upgradable_to type: object properties: version: type: string description: Stack version readOnly: true template: $ref: '#/components/schemas/StackVersionTemplateInfo' elasticsearch: $ref: '#/components/schemas/StackVersionElasticsearchConfig' kibana: $ref: '#/components/schemas/StackVersionKibanaConfig' apm: $ref: '#/components/schemas/StackVersionApmConfig' appsearch: $ref: '#/components/schemas/StackVersionAppSearchConfig' enterprise_search: $ref: '#/components/schemas/StackVersionEnterpriseSearchConfig' metadata: $ref: '#/components/schemas/StackVersionMetadata' deleted: type: boolean description: Identifies that the Elastic Stack version is marked for deletion readOnly: true upgradable_to: type: array items: type: string description: Stack Versions that this version can upgrade to min_upgradable_from: type: string description: The minimum version recommended to upgrade this version. example: '6.7.0' whitelisted: type: boolean description: Whether or not this version is whitelisted. This is only relevant in EC (SaaS) and is not sent in ECE. accessible: type: boolean description: Whether or not this version is accessible by the calling user. This is only relevant in EC (SaaS) and is not sent in ECE. rolling_upgrade_compatible_versions: type: array items: type: string description: List of versions that can be upgraded to the current version of the stackpack description: The details for an Elastic Stack configuration. StackVersionConfigPost: required: - elasticsearch - kibana type: object properties: elasticsearch: $ref: '#/components/schemas/StackVersionElasticsearchConfig' kibana: $ref: '#/components/schemas/StackVersionKibanaConfig' apm: $ref: '#/components/schemas/StackVersionApmConfig' integrations_server: $ref: '#/components/schemas/StackVersionIntegrationsServerConfig' appsearch: $ref: '#/components/schemas/StackVersionAppSearchConfig' enterprise_search: $ref: '#/components/schemas/StackVersionEnterpriseSearchConfig' metadata: $ref: '#/components/schemas/StackVersionMetadata' rolling_upgrade_compatible_versions: type: array items: type: string description: List of versions that can be upgraded to the current version of the stackpack description: The configuration for an Elastic Stack version. StackVersionConfigs: required: - stacks type: object properties: stacks: type: array items: $ref: '#/components/schemas/StackVersionConfig' description: The details for multiple Elastic Stack configurations. StackVersionElasticsearchConfig: required: - blacklist - default_plugins - docker_image - plugins type: object properties: docker_image: type: string description: Docker image for the Elasticsearch plugins: type: array items: type: string description: List of available plugins default_plugins: type: array items: type: string description: List of default plugins blacklist: type: array items: type: string description: List of configuration options that cannot be overridden by user settings node_types: type: array items: $ref: '#/components/schemas/StackVersionNodeType' description: Node types that are supported by this stack version settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one description: 'The Elasticsearch configuration for an Elastic Stack version. ' StackVersionEnterpriseSearchConfig: required: - blacklist - docker_image type: object properties: version: type: string description: Version of EnterpriseSearch docker_image: type: string description: Docker image for the EnterpriseSearch blacklist: type: array items: type: string description: List of configuration options that cannot be overridden by user settings settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one node_types: type: array items: $ref: '#/components/schemas/StackVersionNodeType' description: Node types that are supported by this stack version description: EnterpriseSearch related configuration of an Elastic Stack version StackVersionInstanceCapacityConstraint: required: - max - min type: object properties: min: type: integer description: Min capacity of the instances format: int32 max: type: integer description: Max capacity of the instances format: int32 description: 'The Elasticsearch instance, Kibana instance, APM Server capacity constraints for an Elastic Stack node type.' StackVersionIntegrationsServerConfig: required: - blacklist - docker_image type: object properties: version: type: string description: Version of Integrations Server docker_image: type: string description: Docker image for the Integrations Server blacklist: type: array items: type: string description: List of configuration options that cannot be overridden by user settings settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one description: The Integrations Server configuration for an Elastic Stack version. StackVersionKibanaConfig: required: - blacklist - docker_image type: object properties: version: type: string description: Version of Kibana docker_image: type: string description: Docker image for the kibana blacklist: type: array items: type: string description: List of configuration options that cannot be overridden by user settings settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one description: The Kibana configuration for an Elastic Stack version. StackVersionMetadata: type: object properties: notes: type: string description: Notes for administrator pre_release: type: boolean description: Indicates that the stack pack version is not GA and is not supposed to be used in production min_platform_version: type: string description: The minimum version of the platform that the stack pack version is compatible with min_wire_compatibility_version: type: string description: The minimum version required for performing a rolling upgrade to this stack version. min_index_compatibility_version: type: string description: The minimum version required for performing a full cluster restart upgrade to this stack version. schema_version: type: integer description: The schema version of the stack pack version format: int32 is_fips: type: boolean description: Is this a fips stackpack description: The metadata for the Elastic Stack. StackVersionNodeType: required: - description - name - node_type type: object properties: node_type: type: string description: 'Type of the node (master, data, ...)' name: type: string description: Name of the node type description: type: string description: Description of the node type settings: type: object description: Settings that are applied to all nodes of this type capacity_constraints: $ref: '#/components/schemas/StackVersionInstanceCapacityConstraint' compatible_node_types: type: array items: type: string description: Node types that are compatible with this one mandatory: type: boolean description: Flag to specify a node type is mandatory in a cluster's plan description: The configuration for an Elastic Stack node type. StackVersionTemplateFileHash: required: - hash - path type: object properties: path: type: string description: File path relative to template's root hash: type: string description: SHA-256 hash of a file description: The template file hash for an Elastic Stack version. StackVersionTemplateInfo: type: object properties: template_version: type: string description: Template version readOnly: true hashes: type: array items: $ref: '#/components/schemas/StackVersionTemplateFileHash' description: Relative paths of files with SHA-256 hashes that contains the template readOnly: true description: The template information for an Elastic Stack version. TargetElasticsearchCluster: required: - elasticsearch_id type: object properties: elasticsearch_id: type: string description: The Elasticsearch cluster Id links: type: object additionalProperties: $ref: '#/components/schemas/Hyperlink' description: A map of application-specific operations (which map to 'operationId's in the Swagger API) to metadata about that operation description: Information about the specified Elasticsearch cluster. TelemetryConfig: required: - enabled type: object properties: enabled: type: boolean description: Whether ECE telemetry is enabled description: The current ECE telemetry configuration TelemetryConfigRequest: required: - enabled type: object properties: enabled: type: boolean description: Whether to enable ECE telemetry description: The desired ECE telemetry configuration TermQuery: required: - value type: object properties: value: type: string description: The exact value to query for. description: A query for documents that contain the specified term in the inverted index. TierConfig: type: object properties: memory_size: type: integer description: The desired memory size in MB for this tier. format: int32 zone_count: type: integer description: 'The number of availability zones for this tier. If omitted, the current zone count is preserved.' format: int32 description: Desired configuration for an individual Elasticsearch tier TierInfo: type: object properties: memory_size: type: integer description: The memory size in MB for this tier. format: int32 zone_count: type: integer description: The number of availability zones for this tier. format: int32 available_sizes: type: array items: type: integer format: int32 description: Discrete memory sizes in MB from this tier's instance configuration. Sizes up to the allowed multiple of the maximum discrete size may also be valid. description: Current configuration of an individual Elasticsearch tier TiersResponse: type: object properties: hot_content: $ref: '#/components/schemas/TierInfo' warm: $ref: '#/components/schemas/TierInfo' cold: $ref: '#/components/schemas/TierInfo' frozen: $ref: '#/components/schemas/TierInfo' master: $ref: '#/components/schemas/TierInfo' coordinating: $ref: '#/components/schemas/TierInfo' ml: $ref: '#/components/schemas/TierInfo' description: Size configuration of Elasticsearch tiers in a deployment. Disabled tiers are omitted from responses. TiersUpdateRequest: type: object properties: hot_content: $ref: '#/components/schemas/TierConfig' warm: $ref: '#/components/schemas/TierConfig' cold: $ref: '#/components/schemas/TierConfig' frozen: $ref: '#/components/schemas/TierConfig' master: $ref: '#/components/schemas/TierConfig' coordinating: $ref: '#/components/schemas/TierConfig' ml: $ref: '#/components/schemas/TierConfig' description: Update the size and/or zone count of one or more Elasticsearch tiers. Only include the tiers you want to modify. TlsPublicCertChain: required: - chain - user_supplied type: object properties: user_supplied: type: boolean description: Was this certificate chain user supplied or automatically generated? chain: type: array items: type: string description: The list of PEM encoded X509 certificates that make up the certificate chain chain_status: $ref: '#/components/schemas/ChainStatus' api_managed: type: boolean description: Whether or not this certificate can be updated using the API description: 'The public portion of the certificate chain that contains the PEM encoded server certificate, intermediate certificates, and the CA certificate. NOTE: The private key, normally included in certificate chains, is omitted.' TokenResponse: required: - session_expiration_time - token type: object properties: token: type: string description: The authorization bearer token that you use in subsequent requests session_expiration_time: type: string description: The time that the session token will expire format: date-time description: 'The response value after a login without redirect configured, or after elevated permissions are enabled or disabled.' TopologyElementControl: required: - min type: object properties: min: $ref: '#/components/schemas/TopologySize' description: Controls for the topology element. Only used as part of the deployment template. Ignored if included as part of a deployment. TopologySize: required: - resource - value type: object properties: value: type: integer description: Amount of resource format: int32 resource: enum: - memory - storage type: string description: Type of resource. In ESS the resource used should always be `memory`. description: Measured by the amount of a resource. The final cluster size is calculated using multipliers from the topology instance configuration. TrafficFilterClaimedLinkIdInfo: required: - region type: object properties: link_id: type: string description: Link id. A GCP private service connect ID or AWS VPC endpoint ID azure_endpoint_name: type: string description: Name of the Azure Private Endpoint to allow connections from azure_endpoint_guid: type: string description: Resource GUID of the Azure Private Endpoint to allow connections from region: type: string description: The claimed link id can be used only for traffic filter in the specific region TrafficFilterClaimedLinkIdRequest: required: - region type: object properties: link_id: type: string description: Link id. A GCP private service connect ID or AWS VPC endpoint ID azure_endpoint_name: type: string description: Name of the Azure Private Endpoint to allow connections from azure_endpoint_guid: type: string description: Resource GUID of the Azure Private Endpoint to allow connections from region: type: string description: The claimed link id can be used only for traffic filter in the specific region description: The specification for traffic filter claimed link id. TrafficFilterClaimedLinkIds: required: - claimed_link_ids type: object properties: claimed_link_ids: type: array items: $ref: '#/components/schemas/TrafficFilterClaimedLinkIdInfo' description: List of traffic filter claimed link id description: The container for a set of traffic filter claimed link id. TrafficFilterEgressRule: required: - protocol - target type: object properties: target: type: string description: 'Allowed traffic filter egress target: IP address or CIDR mask' ports: type: array items: type: integer format: int32 description: A list of target ports for an egress rule protocol: enum: - all - tcp - udp type: string description: The target protocol for an egress rule description: The rule detail for a traffic filter egress rule. TrafficFilterRule: type: object properties: id: type: string description: The rule ID remote_cluster_org_id: type: string description: The remote cluster organization ID remote_cluster_id: type: string description: The remote cluster ID description: type: string description: Description of the rule source: type: string description: 'Allowed traffic filter source: IP address, CIDR mask, or VPC endpoint ID' azure_endpoint_name: type: string description: Name of the Azure Private Endpoint to allow connections from azure_endpoint_guid: type: string description: Resource GUID of the Azure Private Endpoint to allow connections from egress_rule: $ref: '#/components/schemas/TrafficFilterEgressRule' description: The container for a traffic filter rule. TrafficFilterRulesetInfo: required: - id - include_by_default - name - region - rules - type type: object properties: id: type: string description: The ruleset ID name: type: string description: Name of the ruleset description: type: string description: Description of the ruleset type: enum: - ip - azure_private_endpoint - gcp_private_service_connect_endpoint - vpce - egress_firewall - remote_cluster type: string description: Type of the ruleset include_by_default: type: boolean description: Should the ruleset be automatically included in the new deployments region: type: string description: The ruleset can be attached only to deployments in the specific region rules: type: array items: $ref: '#/components/schemas/TrafficFilterRule' description: List of rules associations: type: array items: $ref: '#/components/schemas/FilterAssociation' description: List of associations. Returned only when include_associations query parameter is true total_associations: type: integer description: Total number of associations. This includes associations the user does not have permission to view.Returned only when include_associations query parameter is true format: int32 description: The container for a set of traffic filter rules. TrafficFilterRulesetRequest: required: - include_by_default - name - region - rules - type type: object properties: name: type: string description: Name of the ruleset description: type: string description: Description of the ruleset type: type: string description: Type of the ruleset include_by_default: type: boolean description: Should the ruleset be automatically included in the new deployments region: type: string description: The ruleset can be attached only to deployments in the specific region rules: type: array items: $ref: '#/components/schemas/TrafficFilterRule' description: List of rules description: The specification for traffic filter ruleset. TrafficFilterRulesetResponse: required: - id type: object properties: id: type: string description: The new ruleset ID description: The response after you create a new ruleset. TrafficFilterRulesets: required: - rulesets type: object properties: rulesets: type: array items: $ref: '#/components/schemas/TrafficFilterRulesetInfo' description: List of traffic filter rules description: The container for a set of traffic filter rulesets. TrafficFilterSettings: required: - rulesets type: object properties: rulesets: type: array items: type: string description: IDs of the traffic filter rulesets description: The configuration settings for the traffic filter. TransientApmPlanConfiguration: type: object properties: strategy: $ref: '#/components/schemas/PlanStrategy' plan_configuration: $ref: '#/components/schemas/ApmPlanControlConfiguration' description: 'Defines the configuration parameters that control how the plan is applied. For example, the Elasticsearch cluster topology and APM Server settings.' TransientAppSearchPlanConfiguration: type: object properties: strategy: $ref: '#/components/schemas/PlanStrategy' plan_configuration: $ref: '#/components/schemas/AppSearchPlanControlConfiguration' description: Defines configuration parameters that control how the plan (ie consisting of the cluster topology and AppSearch settings) is applied TransientElasticsearchPlanConfiguration: type: object properties: strategy: $ref: '#/components/schemas/PlanStrategy' plan_configuration: $ref: '#/components/schemas/ElasticsearchPlanControlConfiguration' restore_snapshot: $ref: '#/components/schemas/RestoreSnapshotConfiguration' snapshot_dependency: $ref: '#/components/schemas/SnapshotDependencyConfiguration' remote_clusters: $ref: '#/components/schemas/RemoteResources' cluster_settings_json: type: object description: "If specified, contains transient settings to be applied to an Elasticsearch cluster during changes,default values shown below applied.\nThese can be overridden by specifying them in the map (or null to unset). Additional settings can also be set. Settings will be cleared after the plan has finished. If not specified, no settings will be applied.\nNOTE: These settings are only explicitly cleared for 5.x+ clusters, they must be hand-reset to their defaults in 2.x- (or a cluster reboot will clear them).\n- indices.store.throttle.max_bytes_per_sec: 120Mb\n- indices.recovery.max_bytes_per_sec: 120Mb\n- cluster.routing.allocation.cluster_concurrent_rebalance: 5\n- cluster.routing.allocation.node_initial_primaries_recoveries: 5\n- cluster.routing.allocation.node_concurrent_incoming_recoveries: 5\nFor version 8.1 and later no defaults are provided through this mechanism, but instead hardware dependent settings are provided to each instance." description: 'Defines the configuration parameters that control how the plan is applied. For example, the Elasticsearch cluster topology and Elasticsearch settings.' TransientEnterpriseSearchPlanConfiguration: type: object properties: strategy: $ref: '#/components/schemas/PlanStrategy' plan_configuration: $ref: '#/components/schemas/EnterpriseSearchPlanControlConfiguration' description: Defines configuration parameters that control how the plan (i.e. consisting of the cluster topology and Enterprise Search settings) is applied TransientIntegrationsServerPlanConfiguration: type: object properties: strategy: $ref: '#/components/schemas/PlanStrategy' plan_configuration: $ref: '#/components/schemas/IntegrationsServerPlanControlConfiguration' description: 'Defines the configuration parameters that control how the plan is applied. For example, the Elasticsearch cluster topology and Integrations Server settings.' TransientKibanaPlanConfiguration: type: object properties: strategy: $ref: '#/components/schemas/PlanStrategy' plan_configuration: $ref: '#/components/schemas/KibanaPlanControlConfiguration' description: 'Defines the configuration parameters that control how the plan is applied. For example, the Elasticsearch cluster topology and Kibana instance settings.' TrustRelationshipCreateRequest: required: - name - public_ca_cert 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 items: type: string description: The ID of the accounts to trust by this relationship. 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 TrustRelationshipCreateResponse: required: - id - local - name - trust_by_default type: object 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 items: type: string description: The ID of the accounts trusted by this relationship. 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: required: - id - last_modified - local - name - trust_by_default type: object 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 items: type: string description: The ID of the accounts trusted by this relationship. 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 description: The most recent time the trust relationship was changed (ISO format in UTC) format: date-time 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 items: type: string description: The ID of the accounts to trust by this relationship. 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 TrustRelationshipUpdateResponse: required: - id - local - name - trust_by_default type: object 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 items: type: string description: The ID of the accounts trusted by this relationship. 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 TrustRelationshipsListResponse: required: - trust_relationships type: object properties: trust_relationships: type: array items: $ref: '#/components/schemas/TrustRelationshipGetResponse' description: The trust relationships description: Contains a list of trust relationships TrustedCertificate: required: - pem type: object properties: pem: type: string description: The public ca certificate as string in PEM format. metadata: $ref: '#/components/schemas/CertificateMetaData' description: An x509 certificate used by a DirectTrustRelationship UnreachableRegionInfo: required: - region_id type: object properties: region_id: type: string description: Identifier of this region description: Information about an unreachable region. UpdateExtensionRequest: required: - extension_type - name - version type: object properties: name: type: string description: The extension name. description: type: string description: The extension description. download_url: type: string description: The URL to download the extension archive. extension_type: enum: - plugin - bundle type: string description: The extension type. version: type: string description: The Elasticsearch version. description: The body of a request to update an extension UpdateOrganizationRoleMappingRequest: required: - mappings type: object properties: mappings: type: array items: $ref: '#/components/schemas/RoleMapping' description: The rules for mapping role assignments in the organization UpdateRoleMappingRequest: required: - mapping type: object properties: mapping: $ref: '#/components/schemas/RoleMapping' UpdatedTlsChain: required: - service type: object properties: service: enum: - adminconsole - proxy - ui - internalca type: string description: The service certificate chain that has been updated description: Details on the updated TLS chain Updates: type: object properties: elasticsearch: type: array items: $ref: '#/components/schemas/Elasticsearch' description: Diagnostics for Elasticsearch clusters kibana: type: array items: $ref: '#/components/schemas/Kibana' description: Diagnostics for Kibanas apm: type: array items: $ref: '#/components/schemas/Apm' description: Diagnostics for APMs integrations_server: type: array items: $ref: '#/components/schemas/IntegrationsServer' description: Diagnostics for Integrations Server appsearch: type: array items: $ref: '#/components/schemas/AppSearch' description: Diagnostics for AppSearches enterprise_search: type: array items: $ref: '#/components/schemas/EnterpriseSearch' description: Diagnostics for Enterprise Search resources description: Holds diagnostics for existing resources that might be updated UpgradeDeploymentRequest: required: - target_version type: object properties: target_version: type: string description: Target Elastic Stack version to which to upgrade description: Request to upgrade a deployment to a new Elastic Stack version UsageStats: required: - total_connected_memory_total type: object properties: total_connected_memory_total: type: integer description: The total amount of memory available to your system format: int32 description: Information about the current usage. User: required: - security - user_name type: object properties: user_name: type: string description: The user's identifier security: $ref: '#/components/schemas/UserSecurity' metadata: $ref: '#/components/schemas/UserMetadata' full_name: type: string description: The user's optional full name email: type: string description: The user's optional email address builtin: type: boolean description: True if the user is a built-in read-only user description: An API user UserApiKey: required: - api_key_id - user_id type: object properties: user_id: type: string description: The user ID. api_key_id: type: string description: The API key ID. description: The model to specify a user and their API key in a delete request. UserList: required: - users type: object properties: users: type: array items: $ref: '#/components/schemas/User' description: A list of users description: A collection of users UserMetadata: type: object properties: created_by: type: string description: The Id of the user that created this user created_at: type: string description: The date and time when the user was created format: date-time updated_by: type: string description: The Id of the user that last updated this user updated_at: type: string description: The date and time when the user was last updated format: date-time first_login_at: type: string description: The date and time when the user first logged in format: date-time last_login_at: type: string description: The date and time when the user last logged in format: date-time description: Metadata for a user UserSecurity: type: object properties: roles: type: array items: type: string description: The set of roles assigned to a user permissions: type: array items: type: string description: The distinct set of permissions allowed by the user's roles. These correspond to operationId values in the OpenAPI definition. elevated_permissions: $ref: '#/components/schemas/ElevatedPermissions' password: type: string description: The user's password. Only used when modifying a user. enabled: type: boolean description: True if the user is enabled security_realm: $ref: '#/components/schemas/UserSecurityRealm' description: A user's security information UserSecurityRealm: required: - id - type type: object properties: type: enum: - native - ldap - saml - active_directory type: string description: The type of the security realm id: type: string description: The identifier for the security realm description: The security realm the user belongs to VerificationCodeRequest: required: - domain_claim_request type: object properties: domain_claim_request: type: string description: The domain claim request VerificationCodeResponse: required: - verification type: object properties: verification: type: string description: The verification code to use for the domain claim challenge VersionedIdResponse: required: - id type: object properties: id: type: string description: The ID config_version: type: object description: 'The version, if the entity is configuration controlled' config_version_updated: type: object description: Returns true if the update resulted in a new version of the configuration controlled entity ZkAcl: required: - id - perms - scheme type: object properties: perms: type: integer description: ZK static permissions for admin/all/create/read/write/delete format: int32 scheme: type: string description: Zookeeper ACL scheme id: type: string description: Identity within provided scheme description: Represents a Zookeeper ACL permission ZookeeperNodeInfo: required: - id - state type: object properties: id: type: string description: Identifier of this ZooKeeper node state: enum: - connected - suspended - reconnected - lost - read_only type: string description: State of the ZooKeeper node description: Information about a ZooKeeper node. ZookeeperSummary: required: - states type: object properties: states: type: array items: $ref: '#/components/schemas/ZookeeperNodeInfo' description: Information about the nodes description: Information about the ZooKeeper state. securitySchemes: apiKey: type: apiKey name: Authorization in: header basicAuth: type: http scheme: basic security: - basicAuth: [ ] - apiKey: [ ] tags: - name: Accounts description: Retrieve and update the current Elasticsearch Service account. - name: Authentication description: Manage your Elasticsearch Service API keys. - name: BillingCostsAnalysis description: Get an overview of your costs by organization ID. x-displayName: Billing costs analysis - name: Comments description: Manage resource comments. - name: Deployments description: 'Perform CRUD operations, resync, and commands on your deployments.' - name: Extensions description: Manage the extensions for your deployment. x-displayName: Deployments - Extensions - name: DeploymentTemplates description: Manage your deployment templates. x-displayName: Deployments - Templates - name: DeploymentsTrafficFilter description: Manage associations between your deployments and traffic filter rulesets and link IDs. x-displayName: Deployments - Traffic filters - name: PlatformConfigurationNetworking x-displayName: Networking - Deployment Domain Names - name: Organizations description: Manage organization invitations and memberships. - name: OrganizationsConfiguration description: Manage organization configuration - name: Platform description: Get platform information and extra security certificates. x-displayName: Platform - name: PlatformConfigurationInstances x-displayName: Platform - Configuration - Instances - CRUD - name: PlatformConfigurationSecurity x-displayName: Platform - Configuration - Security - name: PlatformConfigurationTrustRelationships x-displayName: Platform - Configuration - Trust relationships - name: PlatformInfrastructure description: 'Manage the admin console, allocators, constructors, coordinators, licenses, proxies, roles, and runners.' x-displayName: Platform - Infrastructure - name: PlatformConfigurationSnapshots x-displayName: Platform - Repository - CRUD - name: Stack description: Retrieve the available Elastic Stack versions for your deployments. x-displayName: Stack - Versions - CRUD - name: Telemetry description: Manage your Elasticsearch Cloud Enterprise telemetry configuration. - name: PlatformConfigurationTemplates x-displayName: Templates - Deployments - Global - name: TrustedEnvironments description: Get the list of trusted environments for the organization. x-displayName: Trusted environments - name: Users description: Manage your Elasticsearch Cloud Enterprise users. - name: UserRoleAssignments description: Manage your user role assignments. x-displayName: Users - Role Assignments x-elastic: curl: auth: '-H "Authorization: ApiKey $ECE_API_KEY"'