调用DescribeUserConfigs获取用户相应的配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeUserConfigs |
操作接口名,系统规定参数。取值:DescribeUserConfigs。 |
Config | String | 是 | oss |
需要查询的配置,支持持单个查询。当前支持oss、green_manager、waf、cc_rule、ddos_dispatch、edge_safe、blocked_regions、http_acl_policy、bot_manager和ip_reputation配置。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Configs | Struct |
对应的配置数据。 |
|
GreenManagerConfig | Struct |
图片鉴黄功能配置。 |
|
Quota | String | 500 |
配额。 |
Ratio | String | 20% |
配额占比。 |
OssLogConfig | Struct |
OSS日志存储配置。 |
|
Bucket | String | Buckettest |
存储空间名称。 |
Enable | String | off |
是否开启存储空间。 |
Prefix | String | test |
前缀。 |
WafConfig | Struct |
WAF功能配置。 |
|
Enable | String | on |
是否开启WAF功能。 |
RequestId | String | 9BCC7BAA-ACBE-45E5-83F0-98BF7E693E84 |
请求ID。 |
示例
请求示例
http://cdn.aliyuncs.com/?Action=DescribeUserConfigs
&Config="oss"&<公共请求参数>
正常返回示例
XML
格式
<DescribeUserConfigsResponse>
<RequestId>9BCC7BAA-ACBE-45E5-83F0-98BF7E693E84</RequestId>
<Configs>
<OssLogConfig>
<Enable>off</Enable>
<Bucket>Bucket2</Bucket>
<Prefix>test</Prefix>
</OssLogConfig>
<GreenManagerConfig>
<Quota>500</Quota>
<Ratio>20%</Ratio>
</GreenManagerConfig>
<WafConfig>
<Enable>on</Enable>
</WafConfig>
</Configs>
</DescribeUserConfigsResponse>
JSON
格式
{
"RequestId": "9BCC7BAA-ACBE-45E5-83F0-98BF7E693E84",
"Configs": {
"OssLogConfig": {
"Enable": "off",
"Bucket": "Bucket2",
"Prefix": "test"
},
"GreenManagerConfig": {
"Quota": "500",
"Ratio": "20%"
},
"WafConfig": {
"Enable": "on"
}
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingConfig | The input parameter Config that is mandatory for processing this request is not supplied. | 参数Config为必填。 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交