Controller/Adminhtml/FastlyCdn/Edge/Acl/Item/ListAll.php
public function execute()
    {
        $result = $this->resultJson->create();

        try {
            $aclId = $this->getRequest()->getParam('acl_id');
            $aclItems = $this->api->aclItemsList($aclId);

            if (is_array($aclItems) && empty($aclItems)) {
                return $result->setData([
                    'status'    => 'empty',
                    'aclItems'  => []
                ]);
            }

            if (!$aclItems) {
                return $result->setData([
                    'status'    => false,
                    'msg'       => 'Failed to fetch acl items.'
                ]);
            }

            return $result->setData([
                'status'    => true,
                'aclItems'  => $aclItems
            ]);
        } catch (\Exception $e) {
            return $result->setData([
                'status'    => false,
                'msg'       => $e->getMessage()
            ]);
        }
    }
public function execute()
    {
        $result = $this->resultJson->create();

        try {
            $aclId = $this->getRequest()->getParam('acl_id');
            $aclItems = $this->api->aclItemsList($aclId);

            if (is_array($aclItems) && empty($aclItems)) {
                return $result->setData([
                    'status'    => 'empty',
                    'aclItems'  => []
                ]);
            }

            if (!$aclItems) {
                return $result->setData([
                    'status'    => false,
                    'msg'       => 'Failed to fetch acl items.'
                ]);
            }

            return $result->setData([
                'status'    => true,
                'aclItems'  => $aclItems
            ]);
        } catch (\Exception $e) {
            return $result->setData([
                'status'    => false,
                'msg'       => $e->getMessage()
            ]);
        }
    }
public function execute ( ) { $ result = $ this -> resultJson -> create ( ) ; try { $ aclId = $ this -> getRequest ( ) -> getParam ( 'acl_id' ) ; $ aclItems = $ this -> api -> aclItemsList ( $ aclId ) ; if ( is_array ( $ aclItems ) && empty ( $ aclItems ) ) { return $ result -> setData ( [ 'status' => 'empty' , 'aclItems' => [ ] ] ) ; } if ( ! $ aclItems ) { return $ result -> setData ( [ 'status' => false , 'msg' => 'Failed to fetch acl items.' ] ) ; } return $ result -> setData ( [ 'status' => true , 'aclItems' => $ aclItems ] ) ; } catch ( \ Exception $ e ) { return $ result -> setData ( [ 'status' => false , 'msg' => $ e -> getMessage ( ) ] ) ; } }
Get all ACL entries for active version and current ACL

@return $this|\Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface
Get all ACL entries for active version and current ACL