Check provider connectivity before creating a pool
curl --request POST \
--url https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"provider": "<string>",
"provider_auth_secret_id": "<string>",
"provider_config": {},
"default_machine_provider_options": {}
}
'import requests
url = "https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection"
payload = {
"provider": "<string>",
"provider_auth_secret_id": "<string>",
"provider_config": {},
"default_machine_provider_options": {}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider: '<string>',
provider_auth_secret_id: '<string>',
provider_config: {},
default_machine_provider_options: {}
})
};
fetch('https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"provider_auth_secret_id\": \"<string>\",\n \"provider_config\": {},\n \"default_machine_provider_options\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"type": "machine_pool_connection_check",
"ok": true
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Machine pools
Check provider connectivity before creating a pool
POST
/
machine_pools
/
check_connection
Check provider connectivity before creating a pool
curl --request POST \
--url https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"provider": "<string>",
"provider_auth_secret_id": "<string>",
"provider_config": {},
"default_machine_provider_options": {}
}
'import requests
url = "https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection"
payload = {
"provider": "<string>",
"provider_auth_secret_id": "<string>",
"provider_config": {},
"default_machine_provider_options": {}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider: '<string>',
provider_auth_secret_id: '<string>',
provider_config: {},
default_machine_provider_options: {}
})
};
fetch('https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/v1/machine_pools/check_connection"
payload := strings.NewReader("{\n \"provider\": \"<string>\",\n \"provider_auth_secret_id\": \"<string>\",\n \"provider_config\": {},\n \"default_machine_provider_options\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"type": "machine_pool_connection_check",
"ok": true
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Authorizations
apiKeybearer
Body
application/json