Unpause all runs
curl --request POST \
--url https://api.cloudcruise.com/runs/unpause-all \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/runs/unpause-all"
headers = {"cc-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/runs/unpause-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/runs/unpause-all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/runs/unpause-all"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cc-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cloudcruise.com/runs/unpause-all")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/runs/unpause-all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"resumedRuns": 123,
"skippedResourceGroups": [
"<string>"
],
"errors": [
"<string>"
]
}Run API
Unpause all runs
Lifts every manual pause in the workspace, including pauses set by error codes, and moves the held runs back to the queue. Requires the Owner or Member workspace role.
Holds from a closed run window are skipped. Use POST /runs/unpause with pause_resource set to run_window for those.
POST
/
runs
/
unpause-all
Unpause all runs
curl --request POST \
--url https://api.cloudcruise.com/runs/unpause-all \
--header 'cc-key: <api-key>'import requests
url = "https://api.cloudcruise.com/runs/unpause-all"
headers = {"cc-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'cc-key': '<api-key>'}};
fetch('https://api.cloudcruise.com/runs/unpause-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudcruise.com/runs/unpause-all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"cc-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/runs/unpause-all"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("cc-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cloudcruise.com/runs/unpause-all")
.header("cc-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/runs/unpause-all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cc-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"resumedRuns": 123,
"skippedResourceGroups": [
"<string>"
],
"errors": [
"<string>"
]
}Authorizations
API key-based authentication. Provide your CloudCruise API key in the cc-key header.
Response
200 - application/json
The pauses were lifted
Number of held runs moved back to the queue
Worker groups that were busy and could not be processed. The pauses are already lifted, so repeating this call does nothing. Their runs are released by a periodic sweep within about 10 minutes, or right away by calling POST /runs/unpause with the same resource IDs.
Was this page helpful?

