Get method list
Gets a list of available methods for the specified service
- Parameters
- Advanced call ?
Function GetMethodList(Val Connection, Val Service, Val Tls = Undefined) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Connection | --conn | Arbitrary | ✔ | Existing connection or connection parameters |
| Service | --service | String | ✔ | Service name |
| Tls | --tls | Structure Of KeyAndValue | ✖ | TLS settings, if necessary. See GetTlsSettings |
Returns
Map Of KeyAndValue - Processing result
| Parameter | Description |
|---|---|
| addin_mode | Manual selection of external component connection mode (for 1C): Isolated, NotIsolated |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Address = "https://grpcb.in:9001";
Scheme = "https://hut.openintegrations.dev/test_data/grpcbin.proto"; // String, path to file or URL
Parameters = OPI_GRPC.GetConnectionParameters(Address, Scheme);
Tls = OPI_GRPC.GetTlsSettings(True);
Connection = OPI_GRPC.CreateConnection(Parameters, Tls);
Service = "grpcbin.GRPCBin";
Result = OPI_GRPC.GetMethodList(Connection, Service);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint grpc GetMethodList \
--conn "{'address':'https://grpcb.in:9001','proto':{'main.proto':'https://hut.openintegrations.dev/test_data/grpcbin.proto'}}" \
--service "grpcbin.GRPCBin"
:: JSON data can also be passed as a path to a .json file
oint grpc GetMethodList ^
--conn "{'address':'https://grpcb.in:9001','proto':{'main.proto':'https://hut.openintegrations.dev/test_data/grpcbin.proto'}}" ^
--service "grpcbin.GRPCBin"
Result
{
"data": [
"Index",
"Empty",
"DummyUnary",
"DummyServerStream",
"DummyClientStream",
"DummyBidirectionalStreamStream",
"SpecificError",
"RandomError",
"HeadersUnary",
"NoResponseUnary"
],
"result": true
}