列出端點篩選器值

POST
https://daas.digicert.com/apicontroller/v1/reports/filter

取得透過 CertCentral Discovery 掃描找到的伺服器屬性的所有已知的值。例如,透過「探索」掃描,取得執行掃描的所有掃描名稱,或找到 IP 位址。

已知的值允許您填入供終端使用者選擇的有效資料,而不是使用者需要預先知道的確切值。

cURL
curl -X POST \
  https://daas.digicert.com/apicontroller/v1/reports/filter \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
    "searchCriteriaList": [
        {
            "key":"cn",
            "operation": "STARTS_WITH",
            "value": [
                "www","digi"
            ]
        }
     ],
    "accountId": "126993",
    "divisionIds": [],
    "startIndex": 1,
    "pageSize": 50,
    "filterSelected": "ip",
    "sortedColumnId": null,
    "sortOrder": "ASC"
}'
Python
import requests

url = "https://daas.digicert.com/apicontroller/v1/reports/filter"

payload = "{\n    \"searchCriteriaList\": [\n        {\n            \"key\": \"cn\",\n            \"operation\": \"STARTS_WITH\",\n            \"value\": [\n                \"www\",\"digi\"\n            ]\n        }\n    ],\n    \"accountId\": \"126993\",\n    \"divisionIds\": [],\n    \"startIndex\": 1,\n    \"pageSize\": 50,\n    \"filterSelected\": \"ip\",\n    \"sortedColumnId\": null,\n    \"sortOrder\": \"ASC\"\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json",
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://daas.digicert.com/apicontroller/v1/reports/filter"

	payload := strings.NewReader("{\n    \"searchCriteriaList\": [\n        {\n            \"key\": \"cn\",\n            \"operation\": \"STARTS_WITH\",\n            \"value\": [\n                \"www\",\"digi\"\n            ]\n        }\n    ],\n    \"accountId\": \"126993\",\n    \"divisionIds\": [],\n    \"startIndex\": 1,\n    \"pageSize\": 50,\n    \"filterSelected\": \"ip\",\n    \"sortedColumnId\": null,\n    \"sortOrder\": \"ASC\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
NodeJS
var request = require("request");

var options = { method: 'POST',
  url: 'https://daas.digicert.com/apicontroller/v1/reports/filter',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: 
   { searchCriteriaList: 
      [ { key: 'cn', operation: 'STARTS_WITH', value: [ 'www','digi' ] } ],
     accountId: '126993',
     divisionIds: [],
     startIndex: 1,
     pageSize: 50,
     filterSelected: 'ip',
     sortedColumnId: null,
     sortOrder: 'ASC' },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
200 OK
{
    "data": {
        "filterName": "ip",
        "displayName": "ip",
        "values": [
            "103.23.108.107",
            "104.154.127.47",
            "104.19.194.29",
            "104.19.195.29",
            "104.199.240.211",
            "104.199.64.136",
            "104.215.148.63",
            "104.236.66.94",
            "104.244.42.1",
            "104.244.42.129",
            "104.244.42.133",
            "104.244.42.193",
            "104.244.42.197",
            "106.11.186.1",
            "106.11.186.25",
            "106.120.159.68",
            "107.150.101.156",
            "107.23.104.215",
            "108.174.10.10",
            "109.71.161.200",
            "110.75.129.5",
            "110.75.139.5",
            "111.161.64.40",
            "111.161.64.48",
            "121.42.17.238",
            "121.42.17.239",
            "123.125.114.144",
            "123.125.116.28",
            "123.126.157.222",
            "123.126.55.41",
            "125.209.222.141",
            "125.209.222.142",
            "13.107.21.200",
            "13.225.214.41",
            "13.35.78.123",
            "13.35.78.38",
            "13.35.78.43",
            "13.35.78.87"
        ]
    }
}

要求參數

名稱 必填/選填 類型 說明
searchCriteriaList 選填 array 依指定值篩選結果。
.. key 選填 string 篩選器參數
允許的值:cn,serialNumber,ip,port,scanName,serverSecurity,isCertPresent
.. operation 選填 string 篩選器操作。
允許的值:STARTS_WITH
.. value 選填 array 篩選器值。
accountId 必填 string 帳戶 ID。
divisionIds 選填 array 分區 ID。
startIndex 選填 int 從指定的索引開始。
預設:1
pageSize 選填 int 每頁的記錄數目。
預設:50
filterSelected 必填 string 您要擷取的資料類型。
允許的值:cn,serialNumber,ip,port,scanName,serverSecurity,isCertPresent
sortedColumnId 選填 string 依指定參數將結果排序。
允許的值:isCertPresent
sortOrder 選填 string 排序方向。
允許的值:DESC (降冪:9-0, Z-A),ASC (升冪:0-9, A-Z)
預設:DESC

回應參數

名稱 類型 說明
data object 容器。
.. filterName string 指定的篩選器 ID。
.. displayName string 易記的篩選器名稱。
.. values array 符合結果。