发布者运行详情
curl --request GET \
--url https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}import requests
url = "https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}"
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://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}",
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;
}require 'uri'
require 'net/http'
url = URI("https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}")
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_bodyusing RestSharp;
var options = new RestClientOptions("https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}")
.get()
.build()
val response = client.newCall(request).execute()false{
"run_id": "<string>",
"namespace": "<string>",
"app_name": "<string>",
"app_version": "<string>",
"build_id": "<string>",
"run_kind": "<string>",
"state": {},
"partial": true,
"triggered_by": "<string>",
"created_at": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"duration_ms": 123,
"records": 123,
"amount": 123,
"error": {
"code": "<string>",
"category": "<string>",
"message": "<string>",
"retryable": true
},
"warnings": [
{
"code": "<string>",
"event": "<string>",
"detail": {},
"count": 123,
"updated_at": "<string>"
}
]
}发布与运营
发布者运行详情
对我发布的 App 的某一次调用,白名单字段,附结构化告警。
GET
/
v1
/
publisher
/
runs
/
{run_id}
发布者运行详情
curl --request GET \
--url https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}import requests
url = "https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}"
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://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}",
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;
}require 'uri'
require 'net/http'
url = URI("https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}")
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_bodyusing RestSharp;
var options = new RestClientOptions("https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}")
.get()
.build()
val response = client.newCall(request).execute()false{
"run_id": "<string>",
"namespace": "<string>",
"app_name": "<string>",
"app_version": "<string>",
"build_id": "<string>",
"run_kind": "<string>",
"state": {},
"partial": true,
"triggered_by": "<string>",
"created_at": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"duration_ms": 123,
"records": 123,
"amount": 123,
"error": {
"code": "<string>",
"category": "<string>",
"message": "<string>",
"retryable": true
},
"warnings": [
{
"code": "<string>",
"event": "<string>",
"detail": {},
"count": 123,
"updated_at": "<string>"
}
]
}端点
GET https://api-datahub.bazhuayu.com/v1/publisher/runs/{run_id}
Authorization: Bearer <API Key>)。
对我发布的 App 的一次调用,与列表相同的白名单字段,外加该运行的结构化告警(如 billing-qty-missing)。归属按 App:他人 App 的运行与不存在的 run_id 都返回 404。这里没有 input、没有结果数据、没有调用方身份;除非你自己也是发起人,否则这个 run_id 无法在自己的运行列表里打开。
请求
路径参数
string
必填
运行标识。
示例请求
curl \
-H "Authorization: Bearer $BAZHUAYU_API_KEY" \
"https://api-datahub.bazhuayu.com/v1/publisher/runs/run_c62bc0fb8df2"
响应
200 成功
{
"data": {
"run_id": "run_c62bc0fb8df2",
"namespace": "carol",
"app_name": "probe-b",
"app_version": "0.1.0",
"build_id": null,
"run_kind": "production",
"state": "SUCCEEDED",
"partial": false,
"triggered_by": "api",
"created_at": "2026-09-15T07:45:40.411993+00:00",
"started_at": "2026-09-15T07:45:40.419610+00:00",
"finished_at": "2026-09-15T07:45:40.822250+00:00",
"duration_ms": 402,
"records": 20,
"amount": 0.02,
"error": null,
"warnings": []
}
}
warnings[]。
响应包在 data 字段中,其内容如下。
string
必填
—
string
—
string
—
string
—
string
Build snapshot a debug run (run_kind=test) was pinned to; null for production runs
string
—
enum
必填
取值:
PENDING / QUEUED / RUNNING / SUCCEEDED / PARTIALLY_SUCCEEDED / FAILED / CANCELLED / EXPIRED。boolean
—
string
—
string
—
string
—
string
—
integer
—
integer
—
number
—
错误
| HTTP | code | category | 说明 |
|---|---|---|---|
| 401 | unauthorized | forbidden | 缺少或无效的 API Key。 |
| 404 | run-not-found | not_found | 运行不存在,或不是当前账号发起的。 |
{"error": {code, category, message, retryable}},见错误。
