# Configure Remote Password Reset for SAP Resources **Method:** POST This API configures the remote password reset settings for SAP resources in PAM360. It allows administrators to define the parameters needed to perform password resets remotely. ## Request URL ``` https://:/restapi/json/v1/resources/configureremotepasswordreset ``` ## Header Parameters ```json { "AUTHTOKEN": "<>", "orgName": "<>" } ``` | Parameter | Description | Values | |---|---|---| | **AUTHTOKEN** | Authentication token for the user to authorize the API request.
**Type :** String
**Mandatory :** Yes | **Default Value :** N/A | | **orgName** | Organization name available in PAM360.
**Type :** String
**Mandatory :** No | **Default Value :** The organization to which the user belongs. | ## Body Parameters ```json INPUT_DATA={ "operation": { "Details": { "SAP_SYSTEM_NUMBER": "00", "SAP_ADMIN_ACCOUNT": "test", "RESOURCEIDS": ["1"], "RESOURCETYPE": "SAP" } } } ``` | Parameters | Description | Values | |---|---|---| | **SAP_SYSTEM_NUMBER** | Specifies the SAP system number of the target SAP system.
**Type :** String
**Mandatory :** Yes | **Default Value :** N/A
**Allowed Values :** A two-digit numeric string. | | **SAP_ADMIN_ACCOUNT** | Name of the SAP administrator account used to manage or access the SAP system.
**Type :** String
**Mandatory :** Yes | **Default Value :** N/A | | **RESOURCEIDS** | List of resource IDs to be processed.
**Type :** Integer Array
**Mandatory :** Yes | **Default Value :** N/A | | **RESOURCETYPE** | Specifies the type of resource. For this API, the value must be SAP.
**Type :** String
**Mandatory :** Yes | **Default Value :** N/A | ## Sample Request ### cURL ```bash curl -X POST -H "AUTHTOKEN:<>" -H "Content-Type:application/x-www-form-urlencoded" https://:/restapi/json/v1/resources/configureremotepasswordreset --data-urlencode "INPUT_DATA={\"operation\":{\"Details\":{\"SAP_SYSTEM_NUMBER\":\"00\",\"SAP_ADMIN_ACCOUNT\":\"test\",\"RESOURCEIDS\":[\"901\"],\"RESOURCETYPE\":\"SAP\"}}}" ``` ### Python ```python import requests import json # API endpoint url = "https://:/restapi/json/v1/resources/configureremotepasswordreset" # Headers headers = { "AUTHTOKEN": "<>", "Content-Type": "application/x-www-form-urlencoded" } # Payload payload = { "operation": { "Details": { "SAP_SYSTEM_NUMBER": "00", "SAP_ADMIN_ACCOUNT": "test", "RESOURCEIDS": ["1"], "RESOURCETYPE": "SAP" } } } # Convert payload to JSON string for form-encoded request form_data = { "INPUT_DATA": json.dumps(payload) } # Send POST request response = requests.post(url, headers=headers, data=form_data, verify=True) # Print response print(response.text) ``` ### PowerShell ```powershell # API endpoint $Url = "https://<>/restapi/json/v1/resources/configureremotepasswordreset" # Headers $Headers = @{ "AUTHTOKEN" = "<>" "Content-Type" = "application/x-www-form-urlencoded" } # Single-line INPUT_DATA $Body = @{ INPUT_DATA = "{""operation"": {""Details"": { ""SAP_SYSTEM_NUMBER"": ""00"", ""SAP_ADMIN_ACCOUNT"": ""test"", ""RESOURCEIDS"": [""1""], ""RESOURCETYPE"": ""SAP"" } } }" } # Send POST request $response = Invoke-RestMethod ` -Uri $Url ` -Method Post ` -Headers $Headers ` -Body $Body # Print response $response | ConvertTo-Json -Depth 5 ``` ## Sample Response ```json { "operation": { "result": { "message": "Password reset details configured for the matching resources.", "status": "Success" }, "Details": { "CONFIGURATION RESULT": [ { "STATUS": "SUCCESS", "RESOURCENAME": "test", "RESOURCEID": "1" } ] }, "name": "CONFIGURE REMOTE PASSWORD RESET" } } ```