Access filter information.

Returns information about the specified access filter. For more information on access filters, see this article.

Request

GET

https://api-metrika.yandex.net/management/v1/counter/{counterId}/access_filter/{accessFilterId}

Path parameters

Name

Description

accessFilterId

Type: integer

ID of the filter whose details you want to get.

counterId

Type: integer

Counter ID.

Responses

200 OK

OK

Body

application/json
{
  "access_filter": {
    "id": 0,
    "counter_id": 0,
    "name": "example",
    "expression": "example",
    "interface_value": "example",
    "create_time": "2025-01-01T00:00:00Z"
  }
}

Name

Description

access_filter

Type: AccessFilterDto

Access filter.

Example
{
  "id": 0,
  "counter_id": 0,
  "name": "example",
  "expression": "example",
  "interface_value": "example",
  "create_time": "2025-01-01T00:00:00Z"
}

AccessFilterDto

Access filter.

Name

Description

counter_id

Type: integer

Counter ID.

create_time

Type: string<date-time>

Date created of the access filter in yyyy-MM-dd'T'HH:mm:ssXXX format.

Example: 2025-01-01T00:00:00Z

expression

Type: string

An expression that matches the value of the "filters" parameter.

Min length: 1

Max length: 65535

Example: example

id

Type: integer

Access filter ID.

interface_value

Type: string

Min length: 1

Max length: 65535

Example: example

name

Type: string

Access filter name.

Min length: 1

Max length: 255

Example: example

Example
{
  "id": 0,
  "counter_id": 0,
  "name": "example",
  "expression": "example",
  "interface_value": "example",
  "create_time": "2025-01-01T00:00:00Z"
}

No longer supported, please use an alternative and newer version.