56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
# Dc
|
|
|
|
```hbs preview-template
|
|
<figure>
|
|
<figcaption>URI: <code>/:partition/:nspace/:dc/catalog/health</code></figcaption>
|
|
<DataSource
|
|
@src={{
|
|
uri '/${partition}/${nspace}/${dc}/catalog/health'
|
|
(hash
|
|
partition='partition'
|
|
nspace='ns'
|
|
dc='dc1'
|
|
)
|
|
}}
|
|
@onchange={{action (mut data) value="data"}}
|
|
/>
|
|
<pre><code>{{json-stringify data null 4}}</code></pre>
|
|
</figure>
|
|
```
|
|
|
|
```hbs preview-template
|
|
<figure>
|
|
<figcaption>URI: <code>/:partition/:nspace/:dc/datacenters</code></figcaption>
|
|
<DataSource
|
|
@src={{
|
|
uri '/${partition}/${nspace}/${dc}/datacenters'
|
|
(hash
|
|
partition='partition'
|
|
nspace='ns'
|
|
dc='dc1'
|
|
)
|
|
}}
|
|
@onchange={{action (mut data) value="data"}}
|
|
/>
|
|
<pre><code>{{json-stringify data null 4}}</code></pre>
|
|
</figure>
|
|
```
|
|
|
|
```hbs preview-template
|
|
<figure>
|
|
<figcaption>URI: <code>/:partition/:nspace/:dc/datacenter</code></figcaption>
|
|
<DataSource
|
|
@src={{
|
|
uri '/${partition}/${nspace}/${dc}/datacenter'
|
|
(hash
|
|
partition='partition'
|
|
nspace='ns'
|
|
dc='dc1'
|
|
)
|
|
}}
|
|
@onchange={{action (mut data) value="data"}}
|
|
/>
|
|
<pre><code>{{json-stringify data null 4}}</code></pre>
|
|
</figure>
|
|
```
|