fromconfigimportConfigClientcc=ConfigClient(app_name='foo',label='main')cc.get_config()# option 1: dict like with direct accesscc.config['spring']['cloud']['config']['uri']# option 2: dict like using getcc.config.get('spring').get('cloud').get('config').get('uri')# option 3: using getcc.get('spring.cloud.config.uri')
Any parameter supported by the get method from the requests library can be used on get_config, including: authentication, SSL verification or custom headers.