---
title: "Details of Security Object by UUID"
slug: "dsm-example-code-details-of-security-object-by-uuid"
updated: 2024-12-10T17:35:00Z
published: 2024-12-10T17:35:00Z
canonical: "support.fortanix.com/dsm-example-code-details-of-security-object-by-uuid"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.fortanix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Details of Security Object by UUID

The `getSecurityObject` API fetches security object details by the Object UUID (Key Id).

- [C#](/docs/dsm-example-code-details-of-security-object-by-uuid#tabs-1)
- [Go](/docs/dsm-example-code-details-of-security-object-by-uuid#tabs-2)
- [Java](/docs/dsm-example-code-details-of-security-object-by-uuid#tabs-3)
- [Python](/docs/dsm-example-code-details-of-security-object-by-uuid#tabs-4)
- [REST API using curl](/docs/dsm-example-code-details-of-security-object-by-uuid#tabs-5)

### C#

```bash
SecurityObjectsApi sObjectApi = new SecurityObjectsApi();
KeyObject key = sObjectApi.GetSecurityObject("<Key-UUID>");
```

### Go

```bash
keyId := "<Key-UUID>"
sobjectDescriptor := sdkms.SobjectDescriptor {
    Kid: &keyId,
} 
key, err := client.GetSobject(ctx, nil, &sobjectDescriptor)
```

### Java

```bash
KeyObject sobject = sobjectsApi.getSecurityObject(<Key-UUID>);
```

### Python

```bash
api_instance = sdkms.v1. SecurityObjectsApi(api_client=client)
sobject = api_instance.get_security_object(<Key-UUID>)
```

### REST API using curl

```bash
curl <Endpoint URL>/crypto/v1/key/<Key-UUID> -H 'Authorization: Bearer YhXwwa-6C...ig5g'
```

## Related

- [Introduction](/dsm-example-code-introduction.md)
