huawei-cloud-api-definitions-DNS 0.1.20250117

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"CreatePublicZoneReq":{"description":"创建公网zone请求","properties":{"description":{"description":"描述","type":"string"},"email":{"description":"管理该zone的管理员邮箱,用于生成该Zone的SOA记录。","type":"string"},"enterprise_project_id":{"description":"域名关联的企业项目ID,长度不超过36个字符.","type":"string"},"name":{"description":"Zone名称","type":"string"},"tags":{"$ref":"#/definitions/tagArray"},"ttl":{"description":"用于填写默认生成的SOA记录中有效缓存时间,以秒为单位.","format":"int32","type":"integer"},"zone_type":{"description":"域名类型。取值:public。","type":"string"}},"required":["name"]},"CreatePublicZoneResp":{"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"},"enterprise_project_id":{"description":"域名关联的企业项目ID,长度不超过36个字符。","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"}}},"ErrorResponse":{"description":"失败时返回的错误对象","properties":{"code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"message":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["code","message"]},"pageLink":{"description":"指向当前资源或者其他资源的链接。当查询需要分页时,需要包含一个next链接指向下一页。","properties":{"next":{"description":"下一页资源的链接。","type":"string"},"self":{"description":"当前资源的链接。","type":"string"}}},"tag":{"properties":{"key":{"description":"键。最大长度36个unicode字符。 key不能为空。不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。","type":"string"},"value":{"description":"值。每个值最大长度43个unicode字符,可以为空字符串。 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”,且首尾字符不能为空格。","type":"string"}},"required":["key"]},"tagArray":{"description":"资源标签。","items":{"$ref":"#/definitions/tag"},"type":"array"}},"description":null,"group_id":"2ab479966f0f4e20b884fafa72e0161b","host":"dns.cn-north-4.myhuaweicloud.com","id":"3da5f0282948432cade6681311fa29f7","info_version":"v2","method":"post","name":"CreatePublicZone","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":{"post":{"description":"创建单个公网Zone","operationId":"CreatePublicZone","parameters":[{"$ref":"#/parameters/X-Auth-Token"},{"description":"创建公网Zone请求对象。","in":"body","name":"CreatePublicZone","required":true,"schema":{"$ref":"#/definitions/CreatePublicZoneReq"}}],"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":0,"serial":1,"status":"PENDING_CREATE","ttl":300,"updated_at":null,"zone_type":"public"}},"schema":{"$ref":"#/definitions/CreatePublicZoneResp"}},"400":{"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","name":"example.com.","tags":[{"key":"key1","value":"value1"}],"ttl":300,"zone_type":"public"},"x-request-examples-url-1":"POST https://{endpoint}/v2/zones","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"}