SSH Authentication
Before creating a GPU virtual environment, an Authentication method must be established to serve as credentials for logging into the environment once it is set up. Currently, only password-based authentication is supported. This password will be securely stored and used as the login credential for accessing the virtual environment.
Example Request:
curl --location 'https://api.netmind.ai/v1/rentgpu/auths' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '{"value":"{{YOUR_PASSWORD}}"}'import requests
import json
url = "https://api.netmind.ai/v1/rentgpu/auths"
payload = json.dumps({
"value": "{{YOUR_PASSWORD}}"
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer {{API_TOKEN}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Example Response:
{
"id": 0,
"value": "..."
}Last updated
Was this helpful?