Check an AWS connection again: role, external ID, launch permission (EC2 dry run), GPU quota, and GPU offerings. Nothing is created in AWS
POST
/
api
/
v1
/
compute
/
connections
/
{id}
/
verify
Check an AWS connection again: role, external ID, launch permission (EC2 dry run), GPU quota, and GPU offerings. Nothing is created in AWS
curl --request POST \
--url http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"connection": {
"adapter": "runpod-pods",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"provider": "runpod",
"status": "verified",
"updated_at": "2023-11-07T05:31:56Z",
"verified_at": "2023-11-07T05:31:56Z"
},
"verification": {
"checked_at": "2023-11-07T05:31:56Z",
"checks": [
{
"message": "<string>",
"name": "assume_role",
"state": "passed"
}
],
"limitations": [
"<string>"
],
"region": "<string>",
"verified": true,
"account_id": "<string>",
"gpus": [
{
"capacity": "unknown",
"gpu": "<string>",
"instance_type": "<string>",
"offered": "offered",
"quota": "enough",
"quota_family": "G",
"vcpus": 123,
"zones": [
"<string>"
]
}
],
"quota_vcpus": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}⌘I
Check an AWS connection again: role, external ID, launch permission (EC2 dry run), GPU quota, and GPU offerings. Nothing is created in AWS
curl --request POST \
--url http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://127.0.0.1:18000/api/v1/compute/connections/{id}/verify"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"connection": {
"adapter": "runpod-pods",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"name": "<string>",
"provider": "runpod",
"status": "verified",
"updated_at": "2023-11-07T05:31:56Z",
"verified_at": "2023-11-07T05:31:56Z"
},
"verification": {
"checked_at": "2023-11-07T05:31:56Z",
"checks": [
{
"message": "<string>",
"name": "assume_role",
"state": "passed"
}
],
"limitations": [
"<string>"
],
"region": "<string>",
"verified": true,
"account_id": "<string>",
"gpus": [
{
"capacity": "unknown",
"gpu": "<string>",
"instance_type": "<string>",
"offered": "offered",
"quota": "enough",
"quota_family": "G",
"vcpus": 123,
"zones": [
"<string>"
]
}
],
"quota_vcpus": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"category": "<string>",
"remediation": "<string>",
"request_id": "<string>",
"retryable": true
}
}