Skip to content

REST API for Workspaces - DescribeWorkspaces

0

Following the docs at: https://docs.aws.amazon.com/workspaces/latest/api/API_DescribeWorkspaces.html
I combined this URL: GET https://workspaces.us-west-2.amazonaws.com?Action=DescribeWorkspaces&Version=2015-04-08
and call it using Postman to read all workspaces within our account in us-west-2, but am getting a 404 with <UnknownOperationException/>

I am able to run REST APIs via Postman for ec2 and IAM without an issue, but maybe the workspace REST APIs are different?
Seems I'm missing something simple... Any help is appreciated
Thanks
udo

asked 4 years ago809 views
1 Answer
0

After changing the request to POST
and adding headers
Content-Type: application/x-amz-json-1.1
X-Amz-Target: WorkspacesService.DescribeWorkspaces
and body:
{
"limit": 25
}

This works fine now.

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.