{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"CreateAKSKCertificate":{"properties":{"description":{"description":"凭证描述,字符串最大长度为500。","example":"this is for RTMP","type":"string"},"name":{"description":"凭证名称。长度为1~32,可以包含字母、数字、中划线(-)或者下划线(_),不能包含其他的特殊字符。","example":"aksk_1","type":"string"}},"required":["name"]},"CreateAKSKCertificateResponseBody":{"properties":{"access_key":{"description":"凭证AK。","example":"ALKJOWLKJSDNFGO******KSJDF","type":"string"},"created_at":{"description":"凭证创建时间。","example":"2018-10-25T11:45:01Z","type":"string"},"description":{"description":"凭证描述。","example":"this is for RTMP","maxLength":500,"minLength":0,"type":"string"},"name":{"description":"凭证名称。","example":"aksk_1","maxLength":32,"minLength":1,"pattern":"^[A-Za-z0-9\\-_]*","type":"string"},"secret_key":{"description":"凭证SK。","example":"TT1S1HXRQVS8ADCW9J**********Q68YOJREADUHAL9BUR0LVYWWUSGM********","type":"string"},"updated_at":{"description":"凭证更新时间。","example":"2018-10-25T11:45:01Z","type":"string"}}}},"description":null,"group_id":"5346b7c1dc284228a28795d5bcbd550d","host":"vis.cn-north-4.myhuaweicloud.com","id":"42e80689442e440d92f9241b4852ec3a","info_version":"v1","method":"post","name":"CreateAkskCertificate","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/aksks":{"post":{"consumes":[],"deprecated":false,"description":"该接口用于创建AK/SK凭证,AK/SK用于RTMP视频流推流时的鉴权。","operationId":"CreateAkskCertificate","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":"CreateAKSKCertificate","required":false,"schema":{"$ref":"#/definitions/CreateAKSKCertificate"}}],"produces":[],"responses":{"201":{"description":"正常","examples":{"application/json":{"access_key":"ALKJOWLKJSDNFGO******KSJDF","created_at":"2018-10-25T11:45:01Z","description":"this is for RTMP","name":"aksk_1","secret_key":"TT1S1HXRQVS8ADCW9J**********Q68YOJREADUHAL9BUR0LVYWWUSGM********","updated_at":"2018-10-25T11:45:01Z"}},"schema":{"$ref":"#/definitions/CreateAKSKCertificateResponseBody"}},"400":{"description":"请求错误","examples":{"application/json":{"error_code":"VIS.0005","error_msg":"The request param is wrong, name contains illegal characters"}}}},"summary":"创建AK/SK凭证","tags":["凭证管理"],"x-apiexplorer-hide":"N","x-is-registered":"Y","x-name":"创建AK/SK凭证","x-request-examples-1":{"description":"this is for RTMP","name":"aksk_1"},"x-request-examples-url-1":"POST /v1/3266392d188c47d09948b1**********/credentials/aksks","x-support-sdk":"Y"}}},"product_short":"VIS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建AK/SK凭证","tags":"凭证管理","uri":null,"version":"2.0"}