Analyze Azure environment for compliance (live)
curl --request POST \
--url https://api.usenabla.com/v1/evidence/azure \
--header 'Content-Type: application/json' \
--header 'X-Customer-Key: <api-key>' \
--data '
{
"name": "azure-production",
"format": "json",
"azure_wif": {
"tenant_id": "00000000-0000-0000-0000-000000000000",
"client_id": "00000000-0000-0000-0000-000000000000",
"oidc_token": "<string>",
"subscription_ids": [
"00000000-0000-0000-0000-000000000000"
]
}
}
'import requests
url = "https://api.usenabla.com/v1/evidence/azure"
payload = {
"name": "azure-production",
"format": "json",
"azure_wif": {
"tenant_id": "00000000-0000-0000-0000-000000000000",
"client_id": "00000000-0000-0000-0000-000000000000",
"oidc_token": "<string>",
"subscription_ids": ["00000000-0000-0000-0000-000000000000"]
}
}
headers = {
"X-Customer-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Customer-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'azure-production',
format: 'json',
azure_wif: {
tenant_id: '00000000-0000-0000-0000-000000000000',
client_id: '00000000-0000-0000-0000-000000000000',
oidc_token: '<string>',
subscription_ids: ['00000000-0000-0000-0000-000000000000']
}
})
};
fetch('https://api.usenabla.com/v1/evidence/azure', 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.usenabla.com/v1/evidence/azure",
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([
'name' => 'azure-production',
'format' => 'json',
'azure_wif' => [
'tenant_id' => '00000000-0000-0000-0000-000000000000',
'client_id' => '00000000-0000-0000-0000-000000000000',
'oidc_token' => '<string>',
'subscription_ids' => [
'00000000-0000-0000-0000-000000000000'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Customer-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.usenabla.com/v1/evidence/azure"
payload := strings.NewReader("{\n \"name\": \"azure-production\",\n \"format\": \"json\",\n \"azure_wif\": {\n \"tenant_id\": \"00000000-0000-0000-0000-000000000000\",\n \"client_id\": \"00000000-0000-0000-0000-000000000000\",\n \"oidc_token\": \"<string>\",\n \"subscription_ids\": [\n \"00000000-0000-0000-0000-000000000000\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Customer-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.usenabla.com/v1/evidence/azure")
.header("X-Customer-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"azure-production\",\n \"format\": \"json\",\n \"azure_wif\": {\n \"tenant_id\": \"00000000-0000-0000-0000-000000000000\",\n \"client_id\": \"00000000-0000-0000-0000-000000000000\",\n \"oidc_token\": \"<string>\",\n \"subscription_ids\": [\n \"00000000-0000-0000-0000-000000000000\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usenabla.com/v1/evidence/azure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Customer-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"azure-production\",\n \"format\": \"json\",\n \"azure_wif\": {\n \"tenant_id\": \"00000000-0000-0000-0000-000000000000\",\n \"client_id\": \"00000000-0000-0000-0000-000000000000\",\n \"oidc_token\": \"<string>\",\n \"subscription_ids\": [\n \"00000000-0000-0000-0000-000000000000\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"assessment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"framework": "NIST 800-53",
"version": "Rev. 5",
"timestamp": "2023-11-07T05:31:56Z",
"controls": [
{
"control_id": "SC-13",
"title": "Cryptographic Protection",
"findings": [
"<string>"
],
"evidence": [
"<string>"
]
}
],
"summary": {
"total_controls": 123,
"satisfied": 123,
"not_satisfied": 123,
"not_applicable": 123
}
},
"artifacts": [
{
"filename": "nist80053-assessment.json",
"content_type": "application/json",
"content_base64": "<string>",
"size_bytes": 123,
"diagram": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}Evidence
Analyze Azure environment for compliance (live)
Generate NIST 800-53 compliance assessment from live Azure environment using Workload Identity Federation. Requires Fabric plan.
POST
/
v1
/
evidence
/
azure
Analyze Azure environment for compliance (live)
curl --request POST \
--url https://api.usenabla.com/v1/evidence/azure \
--header 'Content-Type: application/json' \
--header 'X-Customer-Key: <api-key>' \
--data '
{
"name": "azure-production",
"format": "json",
"azure_wif": {
"tenant_id": "00000000-0000-0000-0000-000000000000",
"client_id": "00000000-0000-0000-0000-000000000000",
"oidc_token": "<string>",
"subscription_ids": [
"00000000-0000-0000-0000-000000000000"
]
}
}
'import requests
url = "https://api.usenabla.com/v1/evidence/azure"
payload = {
"name": "azure-production",
"format": "json",
"azure_wif": {
"tenant_id": "00000000-0000-0000-0000-000000000000",
"client_id": "00000000-0000-0000-0000-000000000000",
"oidc_token": "<string>",
"subscription_ids": ["00000000-0000-0000-0000-000000000000"]
}
}
headers = {
"X-Customer-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Customer-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'azure-production',
format: 'json',
azure_wif: {
tenant_id: '00000000-0000-0000-0000-000000000000',
client_id: '00000000-0000-0000-0000-000000000000',
oidc_token: '<string>',
subscription_ids: ['00000000-0000-0000-0000-000000000000']
}
})
};
fetch('https://api.usenabla.com/v1/evidence/azure', 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.usenabla.com/v1/evidence/azure",
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([
'name' => 'azure-production',
'format' => 'json',
'azure_wif' => [
'tenant_id' => '00000000-0000-0000-0000-000000000000',
'client_id' => '00000000-0000-0000-0000-000000000000',
'oidc_token' => '<string>',
'subscription_ids' => [
'00000000-0000-0000-0000-000000000000'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Customer-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.usenabla.com/v1/evidence/azure"
payload := strings.NewReader("{\n \"name\": \"azure-production\",\n \"format\": \"json\",\n \"azure_wif\": {\n \"tenant_id\": \"00000000-0000-0000-0000-000000000000\",\n \"client_id\": \"00000000-0000-0000-0000-000000000000\",\n \"oidc_token\": \"<string>\",\n \"subscription_ids\": [\n \"00000000-0000-0000-0000-000000000000\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Customer-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.usenabla.com/v1/evidence/azure")
.header("X-Customer-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"azure-production\",\n \"format\": \"json\",\n \"azure_wif\": {\n \"tenant_id\": \"00000000-0000-0000-0000-000000000000\",\n \"client_id\": \"00000000-0000-0000-0000-000000000000\",\n \"oidc_token\": \"<string>\",\n \"subscription_ids\": [\n \"00000000-0000-0000-0000-000000000000\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usenabla.com/v1/evidence/azure")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Customer-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"azure-production\",\n \"format\": \"json\",\n \"azure_wif\": {\n \"tenant_id\": \"00000000-0000-0000-0000-000000000000\",\n \"client_id\": \"00000000-0000-0000-0000-000000000000\",\n \"oidc_token\": \"<string>\",\n \"subscription_ids\": [\n \"00000000-0000-0000-0000-000000000000\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"assessment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"framework": "NIST 800-53",
"version": "Rev. 5",
"timestamp": "2023-11-07T05:31:56Z",
"controls": [
{
"control_id": "SC-13",
"title": "Cryptographic Protection",
"findings": [
"<string>"
],
"evidence": [
"<string>"
]
}
],
"summary": {
"total_controls": 123,
"satisfied": 123,
"not_satisfied": 123,
"not_applicable": 123
}
},
"artifacts": [
{
"filename": "nist80053-assessment.json",
"content_type": "application/json",
"content_base64": "<string>",
"size_bytes": 123,
"diagram": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}Authorizations
Customer API key for authentication
Body
application/json
Response
Evidence assessment completed successfully
Unique identifier for this assessment
Assessment status
Available options:
completed, failed Timestamp when assessment was created
Show child attributes
Show child attributes
Generated artifacts (assessment files, diagrams)
Show child attributes
Show child attributes
⌘I

