Invoke

Calls an external backend service and processes the response.

Use the Invoke policy to call an external backend service and route the response back into the assembly for further processing.

For more information on the policy parameter descriptions, see DataPower Nano Gateway documentation.

Example of an Invoke policy in code view for an MCP server.

kind: Invoke
apiVersion: api.ibm.com/v1
metadata:
  name: invoke
  namespace: DPNano_Product_MCPServer
  version: "1.0"
  tags: []
  labels:
    gatewayTypes:
      - nano
spec:
  endpoint:
    http:
      target:
        tlsClientProfile: tls-client-profile-default:1.0.0
        url: "'https://sample-api.eu-west-a.apiconnect.automation.ibm.com/environment' & $pathAndQuery()"
        urlType: jsonata
        persistentConnections: false
        timeout: 30
        decompressResponse: false
        followRedirects: false
        chunkedUpload: false