以下 API 皆需 API Token 相關 Header
GET /api/v1/user/sites?page=1&pageSize=200&status=1
取得站點列表下站點的資訊
curl --request GET \
--header "SKC-RefreshToken: {Your Refresh Token}" \
--header "SKC-AccessToken: {Your Access Token}" \
{CDNRay API Endpoint}/api/v1/user/sites
{
"code":101001,
"total":2,
"data":[
{
"id":1234,
"name":"xxx-site-01",
"portType":1,
"productName":"xxx-prod-01",
"cname":"xxx-site-01.gocname.com",
"flowLimitations":0,
"expiredAt":"0001-01-01T00:00:00Z",
"tags":[
],
"status":1,
"trafficStatus":0,
"trafficAction":0,
"domainCounts":4681
}
]
}
GET /api/v1/user/sites?siteName={siteName}
取得特定站點資訊
curl --request GET \
--header "SKC-RefreshToken: {Your Refresh Token}" \
--header "SKC-AccessToken: {Your Access Token}" \
{CDNRay API Endpoint}/api/v1/user/sites?siteName=example-site-01
{
"code":101001,
"total":2,
"data":[
{
"id":123,
"name":"example-site-01",
"portType":1,
"productName":"example-prod-01",
"cname":"example-site-01.gocname.com",
"flowLimitations":0,
"expiredAt":"0001-01-01T00:00:00Z",
"tags":[
],
"status":1,
"trafficStatus":0,
"trafficAction":0,
"domainCounts":4681
}
]
}