il2_rest/client.py
def chain_by_id(self, chain_id) :
        """
        Get a chain by id.
    
        Args:
            chain_id (:obj:`str`): Chain id.

        Returns:
            :obj:`RestChain`: Chain instance with the corresponding id.

        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> print(chain)
            Chain '3.6.2 chain name' #A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE
        """
        json_data = self._get(f'/chain/{chain_id}')
        return RestChain(self, ChainIdModel.from_json(json_data))

        Get a chain by id.
    
        Args:
            chain_id (:obj:`str`): Chain id.

        Returns:
            :obj:`RestChain`: Chain instance with the corresponding id.

        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> print(chain)
            Chain '3.6.2 chain name' #A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE
        
Get a chain by id.
Get a chain by id .
def chain_by_id(self, chain_id) :
        json_data = self._get(f'/chain/{chain_id}')
        return RestChain(self, ChainIdModel.from_json(json_data))
def chain_by_id ( self , chain_id ) : json_data = self . _get ( f'/chain/{chain_id}' ) return RestChain ( self , ChainIdModel . from_json ( json_data ) )
Get a chain by id.
Get a chain by id .
"""
        Get a chain by id.
    
        Args:
            chain_id (:obj:`str`): Chain id.

        Returns:
            :obj:`RestChain`: Chain instance with the corresponding id.

        Example:
            >>> node = RestNode(cert_file='documenter.pfx', cert_pass='password', port=32020)
            >>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
            >>> print(chain)
            Chain '3.6.2 chain name' #A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE
        """
:obj:`RestChain`: Chain instance with the corresponding id.
: obj : ` RestChain ` : Chain instance with the corresponding id .
self
chain_id
chain_id (
`str`): Chain id.
` str ` ) : Chain id .
examples
>>> node = RestNode(cert_file='documenter.pfx', cert_pass='password', port=32020)
>>> chain = node.chain_by_id('A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE')
>>> print(chain)
Chain '3.6.2 chain name' #A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK-iDKE
>>> node = RestNode ( cert_file = ' documenter . pfx ' cert_pass = ' password ' port = 32020 ) >>> chain = node . chain_by_id ( ' A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK - iDKE ' ) >>> print ( chain ) Chain ' 3 . 6 . 2 chain name ' #A1wCG9hHhuVNb8hyOALHokYsWyTumHU0vRxtcK - iDKE