Skip to main content

Orchestrate

The Sauce Orchestrate API methods allow you to access orchestrate-related features which might not yet be available using other methods.

Refer to Getting Started for Authentication and Server information.

Get short-lived tokens for private registry

POST /v1alpha1/hosted/container-registry/authorization-token

Return a short-lived token that can be used to access SauceLabs Container Registry.

Parameters

registry_url

| BODY | REQUIRED | STRING |

The whole url of your SauceLabs Container Registry (not just a domain name).

Sample Request
curl --header "Content-Type: application/json" --data "{\"registry_url\": \"example.com/registry\"}" --request POST 'https://api.us-west-1.saucelabs.com/v1alpha1/hosted/container-registry/authorization-token'

Responses

200Success.
403You're not allowed to generate a short living token for your organization.
422We couldn't generate a short living token for your organization.
500We couldn't generate a short living token for your organization.
Sample Response
{
"expires_at": "2023-10-23T12:03:55Z",
"password": "ya29.c.c0AY_VpZh8lOOO98LjV71rZJx5tPAC8XE42io...",
"username": "oauth2accesstoken"
}