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

时间:2023-11-02 20:49:49

请求示例

  • 批量重启实例。

    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" : "rabbitmq"
    }
support.huaweicloud.com/api-rabbitmq/BatchRestartOrDeleteInstances.html