Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • proto_id

    string or integer

    required


    ID of the APISIX proto resource, which contains the protocol buffer definitions.

  • service

    string

    required


    Name of the gRPC service.

  • method

    string

    required


    Method name of the gRPC service.

  • deadline

    number

    default: 0


    Deadline for the gRPC service in ms. This is the time APISIX will wait for a gRPC call to complete.

  • pb_option

    array[string]

    default: ["enum_as_name", "int64_as_number", "auto_default_values", "disable_hooks"]


    Encoder and decoder options. The option can be configured as an array of one or more of the below values:

    For enum as result: enum_as_name, enum_as_value

    For int64 as result: int64_as_number, int64_as_string, int64_as_hexstring

    For default values: auto_default_values, no_default_values, use_default_values, use_default_metatable

    For hooks: enable_hooks, disable_hooks

  • show_status_in_body

    boolean

    default: false


    If true, display the parsed grpc-status-details-bin in the response body.

  • status_detail_type

    string


    The message type corresponding to the details part of grpc-status-details-bin. If not specified, the error message will not be decoded.

  • max_resp_body_size

    integer

    default: 67108864


    Maximum response body size in bytes buffered into memory for transcoding. Larger responses are truncated. Available in API7 Enterprise from version 3.9.17 on the 3.9 line and from version 3.10.4 on the 3.10 line.