Authorizations
You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Path Parameters
Body
application/json
A request to create a custom environment for a chain.
Name of the environment
Examples:
"staging"
Promotion settings for the environment Promotion settings for promoting chains and oracles
Examples:
{
"ramp_up_duration_seconds": 600,
"ramp_up_while_promoting": true,
"redeploy_on_promotion": true
}
Mapping of chainlet name to the desired chainlet environment settings
Examples:
[
{
"autoscaling_settings": {
"autoscaling_window": 800,
"concurrency_target": 4,
"max_replica": 3,
"min_replica": 2,
"scale_down_delay": 63
},
"chainlet_name": "HelloWorld",
"instance_type_id": "2x8"
},
{
"autoscaling_settings": {
"autoscaling_window": null,
"concurrency_target": null,
"max_replica": 3,
"min_replica": 3,
"scale_down_delay": null
},
"chainlet_name": "RandInt",
"instance_type_id": "A10Gx8x32"
}
]
Response
200 - application/json
Environment for oracles.
Name of the environment
Time the environment was created in ISO 8601 format
Unique identifier of the chain
Promotion settings for the environment
Environment settings for the chainlets
Current chain deployment of the environment A deployment of a chain.