Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

ResourceManagerHelper – Filter resources with a specific discrete capability

Solved611 views10th January 2024capabilities Exposer Resource Manager ResourceManager
4
Thomas Cauwelier [SLC] [DevOps Advocate]1.50K 10th January 2024 0 Comments

I’m trying to use ResourceManagerHelper and ResourceExposers to get all resources with a specific discrete capability. I don’t want to use the GetEligibleResources method because I don’t care about the current usage/reservations of the resource.

I think I need the following code to build the FilterElement, but I’m stuck at this point.

ResourceExposers.Capabilities.DiscreteCapability(profileParameterGuid)...

My capability has discrete values “True” and “False” defined. I want to find resources where this capability is set to “True”.

Can you help me finish building the FilterElement?

Thomas Cauwelier [SLC] [DevOps Advocate] Selected answer as best 10th January 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 10th January 2024 0 Comments

Hi Thomas,

The DiscreteCapability filter can be used as follows:

// Get all resources with a certain discrete option
var encodingQualityParameterId = Guid.Parse("..."); // GUID of the profile parameter
FilterElement<Resource> filter = ResourceExposers.Capabilities.DiscreteCapability(encodingQualityParameterId).Contains("UHD");
var resources = helper.GetResources(filter);

Source: https://docs.dataminer.services/release-notes/General/General_Main_Release_10.4/General_Main_Release_10.4.0_new_features.html#service–resource-management-exposers-for-resource-capacities-and-capabilities-id_34841

The reason why the “Contains” method is being used on discretes is because a resource could also support multiple discreets, i.e. SD and HD.

Thomas Cauwelier [SLC] [DevOps Advocate] Selected answer as best 10th January 2024
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs