open-consul/ui/packages/consul-ui/app/components/consul/service-identity/template
Ronald 6bcb98ea71
Add UI copyright headers files (#16614)
* Add copyright headers to UI files

* Ensure copywrite file ignores external libs
2023-03-14 09:18:55 -04:00
..
README.mdx ui: Adds partition support to Service and Node Identity templates (#11696) 2021-12-06 10:33:44 +00:00
index.hbs Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00

README.mdx

# Consul::ServiceIdentity::Template

The component is a text-only template that represents what a NodeIdentity
policy looks like. The policy generated here is **not** what is sent back to
the backend, instead its just a visual representation of what happens in the
backend when you save a NodeIdentity.

```hbs preview-template
<pre><code><Consul::ServiceIdentity::Template
  @nspace={{'default-est'}}
  @partition={{'default-ier'}}
  @name={{"Policy-Name"}}
/></code></pre>
```

## Arguments

| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `nspace` | `string` | `default` | The name of the current namespace  |
| `partition` | `string` | `default` | The name of the current partition  |
| `name` | `string` |  | The name of the policy the will be used to
interpolate the various policy names  |

## See

- [Template Source Code](./index.hbs)

---