云服务器内容精选

  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 id String 域名id hostid String 域名id hostname String 创建的云模式防护域名 policyid String 策略id access_code String cname前缀 protect_status Integer 域名防护状态: -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 1:开启防护,WAF根据您配置的策略进行攻击检测 access_status Integer 域名接入状态,0表示未接入,1表示已接入 proxy Boolean 防护域名是否使用代理 false:不使用代理 true:使用代理 timestamp Long 创建防护域名的时间 paid_type String 套餐付费模式,默认值为prePaid。prePaid:包周期款模式;postPaid:按需模式。 flag Flag object 特殊标识,用于前端使用 waf_type String 域名所属WAF模式,cloud为云模式,premium为独享模式 web_tag String 网站名称,对应WAF控制台域名详情中的网站名称 access_progress Array of Access_progress objects 接入进度,仅用于新版console(前端)使用 premium_waf_instances Array of Premium_waf_instances objects 租户引擎实例信息列表 description String 域名描述 exclusive_ip Boolean 是否使用用户独享的引擎公网ip,该参数为预留参数,用于后续功能扩展,用户可忽略 true:使用独享ip false:不使用独享ip region String 华为云区域ID,控制台创建的域名会携带此参数,api调用创建的域名此参数为空,可以通过华为云上地区和终端节点文档查询区域ID对应的中文名称 表5 Flag 参数 参数类型 描述 pci_3ds String 是否开启pci_3ds合规认证 true:开启 false:不开启 枚举值: true false pci_dss String 是否开启pci_dss合规认证 true:开启 false:不开启 枚举值: true false cname String old:代表域名使用的老的cname,new:代表域名使用新的cname 枚举值: old new is_dual_az String 是否支持双AZ模式 true:支持 false:不支持 枚举值: true false ipv6 String 域名是否开启ipv6 true:支持 false:不支持 枚举值: true false 表6 Access_progress 参数 参数类型 描述 step Integer 步骤 1: 指回源IP加白 2: 指本地验证 3:指修改DNS解析 status Integer 状态,0:未完成这个步骤;1:已完成这个状态” 表7 Premium_waf_instances 参数 参数类型 描述 id String 引擎实例id name String 引擎实例名 accessed Boolean 引擎实例是否已接入,false:未接入;true:已接入 状态码: 400 表8 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码: 401 表9 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息 状态码: 500 表10 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误信息
  • 响应示例 状态码: 200 OK { "id" : "31af669f567246c289771694f2112289", "hostid" : "31af669f567246c289771694f2112289", "description" : "", "proxy" : false, "flag" : { "pci_3ds" : "false", "pci_dss" : "false", "ipv6" : "false", "cname" : "new", "is_dual_az" : "true" }, "region" : "cn-north-4", "hostname" : "www.demo.com", "access_code" : "1b18879b9d064f8bbcbf8abce7294cac", "policyid" : "41cba8aee2e94bcdbf57460874205494", "timestamp" : 1650527546454, "protect_status" : 0, "access_status" : 0, "exclusive_ip" : false, "web_tag" : "", "paid_type" : "prePaid", "waf_type" : "cloud" }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 domain_name String 域名名称 expire_date String 域名到期时间,eg:2023-01-10 status String 域名服务状态 audit_status String 实名审核状态 audit_unpass_reason String 实名审核不通过原因 transfer_status String 过户状态 reg_type String 注册类型 privacy_protection String 是否开启隐私保护 name_server Array of String 域名服务器列表 contact Array of 表4 objects 联系人信息 order_id String 订单ID template_id String 当前关联的模板ID transfer_template_id String 过户的目标模板ID transfer_support_template Boolean 是否支持模板绑定 outState String 域名转出状态 OUTING:转出中 auto_renew_inner String 自动续费。 取值范围: 0:手工续费 1:自动续费 credential_type String 证件类型 credential_id String 证件号码 registrar String 域名所属注册商 表4 Contact 参数 参数类型 描述 email String 邮箱地址 register_cn String 域名所有者(中文) register_en String 域名所有者(英文) contact_name_cn String 联系人(中文) contact_name_en String 联系人(英文) phone_num String 联系电话 province_cn String 省份中文名 province_en String 省份英文名 city_cn String 城市中文名 city_en String 城市英文名 address_cn String 通讯地址(中文) address_en String 通讯地址(英文) zip_code String 邮编
  • 响应示例 { "domain_name":"xxx.top", "expire_date":"2024-04-19", "status":"serverHold", "audit_status":"AUDITING", "audit_unpass_reason":null, "transfer_status":null, "reg_type":"PERSON", "privacy_protection":false, "name_server":[ "ns11.xincache.com", "ns12.xincache.com" ], "contact":{ "email":"xx", "register_cn":"xx", "register_en":"xx", "contact_name_cn":"xx", "contact_name_en":"xx", "phone_num":"xx", "province_cn":"xx", "province_en":"xx", "city_cn":"xx", "city_en":"xx", "address_cn":"xx", "address_en":"xx", "zip_code":"xx" }, "order_id":"dajtyxxx", "template_id":"8abf6fb67fd55e18017fdxxxxxxx", "transfer_template_id":null, "transfer_support_template":true, "outState":null, "auto_renew_inner":null, "credential_type":null, "credential_id":null, "registrar":"XIN_NET"}