> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# get_volumes_of_zone_name_pattern

#### Part.get\_volumes\_of\_zone\_name\_pattern(zone\_name\_pattern, name\_pattern\_params)

Get volume ids of zones with name matching the given name pattern.

* **Parameters:**

  **zone\_name\_pattern**
  : Name pattern to be matched with zone name.

  **name\_pattern\_params**
  : Name pattern parameters used to match zone name pattern.

* **Returns:**

  `Iterable`\[[`int`](https://docs.python.org/3.11/library/functions.html#int)]
  : Return volume ids of zones with name matching the name pattern. Returns an empty list for a topology part.

* **Return type:**

  [`Iterable`](https://docs.python.org/3.11/library/typing.html#typing.Iterable)\[[`int`](https://docs.python.org/3.11/library/functions.html#int)]

### Examples

```python theme={null}
>>> name_pattern_params = prime.NamePatternParams(model = model)
>>> volumes = part.get_volumes_of_zone_name_pattern("body*", name_pattern_params)
```
