Skip to main content

Get service list

Gets a list of available services

Function GetServiceList(Val Connection, Val Tls = Undefined) Export

ParameterCLI optionTypeRequiredDescription
Connection--connArbitraryExisting connection or connection parameters
Tls--tlsStructure Of KeyAndValueTLS settings, if necessary. See GetTlsSettings

Returns: Map Of KeyAndValue - Processing result

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);
Result = OPI_GRPC.GetServiceList(Connection);
    # JSON data can also be passed as a path to a .json file

oint grpc GetServiceList \
--conn "{'address':'https://grpcb.in:9001','proto':{'main.proto':'https://hut.openintegrations.dev/test_data/grpcbin.proto'}}"
Result
{
"data": [
"grpcbin.GRPCBin"
],
"result": true
}