Fetch all Resource Types

GET

This API retrieves all available resource types in PAM360. The response includes detailed information about each resource type, with an option to filter results by a specified keyword.

Request URL

https://<Hostname-or-IP-address-of-PAM360-server>:<Port>/restapi/json/v1/resources/resourcetypes

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": {
			"RESOURCETYPE_CONTAINING": ["brocade"]
			}
		}
	}

ParametersDescriptionValues

RESOURCETYPE_CONTAINING

Filters and fetches the resource types containing the provided keyword.
Type : String
Mandatory : Yes

Default Value : N/A

Sample Request

cURLPythonPowerShell
curl -G -H "Content-Type: application/x-www-form-urlencoded" -H "AUTHTOKEN:<<Authtoken-generated-from-PAM360>>" "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/resources/resourcetypes" --data-urlencode "INPUT_DATA={\"operation\":{\"Details\":{\"RESOURCETYPE_CONTAINING\":[\"linux\"]}}}"
import requests
import json

url = "https://<Host-Name-of-PAM360-Server OR IP-Address>:<Port>/restapi/json/v1/resources/resourcetypes"

headers = {
	"Content-Type": "application/x-www-form-urlencoded",
	"AUTHTOKEN": "<<Authtoken-generated-from-PAM360>>"
}

payload = {
	"operation": {
		"Details": {
			"RESOURCETYPE_CONTAINING": ["brocade"]
		}
	}
}

params = {
	"INPUT_DATA": json.dumps(payload)
}

response = requests.get(url, headers=headers, params=params, verify=True)

print("Status Code:", response.status_code)
print("Response:", response.text)
Add-Type -AssemblyName System.Web

$BaseUrl = "https://<Host-Name-of-PAM360-Server OR IP-Address>:<Port>/restapi/json/v1/resources/resourcetypes"

$Headers = @{
    "AUTHTOKEN" = "<<Authtoken-generated-from-PAM360>>"
}

$Payload = @{
    operation = @{
        Details = @{
            RESOURCETYPE_CONTAINING = @("brocade")
        }
    }
}

# Convert payload to JSON
$JsonPayload = $Payload | ConvertTo-Json -Depth 5 -Compress

# URL encode JSON
$EncodedPayload = [System.Web.HttpUtility]::UrlEncode($JsonPayload)

# Build URI safely
$UriBuilder = [System.UriBuilder]$BaseUrl
$UriBuilder.Query = "INPUT_DATA=$EncodedPayload"

$FinalUri = $UriBuilder.Uri.AbsoluteUri

$response = Invoke-RestMethod -Uri $FinalUri -Method Get -Headers $Headers

$response | ConvertTo-Json -Depth 5

Sample Response

{
  "operation": {
    "result": {
      "message": "Resource Types fetched successfully",
      "status": "Success"
    },
    "Details": {
      "RESOURCETYPES": [
        {
          "ISSYNCSUPPORTED": "false",
          "ISCERTIFICATE": "false",
          "CATEGORY": "os",
          "SYNCTYPE": "linux",
          "OSID": "3",
          "ISDEFAULT_SUPPORTED_RESOURCETYPE": "true",
          "RESOURCE_ATTRIBUTES": [
            "DNS Name / IP Address",
            "Group Name",
            "Resource Description",
            "Department",
            "Resource URL",
            "Location",
            "Password Policy",
            "Resource Name"
          ],
          "ACCOUNT_ATTRIBUTES": [
            "Password Policy",
            "Private Key",
            "Notes",
            "User Account",
            "User Account Password"
          ],
          "RESOURCETYPE": "Linux",
          "DEFAULTRESOURCETYPE": "false"
        }
      ],
      "ORGANIZATIONNAME": "MSPOrg"
    },
    "name": "GET RESOURCE TYPES"
  }
}



Top