Skip to main content
POST
/
scans
/
cve
/
scan
/
multiple-ips
Start On-Demand Multi-IP Scan
curl --request POST \
  --url https://v1.api.altostrat.io/scans/cve/scan/multiple-ips \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schedule_id": "9c43cc95-f313-49a3-b632-524f7a24503b",
  "site_id": "9c3c1392-7f36-4240-85f2-273573c0384a",
  "ips": [
    "192.168.1.55",
    "192.168.1.60"
  ]
}
'
import requests

url = "https://v1.api.altostrat.io/scans/cve/scan/multiple-ips"

payload = {
"schedule_id": "9c43cc95-f313-49a3-b632-524f7a24503b",
"site_id": "9c3c1392-7f36-4240-85f2-273573c0384a",
"ips": ["192.168.1.55", "192.168.1.60"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schedule_id: '9c43cc95-f313-49a3-b632-524f7a24503b',
site_id: '9c3c1392-7f36-4240-85f2-273573c0384a',
ips: ['192.168.1.55', '192.168.1.60']
})
};

fetch('https://v1.api.altostrat.io/scans/cve/scan/multiple-ips', 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://v1.api.altostrat.io/scans/cve/scan/multiple-ips",
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([
'schedule_id' => '9c43cc95-f313-49a3-b632-524f7a24503b',
'site_id' => '9c3c1392-7f36-4240-85f2-273573c0384a',
'ips' => [
'192.168.1.55',
'192.168.1.60'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$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://v1.api.altostrat.io/scans/cve/scan/multiple-ips"

payload := strings.NewReader("{\n \"schedule_id\": \"9c43cc95-f313-49a3-b632-524f7a24503b\",\n \"site_id\": \"9c3c1392-7f36-4240-85f2-273573c0384a\",\n \"ips\": [\n \"192.168.1.55\",\n \"192.168.1.60\"\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
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://v1.api.altostrat.io/scans/cve/scan/multiple-ips")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schedule_id\": \"9c43cc95-f313-49a3-b632-524f7a24503b\",\n \"site_id\": \"9c3c1392-7f36-4240-85f2-273573c0384a\",\n \"ips\": [\n \"192.168.1.55\",\n \"192.168.1.60\"\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://v1.api.altostrat.io/scans/cve/scan/multiple-ips")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schedule_id\": \"9c43cc95-f313-49a3-b632-524f7a24503b\",\n \"site_id\": \"9c3c1392-7f36-4240-85f2-273573c0384a\",\n \"ips\": [\n \"192.168.1.55\",\n \"192.168.1.60\"\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "scan_id": "9c46a6f1-a8d8-4f5a-9b2f-7d1b3e9c5a1d",
  "scan_site_id": "9c46a6f1-b9e9-4f5a-9b2f-8e2c4f0d6b2e",
  "target_ips": [
    "192.168.1.55",
    "192.168.1.60"
  ],
  "message": "Scan started successfully"
}
{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}
{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}
{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}
{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}
{
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "The 'description' parameter is required for this request.",
"doc_url": "https://docs.altostrat.io/errors/parameter_missing"
}

Authorizations

Authorization
string
header
required

Enter your bearer token in the format: Bearer {token}

Body

application/json

Details of the scan to initiate.

schedule_id
string<uuid>
required

The ID of the schedule whose configuration will be used for the scan.

Example:

"9c43cc95-f313-49a3-b632-524f7a24503b"

site_id
string<uuid>
required

The ID of the site where the target IP addresses are located.

Example:

"9c3c1392-7f36-4240-85f2-273573c0384a"

ips
string<ipv4>[]
required

A list of specific IPv4 addresses to scan.

Example:
["192.168.1.55", "192.168.1.60"]

Response

The multi-IP scan has been created and queued for execution.

scan_id
string<uuid>

The unique identifier for the newly created parent scan object.

Example:

"9c46a6f1-a8d8-4f5a-9b2f-7d1b3e9c5a1d"

scan_site_id
string<uuid>

The unique identifier for this specific site scan instance.

Example:

"9c46a6f1-b9e9-4f5a-9b2f-8e2c4f0d6b2e"

target_ips
string<ipv4>[]
Example:
["192.168.1.55", "192.168.1.60"]
message
string
Example:

"Scan started successfully"