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_patternstr

Name pattern to be matched with zone name.

name_pattern_paramsNamePatternParams

Name pattern parameters used to match zone name pattern.

Returns:
Iterable[int]

Return volume ids of zones with name matching the name pattern. Returns an empty list for a topology part.

Return type:

Iterable[int]

Examples

>>> name_pattern_params = prime.NamePatternParams(model = model)
>>> volumes = part.get_volumes_of_zone_name_pattern("body*", name_pattern_params)