Skip to content

Commit

Permalink
document the correct API being used
Browse files Browse the repository at this point in the history
  • Loading branch information
endorama committed Feb 19, 2025
1 parent c6fd8fd commit f07dbef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions functionaltests/internal/ecclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ func (c *Client) RestartIntegrationServer(ctx context.Context, deploymentID stri

refID := *res.Resources.IntegrationsServer[0].RefID

// This is an undocumented API, but it works.
// Is like https://www.elastic.co/docs/api/doc/cloud/operation/operation-restart-deployment-es-resource
// but using integrations_server instead of elasticsearch. integrations_server is the expected Kind for
// the 8.x APM server setup on Elastic Cloud.
// https://www.elastic.co/docs/api/doc/cloud/operation/operation-restart-deployment-stateless-resource
url := fmt.Sprintf("%s/api/v1/deployments/%s/integrations_server/%s/_restart", c.endpoint, deploymentID, refID)
req, err := http.NewRequest(http.MethodPost, url, nil)
if err != nil {
Expand Down

0 comments on commit f07dbef

Please sign in to comment.