Skip to main content

ListClients

ListClients retrieves a collection of client compliance profiles.

This method is useful for fetching multiple client records at once. Note: This endpoint does not currently support pagination or filtering.

Method Options​

Authorisation specification of the ListClients method.

TypeMETHOD_TYPE_READ
Access LevelMETHOD_ACCESS_LEVEL_AUTHORISED
Roles
  • ROLE_COMPLIANCE_ADMIN
  • ROLE_COMPLIANCE_VIEWER
  • ROLE_COMPLIANCE_CLIENT_ADMIN
  • ROLE_COMPLIANCE_CLIENT_VIEWER

Parameters​

Request and response parameter message overview:

Input: ListClientsRequest Message​

No parameters required.

Returns: ListClientsResponse Message​

FieldTypeDescription
Clients

meshtrade.compliance.client.v1.Client[]

A repeated field containing the client resource objects.

Code Examples​

Select supported SDK in the language of your choice for a full example of how to invoke the this method:

package main

import (
"context"
"log"

clientv1 "github.com/meshtrade/api/go/compliance/client/v1"
)

func main() {
ctx := context.Background()

// Default configuration is used and credentials come from MESH_API_CREDENTIALS
// environment variable or default discovery methods. Zero config required
// unless you want custom configuration.
service, err := clientv1.NewClientService()
if err != nil {
log.Fatalf("Failed to create service: %v", err)
}
defer service.Close()

// Create request with service-specific parameters
request := &clientv1.ListClientsRequest{
// FIXME: Populate service-specific request fields
}

// Call the ListClients method
response, err := service.ListClients(ctx, request)
if err != nil {
log.Fatalf("ListClients failed: %v", err)
}

// FIXME: Add relevant response object usage
log.Printf("ListClients successful: %+v", response)
}

Advanced Configuration​

For advanced client configuration options (custom endpoints, TLS settings, timeouts), see the SDK Configuration Guide.

Other Methods​