src/CheckMKTags.php
public function batchRead(array $objectIDs) {
        $requests = [];

        foreach ($objectIDs as $objectID) {
            if (!is_int($objectID) || $objectID <= 0) {
                throw new BadMethodCallException('Invalid object identifiers');
            }

            $requests[] = [
                'method' => 'checkmk.tags.read',
                'params' => [
                    'objID' => $objectID
                ]
            ];
        }

        return $this->api->batchRequest($requests);
    }
public function batchRead(array $objectIDs) {
        $requests = [];

        foreach ($objectIDs as $objectID) {
            if (!is_int($objectID) || $objectID <= 0) {
                throw new BadMethodCallException('Invalid object identifiers');
            }

            $requests[] = [
                'method' => 'checkmk.tags.read',
                'params' => [
                    'objID' => $objectID
                ]
            ];
        }

        return $this->api->batchRequest($requests);
    }
public function batchRead ( array $ objectIDs ) { $ requests = [ ] ; foreach ( $ objectIDs as $ objectID ) { if ( ! is_int ( $ objectID ) || $ objectID <= 0 ) { throw new BadMethodCallException ( 'Invalid object identifiers' ) ; } $ requests [ ] = [ 'method' => 'checkmk.tags.read' , 'params' => [ 'objID' => $ objectID ] ] ; } return $ this -> api -> batchRequest ( $ requests ) ; }
Read host tags for one or more objects

@param array $objectIDs List of object identifiers as integers

@return array

@throws Exception on error
Read host tags for one or more objects