---
title: "Get the Resource ID using the Resource Name"
method: GET
path: "/restapi/json/v1/resources/resourcename/{resource_name}"
tags: ["Resources"]
---

# Get the Resource ID using the Resource Name

`GET /restapi/json/v1/resources/resourcename/{resource_name}`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resources/resourcename/{resource_name}`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resources/resourcename/:resource_name/get.ts> (a function with typed inputs; its response is checked against the schema)

This operation is used to fetch resource ID using the resource name in Manage Engine PAM360

## Path parameters

- `resource_name` string, required

## Headers

- `orgName` string

## Response `200`

Resource ID retrieved successfully

- ResourceIdResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object
      - `RESOURCEID` string: Unique identifier for the resource
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
