> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# Discovering resources & schemas

> Find which Datum Cloud resource types exist and inspect their fields before you author manifests.

Before you can create or update a resource, you need to know two things: which
resource types Datum Cloud offers, and what fields each type accepts. `datumctl`
answers both questions directly from the API server, so what you see always
reflects the exact version of the platform you are connected to.

Three commands cover discovery:

| Command | Answers |
| - | - |
| `datumctl api-resources` | Which resource types can I manage? |
| `datumctl api-versions` | Which API group/version pairs are available? |
| `datumctl explain <type>` | What fields does this type have, and what do they mean? |

> [!NOTE]
>
> These commands read from the control plane for your **currently configured
> context**. Make sure you are logged in (see [Logging in](https://www.datum.net/docs/datumctl/auth/logging-in.md))
> and have an organization or project selected first — pass `--organization your-org-id`
> or `--project your-project-id`, or set a default context. See
> [Contexts & scoping](https://www.datum.net/docs/datumctl/contexts-and-scoping.md) for how that scope is chosen.

## List available resource types

`datumctl api-resources` prints a table of every resource type the current
control plane supports. It is the starting point for discovering what you can
manage with `datumctl get`, `datumctl apply`, and `datumctl explain`. The table
includes each type's short names, API group, whether it is namespaced, and its
kind.

```bash theme={null}
# List all available resource types
datumctl api-resources
```

The list is fetched fresh from the server on each run. To reuse a locally
cached copy, pass `--cached`.

### Narrow and sort the list

For a busy control plane, filter and reshape the output to find what you need:

```bash theme={null}
# Show extra detail, including verbs and short names
datumctl api-resources -o wide

# Sort by name
datumctl api-resources --sort-by=name

# Only namespaced resource types
datumctl api-resources --namespaced=true

# Only resource types in a specific API group
datumctl api-resources --api-group=networking.datumapis.com
```

> [!NOTE]
>
> The short names shown here are the same aliases you can use anywhere a
> resource type is expected — for example in `datumctl get`, `datumctl explain`,
> or `datumctl describe`.

## List API versions

`datumctl api-versions` prints every API group/version combination the current
control plane exposes, one per line in the form `group/version` (for example,
`networking.datumapis.com/v1alpha`).

```bash theme={null}
# List all API group/version pairs
datumctl api-versions
```

This is the value you place in the `apiVersion` field of a manifest. Use
`api-versions` when you need the group/version string, and `api-resources` when
you also want to see the individual resource types within each group.

## Inspect a type's schema

Once you know a type exists, `datumctl explain` shows its schema and field-level
documentation. Information is retrieved from the API server in OpenAPI format,
so it always matches the platform version you are connected to.

```bash theme={null}
# Show the schema for the Project resource type
datumctl explain projects
```

Fields are referenced with dot notation — `TYPE.fieldName.subFieldName` — so you
can drill into any part of the tree:

```bash theme={null}
# Show documentation for just the spec field
datumctl explain projects.spec
```

To see the whole schema tree at once instead of one level at a time, use
`--recursive`:

```bash theme={null}
# Expand every field recursively
datumctl explain projects --recursive
```

If you prefer the OpenAPI v2 rendering, request it explicitly:

```bash theme={null}
# Use the OpenAPI v2 output format
datumctl explain projects --output=plaintext-openapiv2
```

## From discovery to a manifest

Discovery feeds directly into authoring manifests for `datumctl apply` and
`datumctl create`. A typical flow:

**1. Find the type**

Run `datumctl api-resources` to confirm the resource type exists and note
its kind and API group.

```bash theme={null}
datumctl api-resources --api-group=networking.datumapis.com
```

**2. Get the apiVersion**

Run `datumctl api-versions` to find the exact `group/version` string for
that group.

```bash theme={null}
datumctl api-versions
```

**3. Learn the fields**

Run `datumctl explain <type>` (add `--recursive` for the full tree) to see
which fields are required and what they do.

```bash theme={null}
datumctl explain projects --recursive
```

**4. Write and validate the manifest**

Author your YAML with the `apiVersion`, `kind`, and `spec` fields you
discovered, then validate it against the server before persisting.

```bash theme={null}
datumctl apply -f ./project.yaml --organization your-org-id --dry-run=server
```

> [!TIP]
>
> `datumctl explain <type>.spec` is the fastest way to see exactly which fields
> belong under `spec` when you are filling out a new manifest.

## Search across your resources

When you know roughly what you're looking for but not its kind or exact name, use the `search` plugin. It searches your resources by name and kind, and returns the best matches first. To install it, add the Milo catalog with `datumctl plugin index add milo-os milo-os/cli-plugins`, then run `datumctl plugin install milo-os/search`.

```text theme={null}
$ datumctl search api
KIND        NAME              NAMESPACE   TENANT            SCORE   AGE
Workload    api               default     your-project-id   0.99    3d
HTTPProxy   api               default     your-project-id   0.97    3d
Workload    api-postgres      default     your-project-id   0.82    3d
```

To narrow the results to one or more kinds, add `--kind`, such as `--kind Workload --kind HTTPProxy`. To see which kinds are searchable, run `datumctl search kinds`. For scripts, add `-o json`.

## Check which services your project can use

Some Datum services, such as Compute, must be enabled for a project before you can create their resources. To see every service and whether it's enabled for your current project, run the following command:

```bash theme={null}
datumctl services list
```

The state of each service is `Active`, pending approval, `NotRequested`, or denied. To request a service, run `datumctl services enable SERVICE_NAME`. Some services need approval from Datum, so add `--wait` to wait for the answer, or check back later with `datumctl services status SERVICE_NAME`. To explain why you need a service, add `--message`.

## Related

* [Changing resources](https://www.datum.net/docs/datumctl/resources/changing.md) — author, apply, and edit
  resources once you know which types exist and what fields they take.
* [Reading resources](https://www.datum.net/docs/datumctl/resources/reading.md) — list, retrieve, and inspect
  resources of the types you discover here.
* [Output formats & scripting](https://www.datum.net/docs/datumctl/output-and-scripting.md) — render this discovery
  output as JSON or YAML and pipe it into other tooling.
* [Logging in](https://www.datum.net/docs/datumctl/auth/logging-in.md) — sign in before querying the control plane.
* `datumctl api-resources --help`, `datumctl api-versions --help`, and
  `datumctl explain --help` for the full flag reference.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.