このエンドポイントを使用して、指定認証タイプについて認証する組織を提出します。
可能なユーザー ID のリストを取得して、verified_users
アレイに使用する、[承認者を一覧表示する] エンドポイントを使用します。
curl -X POST \
'https://www.digicert.com/services/v2/organization/{{organization_id}}/validation' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"validations": [
{
"type": "ov"
},
{
"type": "ev",
"verified_users": [
{
"id": 112233
},
{
"first_name": "Jill",
"last_name": "Valentine",
"job_title": "CTO",
"telephone": "555-555-5555",
"email": "jill.valentine@digicert.com"
}
]
}
]
}'
import requests
url = "https://www.digicert.com/services/v2/organization/{{organization_id}}/validation"
payload = "{\n \"validations\": [\n {\n \"type\": \"ov\"\n },\n {\n \"type\": \"ev\",\n \"verified_users\": [\n {\n \"id\": 112233\n },\n {\n \"first_name\": \"Jill\",\n \"last_name\": \"Valentine\",\n \"job_title\": \"CTO\",\n \"telephone\": \"555-555-5555\",\n \"email\": \"jill.valentine@digicert.com\"\n }\n ]\n }\n ]\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://www.digicert.com/services/v2/organization/{{organization_id}}/validation"
payload := strings.NewReader("{\n \"validations\": [\n {\n \"type\": \"ov\"\n },\n {\n \"type\": \"ev\",\n \"verified_users\": [\n {\n \"id\": 112233\n },\n {\n \"first_name\": \"Jill\",\n \"last_name\": \"Valentine\",\n \"job_title\": \"CTO\",\n \"telephone\": \"555-555-5555\",\n \"email\": \"jill.valentine@digicert.com\"\n }\n ]\n }\n ]\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://www.digicert.com/services/v2/organization/{{organization_id}}/validation',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ validations:
[ { type: 'ov' },
{ type: 'ev',
verified_users:
[ { id: 112233 },
{ first_name: 'Jill',
last_name: 'Valentine',
job_title: 'CTO',
telephone: '555-555-5555',
email: 'jill.valentine@digicert.com' } ] } ] },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
// empty
既存の連絡先を追加する場合、申請本文で id
パラメータを使用し、first_name
,last_name
,job_title
,telephone
,と email
パラメータを省きます。
名前 | 申請/オプション | 種別 | 説明 |
---|---|---|---|
validations | 必須 | array | 組織が認証を受ける認証タイプのリスト |
.. type | 必須 | string |
認証タイプ識別子 「用語集 — 認証タイプ」を参照してください |
.. verified_users | 必須 | array |
組織用確認済 EV 承認者のリストov と dv 認証タイプについては任意
|
.. .. id | 必須* | int |
EV 承認者として追加するユーザーの ID *既存の連絡先を追加する場合にのみ必要です。これを含めた場合、他の連絡先パラメータは無視されます。 |
.. .. first_name | 任意* | string |
確認済連絡先の名 * id パラメータが省略されている場合に必要です。
|
.. .. last_name | 任意* | string |
確認済連絡先の姓 * id パラメータが省略されている場合に必要です。
|
.. .. job_title | 任意* | string |
確認済連絡先の役職 * id パラメータが省略されている場合に必要です。
|
.. .. telephone | 任意* | string |
確認済連絡先の電話番号 * id パラメータが省略されている場合に必要です。
|
任意* | string |
確認済連絡先のメールアドレス * id パラメータが省略されている場合に必要です。
|