ADC Advanced Policy Expressions

API_T


API detection

This topic lists the expressions that are provided by this class.

  • PATH (String url)

    Filter the APIs by URL path.

Parameters:

        url- Traditional URL with * and ** as 'wildcard segment' and 'match all after'.

Returns: api_t

  • METHOD (String methods)

    Filter the APIs by REST method and endpoint.

Parameters:

        methods- DELETE|POST|...|GET or \*.

Returns: api_t

  • ENDPOINT (String methods, String path)

    Filter the APIs by REST method and endpoint.

Parameters:

        methods- DELETE|POST|...|GET or \*.

        path- Traditional URL with * and ** as 'wildcard segment' and 'match all after'.

Returns: api_t

  • APINAME (String endpoint)

    Filter the APIs by endpoint name.

Parameters:

        endpoint- API service name from the schema.

Returns: api_t

  • JSON

    Get the specified object as a stream.

Returns: stream_t

  • OBJECT (String name)

    Get the specified object or undef if it does not exist.

Parameters:

        name- Name to look up

Returns: api_t

  • OBJECT (String name, Unsigned LONG index)

    Get the specified object or undef if it does not exist.

Parameters:

        name- Name to look up

        index- repeated index to access

Returns: api_t

  • EXISTS

    Check existence of API.

Returns: bool_at

  • TEXT (String name)

    Access field as a string.

Parameters:

        name- Name to look up

Returns: text_t

  • TEXT (String name, Unsigned LONG index)

    Access repeated field as a string.

Parameters:

        name- Name to look up

        index- repeated index to access

Returns: text_t

  • BOOL (String name)

    Access field as a bool.

Parameters:

        name- Name to look up

Returns: bool_at

  • BOOL (String name, Unsigned LONG index)

    Access repeated field as a bool.

Parameters:

        name- Name to look up

        index- repeated index to access

Returns: bool_at

  • DOUBLE (String name)

    Access field as a double value.

Parameters:

        name- Name to look up

Returns: double_at

  • DOUBLE (String name, Unsigned LONG index)

    Access repeated field as a double value.

Parameters:

        name- Name to look up

        index- repeated index to access

Returns: double_at

  • NUM (String name)

    Access field as a signed integer.

Parameters:

        name- Name to look up

Returns: num_at

  • NUM (String name, Unsigned LONG index)

    Access repeated field as a signed integer.

Parameters:

        name- Name to look up

        index- repeated index to access

Returns: num_at

  • ULONG (String name)

    Access field as an unsigned long.

Parameters:

        name- Name to look up

Returns: unsigned_long_at

  • ULONG (String name, Unsigned LONG index)

    Access repeated field as an unsigned long.

Parameters:

        name- Name to look up

        index- repeated index to access

Returns: unsigned_long_at

API_T

In this article