名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 套餐ID | |
enable_strategy | int | 是否开启策略模板 0 否 1 是 | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/planList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1",
"group": {
"id": "1",
"mid": "2",
"name": "s48-test",
"status": "1",
"note": "测试",
"created": "1417772992",
"syncdb": "0"
},
"name": "免费",
"price": "0",
"auth": {
"id": "2",
"name": "ugametool.com",
"uid": "1",
"pid": "-1",
"is_auth": "1",
"mark": "0",
"recordnum": "19",
"status": "1",
"note": "",
"createtime": "1417764139",
"updatetime": "1421478461",
"endtime": "0",
"username": "s48-test",
"type": "3",
"gid": "1",
"authid": "0",
"sub_uid": "0"
},
"strategy": "a:6:{i:0;s:4:\"auto\";i:1;s:3:\"isp\";i:2;s:10:\"isp_region\";i:3;s:12:\"isp_province\";i:4;s:8:\"isp_city\";i:5;s:4:\"null\";}",
"enable_strategy": "0",
"strategy_num": "0",
"strategy_template_num": "0",
"record_num": "1000",
"monitor_num": "100",
"monitor_retry": "a:4:{i:0;i:3;i:1;i:5;i:2;i:7;i:3;i:10;}",
"monitor_interval": "a:3:{i:0;i:3;i:1;i:5;i:2;i:10;}",
"monitor_notice": "a:1:{i:0;s:4:\"mail\";}",
"createtime": "2015-02-04 13:35",
"createtime_ago": "1月前"
},
{
"id": "3",
"group": {
"id": "1",
"mid": "2",
"name": "s48-test",
"status": "1",
"note": "测试",
"created": "1417772992",
"syncdb": "0"
},
"name": "企业",
"price": "298",
"auth": {
"id": "10",
"name": "veryns.com",
"uid": "1",
"pid": "-1",
"is_auth": "1",
"mark": "0",
"recordnum": "4",
"status": "1",
"note": "",
"createtime": "1419563825",
"updatetime": "1421300336",
"endtime": "0",
"username": "root",
"type": "3",
"gid": "1",
"authid": "0",
"sub_uid": "0"
},
"strategy": "a:5:{i:0;s:4:\"auto\";i:1;s:10:\"isp_region\";i:2;s:12:\"isp_province\";i:3;s:8:\"isp_city\";i:4;s:4:\"null\";}",
"enable_strategy": "1",
"strategy_num": "5",
"strategy_template_num": "10",
"record_num": "100",
"monitor_num": "10",
"monitor_retry": "a:2:{i:0;i:1;i:1;i:3;}",
"monitor_interval": "a:4:{i:0;i:1;i:1;i:3;i:2;i:5;i:3;i:10;}",
"monitor_notice": "a:1:{i:0;s:4:\"mail\";}",
"createtime": "2015-02-02 11:28",
"createtime_ago": "1月前"
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 9:20:28"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 域名ID | |
mark | int | 星标域名 0否 1是 | |
status | int | 状态 1开启 2暂停 3异常 | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "4412345678",
"name": "111.com",
"group_id": "1",
"type": "1",
"plan_id": "1",
"plan_name": "免费",
"plan_enable_strategy": "0",
"plan_price": "0",
"mark": "0",
"recordnum": "3",
"status": "1",
"note": "dddd",
"createtime": "2015-02-13 14:50",
"createtime_ago": "1月前",
"endtime": 0
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 9:20:28"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
domain | string | 域名 | |
pid | int | 套餐ID,获取方式见套餐列表API | |
period | int | 购买期限,单位年 | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain": "verycloud.cn", "pid": 1, "period": 1, "note": "备注"}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "6012345678",
"name": "verycloud.cn",
"plan": {
"id": "1",
"name": "免费"
}
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 域名ID | |
status | int | 状态 1开启 2暂停 |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "status": 2}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"name": "verycloud.cn",
"status": 2
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 域名ID | |
mark | int | 星标状态 0解除星标 1开启星标 |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainMark -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "mark": 1}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"name": "verycloud.cn",
"mark": 1
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 域名ID | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainNote -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "note": "备注"}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"name": "verycloud.cn",
"note": "备注"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 域名ID | |
pid | int | 套餐ID | |
period | int | 期限 |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainUpgrade -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "domain": "verycloud.cn", "pid": 2, "period": 1}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "6012345678",
"name": "verycloud.cn",
"plan": {
"id": "2",
"name": "企业"
}
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 域名ID |
curl -i -X POST https://api3.verycloud.cn/API/dns/domainDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"name": "verycloud.cn"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
status | int | 状态 0暂停 1开启 | |
recordtype | string | 记录类型 A AAAA CNAME等 | |
subdomain | string | 主机头 | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/recordList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "14843",
"subdomain": "",
"recordtype": "NS",
"domainname": "verycloud.cn",
"recordline": "默认",
"value": "ns1.ugametool.com",
"locale": "",
"real_locale": "",
"status": "1",
"mx": "0",
"ttl": "600",
"weight": "0",
"note": "",
"createtime": "2015-03-20 9:28",
"createtime_ago": "55分前",
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 2,
"created": "2015年03月20日 10:24:29"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
records | string | 记录值,格式 subdomain;recordtype;recordline;value;mx;ttl;weight,多条记录用"#"隔开 |
curl -i -X POST https://api3.verycloud.cn/API/dns/recordAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 1234567890, "records": "www;A;默认;1.1.1.1;;600;10"}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "9876543210",
"subdomain": "www",
"status": "1",
"recordtype": "A",
"recordline": "默认",
"value": "1.1.1.1",
"mx": "0",
"ttl": "600",
"weight": "10",
"locale": "(北龙中网科技有限公司)"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
record_id | int | 记录ID | |
subdomain | string | 主机头 | |
recordtype | string | 记录类型 A AAAA CNAME | |
recordline | string | 线路 | |
value | string | 记录值 | |
mx | int | MX优先级 | |
ttl | int | TTL 默认300 | |
weight | int | 权重 |
curl -i -X POST https://api3.verycloud.cn/API/dns/recordUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 1234567890, "record_id": 9876543210, "subdomain": "www", "recordtype": "A", "recordline": "默认", "value": "2.2.2.2", "mx": "", "ttl": 600, "weight": 10}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "9876543210",
"subdomain": "www",
"status": "1",
"recordtype": "A",
"recordline": "默认",
"value": "2.2.2.2",
"mx": "0",
"ttl": "600",
"weight": "10",
"locale": "FR"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
record_id | int | 记录ID | |
status | int | 状态 0 暂停 1 开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/recordStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 1234567890, "record_id": 9876543210, "status": 0}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "9876543210",
"subdomain": "www",
"status": "0"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
record_id | int | 记录ID | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/dns/recordNote -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 1234567890, "record_id": 9876543210, "note": "备注"}'
{
"code": 1,
"message": "操作完成"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
record_id | string | 记录ID,多个用“,”隔开 |
curl -i -X POST https://api3.verycloud.cn/API/dns/recordDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 1234567890, "record_id": "9876543210"}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "9876543210",
"subdomain": "www"
}
]
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 宕机检测ID | |
did | int | 域名ID | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1001234567",
"subdomain": "www",
"domain_name": "verycloud.cn",
"domain_id": "3412345678",
"recordnum": "5",
"retry": "3",
"check_interval": "3",
"host": "www.verycloud.cn",
"path": "/_detect",
"port": "80",
"protocol": "http",
"switch": "1",
"notify": "mail",
"less": "0",
"enable_delay": "1",
"delay": "5",
"other_email": "",
"other_phone": "",
"status": "1",
"createtime": "2015-02-12 13:04",
"createtime_ago": "1月前"
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 14:45:49",
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
subdomain | string | 子域名 | |
did | int | 域名ID | |
retry | int | 重试次数 默认 10 | |
interval | int | 宕机检测频率 默认10分钟 | |
host | string | 主机头 | |
path | string | 宕机检测路径 | |
port | int | 宕机检测端口 | |
switch | int | 切换规则 0不切换 1切换 默认不切换 | |
notify | string | 通知方式,mail邮件 | |
less | int | 1小时内多次宕机只通知一次,0否 1是 默认否 | |
enable_delay | int | 是否启用x分钟内宕机宕机检测不通知,0否,1是 默认否 | |
delay | int | 多少分钟内宕机不通知,如5分钟,则为5,单位分钟 | |
other_email | string | 通知其他联系人邮件,多个以逗号隔开 | |
other_phone | string | 通知其他联系人手机,多个以逗号隔开 | |
status | int | 状态 0暂停 1开启 默认开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 123456789, "subdomain": "www", "host": "www.verycloud.cn", "path": "/", "port": "80", "notify": "0001"}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1341234567",
"did": "123456789",
"subdomain": "www",
"retry": "1",
"check_interval": "1",
"host": "www.verycloud.cn",
"path": "/",
"port": "80",
"protocol": "http",
"switch": "1",
"notify": "mail",
"less": "0",
"enable_delay": "0",
"delay": "0",
"other_email": "",
"other_phone": "",
"status": "1",
"createtime": "1426834746",
"updatetime": "0",
"recordnum": "0"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
monitor_id | int | 宕机检测ID | |
subdomain | string | 子域名 | |
retry | int | 重试次数 默认 10 | |
interval | int | 宕机检测频率 默认10分钟 | |
host | string | 主机头 | |
path | string | 宕机检测路径 | |
port | int | 宕机检测端口 | |
switch | int | 切换规则 0 不切换 1 切换 默认不切换 | |
notify | string | 通知方式 | |
less | int | 1小时内多次宕机只通知一次,0否 1是 默认否 | |
enable_delay | int | 是否启用x分钟内宕机宕机检测不通知,0否,1是 默认否 | |
delay | int | 分钟内宕机不通知,如5分钟,则为5,单位分钟 | |
other_email | string | 通知其他联系人邮件,多个以逗号隔开 | |
other_phone | string | 通知其他联系人手机,多个以逗号隔开 | |
status | int | 状态 0 暂停 1 开启 默认开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "monitor_id": 123456789, "subdomain": "www", "host": "www.verycloud.cn", "path": "/", "port": "80", "notify": "0001"}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1341234567",
"did": "123456789",
"subdomain": "www",
"retry": "1",
"check_interval": "1",
"host": "www.verycloud.cn",
"path": "/",
"port": "80",
"protocol": "http",
"switch": "1",
"notify": "mail",
"less": "0",
"enable_delay": "0",
"delay": "0",
"other_email": "",
"other_phone": "",
"status": "1",
"recordnum": "0"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
monitor_id | int | 宕机检测ID | |
record_id | string | 宕机检测记录ID,多个用“,”隔开 | |
status | int | 状态 0暂停 1开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "monitor_id": 123456789, "status": 0}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "123456789",
"status": "0",
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
monitor_id | int | 宕机检测ID |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "monitor_id": 123456789}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "123456789",
"host": "www.verycloud.cn",
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
mid | int | 宕机检测ID | |
id | int | 宕机检测记录ID | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorRecordList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "mid": 123456789}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "1046902123",
"subdomain": "www",
"did": "123456789",
"retry": "3",
"check_interval": "3",
"path": "/_detect",
"host": "www.verycloud.cn",
"ip": "1.1.1.1",
"status": "1",
"createtime": "2015-02-12 13:04",
"createtime_ago": "1月前",
}
],
"limit": 1000,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 15:13:46"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 宕机检测记录ID | |
mid | int | 宕机检测ID | |
status | int | 状态 0 暂停 1 开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/monitorRecordStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "mid": 123456789, "status": 0}'
{
"code": 1,
"message": "操作完成",
"data": {
"id": "1234567890",
"mid": "123456789",
"status": "0",
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板ID | |
gid | int | 解析组ID | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "3412345678",
"name": "测试模板",
"count": "2",
"status": "1",
"pid": "3",
"planname": "企业",
"note": "",
"createtime": "2015/03/14 17:10",
"createtime_ago": "5天前",
"updatetime": 0,
"updatetime_ago": 0
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 12:58:42",
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
pid | int | 套餐ID | |
status | int | 状态 0关闭 1开启 | |
name | string | 名称 | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "pid": 3, "status": 1, "name": "测试模板", "note": "备注"}'
{
"code": 1,
"message": "操作成功",
"data": {
"id": "3712345678",
"name": "测试模板",
"pid": "3",
"note": "备注"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板ID | |
pid | int | 套餐ID | |
status | int | 状态 0关闭 1开启 | |
name | string | 名称 | |
note | string | 备注 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 3712345678, "pid": 3, "status": 1, "name": "测试模板", "note": "备注"}'
{
"code": 1,
"message": "操作成功",
"data": {
"id": "3712345678",
"name": "测试模板",
"status": "1",
"pid": "3",
"note": "备注"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板ID |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 3712345678}'
{
"code": 1,
"message": "操作成功",
"data": {
"name": "测试模板"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板ID | |
status | int | 状态 0 关闭 1 开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 3712345678, "status": 0}'
{
"code": 1,
"message": "操作成功",
"data": {
"id": "3712345678",
"name": "测试模板",
"status": "0"
}
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
tid | int | 模板ID | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempStyList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1, "tid": 1234567890}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "4612345678",
"tid": "1234567890",
"continent": "AS",
"country": "CN",
"isp": "任意",
"area": "华东",
"province": "江苏",
"city": "无锡",
"ip": "1.1.1.1",
"ip_location": "AU",
"weight": "2",
"status": "0",
"createtime": "2015-03-14 17:10",
"createtime_ago": "5天前",
"updatetime": "2015-03-20 13:15",
"updatetime_ago": "3分前"
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 13:18:29",
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
tid | int | 模板ID | |
continent | string | 大洲 | |
country | string | 国家 | |
isp | string | ISP | |
area | string | 地区 | |
province | string | 省 | |
city | string | 市 | |
ip | string | IP地址 | |
status | int | 状态 0关闭 1开启 默认开启 | |
weight | int | 权重 默认1 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempStyAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "tid": 123456789, "continent": "AS", "country": "CN", "ip": "3.3.3.3"}'
{
"code": 1,
"message": "操作成功"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板记录ID | |
tid | int | 模板ID | |
continent | string | 大洲 | |
country | string | 国家 | |
isp | string | ISP | |
area | string | 地区 | |
province | string | 省 | |
city | string | 市 | |
ip | string | IP地址 | |
status | int | 状态 0关闭 1开启 默认开启 | |
weight | int | 权重 默认1 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempStyUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60","id": 1234567890, tid": 123456789, "continent": "AS", "country": "CN", "ip": "3.3.3.3"}'
{
"code": 1,
"message": "操作成功"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板记录ID | |
tid | int | 模板ID |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempStyDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60","id": 1234567890, tid": 123456789}'
{
"code": 1,
"message": "操作成功",
"data": "ASCN"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 模板记录ID | |
tid | int | 模板ID | |
status | int | 状态 0 关闭 1 开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/tempStyStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60","id": 1234567890, tid": 123456789, "status": 0}'
{
"code": 1,
"message": "操作成功"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 解析策略ID | |
did | int | 域名ID | |
page | int | 页码 | |
limit | int | 每页条数 |
curl -i -X POST https://api3.verycloud.cn/API/dns/styList -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "limit": 30, "page": 1, "did": 3412345678}'
{
"code": 1,
"message": "操作完成",
"data": [
{
"id": "4312345678",
"domain_id": "3412345678",
"domain_name": "verycloud.cn",
"subdomain": "web",
"sty": "运营商+省",
"sty_en": "isp_province",
"maxip": "20",
"sty_count": "0",
"temp_id": 0,
"temp_name": "",
"status": "1",
"createtime": "2015-03-14 16:43",
"createtime_ago": "5天前",
}
],
"limit": 30,
"page": 1,
"totalpage": 1,
"total": 1,
"created": "2015年03月20日 13:43:20",
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
did | int | 域名ID | |
subdomain | string | 子域名 | |
sty | string | 解析策略 auto 只能分区 isp_region 运营商+大区 isp_province 运营商+省 isp_city 运营商+城市 null 关闭 | |
maxip | int | 最大返回的解析IP个数 | |
tid | int | 策略模板ID | |
status | int | 状态 0暂停 1开启 默认开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/styAdd -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "did": 3412345678, "subdomain": "www", "sty": "auto", "maxip": 1}'
{
"code": 1,
"message": "操作完成"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 解析策略ID | |
did | int | 域名ID | |
subdomain | string | 子域名 | |
sty | string | 解析策略 auto 只能分区 isp_region 运营商+大区 isp_province 运营商+省 isp_city 运营商+城市 null 关闭 | |
maxip | int | 最大返回的解析IP个数 | |
tid | int | 策略模板ID | |
status | int | 状态 0暂停 1开启 默认开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/styUpdate -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "did": 3412345678, "subdomain": "www", "sty": "auto", "maxip": 1}'
{
"code": 1,
"message": "操作完成"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 解析策略ID | |
did | int | 域名ID |
curl -i -X POST https://api3.verycloud.cn/API/dns/styDelete -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "did": 1234567890}'
{
"code": 1,
"message": "操作完成"
}
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
token | string | 密钥 | |
id | int | 解析策略ID | |
did | int | 域名ID | |
status | int | 状态 0 暂停 1 开启 |
curl -i -X POST https://api3.verycloud.cn/API/dns/styStatus -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1234567890, "did": 1234567890, "status": 0}'
{
"code": 1,
"message": "操作完成"
}