Authorizations
The Bearer Token generated on the Cloud UI.
Path Parameters
The command identifier
Response
CommandResource
curl --request GET \
--url https://app.laravel.cloud/api/commands/{command} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "<string>",
"type": "commands",
"attributes": {
"command": "<string>",
"output": "<string>",
"status": "pending",
"exit_code": 0,
"failure_reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"environment": {
"data": {
"type": "environments",
"id": "<string>"
}
},
"deployment": {
"data": {
"type": "deployments",
"id": "<string>"
}
},
"initiator": {
"data": {
"type": "users",
"id": "<string>"
}
}
},
"links": {
"self": {
"href": "<string>",
"rel": "<string>",
"describedby": "<string>",
"title": "<string>",
"type": "<string>",
"hreflang": "<string>",
"meta": {}
}
}
}
}Get the details of a specific command.
curl --request GET \
--url https://app.laravel.cloud/api/commands/{command} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "<string>",
"type": "commands",
"attributes": {
"command": "<string>",
"output": "<string>",
"status": "pending",
"exit_code": 0,
"failure_reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"environment": {
"data": {
"type": "environments",
"id": "<string>"
}
},
"deployment": {
"data": {
"type": "deployments",
"id": "<string>"
}
},
"initiator": {
"data": {
"type": "users",
"id": "<string>"
}
}
},
"links": {
"self": {
"href": "<string>",
"rel": "<string>",
"describedby": "<string>",
"title": "<string>",
"type": "<string>",
"hreflang": "<string>",
"meta": {}
}
}
}
}The Bearer Token generated on the Cloud UI.
The command identifier
CommandResource
Show child attributes
Was this page helpful?