使用此端點取得您的帳戶的 SAML 實體詳細資料。若未設定 SAML 實體,此端點會傳回和清空 JSON 物件。
curl -X GET \
https://www.digicert.com/services/v2/account/saml-entity \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account/saml-entity"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/account/saml-entity"
req, _ := http.NewRequest("GET", url, nil)
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: 'GET',
url: 'https://www.digicert.com/services/v2/account/saml-entity',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"id": "11223",
"account_id": "123456",
"xml_metadata": "{{idp_xml_metadata}}",
"source_url": "{{source_url}}",
"idp_entity_id": "{{idp_entity_url}}",
"attribute_mapping": "{\"username\":\"NameID\"}",
"friendly_name": "Your Company, Inc.",
"friendly_slug": "your-company-inc",
"date_created": "2017-06-24 13:24:58",
"last_signon_date": "2019-01-13 14:36:49",
"username_attribute": "NameID",
"type": "login"
}
{}
名稱 | 類型 | 說明 |
---|---|---|
id | string | SAML 實體的 ID。 |
account_id | string | 帳戶 ID。 |
xml_metadata | string | 從指定的動態 URL 收集或手動輸入的 SAML XML 中繼資料。 |
source_url | string |
可收集 XML 中繼資料所布的 IdP 伺服器的 URL。 僅在使用 URL 動態收集 XML 中繼資料時傳回。 |
idp_entity_id | string | 從 XML 中繼資料部析的 IdP 實體 URL。 |
attribute_mapping | string | 用於將 CertCentral 使用者對應到 SAML SSO 使用者的屬性。 |
friendly_name | string | 顯示用於您的 SSO 登入頁面的名稱。此值也用於產生友好的動態資料欄位。 |
friendly_slug | string |
動態資料欄位化版本的友好名稱。 此值用於建立您的 SAML SSO URL。 |
date_created | string |
建立 SAML 實體時的時間戳記。 格式: yyyy-MM-dd HH:mm:ss
|
last_signon_date | string |
上次使用 SAMl SSO 的時間戳記。 格式: yyyy-MM-dd HH:mm:ss
|
username_attribute | string | 用於將 CertCentral 使用者對應到 SAML SSO 使用者的屬性名稱。 |
type | string | SAML 實體類型。 |