Create hosted environment
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/hosted-envs \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"name": "<string>",
"region": "<string>",
"config": {},
"endpoints": {}
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/hosted-envs"
payload = {
"name": "<string>",
"region": "<string>",
"config": {},
"endpoints": {}
}
headers = {
"x-alibi-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-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', region: '<string>', config: {}, endpoints: {}})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/hosted-envs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"name": "<string>",
"status": "pending",
"provider": "compose",
"region": "<string>",
"isolationMode": "schema_prefix",
"endpoints": {},
"config": {},
"lastError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Hosted environments
Create hosted environment
POST
/
projects
/
{id}
/
hosted-envs
Create hosted environment
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/hosted-envs \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"name": "<string>",
"region": "<string>",
"config": {},
"endpoints": {}
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/hosted-envs"
payload = {
"name": "<string>",
"region": "<string>",
"config": {},
"endpoints": {}
}
headers = {
"x-alibi-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-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', region: '<string>', config: {}, endpoints: {}})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/hosted-envs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"name": "<string>",
"status": "pending",
"provider": "compose",
"region": "<string>",
"isolationMode": "schema_prefix",
"endpoints": {},
"config": {},
"lastError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
Response
Created