Yeah, that might be difficult, the entire idea of a "project" is for the members to share the resources, ie have access to them, that means deletions.

Off the top of my head - and it could just be me overthinking it - you could build some sort of proxy for the API, basically intercept it and check the calls before relaying them to Cloudstack.. so in short, not easy.

On 2023-09-01 12:08, Jorge Luiz Correa wrote:
Is there any way (global configuration, role changes, etc.) to restrict
deletion of an instance to the creator only?

For example, I have a Project with a few users. If user A creates an
instance, only user A can delete it. The goal is that one user can't delete
instances from another by mistake.

Thanks!
:)

--
Jorge Luiz Corrêa
Embrapa Agricultura Digital

echo "CkpvcmdlIEx1aXogQ29ycmVhCkFu
YWxpc3RhIGRlIFJlZGVzIGUgU2VndXJhbm
NhCkVtYnJhcGEgQWdyaWN1bHR1cmEgRGln
aXRhbCAtIE5USQpBdi4gQW5kcmUgVG9zZW
xsbywgMjA5IChCYXJhbyBHZXJhbGRvKQpD
RVAgMTMwODMtODg2IC0gQ2FtcGluYXMsIF
NQClRlbGVmb25lOiAoMTkpIDMyMTEtNTg4
Mgpqb3JnZS5sLmNvcnJlYUBlbWJyYXBhLm
JyCgo="|base64 -d

--
__________________________
Aviso de confidencialidade

Esta mensagem da
Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), empresa publica federal  regida pelo disposto  na Lei Federal no. 5.851,  de 7 de dezembro
de 1972,  e  enviada exclusivamente  a seu destinatario e pode conter
informacoes  confidenciais, protegidas  por sigilo profissional.  Sua
utilizacao desautorizada  e ilegal e  sujeita o infrator as penas da lei.
Se voce  a recebeu indevidamente, queira, por gentileza, reenvia-la ao
emitente, esclarecendo o equivoco.

Confidentiality note

This message from
Empresa  Brasileira de Pesquisa  Agropecuaria (Embrapa), a government
company  established under  Brazilian law (5.851/72), is directed
exclusively to  its addressee  and may contain confidential data, 
protected under  professional secrecy  rules. Its unauthorized  use is
illegal and  may subject the transgressor to the law's penalties. If you
are not the addressee, please send it back, elucidating the failure.

Reply via email to