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). |
- United States
- Europe
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'
Sample Request
curl --header "Content-Type: application/json" --data "{\"registry_url\": \"example.com/registry\"}" --request POST 'https://api.eu-central-1.saucelabs.com/v1alpha1/hosted/container-registry/authorization-token'
Responses
200 | Success. | |
403 | You're not allowed to generate a short living token for your organization. | |
422 | We couldn't generate a short living token for your organization. | |
500 | We 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"
}