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

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

## Parameters

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

## Returns

[`ResourceOperation`](../interfaces/ResourceOperation.md) \| `undefined`
