Environments
Create Chain environment
Create a chain environment. Returns the resulting environment.
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
Example:
"staging"
Promotion settings for the environment
Example:
{
"ramp_up_duration_seconds": 600,
"ramp_up_while_promoting": true,
"redeploy_on_promotion": true
}
Mapping of chainlet name to the desired chainlet environment settings
Request to create environment settings for a chainlet.
Example:
[
{
"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
Environment settings for a chainlet.
Current chain deployment of the environment