Skip to content

Commit 7191fd4

Browse files
authored
docs: Update asciidocs to reflect latest changes (#244)
Updates the .adoc files to reflect the recent changes in the markdown files
1 parent 4591847 commit 7191fd4

File tree

159 files changed

+787
-373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+787
-373
lines changed

docs/ecctl-command-reference-index.adoc

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,6 @@ include::ecctl_auth_key_delete.adoc[]
66
include::ecctl_auth_key_list.adoc[]
77
include::ecctl_auth_key_show.adoc[]
88
include::ecctl_deployment.adoc[]
9-
include::ecctl_deployment_apm.adoc[]
10-
include::ecctl_deployment_apm_create.adoc[]
11-
include::ecctl_deployment_apm_delete.adoc[]
12-
include::ecctl_deployment_apm_list.adoc[]
13-
include::ecctl_deployment_apm_plan.adoc[]
14-
include::ecctl_deployment_apm_plan_cancel.adoc[]
15-
include::ecctl_deployment_apm_plan_history.adoc[]
16-
include::ecctl_deployment_apm_plan_monitor.adoc[]
17-
include::ecctl_deployment_apm_plan_reapply.adoc[]
18-
include::ecctl_deployment_apm_restart.adoc[]
19-
include::ecctl_deployment_apm_resync.adoc[]
20-
include::ecctl_deployment_apm_show.adoc[]
21-
include::ecctl_deployment_apm_stop.adoc[]
22-
include::ecctl_deployment_apm_upgrade.adoc[]
239
include::ecctl_deployment_create.adoc[]
2410
include::ecctl_deployment_delete.adoc[]
2511
include::ecctl_deployment_elasticsearch.adoc[]
@@ -84,6 +70,7 @@ include::ecctl_deployment_resource_stop-maintenance.adoc[]
8470
include::ecctl_deployment_resource_stop.adoc[]
8571
include::ecctl_deployment_resource_upgrade.adoc[]
8672
include::ecctl_deployment_restore.adoc[]
73+
include::ecctl_deployment_resync.adoc[]
8774
include::ecctl_deployment_search.adoc[]
8875
include::ecctl_deployment_show.adoc[]
8976
include::ecctl_deployment_shutdown.adoc[]
@@ -106,6 +93,7 @@ include::ecctl_platform_allocator_vacate.adoc[]
10693
include::ecctl_platform_constructor.adoc[]
10794
include::ecctl_platform_constructor_list.adoc[]
10895
include::ecctl_platform_constructor_maintenance.adoc[]
96+
include::ecctl_platform_constructor_resync.adoc[]
10997
include::ecctl_platform_constructor_show.adoc[]
11098
include::ecctl_platform_deployment-template.adoc[]
11199
include::ecctl_platform_deployment-template_create.adoc[]
@@ -145,6 +133,11 @@ include::ecctl_platform_role_create.adoc[]
145133
include::ecctl_platform_role_delete.adoc[]
146134
include::ecctl_platform_role_list.adoc[]
147135
include::ecctl_platform_role_show.adoc[]
136+
include::ecctl_platform_runner.adoc[]
137+
include::ecctl_platform_runner_list.adoc[]
138+
include::ecctl_platform_runner_resync.adoc[]
139+
include::ecctl_platform_runner_search.adoc[]
140+
include::ecctl_platform_runner_show.adoc[]
148141
include::ecctl_platform_stack.adoc[]
149142
include::ecctl_platform_stack_delete.adoc[]
150143
include::ecctl_platform_stack_list.adoc[]

docs/ecctl.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@ Elastic Cloud Control
2424
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
2525
--pprof Enables pprofing and saves the profile to pprof-20060102150405
2626
-q, --quiet Suppresses the configuration file used for the run, if any
27+
--region string Elasticsearch Service region
2728
--timeout duration Timeout to use on all HTTP calls (default 30s)
2829
--trace Enables tracing saves the trace to trace-20060102150405
2930
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
3031
--verbose Enable verbose mode
3132
----
3233

3334
[float]
34-
=== See also
35+
=== SEE ALSO
3536

3637
* xref:ecctl_auth[ecctl auth] - Manages the platform auth
3738
* xref:ecctl_deployment[ecctl deployment] - Manages deployments
3839
* xref:ecctl_generate[ecctl generate] - Generates completions and docs
3940
* xref:ecctl_init[ecctl init] - Creates an initial configuration file.
4041
* xref:ecctl_platform[ecctl platform] - Manages the platform
41-
* xref:ecctl_user[ecctl user] - Manages the platform users
42+
* xref:ecctl_user[ecctl user] - Manages the platform users (Available for ECE only)
4243
* xref:ecctl_version[ecctl version] - Shows ecctl version

docs/ecctl_auth.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ ecctl auth [flags]
3434
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3535
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3636
-q, --quiet Suppresses the configuration file used for the run, if any
37+
--region string Elasticsearch Service region
3738
--timeout duration Timeout to use on all HTTP calls (default 30s)
3839
--trace Enables tracing saves the trace to trace-20060102150405
3940
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4041
--verbose Enable verbose mode
4142
----
4243

4344
[float]
44-
=== See also
45+
=== SEE ALSO
4546

4647
* xref:ecctl[ecctl] - Elastic Cloud Control
4748
* xref:ecctl_auth_key[ecctl auth key] - Manages the current authenticated user API keys

docs/ecctl_auth_key.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ ecctl auth key [flags]
3434
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3535
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3636
-q, --quiet Suppresses the configuration file used for the run, if any
37+
--region string Elasticsearch Service region
3738
--timeout duration Timeout to use on all HTTP calls (default 30s)
3839
--trace Enables tracing saves the trace to trace-20060102150405
3940
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4041
--verbose Enable verbose mode
4142
----
4243

4344
[float]
44-
=== See also
45+
=== SEE ALSO
4546

4647
* xref:ecctl_auth[ecctl auth] - Manages the platform auth
4748
* xref:ecctl_auth_key_create[ecctl auth key create] - Creates a new API key for the current authenticated user

docs/ecctl_auth_key_create.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ ecctl auth key create [flags]
3636
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3737
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3838
-q, --quiet Suppresses the configuration file used for the run, if any
39+
--region string Elasticsearch Service region
3940
--timeout duration Timeout to use on all HTTP calls (default 30s)
4041
--trace Enables tracing saves the trace to trace-20060102150405
4142
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4243
--verbose Enable verbose mode
4344
----
4445

4546
[float]
46-
=== See also
47+
=== SEE ALSO
4748

4849
* xref:ecctl_auth_key[ecctl auth key] - Manages the current authenticated user API keys

docs/ecctl_auth_key_delete.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ ecctl auth key delete <key id> <key id> ... [flags]
3434
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3535
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3636
-q, --quiet Suppresses the configuration file used for the run, if any
37+
--region string Elasticsearch Service region
3738
--timeout duration Timeout to use on all HTTP calls (default 30s)
3839
--trace Enables tracing saves the trace to trace-20060102150405
3940
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4041
--verbose Enable verbose mode
4142
----
4243

4344
[float]
44-
=== See also
45+
=== SEE ALSO
4546

4647
* xref:ecctl_auth_key[ecctl auth key] - Manages the current authenticated user API keys

docs/ecctl_auth_key_list.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ ecctl auth key list [flags]
3434
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3535
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3636
-q, --quiet Suppresses the configuration file used for the run, if any
37+
--region string Elasticsearch Service region
3738
--timeout duration Timeout to use on all HTTP calls (default 30s)
3839
--trace Enables tracing saves the trace to trace-20060102150405
3940
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4041
--verbose Enable verbose mode
4142
----
4243

4344
[float]
44-
=== See also
45+
=== SEE ALSO
4546

4647
* xref:ecctl_auth_key[ecctl auth key] - Manages the current authenticated user API keys

docs/ecctl_auth_key_show.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ ecctl auth key show <key id> [flags]
3434
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3535
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3636
-q, --quiet Suppresses the configuration file used for the run, if any
37+
--region string Elasticsearch Service region
3738
--timeout duration Timeout to use on all HTTP calls (default 30s)
3839
--trace Enables tracing saves the trace to trace-20060102150405
3940
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4041
--verbose Enable verbose mode
4142
----
4243

4344
[float]
44-
=== See also
45+
=== SEE ALSO
4546

4647
* xref:ecctl_auth_key[ecctl auth key] - Manages the current authenticated user API keys

docs/ecctl_deployment.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,27 @@ ecctl deployment [flags]
3434
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
3535
--pprof Enables pprofing and saves the profile to pprof-20060102150405
3636
-q, --quiet Suppresses the configuration file used for the run, if any
37+
--region string Elasticsearch Service region
3738
--timeout duration Timeout to use on all HTTP calls (default 30s)
3839
--trace Enables tracing saves the trace to trace-20060102150405
3940
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
4041
--verbose Enable verbose mode
4142
----
4243

4344
[float]
44-
=== See also
45+
=== SEE ALSO
4546

4647
* xref:ecctl[ecctl] - Elastic Cloud Control
47-
* xref:ecctl_deployment_apm[ecctl deployment apm] - Manages APM deployments
48-
* xref:ecctl_deployment_create[ecctl deployment create] - Creates a deployment from a file definition, allowing certain flag overrides
49-
* xref:ecctl_deployment_delete[ecctl deployment delete] - Deletes a previously stopped deployment from the platform
48+
* xref:ecctl_deployment_create[ecctl deployment create] - Creates a deployment
49+
* xref:ecctl_deployment_delete[ecctl deployment delete] - Deletes a previously shutdown deployment (Available for ECE only)
5050
* xref:ecctl_deployment_elasticsearch[ecctl deployment elasticsearch] - Manages Elasticsearch clusters
5151
* xref:ecctl_deployment_kibana[ecctl deployment kibana] - Manages Kibana instances
5252
* xref:ecctl_deployment_list[ecctl deployment list] - Lists the platform's deployments
5353
* xref:ecctl_deployment_note[ecctl deployment note] - Manages a deployment's notes
5454
* xref:ecctl_deployment_plan[ecctl deployment plan] - Manages deployment plans
5555
* xref:ecctl_deployment_resource[ecctl deployment resource] - Manages deployment resources
5656
* xref:ecctl_deployment_restore[ecctl deployment restore] - Restores a previously shut down deployment and all of its associated sub-resources
57+
* xref:ecctl_deployment_resync[ecctl deployment resync] - Resynchronizes the search index and cache for the selected deployment or all
5758
* xref:ecctl_deployment_search[ecctl deployment search] - Performs advanced deployment search using the Elasticsearch Query DSL
5859
* xref:ecctl_deployment_show[ecctl deployment show] - Shows the specified deployment resources
5960
* xref:ecctl_deployment_shutdown[ecctl deployment shutdown] - Shuts down a deployment and all of its associated sub-resources

docs/ecctl_deployment_create.adoc

Lines changed: 16 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,48 @@
11
[#ecctl_deployment_create]
22
== ecctl deployment create
33

4-
Creates a deployment from a file definition, allowing certain flag overrides
4+
Creates a deployment
55

66
[float]
77
=== Synopsis
88

9-
Creates a deployment from a file definition with an automatically generated idempotency token.
10-
On creation failure, please use the displayed idempotency token to retry the cluster creation with --request-id=+++<token>+++. To track the creation of the resources toggle the --track flag.+++</token>+++
9+
Creates a deployment which is defined from a file definition using the --file=+++<file path="">+++(shorthand: -f) flag.+++</file>+++
1110

12-
Read more about the deployment definition in https://www.elastic.co/guide/en/cloud-enterprise/current/Deployment_-_CRUD.html
11+
You can create a definition by using the sample JSON seen here:
12+
https://elastic.co/guide/en/cloud/current/ec-api-deployment-crud.html#ec_create_a_deployment
1313

1414
----
15-
ecctl deployment create -f <file definition.json> [flags]
15+
ecctl deployment create {--file | --size <int> --zones <string> | --topology-element <obj>} [flags]
1616
----
1717

1818
[float]
1919
=== Examples
2020

21-
[source,console]
2221
----
23-
$ cat deployment_example.json
24-
{
25-
"name": "my example cluster",
26-
"resources": {
27-
"apm": [
28-
{
29-
"display_name": "my apm instance",
30-
"ref_id": "my-apm-instance",
31-
"elasticsearch_cluster_ref_id": "my-es-cluster",
32-
"plan": {
33-
"apm": {
34-
"version": "6.8.4"
35-
},
36-
"cluster_topology": [{
37-
"instance_configuration_id": "apm",
38-
"size": {
39-
"resource": "memory",
40-
"value": 512
41-
},
42-
"zone_count": 1
43-
}]
44-
}
45-
}
46-
],
47-
"elasticsearch": [
48-
{
49-
"display_name": "my elasticsearch cluster",
50-
"ref_id": "my-es-cluster",
51-
"plan": {
52-
"deployment_template": {
53-
"id": "default"
54-
},
55-
"elasticsearch": {
56-
"version": "6.8.4"
57-
},
58-
"cluster_topology": [
59-
{
60-
"instance_configuration_id": "data.default",
61-
"memory_per_node": 1024,
62-
"node_count_per_zone": 1,
63-
"node_type": {
64-
"data": true,
65-
"ingest": true,
66-
"master": true,
67-
"ml": false
68-
},
69-
"zone_count": 1
70-
}
71-
]
72-
}
73-
}
74-
],
75-
"kibana": [
76-
{
77-
"display_name": "my kibana instance",
78-
"ref_id": "my-kibana-instance",
79-
"elasticsearch_cluster_ref_id": "my-es-cluster",
80-
"plan": {
81-
"kibana": {
82-
"version": "6.8.4"
83-
},
84-
"cluster_topology": [
85-
{
86-
"instance_configuration_id": "kibana",
87-
"memory_per_node": 1024,
88-
"node_count_per_zone": 1,
89-
"zone_count": 1
90-
}
91-
]
92-
}
93-
}
94-
]
95-
}
96-
}
97-
$ ecctl deployment create -f deployment_example.json --version=7.4.1
22+
## To make the command wait until the resources have been created use the "--track" flag, which will output
23+
the current stage on which the deployment resources are in.
24+
$ deployment create --file create_example.json --track
9825
[...]
26+
Deployment [b6ecbea3d5c84124b7dca457f2892086] - [Elasticsearch][b6ecbea3d5c84124b7dca457f2892086]: finished running all the plan steps (Total plan duration: 5m11.s)
27+
Deployment [91c4d60acb804ba0a27651fac02780ec] - [Kibana][8a9d9916cd6e46a7bb0912211d76e2af]: finished running all the plan steps (Total plan duration: 4m29.58s)
9928
100-
## If the previous deployment creation failed
101-
$ ecctl deployment create -f deployment_example.json --name adeploy --version=7.4.1
29+
## To retry a when the previous deployment creation failed:
30+
$ ecctl deployment create --file create_example.json
10231
The deployment creation returned with an error, please use the displayed idempotency token
10332
to recreate the deployment resources
10433
Idempotency token: GMZPMRrcMYqHdmxjIQkHbdjnhPIeBElcwrHwzVlhGUSMXrEIzVXoBykSVRsKncNb
10534
unknown error (status 500)
106-
$ ecctl deployment create -f deployment_example.json --name adeploy --version=7.4.1 --request-id=GMZPMRrcMYqHdmxjIQkHbdjnhPIeBElcwrHwzVlhGUSMXrEIzVXoBykSVRsKncNb
107-
[...]
35+
$ ecctl deployment create --file create_example.json --request-id=GMZPMRrcMYqHdmxjIQkHbdjnhPIeBElcwrHwzVlhGUSMXrEIzVXoBykSVRsKncNb
10836
----
10937

11038
[float]
11139
=== Options
11240

11341
----
114-
-f, --file string JSON file that contains JSON-style domain-specific deployment definition
42+
-f, --file string DeploymentCreateRequest file definition. See help for more information
11543
-h, --help help for create
116-
--name string Overrides the deployment name
11744
--request-id string Optional idempotency token - Can be found in the Stderr device when a previous deployment creation failed, for more information see the examples in the help command page
11845
-t, --track Tracks the progress of the performed task
119-
--version string Overrides all the deployment's resources to the specified version
12046
----
12147

12248
[float]
@@ -134,13 +60,14 @@ $ ecctl deployment create -f deployment_example.json --name adeploy --version=7.
13460
--pass string Password to use to authenticate (If empty will look for EC_PASS environment variable)
13561
--pprof Enables pprofing and saves the profile to pprof-20060102150405
13662
-q, --quiet Suppresses the configuration file used for the run, if any
63+
--region string Elasticsearch Service region
13764
--timeout duration Timeout to use on all HTTP calls (default 30s)
13865
--trace Enables tracing saves the trace to trace-20060102150405
13966
--user string Username to use to authenticate (If empty will look for EC_USER environment variable)
14067
--verbose Enable verbose mode
14168
----
14269

14370
[float]
144-
=== See also
71+
=== SEE ALSO
14572

14673
* xref:ecctl_deployment[ecctl deployment] - Manages deployments

0 commit comments

Comments
 (0)