Cmdlet
Invoke-IntelligenceXRpc
Invokes a raw JSON-RPC method directly against app-server.
Examples
Example 1
Invoke-IntelligenceXRpc -Method "thread/list" -Params @{ limit = 10 }
Call a raw RPC method
Example 2
Invoke-IntelligenceXRpc -Method "config/read"
Read config using raw JSON-RPC
Example 3
Invoke-IntelligenceXRpc -Method "command/exec" -Params @{ command = "dotnet --info"; cwd = (Get-Location).Path }
Call an RPC method with nested parameters
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Invoke-IntelligenceXRpc -Method <string> [-Client <IntelligenceXClient>] [-Params <object>] [<CommonParameters>]#Parameters
- Method string
- JSON-RPC method name (for example thread/list).
- Client IntelligenceXClient
- Client instance to use. Defaults to the active client.
- Params object
- Optional method parameters supplied as a PowerShell object/hashtable.
Outputs
IntelligenceX.Json.JsonValue