Skip to content
Proud to collaborate with Microsoft for Startups

mgc.dbaas.create_instance ​

Create a Magalu Cloud DBaaS instance.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-mgc
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—CloudConnection UUID for the target Magalu account.
workflow_run_idstringNo—Engine DAG run ID stamped onto child steps.
namestringYes—DBaaS instance name.
engine_idstringYes—Engine id (from mgc.dbaas.list_engines).
instance_type_idstringYes—Instance type id (from mgc.dbaas.list_instance_types).
userstringYes—Admin username.
passwordstringYes—Admin password.
volume_sizeintegerYes—Storage volume size in GB.
volume_typestringNo—Storage volume type.
availability_zonestringNo—Availability zone.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—CloudConnection UUID echoed from input.
instance_idstringNo—Provider instance id.
instancejsonNo—Provider instance object.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerstringNo—DAG layer where failure occurred.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—ISO failure timestamp.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "mgc.dbaas.create_instance",
  "initial_data": {
    "connection_uuid": "value",
    "name": "value",
    "engine_id": "value",
    "instance_type_id": "value"
  }
}