搜尋⋯
on

API 取得站點資訊

API Token Headers

以下 API 皆需 API Token 相關 Header

  • SKC-RefreshToken
  • SKC-AccessToken

取得站點資訊

GET /api/v1/user/sites?page=1&pageSize=200&status=1

描述

取得站點列表下站點的資訊

cURL 範例

curl --request GET \
    --header "SKC-RefreshToken: {Your Refresh Token}" \
    --header "SKC-AccessToken: {Your Access Token}" \
    {CDNRay API Endpoint}/api/v1/user/sites

詳細內容

  • URL Parameters:
    • page: 頁數
    • pageSize: 顯示幾筆
    • status: 站點狀態
  • Response
{
    "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 範例

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

詳細內容

  • URL Parameters:
    • siteName: 站點名稱
  • Response
{
    "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
        }
    ]
}
iconiconiconiconicon