I would like to write an extension that uses keys/data from the tenantoptions
.
Eventually these key should be used for completion:
I try to extract the ids ca6vyp
, fr0zqp
, g1epb7
from :
# c8y tenantoptions getForCategory --category dynamic.mapper.service --raw
{
"credentials.connection.configuration.ca6vyp": "<<Encrypted>>",
"credentials.connection.configuration.fr0zqp": "<<Encrypted>>",
"credentials.connection.configuration.g1epb7": "<<Encrypted>>",
"service.configuration": "{\"logPayload\":false,\"logSubstitution\":false,\"logConnectorErrorInBackend\":false,\"sendConnectorLifecycle\":false,\"sendMappingStatus\":true,\"sendSubscriptionEvents\":false,\"sendNotificationLifecycle\":false,\"externalExtensionEnabled\":true,\"outboundMappingEnabled\":true,\"inboundExternalIdCacheSize\":100000,\"inboundExternalIdCacheRetention\":1}"
}
# c8y tenantoptions getForCategory --category dynamic.mapper.service --select 'credentials.connection.configuration.\w+'
| credentials.connection.configuration.\w+ |
|------------------------------------------|
| |
Q1: When I define a wildcard expression is does not return anything. How should the pattern lokk like?:
% c8y tenantoptions getForCategory --category dynamic.mapper.service --select 'credentials.connection.configuration.*'
| credentials.connection.configuration.* |
|----------------------------------------|
| |
Q2: How can I then extract ca6vyp
from credentials.connection.configuration.ca6vyp
?