Skip to main content

Initializer

Properties


defaultsOptional

  • Type: typing.Mapping[typing.Any]

workspaceOptional

  • Type: str

access_tokenRequired

  • Type: str
(Required) Access token.

pathRequired

  • Type: str
(Required) Path in the Consul KV store.

addressOptional

  • Type: str
(Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port. Defaults to the local agent HTTP listener.

ca_fileOptional

  • Type: str
(Optional) A path to a PEM-encoded certificate authority used to verify the remote agent’s certificate.

cert_fileOptional

  • Type: str
(Optional) A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file.

datacenterOptional

  • Type: str
(Optional) The datacenter to use. Defaults to that of the agent.

gzipOptional

  • Type: bool
(Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.

http_authOptional

  • Type: str
(Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.

key_fileOptional

  • Type: str
(Optional) A path to a PEM-encoded private key, required if cert_file is specified.

lockOptional

  • Type: bool
(Optional) false to disable locking. This defaults to true, but will require session permissions with Consul and at least kv write permissions on $path/.lock to perform locking.

schemeOptional

  • Type: str
(Optional) Specifies what protocol to use when talking to the given address,either http or https. SSL support can also be triggered by setting then environment variable CONSUL_HTTP_SSL to true.