Configure Remote Password Reset for SAP Resources
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://<Hostname-or-IP-address-of-PAM360-server>:<Port>/restapi/json/v1/resources/configureremotepasswordreset
Header Parameters
{
"AUTHTOKEN" : "<<Authtoken-generated-from-PAM360>>",
"orgName" : "<<org display name>>"
}| Parameter | Description | Values |
|---|---|---|
AUTHTOKEN | Authentication token for the user to authorize the API request. | Default Value : N/A |
orgName | Organization name available in PAM360. | Default Value : The organization to which the user belongs. |
Body Parameters
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. | Default Value : N/A |
SAP_ADMIN_ACCOUNT | Name of the SAP administrator account used to manage or access the SAP system. | Default Value : N/A |
RESOURCEIDS | List of resource IDs to be processed. | Default Value : N/A |
RESOURCETYPE | Specifies the type of resource. For this API, the value must be SAP. | Default Value : N/A |
Sample Request
curl -X POST -H "AUTHTOKEN:<<Authtoken-generated-from-PAM360>>" -H "Content-Type:application/x-www-form-urlencoded" https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/resources/configureremotepasswordreset --data-urlencode "INPUT_DATA={\"operation\":{\"Details\":{\"SAP_SYSTEM_NUMBER\":\"00\",\"SAP_ADMIN_ACCOUNT\":\"test\",\"RESOURCEIDS\":[\"901\"],\"RESOURCETYPE\":\"SAP\"}}}"
import requests import json # API endpoint url = "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/resources/configureremotepasswordreset" # Headers headers = { "AUTHTOKEN": "<<Authtoken-generated-from-PAM360>>", "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)
#API endpoint $Url = "https://<<Authtoken-generated-from-PAM360>>/restapi/json/v1/resources/configureremotepasswordreset" #Headers $Headers = @{ "AUTHTOKEN" = "<<Authtoken-generated-from-PAM360>>" "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
{
"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"
}
}