分布式消息服务KAFKA版-批量重启或删除实例:请求示例

时间:2024-01-24 16:40:32

请求示例

  • 批量重启实例。

    POST https://{endpoint}/v2/{project_id}/instances/action
    
    {
      "action" : "restart",
      "instances" : [ "54602a9d-5e22-4239-9123-77e350df4a34", "7166cdea-dbad-4d79-9610-7163e6f8b640" ]
    }
  • 批量删除实例。

    POST https://{endpoint}/v2/{project_id}/instances/action
    
    {
      "action" : "delete",
      "instances" : [ "54602a9d-5e22-4239-9123-77e350df4a34", "7166cdea-dbad-4d79-9610-7163e6f8b640" ]
    }
  • 删除所有创建失败的实例。

    POST https://{endpoint}/v2/{project_id}/instances/action
    
    {
      "action" : "delete",
      "all_failure" : "kafka"
    }
support.huaweicloud.com/api-kafka/BatchRestartOrDeleteInstances.html