REST::send

Description

Send a rest request locally to the Big-IP REST Framework.
Note: The response from this request will not be available within the iRule.

Syntax

REST::send -method "<method>" "<uri>" ["<json data>"]

Valid During

ANY_EVENT

Examples

Sending a POST request to the 'shared/rpm-tasks' local REST endpoint:
     REST::send -method "POST" "/shared/rpm-tasks" "{ operation: 'QUERY' }"

 Sending a GET request to the '/shared/iapp/blocks' local REST endpoint:
     REST::send -method "GET" "/shared/rpm-tasks"

 This command only supports sending of requests, the response from this request will not be available within the iRule.

Change Log

@BIGIP-12.1.0

  • Added example to help page.

@BIGIP-11.5.0
  • First introduced the command.

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.