Update all.md

Glad to help. 

Let me know.
Ignacio
pull/1578/head
Ignacio Van Droogenbroeck 2020-10-01 15:53:20 -03:00 committed by GitHub
parent e05571dff5
commit 2fd6a715a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -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
```