分布式消息服务KAFKA版-修改实例信息:请求示例

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

请求示例

  • 修改实例的名称和描述。

    PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}
    
    {
      "name" : "kafka001",
      "description" : "kafka description"
    }
  • 修改实例的名称、描述和维护时间窗。

    PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}
    
    {
      "name" : "dms002",
      "description" : "instance description",
      "maintain_begin" : "02:00:00",
      "maintain_end" : "06:00:00"
    }
  • 修改容量阈值策略。

    PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}
    
    {
      "retention_policy" : "time_base"
    }
support.huaweicloud.com/api-kafka/UpdateInstance.html