Skip to content

Latest commit

 

History

History
136 lines (109 loc) · 4.62 KB

File metadata and controls

136 lines (109 loc) · 4.62 KB
title Add synchronization secrets
description Provide credentials for establishing connectivity with the target system.
ms.localizationpriority medium
doc_type apiPageType
author ArvindHarinder1
ms.subservice entra-applications
ms.date 08/13/2024

Add synchronization secrets

Namespace: microsoft.graph

Provide credentials for establishing connectivity with the target system.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

[!INCLUDE rbac-synchronization-apis]

HTTP request

PUT /servicePrincipals/{id}/synchronization/secrets

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

In the request body, provide a JSON object with the following parameters.

Parameter Type Description
credentials synchronizationSecretKeyStringValuePair collection Credentials to validate. Ignored when the useSavedCredentials parameter is true.

Response

If the secrets are successfully saved, this method returns a 204 No Content response code. It doesn't return anything in the response body.

Example

Request

The following example shows a request.

PUT https://graph.microsoft.com/v1.0/servicePrincipals/{id}/synchronization/secrets
Content-type: application/json

{
    "value": [
        {
            "key": "BaseAddress",
            "value": "user@domain.com"
        },
        {
            "key": "SecretToken",
            "value": "password-value"
        },
        {
            "key": "SyncNotificationSettings",
            "value": "{\"Enabled\":false,\"DeleteThresholdEnabled\":false}"
        },
        {
            "key": "SyncAll",
            "value": "false"
        }
    ]
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content