-
基本信息主要包含了伙伴哪些信息? 伙伴中心“基本信息”主要包含: 公司信息:伙伴在入驻HCPN时填写的商业信息和联系人信息; 账号信息:伙伴同法人下已入驻HCPN的华为云账号(包含主账号、拓渠/拓客激励账号标识)、账号已加入发展路径/计划、加入HCPN时间、账号状态等信息; 个人资料:提供当前已登录伙伴账号的账号名、绑定的手机/邮箱、安全凭证修改跳转; 消息接收设置:提供当前伙伴账号接收华为云短信、邮件、站内信的语言和时区设置。 父主题: 基本信息
-
填写导入仓库的基本信息 表1 填写导入仓库的基本信息 参数 说明 导入至代码托管路径 非必填。默认为“/”,表示不归属于任何代码组路径。用户也可以下拉框选择已有的代码组路径。 仓库名称 必填。请用户为导入的仓库命名。需要以大小写字母、数字、下划线开头,可包含大小写字母、数字、中划线、下划线、英文句点,但不能以.git、.atom或.结尾。 导入仓库可见范围 该参数为非必填。该参数表示源仓库的可见范围,包括四个选项: 私有(仓库仅对仓库成员可见,仓库成员可访问仓库或者提交代码)、“项目内成员只读”、“租户内成员只读”和“所有访客只读”。 定时同步 非必填。 如果用户勾选了此参数,导入的仓库将为镜像仓,仓库将无法提交代码,只能从源仓定时同步,并且是每24小时自动刷新一次代码,刷新内容为源仓库24小时前的内容。 如果没有使用扩展点进行导仓,则不涉及“定时同步”的配置。 父主题: 填写仓库基本信息
-
请求示例 HTTP的示例 POST /controller/campus/v4/devices/query HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC
CES S-TOKEN: x-yyyyyy
{
"discoverProtocol" : ["NETCONF","SNMP","COAP"],
"deviceGroupId" : "c43fd065268d31b8bdfcc7faaec15726",
"status" : ["NORMAL","ALARM"],
"roles" : ["Gateway","CORE"],
"types" : ["WAC","AP"],
"keyWord" : "127.0.0.1",
"name" : "AA02350",
"esn" : "DLR00000",
"model" : "P6050",
"softwareVersion" : "R020C00",
"patchVersion" : "patch001",
"manageStatus" : ["NORMAL","DEVICE_ISOLATE"],
"sortField" : "name",
"pageIndex" : "4",
"pageSize" : "20",
"createTimeBegin" : 1616554000,
"createTimeEnd" : 1616554000,
"registerTimeBegin" : 1616554000,
"registerTimeEnd" : 1616554000
}
-
响应示例 返回状态码为200:调用查询设备成功,响应体参考QueryDeviceResult。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "success",
"pageIndex" : 1,
"pageSize" : 20,
"totalRecords" : 2,
"data" : [
{
"id" : "b473118d-17ff-4f4f-9fa9-a4c0e1e87e42",
"name" : "AR1",
"esn" : "2102351BTJ0000000666",
"deviceModel" : "AR161EW",
"deviceType" : "AR",
"status" : "0",
"siteId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca",
"mac" : "",
"ip" : "192.168.0.10",
"manageIp" : "192.168.0.10",
"neType" : "AR161EW",
"version" : "V300R003C00",
"vendor" : "HUAWEI",
"description" : "HUAWEI",
"resourceId" : "HUAWEI",
"tenantId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359ca",
"tenantName" : "XXX@XXX.com",
"siteName" : "test1",
"createTime" : "2017-12-13 01:37:28",
"registerTime" : "2017-12-13 01:37:28",
"modifyTime" : "2017-12-13 01:37:28",
"startupTime" : "2017-12-13 01:37:28",
"tags" : [
""
],
"systemIp" : "192.168.1.1",
"patchVersion" : "V200R019SPH",
"ztpConfirm" : false,
"manageStatus" : "ABNORMAL",
"manageStatusDownReason" : ["NEED_ZTP_CONFIRM","DEVICE_HAS_BEEN_ISOLATED"],
"role" : ["Gateway"],
"performance" : "",
"uptime" : "0 天 1 时 10 分"
}
]
} 返回状态码为400:参数错误。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:服务内部错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 PUT /controller/campus/v3/devices/00000000-0000-0000-0000-000000000000 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"name" : "AR1",
"description" : "AR",
"resourceId" : "HUAWEI",
"siteId" : "00000000-0000-0000-0000-000000000001",
"esn" : "2102351BTJ0000000666",
"tags" : ["AP01"],
"systemIp" : "192.168.1.1",
"ztpConfirm" : true,
"role" : ["Gateway"],
"performance" : 0
}
-
响应示例 返回状态码为200:修改设备基本信息成功,响应体参考ModifyDeviceBean。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : {
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "AR1",
"description" : "AR",
"resourceId" : "HUAWEI",
"siteId" : "00000000-0000-0000-0000-000000000001",
"esn" : "2102351BTJ0000000666",
"tags" : ["AP01"],
"systemIp" : "192.168.1.1",
"ztpConfirm" : true,
"role" : ["Gateway"]
}
} 返回状态码为400:创建失败,错误请求。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:创建失败,内部服务器错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 POST /controller/campus/v3/devices/action/batch-delete HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"deviceIds" : ["00000000-0000-0000-0000-000000000001"],
"reset" : "true"
}
-
响应示例 返回状态码为200:删除设备全部成功,响应体参考BatchDeleteDeviceOut。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errCode" : "0",
"errMsg" : "Failed to delete the device",
"success" : ["00000000-0000-0000-0000-000000000001"],
"fail" : [
{
"errCode" : "0",
"errMsg" : "Failed to operate the device because it is in stack",
"id" : "00000000-0000-0000-0000-000000000001"
}
]
} 返回状态码为207:删除设备部分成功,响应体参考BatchDeleteDeviceOut。 HTTP/1.1 207 Multi-Status
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errCode" : "0",
"errMsg" : "Failed to delete the device",
"success" : ["00000000-0000-0000-0000-000000000001"],
"fail" : [
{
"errCode" : "0",
"errMsg" : "Failed to operate the device because it is in stack",
"id" : "00000000-0000-0000-0000-000000000001"
}
]
} 返回状态码为400:删除设备全部失败或参数校验异常(无响应体)。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errCode" : "0",
"errMsg" : "Failed to delete the device",
"success" : ["00000000-0000-0000-0000-000000000001"],
"fail" : [
{
"errCode" : "0",
"errMsg" : "Failed to operate the device because it is in stack",
"id" : "00000000-0000-0000-0000-000000000001"
}
]
} 返回状态码为500:服务内部错误,无响应体。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 replaceOriginalDeviceDto 是 REFERENCE 详细请参见表2。 设备替换入参模型。 - 表2 ReplaceOriginalDeviceDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 originalDeviceId 是 UUID 0~64个字符。 - 待替换设备的ID。 "00000000-0000-0000-0000-000000000001" newEsn 是 string 0~64个字符。 - 该字段必填。newEsn字段合法则替换原有esn,newEsn字段不合法将originalDeviceId对应的设备esn置空。 "2102351BTJ0000000666" newDeviceModel 否 string 0~64个字符。 - 替换设备的新款型,替换前后设备款型必须一致(交换机除外),对于交换机需要设备的款型为同一系列下的设备款型。 "S8700-6"
-
响应示例 返回状态码为200:设备替换成功,响应体参考CommonResponseBean。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : ""
} 返回状态码为400:参数错误。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:服务内部错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 POST /controller/campus/v3/devices/replacement HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"originalDeviceId" : "00000000-0000-0000-0000-000000000001",
"newEsn" : "2102351BTJ0000000666",
"newDeviceModel" : "S8700-6"
}
-
请求示例 HTTP的示例 POST /controller/campus/v3/devices/replace HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
{
"originalDeviceId" : "00000000-0000-0000-0000-000000000001",
"replaceDeviceId" : "00000000-0000-0000-0000-000000000002"
}
-
请求参数 表1 body参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 replaceDeviceDto 是 REFERENCE 详细请参见表2。 设备替换入参模型。 - 表2 ReplaceDeviceDto对象的参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 originalDeviceId 是 UUID 0~64个字符。 - 待替换设备的ID。 "00000000-0000-0000-0000-000000000001" replaceDeviceId 是 UUID 0~64个字符。 - 替换设备的ID。 "00000000-0000-0000-0000-000000000002"
-
响应参数 返回状态码为200:设备替换成功,响应体参考CommonResponseBean。 表3 CommonResponseBean对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string - - 错误码:当没有错误时返回0。 "0" errmsg string 0~256个字符。 - 接口调用结果的描述信息。 "" 返回状态码为400:参数错误。 详细信息请参见实际响应消息体。 返回状态码为500:服务内部错误。 详细信息请参见实际响应消息体。
-
响应示例 返回状态码为200:设备替换成功,响应体参考CommonResponseBean。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : ""
} 返回状态码为400:参数错误。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
返回状态码为500:服务内部错误。 HTTP/1.1 500 Internal Server Error
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive