Unpause runs
curl --request POST \
--url https://api.cloudcruise.com/runs/unpause \
--header 'Content-Type: application/json' \
--header 'cc-key: <api-key>' \
--data '
{
"pause_resource": "run_window",
"resource_ids": [
"11223344-5566-7788-9900-112233445566"
]
}
'import requests
url = "https://api.cloudcruise.com/runs/unpause"
payload = {
"pause_resource": "run_window",
"resource_ids": ["11223344-5566-7788-9900-112233445566"]
}
headers = {
"cc-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'cc-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pause_resource: 'run_window',
resource_ids: ['11223344-5566-7788-9900-112233445566']
})
};
fetch('https://api.cloudcruise.com/runs/unpause', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pause_resource' => 'run_window',
'resource_ids' => [
'11223344-5566-7788-9900-112233445566'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/runs/unpause"
payload := strings.NewReader("{\n \"pause_resource\": \"run_window\",\n \"resource_ids\": [\n \"11223344-5566-7788-9900-112233445566\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cc-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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")
.header("cc-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pause_resource\": \"run_window\",\n \"resource_ids\": [\n \"11223344-5566-7788-9900-112233445566\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/runs/unpause")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cc-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pause_resource\": \"run_window\",\n \"resource_ids\": [\n \"11223344-5566-7788-9900-112233445566\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"resumedRuns": 123,
"skippedResourceGroups": [
"<string>"
],
"errors": [
"<string>"
]
}Run API
Unpause runs
Lifts a pause so held runs can start. Requires the Owner or Member workspace role.
With pause_resource set to run_window, this is Run now for a run window: it lifts the closed window of each listed workflow and starts its held runs. The lift also covers runs submitted while it is active, and lasts until the window next opens, or until it is edited or removed. Workflows whose window is already open are skipped. A manual pause is never lifted this way.
With pause_resource set to workflow, it removes the manual pause on each listed workflow.
POST
/
runs
/
unpause
Unpause runs
curl --request POST \
--url https://api.cloudcruise.com/runs/unpause \
--header 'Content-Type: application/json' \
--header 'cc-key: <api-key>' \
--data '
{
"pause_resource": "run_window",
"resource_ids": [
"11223344-5566-7788-9900-112233445566"
]
}
'import requests
url = "https://api.cloudcruise.com/runs/unpause"
payload = {
"pause_resource": "run_window",
"resource_ids": ["11223344-5566-7788-9900-112233445566"]
}
headers = {
"cc-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'cc-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pause_resource: 'run_window',
resource_ids: ['11223344-5566-7788-9900-112233445566']
})
};
fetch('https://api.cloudcruise.com/runs/unpause', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pause_resource' => 'run_window',
'resource_ids' => [
'11223344-5566-7788-9900-112233445566'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.cloudcruise.com/runs/unpause"
payload := strings.NewReader("{\n \"pause_resource\": \"run_window\",\n \"resource_ids\": [\n \"11223344-5566-7788-9900-112233445566\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cc-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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")
.header("cc-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pause_resource\": \"run_window\",\n \"resource_ids\": [\n \"11223344-5566-7788-9900-112233445566\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudcruise.com/runs/unpause")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["cc-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pause_resource\": \"run_window\",\n \"resource_ids\": [\n \"11223344-5566-7788-9900-112233445566\"\n ]\n}"
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.
Body
application/json
Was this page helpful?

