カスタムユーザータグを1つ以上の証明書に追加します。タグを使用して、お使いの証明書のカテゴリ分類と管理方法をカスタマイズします。
curl -X POST \
https://daas.digicert.com/apicontroller/v1/certificate/addTags \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"accountId": "126993",
"divisionIds": [],
"certId": [
"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff"
],
"tags": "AddTags"
}'
import requests
url = "https://daas.digicert.com/apicontroller/v1/certificate/addTags"
payload = "{\n \"accountId\": \"126993\",\n \"divisionIds\": [],\n \"certId\": [\n \"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff\"\n ],\n \"tags\": \"AddTags\"\n}"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://daas.digicert.com/apicontroller/v1/certificate/addTags"
payload := strings.NewReader("{\n \"accountId\": \"126993\",\n \"divisionIds\": [],\n \"certId\": [\n \"fb92ee3a2fd0cb6549e58c252f8787f467bfbeff\"\n ],\n \"tags\": \"AddTags\"\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))
}
var request = require("request");
var options = { method: 'POST',
url: 'https://daas.digicert.com/apicontroller/v1/certificate/addTags',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ accountId: '126993',
divisionIds: [],
certId: [ 'fb92ee3a2fd0cb6549e58c252f8787f467bfbeff' ],
tags: 'AddTags' },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"data": "tags updated successfully"
}
名前 | 申請/オプション | 種別 | 説明 |
---|---|---|---|
accountId | 必須 | string | アカウント ID |
divisionIds | 任意 | array | 管理グループ ID |
certId | 必須 | array | エンドポイントで確認された証明書用の一意 DigiCert 生成 ID証明書チェーン ID を 「証明書を一覧表示する」 申請から取得します。 |
tags | 必須 | string | カスタムユーザータグ |