ec2.mac.getShow the macOS instance sizes and images, and your organization’s macOS instances
A macOS instance is a VM on one of the office Mac minis (10 cores, 16 GB): two mac-4x6 or one mac-8x12 per Mac. Launch one with `ec2 instances run --server-type mac-4x6`. 404 while macOS instances are not available to your organization.
Request syntax
GET /ec2/api/macResponse
200: `data` has `types` (name, vcpu, memoryGib, perMac), `images` (name, description, loginUser) and `instances`: each of your macOS instances that is not gone, with its type, image, state as its Mac reports it (pending, creating, booted, running, failed), desired state, runningSince and error.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow ec2:DescribeInstances on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud ec2 mac getcurl -X GET "https://console.platform.deutschecloud.app/ec2/api/mac" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY"import { DcloudClient } from '@dcloud/sdk';
const client = new DcloudClient();
const result = await client.ec2.mac.get();from dcloud import Client
client = Client()
result = client.ec2.mac.get()Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ec2_mac_get.