---
jsApi: true
title: "[F] getResourceOperation"

---
```ts
getResourceOperation(program, typespecOperation): ResourceOperation | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `typespecOperation` | `Operation` |

## Returns

[`ResourceOperation`](Interface.ResourceOperation.md) \| `undefined`
