Listing all Security Objects

The getSecurityObjects API returns a list of all security objects that the currently authorized entity can access. This supports some filter and sort parameters.

C#

SecurityObjectsApi sObjectApi = new SecurityObjectsApi();
List<KeyObject> sObjects = sObjectApi.GetSecurityObjects();

Go

keys, err := client.ListSobjects(ctx, nil)

Java

SecurityObjectsApi sobjectsApi = new SecurityObjectsApi();
List<KeyObject> allKeys = sobjectsApi.getSecurityObjects(null, null, null);

Python

api_instance = sdkms.v1.SecurityObjectsApi(api_client=client)
sobjects = api_instance.get_security_objects()

REST API using curl

curl <Endpoint URL>/crypto/v1/keys -H 'Authorization: Bearer YhXwwa-6C...ig5g'