diff --git a/website/content/api-docs/acl/auth-methods.mdx b/website/content/api-docs/acl/auth-methods.mdx index 9f4ebbbd3..076d9d2c3 100644 --- a/website/content/api-docs/acl/auth-methods.mdx +++ b/website/content/api-docs/acl/auth-methods.mdx @@ -34,7 +34,9 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | -### Payload Fields +-> The corresponding CLI command is [`consul acl auth-method create`](https://www.consul.io/commands/acl/auth-method/create) + +### Parameters - `Name` `(string: )` - Specifies a name for the ACL auth method. The name can contain alphanumeric characters, dashes `-`, and underscores `_`. @@ -160,6 +162,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl auth-method read`](https://www.consul.io/commands/acl/auth-method/read) + ### Parameters - `name` `(string: )` - Specifies the name of the ACL auth method to @@ -212,6 +216,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl auth-method update`](https://www.consul.io/commands/acl/auth-method/update) + ### Parameters - `Name` `(string: )` - Specifies the name of the auth method to @@ -343,6 +349,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl auth-method delete`](https://www.consul.io/commands/acl/auth-method/delete) + ### Parameters - `name` `(string: )` - Specifies the name of the ACL auth method to @@ -385,6 +393,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl auth-method list`](https://www.consul.io/commands/acl/auth-method/list) + ### Parameters - `ns` `(string: "")` - Specifies the namespace to list diff --git a/website/content/api-docs/acl/binding-rules.mdx b/website/content/api-docs/acl/binding-rules.mdx index b598a5569..3375b2b41 100644 --- a/website/content/api-docs/acl/binding-rules.mdx +++ b/website/content/api-docs/acl/binding-rules.mdx @@ -34,6 +34,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl binding-rule create`](https://www.consul.io/commands/acl/binding-rule/create) + ### Parameters - `Description` `(string: "")` - Free form human readable description of the binding rule. @@ -158,6 +160,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl binding-rule read`](https://www.consul.io/commands/acl/binding-rule/read) + ### Parameters - `id` `(string: )` - Specifies the UUID of the ACL binding rule @@ -208,6 +212,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl binding-rule update`](https://www.consul.io/commands/acl/binding-rule/update) + ### Parameters - `ID` `(string: )` - Specifies the ID of the binding rule to update. @@ -338,6 +344,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl binding-rule delete`](https://www.consul.io/commands/acl/binding-rule/delete) + ### Parameters - `id` `(string: )` - Specifies the UUID of the ACL binding rule to @@ -380,6 +388,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl binding-rule list`](https://www.consul.io/commands/acl/binding-rule/list) + ## Parameters - `authmethod` `(string: "")` - Filters the binding rule list to those binding diff --git a/website/content/api-docs/acl/index.mdx b/website/content/api-docs/acl/index.mdx index 5c69331ed..162e9eb01 100644 --- a/website/content/api-docs/acl/index.mdx +++ b/website/content/api-docs/acl/index.mdx @@ -38,6 +38,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `none` | +-> The corresponding CLI command is [`consul acl bootstrap`](https://www.consul.io/commands/acl/bootstrap) + ### Sample Request ```shell-session @@ -202,6 +204,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl translate-rules`](https://www.consul.io/commands/acl/translate-rules) + ### Sample Payload ```hcl @@ -249,6 +253,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl translate-rules`](https://www.consul.io/commands/acl/translate-rules) + ### Sample Request ```shell-session @@ -290,6 +296,8 @@ enabled. Login requires the ability to create local tokens which is restricted to the primary datacenter and any secondary datacenters with ACL token replication enabled. +-> The corresponding CLI command is [`consul login`](https://www.consul.io/commands/login) + ### Parameters - `AuthMethod` `(string: )` - The name of the auth method to use for login. @@ -376,6 +384,8 @@ The table below shows this endpoint's support for -> **Note** - This endpoint requires no specific privileges as it is just deleting a token for which you already must possess its secret. +-> The corresponding CLI command is [`consul logout`](https://www.consul.io/commands/logout) + ### Sample Request ```shell-session diff --git a/website/content/api-docs/acl/policies.mdx b/website/content/api-docs/acl/policies.mdx index 6fe426d53..38c3c2e0a 100644 --- a/website/content/api-docs/acl/policies.mdx +++ b/website/content/api-docs/acl/policies.mdx @@ -33,6 +33,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl policy create`](https://www.consul.io/commands/acl/policy/create) + ### Parameters - `Name` `(string: )` - Specifies a name for the ACL policy. The name @@ -106,6 +108,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl policy read`](https://www.consul.io/commands/acl/policy/read) + ### Parameters - `id` `(string: )` - Specifies the UUID of the ACL policy to @@ -156,6 +160,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl policy read -name=`](https://www.consul.io/commands/acl/policy/read#name) + ### Parameters - `name` `(string: )` - Specifies the name of the ACL policy to @@ -206,6 +212,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl policy update`](https://www.consul.io/commands/acl/policy/update) + ### Parameters - `ID` `(string: )` - Specifies the UUID of the policy to update. This is @@ -285,6 +293,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl policy delete`](https://www.consul.io/commands/acl/policy/delete) + ### Parameters - `id` `(string: )` - Specifies the UUID of the ACL policy to @@ -327,6 +337,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl policy list`](https://www.consul.io/commands/acl/policy/list) + ### Parameters - `ns` `(string: "")` - Specifies the namespace to list diff --git a/website/content/api-docs/acl/roles.mdx b/website/content/api-docs/acl/roles.mdx index 5862fefcf..84ef0a0f6 100644 --- a/website/content/api-docs/acl/roles.mdx +++ b/website/content/api-docs/acl/roles.mdx @@ -32,6 +32,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl role create`](https://www.consul.io/commands/acl/role/create) + ### Parameters - `Name` `(string: )` - Specifies a name for the ACL role. The name @@ -172,6 +174,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl role read`](https://www.consul.io/commands/acl/role/read) + ### Parameters - `id` `(string: )` - Specifies the UUID of the ACL role to @@ -242,6 +246,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl role read -name=`](https://www.consul.io/commands/acl/role/read#name) + ### Parameters - `name` `(string: )` - Specifies the Name of the ACL role to @@ -311,6 +317,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl role update`](https://www.consul.io/commands/acl/role/update) + ### Parameters - `ID` `(string: )` - Specifies the ID of the role to update. This is @@ -427,6 +435,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl role delete`](https://www.consul.io/commands/acl/role/delete) + ### Parameters - `id` `(string: )` - Specifies the UUID of the ACL role to @@ -469,6 +479,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl role list`](https://www.consul.io/commands/acl/role/list) + ## Parameters - `policy` `(string: "")` - Filters the role list to those roles that are diff --git a/website/content/api-docs/acl/tokens.mdx b/website/content/api-docs/acl/tokens.mdx index 4bdc026ae..7554e6ebd 100644 --- a/website/content/api-docs/acl/tokens.mdx +++ b/website/content/api-docs/acl/tokens.mdx @@ -32,6 +32,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl token create`](https://www.consul.io/commands/acl/token/create) + ### Parameters - `AccessorID` `(string: "")` - Specifies a UUID to use as the token's Accessor ID. @@ -173,6 +175,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl token read`](https://www.consul.io/commands/acl/token/read) + ### Parameters - `AccessorID` `(string: )` - Specifies the accessor ID of the ACL token to @@ -243,6 +247,8 @@ The table below shows this endpoint's support for -> **Note** - This endpoint requires no specific privileges as it is just retrieving the data for a token that you must already possess its secret. +-> The corresponding CLI command is [`consul acl token read -self`](https://www.consul.io/commands/acl/token/read#self) + ### Sample Request ```shell-session @@ -293,6 +299,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl token update`](https://www.consul.io/commands/acl/token/update) + ### Parameters - `AccessorID` `(string: "")` - Specifies the accessor ID of the token being updated. This is @@ -441,6 +449,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl token clone`](https://www.consul.io/commands/acl/token/clone) + ### Parameters - `AccessorID` `(string: )` - The accessor ID of the token to clone. This is required @@ -520,6 +530,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `acl:write` | +-> The corresponding CLI command is [`consul acl token delete`](https://www.consul.io/commands/acl/token/delete) + ### Parameters - `AccessorID` `(string: )` - Specifies the accessor ID of the ACL token to @@ -562,6 +574,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `acl:read` | +-> The corresponding CLI command is [`consul acl token list`](https://www.consul.io/commands/acl/token/list) + ## Parameters - `policy` `(string: "")` - Filters the token list to those tokens that are diff --git a/website/content/api-docs/agent/index.mdx b/website/content/api-docs/agent/index.mdx index 5bcd4f2da..9fe617015 100644 --- a/website/content/api-docs/agent/index.mdx +++ b/website/content/api-docs/agent/index.mdx @@ -227,6 +227,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `node:read` | +-> The corresponding CLI command is [`consul members`](https://www.consul.io/commands/members) + ### Parameters - `wan` `(bool: false)` - Specifies to list WAN members instead of the LAN @@ -373,6 +375,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------- | | `NO` | `none` | `none` | `agent:write` | +-> The corresponding CLI command is [`consul reload`](https://www.consul.io/commands/reload) + ### Sample Request ```shell-session @@ -404,6 +408,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `node:write` | +-> The corresponding CLI command is [`consul maint`](https://www.consul.io/commands/maint) + ### Parameters - `enable` `(bool: )` - Specifies whether to enable or disable @@ -629,6 +635,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------- | | `NO` | `none` | `none` | `agent:write` | +-> The corresponding CLI command is [`consul join`](https://www.consul.io/commands/join) + ### Parameters - `address` `(string: )` - Specifies the address of the other agent to @@ -669,6 +677,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------- | | `NO` | `none` | `none` | `agent:write` | +-> The corresponding CLI command is [`consul leave`](https://www.consul.io/commands/leave) + ### Sample Request ```shell-session @@ -706,6 +716,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul force-leave`](https://www.consul.io/commands/force-leave) + ### Parameters - `node` `(string: )` - Specifies the name of the node to be forced into `left` state. This is specified as part of the URL. @@ -780,6 +792,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------- | | `NO` | `none` | `none` | `agent:write` | +-> The corresponding CLI command is [`consul acl set-agent-token`](https://www.consul.io/commands/acl/set-agent-token) + ### Parameters - `Token` `(string: "")` - Specifies the ACL token to set. diff --git a/website/content/api-docs/agent/service.mdx b/website/content/api-docs/agent/service.mdx index b475b36e4..78d83ac7f 100644 --- a/website/content/api-docs/agent/service.mdx +++ b/website/content/api-docs/agent/service.mdx @@ -593,6 +593,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `service:write` | +-> The corresponding CLI command is [`consul services register`](https://www.consul.io/commands/services/register) + ### Query string parameters - `replace-existing-checks` - Missing health checks from the request will be deleted from the agent. Using this parameter allows to idempotently register a service and its checks without having to manually deregister checks. @@ -766,6 +768,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `service:write` | +-> The corresponding CLI command is [`consul services deregister`](https://www.consul.io/commands/services/deregister) + ### Parameters - `service_id` `(string: )` - Specifies the ID of the service to diff --git a/website/content/api-docs/catalog.mdx b/website/content/api-docs/catalog.mdx index 187a03769..3c3503f74 100644 --- a/website/content/api-docs/catalog.mdx +++ b/website/content/api-docs/catalog.mdx @@ -266,6 +266,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `none` | +-> The corresponding CLI command is [`consul catalog datacenters`](https://www.consul.io/commands/catalog/datacenters) + ### Sample Request ```shell-session @@ -297,6 +299,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `node:read` | +-> The corresponding CLI command is [`consul catalog nodes`](https://www.consul.io/commands/catalog/nodes) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -392,6 +396,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | -------------- | | `YES` | `all` | `none` | `service:read` | +-> The corresponding CLI command is [`consul catalog services`](https://www.consul.io/commands/catalog/services) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to diff --git a/website/content/api-docs/config.mdx b/website/content/api-docs/config.mdx index 7587e14b3..56e5a8633 100644 --- a/website/content/api-docs/config.mdx +++ b/website/content/api-docs/config.mdx @@ -48,6 +48,8 @@ The table below shows this endpoint's support for | service-splitter | `service:write` | | terminating-gateway | `operator:write` | +-> The corresponding CLI command is [`consul config write`](https://www.consul.io/commands/config/write) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -115,6 +117,8 @@ The table below shows this endpoint's support for | service-splitter | `service:read` | | terminating-gateway | `service:read` | +-> The corresponding CLI command is [`consul config read`](https://www.consul.io/commands/config/read) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -184,6 +188,8 @@ The table below shows this endpoint's support for | service-splitter | `service:read` | | terminating-gateway | `service:read` | +-> The corresponding CLI command is [`consul config list`](https://www.consul.io/commands/config/list) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -258,6 +264,8 @@ The table below shows this endpoint's support for | service-splitter | `service:write` | | terminating-gateway | `operator:write ` | +-> The corresponding CLI command is [`consul config delete`](https://www.consul.io/commands/config/delete) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to diff --git a/website/content/api-docs/connect/ca.mdx b/website/content/api-docs/connect/ca.mdx index af413b022..181c0cccc 100644 --- a/website/content/api-docs/connect/ca.mdx +++ b/website/content/api-docs/connect/ca.mdx @@ -125,6 +125,8 @@ The table below shows this endpoint's support for 1 ACL required was operator:read prior to versions 1.8.6, 1.7.10, and 1.6.10. +-> The corresponding CLI command is [`consul connect ca get-config`](https://www.consul.io/commands/connect/ca#get-config) + ### Sample Request ```shell-session @@ -165,6 +167,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul connect ca set-config`](https://www.consul.io/commands/connect/ca#set-config) + ### Parameters - `Provider` `(string: )` - Specifies the CA provider type to use. diff --git a/website/content/api-docs/connect/intentions.mdx b/website/content/api-docs/connect/intentions.mdx index 39912a9b1..30d4f1363 100644 --- a/website/content/api-docs/connect/intentions.mdx +++ b/website/content/api-docs/connect/intentions.mdx @@ -54,6 +54,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention create -replace`](https://www.consul.io/commands/intention/create#replace) + ### URL Parameters - `source` `(string: )` - Specifies the source service. This @@ -163,6 +165,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention create`](https://www.consul.io/commands/intention/create) + ### URL Parameters - `ns` `(string: "")` - Specifies the default @@ -315,6 +319,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention create`](https://www.consul.io/commands/intention/get) + ### Parameters - `source` `(string: )` - Specifies the source service. This @@ -390,6 +396,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention create`](https://www.consul.io/commands/intention/get) + ### Parameters - `uuid` `(string: )` - Specifies the UUID of the intention to read. This @@ -450,6 +458,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention create`](https://www.consul.io/commands/intention/get) + ### Parameters - `filter` `(string: "")` - Specifies the expression used to filter the @@ -539,6 +549,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention delete`](https://www.consul.io/commands/intention/delete) + ### Parameters - `source` `(string: )` - Specifies the source service. This @@ -597,6 +609,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention delete`](https://www.consul.io/commands/intention/delete) + ### Parameters - `uuid` `(string: )` - Specifies the UUID of the intention to delete. This @@ -652,6 +666,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention check`](https://www.consul.io/commands/intention/check) + ### Parameters - `source` `(string: )` - Specifies the source service. This @@ -715,6 +731,8 @@ The table below shows this endpoint's support for for more details.

+-> The corresponding CLI command is [`consul intention match`](https://www.consul.io/commands/intention/match) + ### Parameters - `by` `(string: )` - Specifies whether to match the "name" value diff --git a/website/content/api-docs/coordinate.mdx b/website/content/api-docs/coordinate.mdx index f3ff23bae..6f2958095 100644 --- a/website/content/api-docs/coordinate.mdx +++ b/website/content/api-docs/coordinate.mdx @@ -38,6 +38,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `none` | +-> The corresponding CLI command is [`consul rtt -wan #`](https://www.consul.io/commands/rtt#wan) + ### Sample Request ```shell-session @@ -90,6 +92,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `node:read` | +-> The corresponding CLI command is [`consul rtt #`](https://www.consul.io/commands/rtt) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to diff --git a/website/content/api-docs/event.mdx b/website/content/api-docs/event.mdx index 8773a337c..3a58f52fc 100644 --- a/website/content/api-docs/event.mdx +++ b/website/content/api-docs/event.mdx @@ -29,6 +29,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------- | | `NO` | `none` | `none` | `event:write` | +-> The corresponding CLI command is [`consul event`](https://www.consul.io/commands/event) + ### Parameters - `name` `(string: )` - Specifies the name of the event to fire. This diff --git a/website/content/api-docs/kv.mdx b/website/content/api-docs/kv.mdx index cc99ed373..efdeee907 100644 --- a/website/content/api-docs/kv.mdx +++ b/website/content/api-docs/kv.mdx @@ -41,6 +41,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `YES` | `all` | `none` | `key:read` | +-> The corresponding CLI command is [`consul kv get`](https://www.consul.io/commands/kv/get) + ### Parameters - `key` `(string: "")` - Specifies the path of the key to read. @@ -171,6 +173,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `key:write` | +-> The corresponding CLI command is [`consul kv put`](https://www.consul.io/commands/kv/put) + ### Parameters - `key` `(string: "")` - Specifies the path of the key. @@ -257,6 +261,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `key:write` | +-> The corresponding CLI command is [`consul kv delete`](https://www.consul.io/commands/kv/delete) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to diff --git a/website/content/api-docs/namespaces.mdx b/website/content/api-docs/namespaces.mdx index 27da27e12..ad8b032cb 100644 --- a/website/content/api-docs/namespaces.mdx +++ b/website/content/api-docs/namespaces.mdx @@ -29,6 +29,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul namespace create`](https://www.consul.io/commands/namespace/create) + ### Parameters - `Name` `(string: )` - The namespaces name. This must be a valid @@ -161,6 +163,8 @@ The table below shows this endpoint's support for 1 Access can be granted to list the Namespace if the token used when making the request has been granted any access in the namespace (read, list or write). +-> The corresponding CLI command is [`consul namespace read`](https://www.consul.io/commands/namespace/read) + ### Parameters - `name` `(string: )` - Specifies the namespace to read. This @@ -227,6 +231,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul namespace update`](https://www.consul.io/commands/namespace/update) or [`consul namespace write`](https://www.consul.io/commands/namespace/write) + ### Parameters - `Name` `(string: )` - The namespaces name. This must be a valid @@ -364,6 +370,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul namespace delete`](https://www.consul.io/commands/namespace/delete) + ### Parameters - `name` `(string: )` - Specifies the namespace to delete. This @@ -436,6 +444,8 @@ The table below shows this endpoint's support for 1 Access can be granted to list the Namespace if the token used when making the request has been granted any access in the namespace (read, list or write). +-> The corresponding CLI command is [`consul namespace list`](https://www.consul.io/commands/namespace/list) + ### Sample Request ```shell-session diff --git a/website/content/api-docs/operator/area.mdx b/website/content/api-docs/operator/area.mdx index 6d941ca3d..6529dc2c3 100644 --- a/website/content/api-docs/operator/area.mdx +++ b/website/content/api-docs/operator/area.mdx @@ -45,6 +45,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul operator area create`](https://www.consul.io/commands/operator/area#create) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -111,6 +113,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `YES` | `all` | `none` | `operator:read` | +-> The corresponding CLI command is [`consul operator area list`](https://www.consul.io/commands/operator/area#list) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -154,6 +158,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul operator area update`](https://www.consul.io/commands/operator/area#update) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -244,6 +250,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul operator area delete`](https://www.consul.io/commands/operator/area#delete) + ### Parameters - `uuid` `(string: )` - Specifies the UUID of the area to delete. This @@ -280,6 +288,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul operator area join`](https://www.consul.io/commands/operator/area#join) + ### Parameters - `uuid` `(string: )` - Specifies the UUID of the area to join. This @@ -353,6 +363,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `operator:read` | +-> The corresponding CLI command is [`consul operator area members`](https://www.consul.io/commands/operator/area#members) + ### Parameters - `uuid` `(string: )` - Specifies the UUID of the area to list. This diff --git a/website/content/api-docs/operator/autopilot.mdx b/website/content/api-docs/operator/autopilot.mdx index ed568e648..23ca9edc9 100644 --- a/website/content/api-docs/operator/autopilot.mdx +++ b/website/content/api-docs/operator/autopilot.mdx @@ -33,6 +33,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `operator:read` | +-> The corresponding CLI command is [`consul operator autopilot get-config`](https://www.consul.io/commands/operator/autopilot#get-config) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -87,6 +89,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul operator autopilot set-config`](https://www.consul.io/commands/operator/autopilot#set-config) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to @@ -269,6 +273,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `operator:read` | +-> The corresponding CLI command is [`consul operator autopilot state`](https://www.consul.io/commands/operator/autopilot#state) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to diff --git a/website/content/api-docs/operator/keyring.mdx b/website/content/api-docs/operator/keyring.mdx index 4a1e86887..a2def36ef 100644 --- a/website/content/api-docs/operator/keyring.mdx +++ b/website/content/api-docs/operator/keyring.mdx @@ -35,6 +35,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | -------------- | | `NO` | `none` | `none` | `keyring:read` | +-> The corresponding CLI command is [`consul keyring -list`](https://www.consul.io/commands/keyring#list) + ### Parameters - `relay-factor` `(int: 0)` - Specifies the relay factor. Setting this to a @@ -120,6 +122,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `keyring:write` | +-> The corresponding CLI command is [`consul keyring -intstall`](https://www.consul.io/commands/keyring#install) + ### Parameters - `relay-factor` `(int: 0)` - Specifies the relay factor. Setting this to a @@ -166,6 +170,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `keyring:write` | +-> The corresponding CLI command is [`consul keyring -use`](https://www.consul.io/commands/keyring#use) + ### Parameters - `relay-factor` `(int: 0)` - Specifies the relay factor. Setting this to a @@ -212,6 +218,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | --------------- | | `NO` | `none` | `none` | `keyring:write` | +-> The corresponding CLI command is [`consul keyring -remove`](https://www.consul.io/commands/keyring#remove) + ### Parameters - `relay-factor` `(int: 0)` - Specifies the relay factor. Setting this to a diff --git a/website/content/api-docs/operator/license.mdx b/website/content/api-docs/operator/license.mdx index 415491966..467b88350 100644 --- a/website/content/api-docs/operator/license.mdx +++ b/website/content/api-docs/operator/license.mdx @@ -31,6 +31,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `all` | `none` | `none` | +-> The corresponding CLI command is [`consul license get`](https://www.consul.io/commands/license#get) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter whose license should be retrieved. @@ -96,6 +98,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul license put`](https://www.consul.io/commands/license#put) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter whose license should be updated. @@ -166,6 +170,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul license reset`](https://www.consul.io/commands/license#reset) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter whose license should be updated. diff --git a/website/content/api-docs/operator/raft.mdx b/website/content/api-docs/operator/raft.mdx index b56211b2c..04fbfa2eb 100644 --- a/website/content/api-docs/operator/raft.mdx +++ b/website/content/api-docs/operator/raft.mdx @@ -130,6 +130,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ---------------- | | `NO` | `none` | `none` | `operator:write` | +-> The corresponding CLI command is [`consul operator raft remove-peer`](https://www.consul.io/commands/operator/raft#remove-peer) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to diff --git a/website/content/api-docs/snapshot.mdx b/website/content/api-docs/snapshot.mdx index d94248a1b..9080389af 100644 --- a/website/content/api-docs/snapshot.mdx +++ b/website/content/api-docs/snapshot.mdx @@ -39,6 +39,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `default,stale` | `none` | `management` | +-> The corresponding CLI command is [`consul snapshot save`](https://www.consul.io/commands/snapshot/save) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default @@ -94,6 +96,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `management` | +-> The corresponding CLI command is [`consul snapshot restore`](https://www.consul.io/commands/snapshot/restore) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default diff --git a/website/content/api-docs/status.mdx b/website/content/api-docs/status.mdx index e2ad3ad9e..30b0f45ae 100644 --- a/website/content/api-docs/status.mdx +++ b/website/content/api-docs/status.mdx @@ -70,6 +70,8 @@ The table below shows this endpoint's support for | ---------------- | ----------------- | ------------- | ------------ | | `NO` | `none` | `none` | `none` | +-> The corresponding CLI command is [`consul operator raft list-peers`](https://www.consul.io/commands/operator/raft#list-peers) + ### Parameters - `dc` `(string: "")` - Specifies the datacenter to query. This will default to