---
title: "Get resource by id"
method: GET
path: "/api/resources/{resourceId}"
tags: ["Resources"]
---

# Get resource by id

`GET /api/resources/{resourceId}`

Returns a resource with the specified id.

## Path parameters

- `resourceId` string, uuid, required

## Response `200`

OK

- Resource — Object representing a resource.
  - `id` string, uuid — The identifier of the resource.
  - `organizationId` string, uuid — The identifier of the organization.
  - `name` string, nullable — The name of the resource.
  - `type` string, nullable — The type of the resource. Available values are `File`, `CSharpScript`, `PythonScript`, `Modbus`, `OPC`, `SiemensS7`, `Rockwell`, `PiWebApi`, `DataTriggerDefinitions`, `AvevaHistorian`.
  - `pathOnNode` string, nullable — Optional. The path of the resource. Some type of resources have no path, such as `Modbus`.
  - `currentVersion` integer — The latest version of the resource (including archived).
  - `currentActiveVersion` integer — The latest active version of the resource (not inlcuding archived).
  - `category` string, nullable — The category of the resource.
  - `hasDraft` boolean — Whether the resource has a draft version.
  - `flowsCount` integer — The number of flows that uses the resource.
  - `flowDraftsCount` integer — The number of flow drafts that uses the resource.
  - `flowTemplatesCount` integer — The number of flow templates that uses the resource.
  - `parameterValuesCount` integer — The number of parameter values that uses the resource.
  - `createdAt` string, date-time — The time the resource was created.
  - `createdBy` string, uuid — The user that created the resource.
  - `updatedAt` string, date-time — The time the resource was last updated.
  - `updatedBy` string, uuid — The user that last updated the resource.
  - `crn` Crn
    - `reserved1` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
    - `service` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
    - `reserved2` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
    - `organizationId` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
    - `type` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
    - `id` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
    - `path` ReadOnlySpan1Char
      - `length` integer
      - `isEmpty` boolean
  - `path` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `503` — Service Unavailable

---

[API](https://skmtc.net/crosser/apis/edge-director-api.md) · [All operations](https://skmtc.net/crosser/apis/edge-director-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crosser/edge-director-api/versions/746b3f44e69d/schema)
