huawei-cloud-api-definitions-VIS 0.1.20240402

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"CreateDeviceCertificate":{"properties":{"description":{"description":"凭证描述,长度不超过500个字符。","example":"","type":"string"},"password":{"description":"凭证密码。长度为8位~32位的字符串,至少包含以下三种字符:大写字母、小写字母、数字和特殊字符(@#_-*)。密码不能与凭证用户名相同,也不能与用户名的倒序相同。","example":"123us****","type":"string"},"type":{"description":"凭证类型,可选值如下。\n- NORMAL:非匿名,表示当使用该凭证作为设备凭证时,使用凭证指定的username作为用户名。\n- ANONYMOUS:匿名,表示当使用该凭证作为设备凭证时,使用设备的ID作为用户名。\n\n不区分大小写,该参数默认值为NORMAL。","example":"NORMAL","type":"string"},"username":{"description":"凭证用户名,全局唯一。\n- 当type为NORMAL(非匿名)时,该参数必选。\n- 当type为ANONYMOUS(匿名)时,该参数被忽略。长度为1~32,可以包含字母、数字,不能包含其他的特殊字符。","example":"0000","type":"string"}},"required":["username","password"]},"CreateDeviceCertificateResponseBody":{"properties":{"created_at":{"description":"凭证创建时间。","example":"2018-10-25T11:45:01Z","type":"string"},"description":{"description":"凭证描述。","example":"this is for device","type":"string"},"type":{"description":"凭证类型。","example":"normal","type":"string"},"updated_at":{"description":"凭证更新时间。","example":"2018-10-25T11:45:01Z","type":"string"},"username":{"description":"凭证用户名。","example":"0000","type":"string"}}}},"description":null,"group_id":"5346b7c1dc284228a28795d5bcbd550d","host":"vis.cn-north-4.myhuaweicloud.com","id":"0cbecd91925d448f8b691c7e4b0fa539","info_version":"v1","method":"post","name":"CreateDeviceCertificate","parameters":{"Authorization":{"description":"使用AK/SK方式认证时必选,携带的鉴权信息。","in":"header","maxLength":256,"minLength":1,"name":"Authorization","required":false,"type":"string","x-example":"SDK-HMAC-SHA256 Access=xxx, SignedHeaders=content-type;host;x-sdk-date, Signature=xxx"},"X-Auth-Token":{"description":"普通租户的token。","in":"header","maxLength":10240,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string"},"X-Project-Id":{"description":"使用AK/SK方式认证时必选,携带项目ID信息。","in":"header","maxLength":64,"minLength":1,"name":"X-Project-Id","required":false,"type":"string","x-example":"70b76xxxxxx34253880af501cdxxxxxx"},"X-Sdk-Date":{"description":"使用AK/SK方式认证时必选,请求的发生时间。","in":"header","maxLength":256,"minLength":1,"name":"X-Sdk-Date","required":false,"type":"string","x-example":"20191115T033655Z"},"project_id":{"description":"项目ID,获取方法请参考[获取项目ID](https://support.huaweicloud.com/api-vis/vis_03_0005.html)","in":"path","maxLength":32,"minLength":32,"name":"project_id","required":true,"type":"string"}},"paths":{"/v1/{project_id}/credentials/codes":{"post":{"consumes":[],"deprecated":false,"description":"该接口用于创建GB/T28181凭证,该凭证用于GB/T28181设备注册时使用。","operationId":"CreateDeviceCertificate","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/Authorization"},{"$ref":"#/parameters/X-Sdk-Date"},{"$ref":"#/parameters/X-Project-Id"},{"description":"更新设备通道接入策略请求体\"","in":"body","name":"CreateDeviceCertificate","required":false,"schema":{"$ref":"#/definitions/CreateDeviceCertificate"}}],"produces":[],"responses":{"201":{"description":"正常","examples":{"application/json":{"created_at":"2018-10-25T11:45:01Z","description":"this is for device.","type":"normal","updated_at":"2018-10-25T11:45:01Z","username":"0000"}},"schema":{"$ref":"#/definitions/CreateDeviceCertificateResponseBody"}},"400":{"description":"请求错误","examples":{"application/json":{"error_code":"VIS.0005","error_msg":"The request param is wrong, name contains illegal characters."}}}},"summary":"创建GB/T28181凭证","tags":["凭证管理"],"x-apiexplorer-hide":"N","x-is-registered":"Y","x-name":"创建GB/T28181凭证","x-request-examples-1":{"description":"this is for device.","password":"********","type":"NORMAL","username":"0000"},"x-request-examples-url-1":"POST /v1/3266392d188c47d09948b1**********/credentials/codes","x-support-sdk":"Y"}}},"product_short":"VIS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建GB/T28181凭证","tags":"凭证管理","uri":null,"version":"2.0"}