parent
e05571dff5
commit
2fd6a715a0
|
@ -40,25 +40,27 @@ influx export all [flags]
|
|||
## Examples
|
||||
|
||||
### Export all resources in an organization as a template
|
||||
<pre><code>influx export all --org $INFLUX_ORG</code></pre>
|
||||
```influx export all --org $INFLUX_ORG```
|
||||
|
||||
### Export all bucket resources as a template
|
||||
<pre><code>influx export all --org $INFLUX_ORG --filter=resourceKind=Bucket</code></pre>
|
||||
```influx export all --org $INFLUX_ORG --filter=resourceKind=Bucket```
|
||||
|
||||
### Export all resources associated with label Foo
|
||||
<pre><code>influx export all --org $INFLUX_ORG --filter=labelName=Foo</code></pre>
|
||||
```influx export all --org $INFLUX_ORG --filter=labelName=Foo```
|
||||
|
||||
### Export all bucket resources and filter by label Foo
|
||||
<pre><code>influx export all --org $INFLUX_ORG \
|
||||
```influx export all --org $INFLUX_ORG \
|
||||
--filter=resourceKind=Bucket \
|
||||
--filter=labelName=Foo</code></pre>
|
||||
--filter=labelName=Foo
|
||||
```
|
||||
|
||||
### Export all bucket or dashboard resources and filter by label Foo.
|
||||
|
||||
<b>Note</b>: "like" filters are unioned and filter types are intersections.
|
||||
For example, the following will export a resource if it is a dashboard or bucket and has an associated label of Foo.
|
||||
|
||||
<pre><code>influx export all --org $INFLUX_ORG \
|
||||
```influx export all --org $INFLUX_ORG \
|
||||
--filter=resourceKind=Bucket \
|
||||
--filter=resourceKind=Dashboard \
|
||||
--filter=labelName=Foo</code></pre>
|
||||
--filter=labelName=Foo
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue