From smidhunraj at gmail.com Wed Sep 18 13:38:42 2019 Content-Type: multipart/mixed; boundary="===============8005591994800319412==" MIME-Version: 1.0 From: smidhunraj at gmail.com To: devel at ovirt.org Subject: [ovirt-devel] [User is not authorized to perform this action.] Date: Wed, 18 Sep 2019 13:38:37 +0000 Message-ID: <20190918133837.3514.8699@mail.ovirt.org> --===============8005591994800319412== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable I am getting error as User is not authorized to perform this action.I am us= ing oVirt api to manually attach a disk and snapshot to another virtual ma= chine.This the code i used.The API i followed is ' true false virtio My disk cow mydisk = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D The php code i have tried is ... public function attachSnapshotandActivateDisk( ) { $data =3D array(); $xmlStr =3D ' true false virtio My disk cow mydisk = '; $curlParam =3D array( "url" =3D> "vms/74a1a99f-87d1-4444-b394-f90e4f29f51f/diskattach= ments", "method" =3D> "POST", "data" =3D> $xmlStr ); // $text =3D print_r($curlParam, true); //echo ""; $data =3D $this->processCurlRequest($curlParam, "vm-create"); // if instance update failed if ($data['status'] !=3D 'success') { Common::ovirtLog(array( "requestParam" =3D> $curlParam, "responseParam" =3D> $data, )); } // show the output of print_r function as a string // $text =3D print_r($data, true); echo $data['message']; die; echo ""; //Detach the disk // $this->detachSnapshotDisk() ; = return $data; } Please help me. --===============8005591994800319412==--