# detail

The cldkctl guard detail command displays detailed information about a specific Guard in your project. This command provides the Guard’s project ID, name, namespace, endpoint selector, and configuration details for ingress and egress rules. It is useful for verifying Guard settings, traffic permissions, and applied policies.

## Usage

```
cldkctl guard detail [flags]
```

## Aliases

```
detail, info
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal, and replace `<guard_name>` with the name of the Guard you want to inspect:

```
./cldkctl guard detail --name <guard_name>
```

2. If your Guard belongs to a specific namespace, include the `--namespace` flag to ensure accurate results.

```
./cldkctl guard detail -n <guard_name> -s <namespace>
```

3. Wait a few seconds for the system to fetch the Guard information.
4. Review the detailed output, which contains the Guard metadata and configuration for ingress and egress rules.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FrVu9kEFpBco5mvkbUI6J%2Funknown.png?alt=media&#x26;token=874bfba9-36d3-4fcb-ab80-8b9023ee4e94" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="369">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Detail Guard</strong></td><td></td></tr><tr><td>Project ID</td><td>The unique identifier of the project where the Guard is deployed.</td></tr><tr><td>Name</td><td>The name of the Guard resource.</td></tr><tr><td>Namespace</td><td>The Kubernetes namespace in which the Guard resides.</td></tr><tr><td>Endpoint Selector</td><td>Label selector used to match workloads under this Guard.</td></tr><tr><td>Ingress Deny</td><td>Indicates whether all other unspecified incoming traffic is denied.</td></tr><tr><td>Egress Deny</td><td>Indicates whether all other unspecified outgoing traffic is denied.</td></tr><tr><td><strong>Guard Ingress / Guard Egress</strong></td><td></td></tr><tr><td>Type</td><td>Defines the rule behavior that determines how traffic is handled.</td></tr><tr><td>Selector</td><td>Specifies the target label or endpoint affected by the rule.</td></tr><tr><td>Port</td><td>Indicates which port or range of ports the rule applies to. If empty, the rule applies to all ports.</td></tr><tr><td>Exception</td><td>Lists any exclusions or exceptions to the rule, allowing certain traffic even when general restrictions are applied.</td></tr></tbody></table>

## Flags

{% hint style="info" %}

1. This command supports global flags. Refer to the Global Flags section for details.
   {% endhint %}

| Flag       | Description                        |
| ---------- | ---------------------------------- |
| -h, --help | Help for the guard detail command. |
