Skip to content

Commit 4a04681

Browse files
authored
Updating health APIs and cat recovery API to INTERNAL for serverless (#97403)
1 parent 44ce64c commit 4a04681

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

server/src/main/java/org/elasticsearch/health/RestGetHealthAction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import org.elasticsearch.client.internal.node.NodeClient;
1212
import org.elasticsearch.rest.BaseRestHandler;
1313
import org.elasticsearch.rest.RestRequest;
14+
import org.elasticsearch.rest.Scope;
15+
import org.elasticsearch.rest.ServerlessScope;
1416
import org.elasticsearch.rest.action.RestCancellableNodeClient;
1517
import org.elasticsearch.rest.action.RestChunkedToXContentListener;
1618

@@ -19,6 +21,7 @@
1921

2022
import static org.elasticsearch.rest.RestRequest.Method.GET;
2123

24+
@ServerlessScope(Scope.INTERNAL)
2225
public class RestGetHealthAction extends BaseRestHandler {
2326

2427
private static final String VERBOSE_PARAM = "verbose";

server/src/main/java/org/elasticsearch/rest/action/cat/RestCatRecoveryAction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import org.elasticsearch.indices.recovery.RecoveryState;
2424
import org.elasticsearch.rest.RestRequest;
2525
import org.elasticsearch.rest.RestResponse;
26+
import org.elasticsearch.rest.Scope;
27+
import org.elasticsearch.rest.ServerlessScope;
2628
import org.elasticsearch.rest.action.RestCancellableNodeClient;
2729
import org.elasticsearch.rest.action.RestResponseListener;
2830

@@ -38,6 +40,7 @@
3840
* in a string format, designed to be used at the command line. An Index can
3941
* be specified to limit output to a particular index or indices.
4042
*/
43+
@ServerlessScope(Scope.INTERNAL)
4144
public class RestCatRecoveryAction extends AbstractCatAction {
4245

4346
@Override

server/src/main/java/org/elasticsearch/rest/action/cat/RestHealthAction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
import org.elasticsearch.common.Table;
1515
import org.elasticsearch.rest.RestRequest;
1616
import org.elasticsearch.rest.RestResponse;
17+
import org.elasticsearch.rest.Scope;
18+
import org.elasticsearch.rest.ServerlessScope;
1719
import org.elasticsearch.rest.action.RestResponseListener;
1820

1921
import java.util.List;
2022
import java.util.Locale;
2123

2224
import static org.elasticsearch.rest.RestRequest.Method.GET;
2325

26+
@ServerlessScope(Scope.INTERNAL)
2427
public class RestHealthAction extends AbstractCatAction {
2528

2629
@Override

0 commit comments

Comments
 (0)