创建筛选条件。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
resourcecenter:CreateFilter |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| FilterName |
string |
是 |
筛选条件名称。 |
我的筛选条件。 |
| FilterConfiguration |
string |
是 |
筛选条件。 |
{ "regions": [], "tagFilters": [ [{ "type": "notContainTagKey", "tagKey": "xxx", "tagValue": "" }], [{ "tagKey": "xxx", "tagValue": "xxx" }] ], "resourceTypes": [ "ACS::ECS::AutoSnapshotPolicy" ] } |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
EEF1EE1F-50F6-5494-B3DA-8F597DEB31BF |
示例
正常返回示例
JSON格式
{
"RequestId": "EEF1EE1F-50F6-5494-B3DA-8F597DEB31BF"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 409 | InvalidParameter.FilterConfiguration | The specified parameter FilterConfiguration is not valid. | 参数 FilterConfiguration 不合法。 |
| 409 | AlreadyExists.FilterName | The filter name of current user already exists. | FilterName已经存在。 |
| 409 | LengthExceedLimit.FilterConfiguration | The length of parameter FilterConfiguration exceed limit. | 参数 FilterConfiguration 长度超过限制。 |
| 409 | LengthExceedLimit.FilterName | The length of parameter FilterName exceed limit. | 参数 FilterName 长度超过限制。 |
| 409 | ExceedLimit.User.Filter | The maximum number of Filters is exceeded. | 用户 Filter 数量超出上限。 |
| 409 | InvalidParameter.FilterName | The specified parameter FilterName is not valid. | 参数 FilterName 不合法。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?