한 개 이상의 인증서에 사용자 지정 사용자 태그를 추가합니다. 태그를 사용하여 인증서를 분류 및 관리하는 방법을 사용자 지정합니다.
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 | 사용자 지정 사용자 태그입니다. |