def getLogicalInterfaces(self, draft=False, name=None, schemaId=None):
        """
        Get all logical interfaces for an org.
        Parameters: draft (boolean).
        Returns:
            - list of ids
            - response object
        Throws APIException on failure.
        """
        if draft:
            req = ApiClient.allLogicalInterfacesUrl % (self.host, "/draft")
        else:
            req = ApiClient.allLogicalInterfacesUrl % (self.host, "")

        if name or schemaId:
            req += "?"
            if name:
                req += "name="+name
            if schemaId:
                if name:
                    req += "&"
                req += "schemaId="+schemaId

        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("All logical interfaces retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting all logical interfaces", resp)
        return [x["id"] for x in resp.json()["results"]], resp.json()
def getLogicalInterfaces(self, draft=False, name=None, schemaId=None):
        """
        Get all logical interfaces for an org.
        Parameters: draft (boolean).
        Returns:
            - list of ids
            - response object
        Throws APIException on failure.
        """
        if draft:
            req = ApiClient.allLogicalInterfacesUrl % (self.host, "/draft")
        else:
            req = ApiClient.allLogicalInterfacesUrl % (self.host, "")

        if name or schemaId:
            req += "?"
            if name:
                req += "name="+name
            if schemaId:
                if name:
                    req += "&"
                req += "schemaId="+schemaId

        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("All logical interfaces retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting all logical interfaces", resp)
        return [x["id"] for x in resp.json()["results"]], resp.json()
def getLogicalInterfaces ( self , draft = False , name = None , schemaId = None ) : if draft : req = ApiClient . allLogicalInterfacesUrl % ( self . host , "/draft" ) else : req = ApiClient . allLogicalInterfacesUrl % ( self . host , "" ) if name or schemaId : req += "?" if name : req += "name=" + name if schemaId : if name : req += "&" req += "schemaId=" + schemaId resp = requests . get ( req , auth = self . credentials , verify = self . verify ) if resp . status_code == 200 : self . logger . debug ( "All logical interfaces retrieved" ) else : raise ibmiotf . APIException ( resp . status_code , "HTTP error getting all logical interfaces" , resp ) return [ x [ "id" ] for x in resp . json ( ) [ "results" ] ] , resp . json ( )
Get all logical interfaces for an org.
        Parameters: draft (boolean).
        Returns:
            - list of ids
            - response object
        Throws APIException on failure.
Get all logical interfaces for an org . Parameters : draft ( boolean ) . Returns : - list of ids - response object Throws APIException on failure .