用户工具

站点工具


start:virtualhost



虚拟主机接口

1、购买主机

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringhost.mf.I(免费I型)
host.gr.A(个人A型)
host.gr.B(个人B型)
host.qy.A(企业A型)
host.qy.B(企业B型)
host.gr.zhuanxiang(个人专享主机)
host.qy.zhuanxiang(企业专享主机)
产品名称
systemTypeint0:linux 1:windows (默认为windows)系统类型
yidint12(一年)、24(二年)、36(三年)、48(四年)、60(五年)、120(十年)购买期限
tidint1交易id

注意事项:

  1. 企业I型只能购买一年
  2. 企业II型和企业III可以购买1-5年
  3. 其他主机只能购买1-3年。
  4. 默认优先使用创业基金购买。

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<did>订单编号</did>
                <czxt>操作系统</czxt>
	</info>
</result>

JSON返回值格式

{
	"code":"0" ,
	"info":
	{
		"did": 订单编号,
                "czxt":操作系统
	}
}

2、开通主机

参数参数类型参数值参数描述
ptypestringhost产品类型
didint 订单编号
tidint2交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<bid>业务编号<bid>
		<pwd>FTP密码</pwd>
		<createDate >开通时间</createDate >
		<overDate>到期时间</overDate>
		<ip>IP地址</ip>
                <identify>业务标识</identify>
		<domainName>域名</domainName>
		<ftpName>ftp名</ftpName>
		<ftp_address>ftp地址</ftp_address>
		<servicepasswd>服务密码</servicepasswd>
		<serviceCode>服务码</serviceCode>
	</info>
</result>

JSON返回值格式

{
	"code":"0",
	"info":{
		  "bid":业务编号,
		  "pwd":"FTP密码",
		  "createDate":"时间",
		  "overDate":"时间",
		  "ip":"IP地址",
                  "identify":"业务标识",
		   "ftpName":ftp名,
		   "ftp_address":ftp地址,
		   "domainName":域名,
		   "servicepasswd":"AAAaaa111",
		   "serviceCode":"G20180"
	}
}

3、续费主机

备注:主机续费时,会把虚拟主机的增值产品自动续费。

参数参数类型参数值参数描述
ptypestringhost产品类型
bidint 业务编号
yidint12(一年)、24(二年)、36(三年)、48(四年)、60(五年)、120(十年)续费时间
tidint3交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
	 <overDate>到期时间</overDate>
	</info>
</result>

JSON返回值格式

{
	"code":"0",
	"info":{
          "overDate":"到期时间"
        }
}

4、升级主机

参数参数类型参数值参数描述
ptypestringhost产品类型
bidint 业务编号
pnamestringhost.gr.A(个人A型)
host.gr.B(个人B型)
host.qy.B(企业B型)
升级产品名称
tidint4交易id

注意:只有企业A型能升级为企业B型,免费主机能升级到个人A/B型

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
</result>

JSON返回值格式

{
	"code":"0"
}

5、获取主机信息

参数参数类型参数值参数描述
ptypestringhost产品类型
bidint 业务编号
tidint5交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<domainName>域名</domainName>
		<system>操作系统</system>
		<configure>配置</configure>
		<ip>IP地址</ip>
		<siteState>站点状态</siteState>(0未启用,1启用)
		<createDate>创建时间</createDate>
		<overDate>到期时间</overDate>
		<ftpName>FTP账号</ftpName>
		<spaceSize>空间大小</spaceSize>
		<nowSpaceSize>已使用空间大小</nowSpaceSize>
		<bandwidth>带宽限制</bandwidth>
		<maxConnect>最大连接数</maxConnect>(0代表无限制)
		<webservice>WEB服务</webservice>(iis6.0,iis7.0,apache2)
	</info>
</result>

JSON返回值格式

{
	"code":"0"
	info":
	{
		  "domainName":"域名",
			"system":"操作系统",
			"configure":"配置",
			"ip":"Ip地址",
			"siteState":"站点状态", (0未启用;1启用)
			"createDate":"创建时间",
			"overDate":"到期时间",
			"ftpName"FTP账号",
			"spaceSize":"空间大小",
			"nowSpaceSize":"已使用空间大小",
			"bandwidth":"带宽限制",
			"maxConnect":"最大连接数",
			"webservice":"WEB服务", (iis6.0,iis7.0,apache2)
	}
}

6、增值主机

参数参数类型参数值参数描述
ptypestringhost产品类型
bidint 业务编号
pnamestring zengzhi.kongjian(增加空间)
zengzhi.liuliang(增加流量)
zengzhi.subsite(增值子站点个数)
zengzhi.ip(独立IP)
zengzhi.beifen(定时备份)
产品名称
sizeint 增加空间size不小于100,且为100的倍数
ip和定时备份只能增值一次
子站点个数size大于0
增值流量不小于1000且为1000的倍数
增值大小
tidint8交易id

注意事项:

  1. Linux系统的国内不能增值定时备份

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
</result>

JSON返回值格式

{
	"code":"0"
}

7、主机试用申请

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringhost.mf.I(免费I型)
host.gr.A(个人A型)
host.gr.B(个人B型)
host.qy.A(企业A型)
host.qy.B(企业B型)
产品名称
systemTypeint0:linux 1:windows (默认为windows)系统类型
tidint10交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<did>订单编号</did>
		<czxt>操作系统</czxt>
	</info>
</result>

JSON返回值格式

{
	"code":"0" ,
	"info":
	{
		"did": 订单编号,
		"czxt":操作系统
	}
}

8、主机转正交易

参数参数类型参数值参数描述
ptypestringhost产品类型
bidint业务编号
yidint12(一年)、24(二年)、36(三年)、48(四年)、60(五年)、120(十年)购买期限
tidint11交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<createDate>开通时间</createDate>
		<overDate>到期时间</overDate>
	</info>
</result>

JSON返回值格式

{
	"code":"0" ,
	"info":
	{
		"createDate":"开通时间",
		"overDate":"到期时间"
	}
}

9、设置站点首页

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringdefaultpage业务名称
bidint 业务编号
input_namestring后缀html、htm、asp、aspx、php、jsp和shtml首页名称
请按照先后顺序排列
以”,”隔开设置所有的站点首页
tidint13交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
</result>

JSON返回值格式

{
	"code":"0"
}

10、修改FTP密码

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringchangeftppass业务名称
bidint 业务编号
passwordstring字母与数字组合,长度6到20位新FTP密码
tidint13交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
</result>

JSON返回值格式

{
	"code":"0"
}

11、关闭开启站点

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringchangesite业务名称
bidint 业务编号
input_nameint0:关闭站点;1:开启站点操作类型
tidint13交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
</result>

JSON返回值格式

{
	"code":"0"
}

12、添加绑定域名

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringbindingdomain业务名称
bidint 业务编号
input_namestring域名(只能绑定一个)不能出现特殊字符域名名称
idnumstring备案号,企业型主机必传
tidint13交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<bid>业务编号</>
		<allBindingSiteName>所有绑定域名</ allBindingSiteName >
	</info>
</result>

JSON返回值格式

{
	"code":"0",
	"info":{
		"bid":业务编号",
		"allBindingSiteName ":所有绑定域名"
		}
}

14、删除错误页面

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringremoveErrorpage业务名称
bidint 业务编号
errorpage_codeint403(禁止访问页面)
404(网页未找到页面)
500(内部错误页面)
503(服务不可用页面)
错误页面代码
tidint13交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
</result>

JSON返回值格式

{
	"code":"0"
}

15、开通虚拟主机数据库

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringopen.database业务名称
passwordstring6-32位的字母、数字或特殊符号数据库密码
sizeint最小5M数据库大小
bidint 业务编号
input_namestring数据库名称只能输入30个以内的字母数据库名称
tidint12交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		  <databaseId>数据库业务编号</databaseId >
		  <databaseName>数据库名字</databaseName >
		  <loginName>登陆用户</loginName >
		  <loginPwd>登陆密码<loginPwd>
	</info>
</result>

JSON返回值格式

{
	"code":"0",
	"info":{
			"databaseId ":数据库业务编号,
			"databaseName":"数据库名字",
			"loginName":"登陆用户",
			"loginPwd":"登陆密码"
		}
}

16、删除绑定域名

参数参数类型参数值参数描述
ptypestringhost产品类型
pnamestringremovedomain业务名称
bidint 业务编号
input_namestring 要删除的域名
tidint13交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
	      <bid>业务编号</>
	      <allBindingSiteName>所有绑定域名</ allBindingSiteName >
	</info>
</result>

JSON返回值格式

{
	"code":"0",
	"info":{
		  "bid":业务编号,
		  "allBindingSiteName":”所有绑定域名"
		}
}
}

17、同步主机信息

参数参数类型参数值参数描述
ptypestringhost产品类型
bidint业务编号
tidint18交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	  <code>0</code>
	  <info>
		<addValue>
			<node>
			<appSize>增值总大小</appSize>
			<appUnit>增值单位</appUnit>
			<appDate>增值时间</appDate>
			<appTimeLimit>增值服务期限</appTimeLimit>
			<ip>增值IP(仅增值IP时返回)</ip>
			</node>
		</addValue>
		<expir>
			<overDate>到期时间</overDate>
			<payTerm>购买期限单位(月)</payTerm>
			<createDate>创建时间</createDate>
			<status>业务状态0:1:正常 2:待删除,3:已过期</status>
			<productName>产品名称(Linux)</productName>
			<bid>业务编号</bid>
			<isTest>是否是试用0:试用1:购买</isTest>
			<domain>业务标识</domain>
			<ip>IP地址</ip>
			<pwd>ftp密码</pwd>
			<czxt>操作系统</czxt>
		</expir>
		<config>
			<flowUsed>已使用流量</flowUsed>
			<bindDomain>绑定域名</bindDomain>
			<spaceSize>空间大小</spaceSize>
			<flow>流量</flow>
			<isSupportPO>是否支持邮局,0:不支持1:支持</isSupportPO>
			<bandwidth> 带宽限制,k</bandwidth>
			<dbNumber>数据库个数</dbNumber>
			<domain>业务标识</domain>
			<dbSize>数据库总大小,单位:M</dbSize>
			<productName>产品名称(Linux)</productName>
			<defaultPage>默认页</defaultPage>
			<ipAddress>IP地址</ipAddress>
			<spaceUsed>空间已使用大小</spaceUsed>
			<threedomain>三级域名</threedomain>
		</config>
		<identification>
			<authentication>false</authentication>
		</identification>
	  </info>
</result>

JSON返回值格式

{
	"code":0,
  "info":{
  "addValue":[
   {
		"appName":"增值产品名称",
		"appSize":增值大小,
		"appUnit":"增值单位",
		"appDate":增值时间,
		"appTimeLimit":"增值服务期限",
		"ip":增值IP(仅增值IP时返回)
		}],
   "expir":{
		"overDate":"到期时间",
		"payTerm":"购买期限",单位(月)
		"createDate":"创建时间"
		"status":业务状态,0:1:正常 2:待删除,3:已过期
		"productName":产品名称,
		"bid":业务编号,
		"isTest":是否是试用,0:试用1:购买
		"domain":业务标识,
		"ip":IP地址,
		"pwd":ftp密码,
		"czxt":操作系统
		},
   "config":{
		"flowUsed":已使用流量,
		"bindDomain":"绑定域名",
		"spaceSize":空间总大小,
		"flow":"流量限制",
		"isSupportPO":是否支持邮局, ,0:不支持,1支持。
		"bandwidth": "带宽限制",k,
		"dbNumber":数据库个数,
		"domain":"业务标识",
		"dbSize":"数据库总大小",单位:M,
		"productName":"产品名称",
		"defaultPage":"默认页",
		"ipAddress":"IP地址",
		"spaceUsed":空间已使用大小,
		"threedomain":三级域名
	  },
	"identification": {
		"authentication": "false"
	}
 }
}

18、通过订单ID同步业务信息

备注:该方法用于处理开通失败的主机业务,经后台手动开通后的,同步业务信息

参数参数类型参数值参数描述
ptypestringhost、cloudVirtual、usahost、hkhost、dedehost产品类型
didint 订单编号
tidint7交易id

XML返回值格式

<? XML version="1.0" encoding="UTF-8" ?>
<result>
	<code>0</code>
	<info>
		<expir>
			<overDate>到期时间</overDate>
			<payTerm>购买期限单位(月)</payTerm>
			<createDate>创建时间</createDate>
			<status>业务状态0:1:正常 2:待删除,3:已过期</status>
			<productName>产品名称(Linux)</productName>
			<bid>业务编号</bid>
			<isTest>是否是试用0:试用1:购买</isTest>
			<domain>业务标识</domain>
			<ip>IP地址</ip>
			<pwd>ftp密码</pwd>
		</expir>
		<config>
			<flowUsed>已使用流量</flowUsed>
			<pOSpace>邮局总空间</pOSpace>
			<bindDomain>绑定域名</bindDomain>
			<pOCount>邮局总数</pOCount>
			<spaceSize>空间大小</spaceSize>
			<flow>流量</flow>
			<isSupportPO>是否支持邮局,0:不支持1:支持</isSupportPO>
			<bandwidth> 带宽限制,k</bandwidth>
			<dbNumber>数据库个数</dbNumber>
			<domain>业务标识</domain>
			<dbSize>数据库总大小,单位:M</dbSize>
			<productName>产品名称(Linux)</productName>
			<mailCount>邮箱总数</mailCount>
			<defaultPage>默认页</defaultPage>
			<ipAddress>IP地址</ipAddress>
			<spaceUsed>空间已使用大小</spaceUsed>
			<threedomain>三级域名</threedomain>
		</config>
		<identification>
			<authentication>false(true已实名,false未实名)</authentication>
		</identification>
	  </info>
</result>

JSON返回值格式

{
	"code":"0",
	"info":{
          "expir":{
		"overDate":"到期时间",
		"payTerm":"购买期限",单位(月)
		"createDate":"创建时间"
		"status":业务状态,0:1:正常 2:待删除,3:已过期
		"productName":产品名称,
		"bid":业务编号,
		"isTest":是否是试用,0:试用1:购买
		"domain":业务标识,
		"ip":IP地址,
		"pwd":ftp密码
		},
           "config":{
		"flowUsed":已使用流量,
		"pOSpace":"邮局总空间",
		"bindDomain":"绑定域名",
		"pOCount":邮局总数,
		"spaceSize":空间总大小,
		"flow":"流量限制",
		"isSupportPO":是否支持邮局, ,0:不支持,1支持。
		"bandwidth": "带宽限制",k,
		"dbNumber":数据库个数,
		"domain":"业务标识",
		"dbSize":"数据库总大小",单位:M,
		"productName":"产品名称",
		"mailCount":"邮箱总数",
		"defaultPage":"默认页",
		"ipAddress":"IP地址",
		"spaceUsed":空间已使用大小
		"threedomain":三级域名
	  }
	  "identification":{
			"authentication":"false"
	}
 }
}
start/virtualhost.txt · 最后更改: 2018/06/27 02:01 (外部编辑)