简体   繁体   中英

AWS Workspaces CLI: Syntax for `Start - Workspaces`

I am trying to craft a script to start workspaces 10 minutes before the workday begins. I am starting with running the CLI command below and then build from there. I have checked that I am in the right region:

aws workspaces start-workspaces --start-workspace-requests WorkspaceId=[Workspace ID]

This command is timing out. It feels like 101 but can't find any references online. Thanks for your help.

Sorry for the late reply. Accidentally found this when looking for something else...

It works without an [array] for the WorkspaceId parameter shorthand syntax. Unless you're passing a JSON, you probably intend to use this method.

aws workspaces start-workspaces --start-workspace-requests WorkspaceId=ws-abcd12345

Here is the reference: https://docs.aws.amazon.com/cli/latest/reference/workspaces/start-workspaces.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM