---
title: "Fetch resource ID by name (query param)"
method: GET
path: "/restapi/json/v1/resources/id"
tags: ["Resources"]
---

# Fetch resource ID by name (query param)

`GET /restapi/json/v1/resources/id`

## Request

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

Retrieves the resource ID by passing the resource name as a query parameter. This is an alternative to the path-based lookup at `/resources/resourcename/{resource_name}`.

## Query parameters

- `resourceName` 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)
