Fetch All Resources Report
This API fetches the complete list of resources from PAM360, listing all resource names along with their unique resource IDs. You can refine the report by applying filters such as limit, start index, search value, column, and operator.
Request URL
https://<Hostname-or-IP-address-of-PAM360-server>:<Port>/restapi/json/v1/reports/resources
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. |
Query Parameters
INPUT_DATA = {
"operation": {
"Details": {
"limit": 3,
"startIndex": 1,
"searchValue": "johnson",
"searchColumn": "resourceName",
"searchOperator": "contains"
}
}
}| Parameters | Description | Values |
|---|---|---|
limit | The maximum number of records to be retrieved. | Default Value : 100 |
startIndex | The index from which the result set should begin. | Default Value : N/A |
searchValue | The value to search for in the specified column. | Default Value : N/A |
searchColumn | Specifies the columns where the search should be applied. | Default Value : N/A |
searchOperator | Operator used for searching records. | Default Value : N/A |
Sample Request
curl -G "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/reports/resources" -H "AUTHTOKEN: <<Authtoken-generated-from-PAM360>>" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "INPUT_DATA={\"operation\":{\"Details\":{\"limit\":3,\"startIndex\":0,\"searchValue\":\"admin\",\"searchColumn\":\"resourceName\",\"searchOperator\":\"contains\"}}}"
import requests url = "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/reports/resources" headers = { "AUTHTOKEN": "<<Authtoken-generated-from-PAM360>>", "Content-Type": "application/x-www-form-urlencoded" } input_data = { "operation": { "Details": { "limit": 3, "startIndex": 1, "searchValue": "johnson", "searchColumn": "resourceName", "searchOperator": "contains" } } } params = { "INPUT_DATA": str(input_data).replace("'", '"') } response = requests.get(url, headers=headers, params=params, verify=True) print("Status:", response.status_code) print("Response:", response.text)
# Define URL $url = "https://<Hostname-or-IP-address-of-PAM360-server>:<Port>/restapi/json/v1/reports/resources" # Headers $headers = @{ "AUTHTOKEN"="<<Authtoken-generated-from-PAM360>>"; "Content-Type"="application/x-www-form-urlencoded" } # Input JSON (fixed) $inputData = @{ operation = @{ Details = @{ limit=3; startIndex=1; searchValue="johnson"; searchColumn="resourceName"; searchOperator="contains" } } } | ConvertTo-Json -Compress # Encode as query parameter $params = @{ INPUT_DATA = $inputData } # Send GET request $response = Invoke-WebRequest -Uri $url -Headers $headers -Method Get -Body $params $response.Content
Sample Response
{
"operation": {
"result": {
"message": "Resource details list fetched successfully",
"status": "Success",
"statusCode": 20000
},
"Details": [
{
"resourceId": 1,
"resourceName": "pam360-os1.win.domain.com"
},
{
"resourceId": 2,
"resourceName": "Windows Server"
}
],
"numberOfRowsFetched": 2,
"name": "GET_RESOURCE(S)_REPORT",
"totalRows": 2
}
}