All Products
Search
Document Center

Resource Management:CreateFilter

Last Updated:Jun 28, 2024

Creates a filter.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FilterNamestringYes

The name of the filter.

ECS
FilterConfigurationstringYes

The configurations of the filter.

{ "regions": [], "tagFilters": [ [{ "type": "notContainTagKey", "tagKey": "xxx", "tagValue": "" }], [{ "tagKey": "xxx", "tagValue": "xxx" }] ], "resourceTypes": [ "ACS::ECS::AutoSnapshotPolicy" ] }

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

EEF1EE1F-50F6-5494-B3DA-8F597DEB31BF

Examples

Sample success responses

JSONformat

{
  "RequestId": "EEF1EE1F-50F6-5494-B3DA-8F597DEB31BF"
}

Error codes

HTTP status codeError codeError messageDescription
409InvalidParameter.FilterConfigurationThe specified parameter FilterConfiguration is not valid.The FilterConfiguration parameter is invalid.
409AlreadyExists.FilterNameThe filter name of current user already exists.The name specified in the FilterName parameter already exists.
409LengthExceedLimit.FilterConfigurationThe length of parameter FilterConfiguration exceed limit.The length of the value specified for the FilterConfiguration parameter exceeds the upper limit.
409LengthExceedLimit.FilterNameThe length of parameter FilterName exceed limit.The length of the value specified for the FilterName parameter exceeds the upper limit.
409ExceedLimit.User.FilterThe maximum number of Filters is exceeded.The number of specified filters exceeds the upper limit.
409InvalidParameter.FilterNameThe specified parameter FilterName is not valid.The FilterName parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history