Docker Community Forums

Share and learn in the Docker community.

301 When calling service actions via Docker Cloud API

dockercloud

(Cbanovia) #1

I’m using the Docker Cloud API for some internal tooling, to provide access to Start, Stop & Redeploy of services.

I can perform these actions fine through the Docker Cloud UI, and with the CLI.

However, when using the Docker Cloud API, I get a “301 - Moved Permanently” response when calling these actions. I’m able to perform GET requests against the API without issue.

I’m POSTing to https://cloud.docker.com/api/app/v1/(my-namespace)/service/(my-service-uuid)/start/

If these resources have been moved, where have they been moved to, and what is the new endpoint?

If not, any idea what I might be doing wrong?