阅读117 返回首页    go 人物


设置鉴权__配置操作接口_API 手册_CDN-阿里云

描述

设置加速域名的访问鉴权配置

请求参数

参数名 类型 必须? 说明
Action String 操作接口名,系统规定参数,取值:SetReqAuthConfig
DomainName String 您的加速域名
AuthType String 鉴权类型,取值: “no_auth”:关闭,”type_a”:A方式,”type_b”:B方式, “type_c”:C方式
Key1 String 主鉴权key,输入大小写字母,数字,长度6到32位
Key2 String 副鉴权Key,输入大小写字母,数字,长度6到32位
Timeout String 鉴权缓存时间,支持B或C方式设置该参数,单位为秒;
URL鉴权的过期时间为指定“timestamp+timeout”;默认为1800s;

返回参数

名称 类型 描述
RequestID String 该条任务请求ID

特殊错误码

错误代码 描述 Http 状态码 语义
InvalidWeight.Malformed The specified value of parameter CacheContent is malformed. 400 指定的 Weight 值不合法(格式错误)
InvalidWeight.ValueNotSupported The specified value of parameter Weight is not supported. 400 指定的 Weight 不合法(超出可选范围)

示例

请求示例:

  1. https://cdn.aliyuncs.com/?Action=SetReqAuthConfig&DomainName=www.macaron.org.cn&AuthType=type_b&Key1=fd8eqw3Q&Key2=v83ka2np&Timeout=1000s&<公共请求参数>

返回示例

JSON格式:

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }

XML格式:

  1. <SetReqAuthConfigResponse>
  2. <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
  3. </SetReqAuthConfigResponse>

最后更新:2016-11-23 17:16:03

  上一篇:go 删除缓存策略__配置操作接口_API 手册_CDN-阿里云
  下一篇:go 设置HTTP头信息__配置操作接口_API 手册_CDN-阿里云