config
These configuration classes define how to connect to a Zeebe instance.
Keys given in description must be used if you prefer to set up connection using environmental variables.
In addition, you must set CAMUNDA_CONNECTION_TYPE
to either
SECURE
, INSECURE
or CAMUNDA_CLOUD
.
Example Cloud config:
from python_camunda_sdk import CloudConfig
config = CloudConfig(
client_id='jYsgv.SryJYQlcpobk-tZZP~2R60xpNY',
client_secret='55kddTbk~yZBFb2NH5GtebWHkSoK1z.TG7G1Hn-n.mH_f4ihpZAUop1-sryxHnyV',
cluster_id='7bc802fc-7bf4-4800-b84a-596628d1ed08',
region='bru-2'
)
Example Insecure config:
from python_camunda_sdk import InsecureConfig
config = InsecureConfig(
host='127.0.0.1',
port=26500
)
Example secure config:
config = SecureConfig(
host='127.0.0.1',
port=26500,
root_certificates='''
-----BEGIN CERTIFICATE-----
xxx
-----BEGIN CERTIFICATE-----
'''
private_key='''
-----BEGIN RSA PRIVATE KEY-----
xxx
-----BEGIN RSA PRIVATE KEY-----
'''
certificate_chain=''
)
ConnectionConfig
CloudConfig
Bases: ConnectionConfig
Configuration for connection to Camunda SaaS.
Attributes:
Name | Type | Description |
---|---|---|
client_id |
str
|
|
client_secret |
str
|
|
cluster_id |
str
|
|
region |
str
|
|
Source code in python_camunda_sdk/runtime/config.py
InsecureConfig
Bases: ConnectionConfig
Configuration for connecting insecurely to self-hosted Zeebe instance.
Attributes:
Name | Type | Description |
---|---|---|
hostname |
str
|
|
port |
Optional[int]
|
|
Source code in python_camunda_sdk/runtime/config.py
SecureConfig
Bases: InsecureConfig
Configuration for connecting securely to self-hosted Zeebe instance.
Warning
In addition should have hostname and port set.
Attributes:
Name | Type | Description |
---|---|---|
root_certificates |
str
|
|
private_key |
str
|
|
certificate_chain |
Optional[str]
|
|