{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorResponse":{"description":"失败时返回的错误对象","properties":{"code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"message":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["code","message"]},"UpdatePublicZoneInfo":{"properties":{"description":{"description":"域名的描述信息。长度不超过255个字符。","type":"string"},"email":{"description":"管理该zone的管理员邮箱,用于生成该Zone的SOA记录。 如果为空,表示维持原值。 默认值为空。","type":"string"},"ttl":{"description":"用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。","format":"int32","type":"integer"}}},"UpdatePublicZoneResp":{"description":"修改公网Zone响应","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/pageLink"},"masters":{"description":"主从模式中,从DNS服务器获取DNS信息。 目前暂未使用。","items":{"type":"string"},"type":"array"},"name":{"description":"zone名称。","type":"string"},"pool_id":{"description":"托管该zone的pool,由系统分配。","type":"string"},"project_id":{"description":"zone所属的项目ID。","type":"string"},"record_num":{"description":"该zone下的recordset个数。","format":"int32","type":"integer"},"serial":{"description":"该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。 该参数暂未使用。","format":"int32","type":"integer"},"status":{"description":"资源状态。","type":"string"},"ttl":{"description":"该zone下SOA记录中的ttl值。","format":"int32","type":"integer"},"updated_at":{"description":"更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ","type":"string"},"zone_type":{"description":"zone类型,公网(public)。","type":"string"}}},"pageLink":{"description":"指向当前资源或者其他资源的链接。当查询需要分页时,需要包含一个next链接指向下一页。","properties":{"next":{"description":"下一页资源的链接。","type":"string"},"self":{"description":"当前资源的链接。","type":"string"}}}},"description":null,"group_id":"2ab479966f0f4e20b884fafa72e0161b","host":"dns.cn-north-4.myhuaweicloud.com","id":"3d4370b82138481db60343003ace7cd7","info_version":"v2","method":"patch","name":"UpdatePublicZone","parameters":{"X-Auth-Token":{"description":"用户Token。\n\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."}},"paths":{"/v2/zones/{zone_id}":{"patch":{"description":"修改单个公网Zone","operationId":"UpdatePublicZone","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"description":"待修改zone的ID","in":"path","maxLength":36,"minLength":32,"name":"zone_id","required":true,"type":"string"},{"description":"修改单个公网Zone请求。","in":"body","name":"UpdatePublicZoneInfo","required":true,"schema":{"$ref":"#/definitions/UpdatePublicZoneInfo"}}],"produces":["application/json"],"responses":{"202":{"description":"修改单个公网Zone响应。","examples":{"application/json":{"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":1,"status":"ACTIVE","ttl":300,"updated_at":"2016-11-17T11:56:05.749","zone_type":"public"}},"schema":{"$ref":"#/definitions/UpdatePublicZoneResp"}},"400":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}},"404":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}},"500":{"description":"接口错误响应。","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"修改单个公网Zone","tags":["公网Zone管理"],"x-is-registered":"Y","x-request-examples-description-1":"修改公网域名的邮箱和描述信息,设置TTL为300秒。","x-request-examples-text-1":{"description":"This is an example zone.","email":"xx@example.org","ttl":300},"x-request-examples-url-1":"PATCH https://{endpoint}/v2/zones/{zone_id}","x-support-sdk":"Y"}}},"product_short":"DNS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改单个公网Zone","tags":"公网Zone管理","uri":null,"version":"2.0"}