更新認證設定
Last update: Mon Aug 25 2025 00:00:00 GMT+0000 (Coordinated Universal Time)
API端點: platform.adobe.io/data/core/activation/authoring/credentials
此頁面是您可用來使用/authoring/credentials API端點更新現有認證設定的API要求與裝載範例。
何時使用/credentials API端點 when-to-use
在大多數情況下,您 不 需要使用/credentials API端點。 您可以改為透過customerAuthenticationConfigurations端點的/destinations引數來設定您目的地的驗證資訊。
只有在Adobe和您的目的地平台之間有全域驗證系統,且Experience Platform客戶不需要提供任何驗證認證即可連線至您的目的地時,才使用此API端點來建立認證設定。 在此情況下,您必須使用/credentials API端點建立認證組態。
使用全域驗證系統時,在"authenticationRule":"PLATFORM_AUTHENTICATION"建立新的目的地組態時,您必須在目的地傳遞組態中設定。 接著,您必須建立認證設定,並在authenticationId目的地傳遞設定的引數中傳遞認證物件識別碼。
Destination SDK支援的所有引數名稱和值都會區分大小寫****。 為避免區分大小寫錯誤,請完全依照檔案中所示使用引數名稱和值。
認證API操作快速入門 get-started
繼續之前,請檢閱快速入門手冊以取得重要資訊,您必須瞭解這些資訊才能成功呼叫API,包括如何取得必要的目的地撰寫許可權和必要的標頭。
更新認證設定 update
您可以藉由使用更新的承載對端點發出要求,來更新PUT現有/authoring/credentials認證設定。
若要取得現有的認證組態及其對應的{INSTANCE_ID},請參閱有關擷取認證組態的文章。
API格式
PUT /authoring/credentials/{INSTANCE_ID}
{INSTANCE_ID}
您要更新的認證設定ID。 若要取得現有的認證組態及其對應的
{INSTANCE_ID},請參閱
擷取認證組態。
以下請求會更新由承載中提供的引數定義的現有認證設定。
選取下方的每個索引標籤以檢視對應的裝載。
基本
更新基本認證組態
| accordion |
| 請求 |
| code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"basicAuthentication":{
"url":"string",
"username":"string",
"password":"string"
}
}
|
| table 0-row-3 1-row-3 2-row-3 3-row-3 layout-auto |
|
|
| 參數 |
類型 |
說明 |
url |
字串 |
授權提供者的URL |
username |
字串 |
認證組態登入使用者名稱 |
password |
字串 |
認證組態登入密碼 |
|
| accordion |
| 回應 |
| 成功的回應會傳回HTTP狀態200以及您更新的認證設定的詳細資料。 |
Amazon S3
更新Amazon S3認證組態
| accordion |
| 請求 |
| code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"s3Authentication":{
"accessId":"string",
"secretKey":"string"
}
}
|
| table 0-row-3 1-row-3 2-row-3 layout-auto |
|
|
| 參數 |
類型 |
說明 |
accessId |
字串 |
Amazon S3存取識別碼 |
secretKey |
字串 |
Amazon S3秘密金鑰 |
|
| accordion |
| 回應 |
| 成功的回應會傳回HTTP狀態200以及您更新的認證設定的詳細資料。 |
SSH
更新SSH認證組態
| accordion |
| 請求 |
| code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"sshAuthentication":{
"username":"string",
"sshKey":"string"
}
}
|
| table 0-row-3 1-row-3 2-row-3 layout-auto |
|
|
| 參數 |
類型 |
說明 |
username |
字串 |
認證組態登入使用者名稱 |
sshKey |
字串 |
具有SSH驗證的SFTP的SSH金鑰 |
|
| accordion |
| 回應 |
| 成功的回應會傳回HTTP狀態200以及您更新的認證設定的詳細資料。 |
Azure Data Lake儲存體
更新Azure Data Lake Storage認證組態
| accordion |
| 請求 |
| code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"azureAuthentication":{
"url":"string",
"tenant":"string",
"servicePrincipalId":"string",
"servicePrincipalKey":"string"
}
}
|
| table 0-row-3 1-row-3 2-row-3 3-row-3 4-row-3 layout-auto |
|
|
| 參數 |
類型 |
說明 |
url |
字串 |
授權提供者的URL |
tenant |
字串 |
Azure Data Lake Storage租使用者 |
servicePrincipalId |
字串 |
Azure Service Principal的Azure Data Lake Storage ID |
servicePrincipalKey |
字串 |
Azure Service Principal Key的Azure Data Lake Storage |
|
| accordion |
| 回應 |
| 成功的回應會傳回HTTP狀態200以及您更新的認證設定的詳細資料。 |
Azure Blob儲存體
更新Azure Blob認證組態
| accordion |
| 請求 |
| code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"azureConnectionStringAuthentication":{
"connectionString":"string"
}
}
|
| table 0-row-3 1-row-3 layout-auto |
|
|
| 參數 |
類型 |
說明 |
connectionString |
字串 |
Azure Blob Storage連線字串 |
|
| accordion |
| 回應 |
| 成功的回應會傳回HTTP狀態200以及您更新的認證設定的詳細資料。 |