Fetch All Resources Report

GET

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>>"
}

ParameterDescriptionValues

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.

Query Parameters

INPUT_DATA = {
"operation": {
	"Details": {
	"limit": 3,
	"startIndex": 1,
	"searchValue": "johnson",
	"searchColumn": "resourceName",
	"searchOperator": "contains"
	}
	}
}

ParametersDescriptionValues

limit

The maximum number of records to be retrieved.
Type : Integer
Mandatory : No

Default Value : 100

startIndex

The index from which the result set should begin.
Type : Integer
Mandatory : No

Default Value : N/A

searchValue

The value to search for in the specified column.
Type : String
Mandatory : No

Default Value : N/A

searchColumn

Specifies the columns where the search should be applied.
Type : String
Mandatory : No

Default Value : N/A
Allowed Values : resourceId, resourceName

searchOperator

Operator used for searching records.
Type : String
Mandatory : No

Default Value : N/A
Allowed Values : contains, doesNotContain, equals, notEquals, startsWith, endsWith

Sample Request

cURLPythonPowerShell
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
	}
}



Top