{"base_path":"/","components":null,"consumes":"","definitions":{"BatchSetZonesStatusRequestBody":{"properties":{"status":{"description":"待设置Zone状态,当前仅支持DISABLE或ENABLE。","pattern":"DISABLE|ENABLE","type":"string"},"zone_ids":{"description":"待设置Zone ID列表。\n最多支持50个。","items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"}},"required":["status","zone_ids"]},"BatchSetZonesStatusResponseBody":{"properties":{"links":{"$ref":"#/definitions/Link"},"metadata":{"$ref":"#/definitions/metadata","description":"返回满足过滤条件的资源总数。"},"zones":{"description":"设置zone的列表响应。","items":{"$ref":"#/definitions/ZoneData"},"type":"array"}}},"ErrorResponse":{"description":"失败时返回的错误对象","properties":{"code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"message":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["code","message"]},"Link":{"description":"指向当前资源的链接。","properties":{"self":{"description":"当前资源的链接。","type":"string"}}},"ZoneData":{"properties":{"created_at":{"description":"创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。","type":"string"},"description":{"description":"对zone的描述信息。","type":"string"},"email":{"description":"管理该zone的管理员邮箱,用于生成该Zone的SOA记录。","type":"string"},"id":{"description":"zone的ID,uuid形式的一个资源标识。","type":"string"},"links":{"$ref":"#/definitions/Link","description":"指向当前资源的链接。"},"masters":{"description":"主从模式中,从DNS服务器获取DNS信息。","type":"string"},"name":{"description":"zone名称。","type":"string"},"pool_id":{"description":"托管该zone的pool,由系统分配。","type":"string"},"project_id":{"description":"zone所属的项目ID。","type":"string"},"record_num":{"description":"该zone下的recordset个数。","type":"string"},"serial":{"description":"该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。","type":"string"},"status":{"description":"资源状态。","type":"string"},"ttl":{"description":"该zone下SOA记录中的ttl值。","type":"string"},"updated_at":{"description":"更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。","type":"string"},"zone_type":{"description":"zone类型,取值 public 或 private。","type":"string"}}},"metadata":{"description":"返回满足过滤条件的资源总数。","properties":{"total_count":{"description":"满足查询条件的资源总数,不受分页(即limit、offset参数)影响。","format":"int32","type":"integer"}}}},"description":null,"group_id":"2ab479966f0f4e20b884fafa72e0161b","host":"dns.cn-north-4.myhuaweicloud.com","id":"a1e7b536fd35435ca50556708fba1a5f","info_version":"v2","method":"put","name":"BatchSetZonesStatus","parameters":{},"paths":{"/v2.1/zones/statuses":{"put":{"description":"批量设置Zone状态。\n响应结果中只包含本次实际更新的Zone。\n仅支持公网Zone、内网Zone。","operationId":"BatchSetZonesStatus","parameters":[{"description":"批量设置Zone状态请求。","in":"body","name":"BatchSetZonesStatusRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchSetZonesStatusRequestBody"}}],"produces":["application/json"],"responses":{"202":{"description":"批量设置Zone状态响应。","examples":{"application/json":{"links":{"self":"https://Endpoint/v2.1/zones/statuses"},"metadata":{"total_count":2},"zones":[{"created_at":"2016-11-17T11:56:03.439","description":"This is an example zone.","email":"xx@example.com","id":"2c9eb155587194ec01587224c9f90149","links":{"self":"https://Endpoint/v2/zones/2c9eb155587194ec01587224c9f90149"},"masters":[],"name":"example.com.","pool_id":"00000000570e54ee01570e9939b20019","project_id":"e55c6f3dc4e34c9f86353b664ae0e70c","record_num":2,"serial":0,"status":"DISABLE","ttl":300,"updated_at":"2016-11-17T11:56:05.528","zone_type":"public"},{"created_at":"2016-11-17T12:01:17.996","description":"This is an example zone.","email":"xx@example.org","id":"2c9eb155587228570158722996c50001","links":{"self":"https://Endpoint/v2/zones/2c9eb155587228570158722996c50001"},"masters":[],"name":"example.org.","pool_id":"00000000570e54ee01570e9939b20019","project_id":"e55c6f3dc4e34c9f86353b664ae0e70c","record_num":2,"serial":0,"status":"DISABLE","ttl":300,"updated_at":"2016-11-17T12:01:18.528","zone_type":"public"}]}},"schema":{"$ref":"#/definitions/BatchSetZonesStatusResponseBody"}},"400":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}},"500":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"批量设置Zone状态","tags":["批量接口管理"],"x-is-registered":"Y","x-request-examples-description-1":"批量设置域名的状态为暂停解析。","x-request-examples-text-1":{"status":"DISABLE","zone_ids":["2c9eb155587194ec01587224c9f90149","2c9eb155587194ec01587224c9f90150"]},"x-request-examples-url-1":"PUT https://{endpoint}/v2.1/zones/statuses","x-support-sdk":"Y"}}},"product_short":"DNS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量设置Zone状态","tags":"批量接口管理","uri":null,"version":"2.0"}