Checks whether a Flavor configuration is valid.
{
"Properties": {},
"Allocation": {
"Size": 1,
"LogicalIDs": ["logical_id_1"]
}
}
Parameters:
Properties
: A JSON object representing the Flavor. The schema is defined by the Flavor plugin in use.Allocation
: An Allocation
{
"OK": true
}
OK
: Whether the operation succeeded.
Instructs the Flavor Plugin to prepare an Instance with any additional configuration it wishes to include. The Flavor
may add, remove, or modify any fields in the Instance Spec
by returning the desired Instance configuration.
{
"Properties": {},
"Spec": {
"Properties": {},
"Tags": {
"tag_key": "tag_value"
},
"Init": "init script",
"LogicalID": "logical_id",
"Attachments": ["attachment_id"]
},
"Allocation": {
"Size": 1,
"LogicalIDs": ["logical_id_1"]
},
"Index" : {
"Group" : "workers",
"Sequence" : 100
}
}
Parameters:
Properties
: A JSON object representing the Flavor. The schema is defined by the Flavor plugin in use.Spec
: The Spec of the Instance being prepared.Allocation
: An AllocationIndex
: an Index
{
"Spec": {
"Properties": {},
"Tags": {
"tag_key": "tag_value"
},
"Init": "init script",
"LogicalID": "logical_id",
"Attachments": ["attachment_id"]
}
}
Fields:
Spec
: The Spec of the Instance, with the Flavor's adjustments made.
Checks whether the Flavor plugin considers an Instance to be healthy.
{
"Properties": {},
"Instance": {
"ID": "instance_id",
"LogicalID": "logical_id",
"Tags": {
"tag_key": "tag_value"
}
}
}
Parameters:
Properties
: A JSON object representing the Flavor. The schema is defined by the Flavor plugin in use.Instance
: The Instance Description
{
"Health": 1
}
Fields:
Health
: An integer representing the health the instance.0
for 'unknown',1
for 'healthy', or `2' for 'unhealthy'
Informs the Flavor plugin that an Instance will soon be terminated, and allows the plugin to perform any necessary cleanup work prior to removing the instance.
{
"Properties": {},
"Instance": {
"ID": "instance_id",
"LogicalID": "logical_id",
"Tags": {
"tag_key": "tag_value"
}
}
}
Parameters:
Properties
: A JSON object representing the Flavor. The schema is defined by the Flavor plugin in use.Instance
: The Instance Description
{
"OK": true
}
Fields:
OK
: Whether the operation succeeded.