Configclient
Classes¶
ConfigClient ¶
ConfigClient(
rucio_host=None,
auth_host=None,
account=None,
ca_cert=None,
auth_type=None,
creds=None,
timeout=600,
user_agent="rucio-clients",
vo=None,
logger=LOG,
)
Client class for working with the configuration
Functions¶
get_config ¶
get_config(section=None, option=None)
Sends the request to get the matching configuration.
PARAMETER | DESCRIPTION |
---|---|
section
|
The name of the section.
TYPE:
|
option
|
The option within the section.
TYPE:
|
set_config_option ¶
set_config_option(
section, option, value, use_body_for_params=True
)
Sends the request to create or set an option within a section. Missing sections will be created.
PARAMETER | DESCRIPTION |
---|---|
section
|
The name of the section.
TYPE:
|
option
|
The name of the option.
TYPE:
|
value
|
The value to set on the config option.
TYPE:
|
use_body_for_params
|
Send parameters in a json-encoded request body instead of url-encoded.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
True if option was set successfully. |
Note:
The format of the /config endpoint was recently changed. We migrated from performing a PUT on
"/config/
delete_config_option ¶
delete_config_option(section, option)
Sends the request to remove an option from a section.
PARAMETER | DESCRIPTION |
---|---|
section
|
The name of the section.
TYPE:
|
option
|
The name of the option.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if option was removed successfully.
|
|