查询变更详情
curl --request POST \
--url 'https://api.flashcat.cloud/change/info?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"change_id": "664a1b2c3d4e5f6a7b8c9d0e"
}
'import requests
url = "https://api.flashcat.cloud/change/info?app_key="
payload = { "change_id": "664a1b2c3d4e5f6a7b8c9d0e" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({change_id: '664a1b2c3d4e5f6a7b8c9d0e'})
};
fetch('https://api.flashcat.cloud/change/info?app_key=', 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.flashcat.cloud/change/info?app_key=",
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([
'change_id' => '664a1b2c3d4e5f6a7b8c9d0e'
]),
CURLOPT_HTTPHEADER => [
"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://api.flashcat.cloud/change/info?app_key="
payload := strings.NewReader("{\n \"change_id\": \"664a1b2c3d4e5f6a7b8c9d0e\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.flashcat.cloud/change/info?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"change_id\": \"664a1b2c3d4e5f6a7b8c9d0e\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/change/info?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"change_id\": \"664a1b2c3d4e5f6a7b8c9d0e\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"change_id": "664a1b2c3d4e5f6a7b8c9d0e",
"account_id": 10001,
"channel_id": 5001,
"channel_name": "Production",
"channel_status": "enabled",
"integration_id": 362,
"integration_name": "控制台",
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_key": "CHG-20261126-7Q2K",
"change_status": "Processing",
"start_time": 1764140400,
"actual_start_time": 1764147700,
"last_time": 1764147700,
"end_time": 0,
"labels": {
"service": "payment-service",
"env": "prod"
},
"link": "https://ci.example.com/pipelines/4821",
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": true,
"by": "Alice Chen",
"at": 1764147650
},
{
"text": "Verify error rate after rollout",
"done": false
}
],
"fields": {
"risk_level": "medium"
},
"can_edit": true,
"is_console": true,
"next_statuses": [
"Done",
"Failed"
],
"creator": {
"type": "member",
"id": 2000001,
"name": "Alice Chen"
},
"events": [
{
"event_id": "664a1b2c3d4e5f6a7b8c9d0f",
"account_id": 10001,
"channel_id": 5001,
"integration_id": 362,
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_key": "CHG-20261126-7Q2K",
"change_status": "Processing",
"link": "https://ci.example.com/pipelines/4821",
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": true,
"by": "Alice Chen",
"at": 1764147650
},
{
"text": "Verify error rate after rollout",
"done": false
}
],
"fields": {
"risk_level": "medium"
},
"actor": {
"type": "member",
"id": 2000001,
"name": "Alice Chen"
},
"diff": {
"change_status": {
"before": "Planned",
"after": "Processing"
}
},
"event_time": 1764147700,
"labels": {
"service": "payment-service",
"env": "prod"
},
"created_at": 1764147700,
"updated_at": 1764147700
}
],
"notify_target": {
"type": "im_app",
"integration_id": 4102,
"chat_id": "oc_0f1e2d3c4b5a69788796a5b4c3d2e1f0",
"chat_name": "Release announcements"
}
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}变更管理
查询变更详情
按变更 ID,或按集成与变更键,返回单个变更及其全部事件。
POST
/
change
/
info
查询变更详情
curl --request POST \
--url 'https://api.flashcat.cloud/change/info?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"change_id": "664a1b2c3d4e5f6a7b8c9d0e"
}
'import requests
url = "https://api.flashcat.cloud/change/info?app_key="
payload = { "change_id": "664a1b2c3d4e5f6a7b8c9d0e" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({change_id: '664a1b2c3d4e5f6a7b8c9d0e'})
};
fetch('https://api.flashcat.cloud/change/info?app_key=', 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.flashcat.cloud/change/info?app_key=",
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([
'change_id' => '664a1b2c3d4e5f6a7b8c9d0e'
]),
CURLOPT_HTTPHEADER => [
"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://api.flashcat.cloud/change/info?app_key="
payload := strings.NewReader("{\n \"change_id\": \"664a1b2c3d4e5f6a7b8c9d0e\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.flashcat.cloud/change/info?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"change_id\": \"664a1b2c3d4e5f6a7b8c9d0e\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/change/info?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"change_id\": \"664a1b2c3d4e5f6a7b8c9d0e\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"change_id": "664a1b2c3d4e5f6a7b8c9d0e",
"account_id": 10001,
"channel_id": 5001,
"channel_name": "Production",
"channel_status": "enabled",
"integration_id": 362,
"integration_name": "控制台",
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_key": "CHG-20261126-7Q2K",
"change_status": "Processing",
"start_time": 1764140400,
"actual_start_time": 1764147700,
"last_time": 1764147700,
"end_time": 0,
"labels": {
"service": "payment-service",
"env": "prod"
},
"link": "https://ci.example.com/pipelines/4821",
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": true,
"by": "Alice Chen",
"at": 1764147650
},
{
"text": "Verify error rate after rollout",
"done": false
}
],
"fields": {
"risk_level": "medium"
},
"can_edit": true,
"is_console": true,
"next_statuses": [
"Done",
"Failed"
],
"creator": {
"type": "member",
"id": 2000001,
"name": "Alice Chen"
},
"events": [
{
"event_id": "664a1b2c3d4e5f6a7b8c9d0f",
"account_id": 10001,
"channel_id": 5001,
"integration_id": 362,
"title": "Upgrade payment-service to v3.2.0",
"description": "Rolling upgrade of payment-service in the production cluster.",
"change_key": "CHG-20261126-7Q2K",
"change_status": "Processing",
"link": "https://ci.example.com/pipelines/4821",
"planned_start_time": 1764147600,
"planned_end_time": 1764151200,
"operator": "alice@example.com",
"impact": "Payments may be retried for up to 30 seconds per pod.",
"backout_plan": "Roll back the deployment to v3.1.4.",
"checklist": [
{
"text": "Notify the support team",
"done": true,
"by": "Alice Chen",
"at": 1764147650
},
{
"text": "Verify error rate after rollout",
"done": false
}
],
"fields": {
"risk_level": "medium"
},
"actor": {
"type": "member",
"id": 2000001,
"name": "Alice Chen"
},
"diff": {
"change_status": {
"before": "Planned",
"after": "Processing"
}
},
"event_time": 1764147700,
"labels": {
"service": "payment-service",
"env": "prod"
},
"created_at": 1764147700,
"updated_at": 1764147700
}
],
"notify_target": {
"type": "im_app",
"integration_id": 4102,
"chat_id": "oc_0f1e2d3c4b5a69788796a5b4c3d2e1f0",
"chat_name": "Release announcements"
}
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}限制说明
| 项目 | 说明 |
|---|---|
| 速率限制 | 每个账户 1,000 次/分钟;50 次/秒 |
| 权限要求 | 无 —— 持有有效的 app_key 即可调用 |
使用说明
- 传
change_id,或同时传integration_id与change_key;否则返回InvalidParameter。传了change_id时忽略另外两个参数。 - 与
POST /change/list不同,详情接口没有时间窗口:任意日期的变更都能读取。 events包含该变更的全部事件,按时间从早到晚排列。next_statuses列出POST /change/update可以把该变更流转到的状态。notify_target是该变更通知发往的群组;变更表单没有为其协作空间绑定群组时为null。- 变更不存在时返回
InvalidParameter。公开协作空间中的变更、以及未关联协作空间的变更,所有成员都能读取;私有协作空间中的变更只有账户所有者、管理员、该空间的创建者和其所属团队的成员能读取,否则返回AccessDenied。
授权
请求体
application/json
此页面对您有帮助吗?