# create@

### Usage

```
vhsm nitride attestation create @values.json [flags]
```

* `@values.json:` The path to a JSON file containing the attestation configuration.

#### Structure: @values.json

* "name": A string uniquely identifying the workload attestation.
* "description": A human-readable description of the workload.
* "namespace": The namespace where the attestation will be created.
* "events": URL endpoint for attestation events (e.g., <http://localhost:8000>).
* "policy": The name of the policy to use for this attestation.

#### Flags

* [Global HTTP Options](/nitride/cli.md#global-options)
* [Output Options](/nitride/cli.md#output-options)
* [Command Options](/nitride/cli.md#command-options)

***

#### Example JSON: Workload Attestation

```json
{
  "name": "Azure MariaDB",
  "description": "A small Azure VM running MariaDB",
  "namespace": "my-namespace",
  "events": "http://localhost:8000",
  "policy": "test"
}
```

#### Detailed Explanation

* name: The unique name for the workload attestation (e.g., Example).
* description: A descriptive text explaining the workload's purpose.
* namespace: The namespace for organizing attestations (e.g., my-namespace).
* events: The endpoint URL where attestation events will be sent.
* policy: The policy name that defines the attestation requirements.

#### Example Command

Create an attestation and output as JSON:

```
vhsm nitride attestation create @attestation.json
```

**Output**

```
Key            Value
---            -----
created        1752204912
description    A small Azure VM running MariaDB
events         http://localhost:8000
name           Azure MariaDB
namespace      my-namespace
nonce          n/a
policy         test
updated        0
uuid           39547c1c-2139-402d-a532-2a352c55106c
```

#### Additional Example

Create an attestation with custom server address and output as JSON:

```
vhsm nitride attestation create @attestation.json -address=https://vhsm.example.com:8200 -format=json
```

**Output**<br>

```
{
  "request_id": "f7fc4c17-58ee-2a9a-be84-24687c9712da",
  "lease_id": "",
  "lease_duration": 0,
  "renewable": false,
  "data": {
    "created": 1752457378,
    "description": "A small Azure VM running MariaDB",
    "events": "http://localhost:8000",
    "name": "Azure MariaDB",
    "namespace": "my-namespace",
    "nonce": "",
    "policy": "test",
    "updated": 0,
    "uuid": "cdf644ef-b8b2-4ac9-acf7-edb7234da6bc"
  },
  "warnings": [
    "Endpoint ignored these unrecognized parameters: [-address -format]"
  ]
}
```

For more information, see creating [workload attestations](/nitride/tutorials/attestation-blueprint-1/create-attestation.md) that are critical for enabling secure workload verification and enforcing policies based on the trustworthiness of the underlying platform, firmware, and workload.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enclaive.cloud/nitride/cli/attestation/create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
