{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To run a command in a MicroVM's workload container, send a POST request to\n`/v2/microvms/{microvm_id}/exec`.\n\n`argv` runs directly, not through a shell, with standard input closed. If the MicroVM is\npaused and auto-resume is on, the request resumes it and waits until it is running.\n\nA command has 60 seconds to finish. Your team can run 32 commands at once and 60 commands\nper minute. Rejected requests count toward the per-minute limit.\n","properties":{"path":{"type":"object","properties":{"microvm_id":{"type":"string","format":"uuid","examples":["01a0ef1a-d873-793d-ae6a-5dd6239be62a"],"description":"The unique ID of the MicroVM."}},"required":["microvm_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/exec_request","examples":[{"argv":["nginx","-v"]}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"exec_request":{"type":"object","description":"A command to run in the MicroVM's workload container. The command runs directly, not through a shell. To use pipes, redirects, or environment variables, run it with `sh -c`. The request body can be up to 1 MiB.","properties":{"argv":{"type":"array","minItems":1,"items":{"type":"string"},"description":"The command and its arguments.","examples":[["nginx","-v"]]},"cwd":{"type":"string","description":"The working directory to run the command in.","examples":["/usr/share/nginx/html"]}},"required":["argv"]}}},"name":"Run a command in a MicroVM","id":"digitalocean.microvms_run_command","example":{"path":{"microvm_id":"01a0ef1a-d873-793d-ae6a-5dd6239be62a"},"body":{"argv":["nginx","-v"]}},"maxRequests":1,"summary":false}}