Skip to content
Proud to collaborate with Microsoft for Startups

mgc.object_storage.get_object ​

Fetch object metadata (and optionally a bounded body) from Magalu Object Storage.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-mgc
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—CloudConnection UUID (object-storage key pair) for the target Magalu account.
workflow_run_idstringNo—Engine DAG run ID stamped onto child steps.
bucket_namestringYes—Source bucket.
object_keystringYes—Object key to fetch.
include_bodybooleanNo—When true, include a bounded utf-8 body in the output.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—CloudConnection UUID echoed from input.
bucket_namestringNo—Bucket name.
object_keystringNo—Object key.
sizeintegerNo—Object size in bytes.
content_typestringNo—Object MIME type.
last_modifiedstringNo—Last-modified timestamp.
etagstringNo—Object ETag.
bodystringNo—Bounded utf-8 body (only when include_body=true).
body_base64stringNo—Base64 body when content is not utf-8 decodable.
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.object_storage.get_object",
  "initial_data": {
    "connection_uuid": "value",
    "bucket_name": "value",
    "object_key": "value"
  }
}