Hi.
I recently started using TrueNAS and I have the task of creating a target by API.
I send a POST to http://172.16.0.18/api/v2.0/iscsi/target
with header Authorization: Basic 1-asdcsadvnbhl...my key
I even tried converting Basic 1-asdcsadvnbhl...my key to base64 and nothing worked.
I always get a 401 unauthorized response
Please help me.
I recently started using TrueNAS and I have the task of creating a target by API.
I send a POST to http://172.16.0.18/api/v2.0/iscsi/target
with header Authorization: Basic 1-asdcsadvnbhl...my key
I even tried converting Basic 1-asdcsadvnbhl...my key to base64 and nothing worked.
I always get a 401 unauthorized response
Please help me.