Delete cloud connector (supports force deletion) Technical Preview; added in 9.2.0

DELETE /api/fleet/cloud_connectors/{cloudConnectorId}

Spaces method and path for this operation:

delete /s/{space_id}/api/fleet/cloud_connectors/{cloudConnectorId}

Refer to Spaces for more information.

[Required authorization] Route required privileges: fleet-agent-policies-all OR integrations-all.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • cloudConnectorId string Required

    The unique identifier of the cloud connector to delete.

Query parameters

  • force boolean

    If true, forces deletion even if the cloud connector is in use.

Responses

  • 200 application/json

    OK: A successful request.

    Hide response attribute Show response attribute object
    • id string Required
  • 400 application/json

    A bad request.

    Hide response attributes Show response attributes object
    • error string
    • errorType string
    • message string Required
    • statusCode number
DELETE /api/fleet/cloud_connectors/{cloudConnectorId}
curl \
 --request DELETE 'https://localhost:5601/api/fleet/cloud_connectors/{cloudConnectorId}' \
 --header "Authorization: $API_KEY" \
 --header "kbn-xsrf: true"