Run app TCB evaluation
curl --request GET \
--url https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluationimport requests
url = "https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation', 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://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"app_id": "<string>",
"instances": [
{
"vm_uuid": "<string>",
"name": "<string>",
"instance_id": "<string>",
"status": "<string>",
"image_version": "<string>",
"ppid": "",
"device_id": "<string>",
"evaluation_update": "early",
"evaluation_ok": true,
"evaluation_status": "<string>",
"error": "<string>"
}
],
"update": "early"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Apps
Run app TCB evaluation
Runs a live Intel PCS early collateral evaluation for each running CVM without using Redis collateral cache.
GET
/
api
/
v1
/
apps
/
{app_id}
/
attestations
/
tcb-evaluation
Run app TCB evaluation
curl --request GET \
--url https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluationimport requests
url = "https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation', 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://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud-api.phala.com/api/v1/apps/{app_id}/attestations/tcb-evaluation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"app_id": "<string>",
"instances": [
{
"vm_uuid": "<string>",
"name": "<string>",
"instance_id": "<string>",
"status": "<string>",
"image_version": "<string>",
"ppid": "",
"device_id": "<string>",
"evaluation_update": "early",
"evaluation_ok": true,
"evaluation_status": "<string>",
"error": "<string>"
}
],
"update": "early"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I

