Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Add dry run and force to json spec for Delete Inference endpoint #109402

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"inference.delete":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html",
"description":"Delete an inference endpoint"
"inference.delete": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html",
"description": "Delete an inference endpoint"
},
"stability":"experimental",
"visibility":"public",
"headers":{
"accept": [ "application/json"]
"stability": "experimental",
"visibility": "public",
"headers": {
"accept": [
"application/json"
]
},
"url":{
"paths":[
"url": {
"paths": [
{
"path": "/_inference/{inference_id}",
"methods": [
Expand All @@ -24,22 +26,34 @@
}
},
{
"path":"/_inference/{task_type}/{inference_id}",
"methods":[
"path": "/_inference/{task_type}/{inference_id}",
"methods": [
"DELETE"
],
"parts":{
"task_type":{
"type":"string",
"description":"The task type"
"parts": {
"task_type": {
"type": "string",
"description": "The task type"
},
"inference_id":{
"type":"string",
"description":"The inference Id"
"inference_id": {
"type": "string",
"description": "The inference Id"
}
}
}
]
},
"params": {
"dry_run": {
"type": "boolean",
"description": "If true the endpoint will not be deleted and a list of ingest processors which reference this endpoint will be returned.",
"required": false
},
"force": {
"type": "boolean",
"description": "True if the endpoint should be forcefully stopped (regardless of whether or not it is referenced by any ingest processors or semantic text fields).",
maxhniebergall marked this conversation as resolved.
Show resolved Hide resolved
"required": false
}
}
}
}
Loading