Skip to content
Proud to collaborate with Microsoft for Startups

mgc.network.create_subnet ​

Create a subnet inside a Magalu Cloud VPC (connection-bound tenant).

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.
tenant_idstringNo—Magalu project tenant UUID (x-tenant-id) override; defaults to the connection-bound tenant.
vpc_idstringYes—VPC id the subnet belongs to.
namestringYes—Subnet name.
cidr_blockstringYes—CIDR block, e.g. 10.0.0.0/24.
ip_versionstringNo—IPv4 or IPv6 (default IPv4).
subnetpool_idstringNo—Subnet pool id (required by some accounts).
dns_nameserverslistNo—DNS nameservers for the subnet.
descriptionstringNo—Optional subnet description.
availability_zonestringNo—Availability zone.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—CloudConnection UUID echoed from input.
subnet_idstringNo—Provider subnet id.
subnetjsonNo—Provider subnet 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.network.create_subnet",
  "initial_data": {
    "connection_uuid": "value",
    "vpc_id": "value",
    "name": "value",
    "cidr_block": "value"
  }
}