Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

The list of child objects in a custom group under 'Objects To Always Include/Exclude' is incomplete in vRealize Operations 6.x and later (66643)

Last Updated: 10/30/2020Categories: InformationalTotal Views: 3601Language:
Chinese (Simplified)JapaneseEnglish

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

When creating a custom group in vRealize Operations Manager, and navigating to Objects To Always Include/Exclude, the list of child objects (typically VMs in specific) is incomplete.

Cause

This occurs as there is a limit of 1000 child objects in place.

Resolution

This is expected behavior in vRealize Operations Manager.

This behavior will be addressed in a future release of vRealize Operations Manager.

Workaround

Use the REST API to edit Custom Group Membership.
Use one of the following options for cURL or Postman.

cURL

Note: This method can only be used on one resource at a time.

Collect the UUIDs of the objects you wish to exclude from the group

Note: The UUIDs for the objects to be excluded can be obtained from the end of the URL once you've browsed to that object in vRealize Operations.

Example: https://192.168.3.10/ui/index.action#/object/6ae3910c-c934-4439-b110-a7c2609c504f/summary

Run the following command to update the Custom Group membership with the UUIDs found above:

curl -k -H "Content-type: application/json"  -H "Accept: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:password' -X POST https://ip/suite-api/internal/resources/groups/groupID/excludedResources?resourceID=${ResourceUUIDToExclude}

Note: Replace password and ip with the local admin user password and the IP address of the vRealize Operations Manager Primary node respectively, and replace groupID with the 32 alphanumeric unique identifier (UUID) observed in the browser's URL when navigating to the custom group in question under Environment.

Example: curl -s -k -H "Content-type: application/json" -H "Accept: application/json" -H "X-vRealizeOps-API-use-unsupported: true" -u 'admin:VMware123!' -X POST https://192.168.3.10/suite-api/internal/resources/groups/12440fa8-bb8f-46a1-8cbb-a0a48e5c99ee/excludedResources?resourceId=633ebb90-582e-4f30-bdf3-3508f68dfd9c

Postman

Postman can be downloaded from https://www.getpostman.com/apps.
Note: This is a link to an external, 3rd party solution.  If you find this link to not work any longer, please provide feedback at the bottom of the article to request it to be updated.

Open Postman and navigate to File > Settings > General.

Disable SSL certificate verification, then close the Settings window.

Note: Follow http://blog.getpostman.com/2014/01/28/using-self-signed-certificates-with-postman/ if using the chrome extension.

Under the Authorization tab, set the Type dropdown menu to Basic Auth and supply the credentials for the local vRealize Operations Manager admin user.

From the Headers tab, add an Accept key with application/json as the value, a Content-Type key with application/json as the value, and a X-vRealizeOps-API-use-unsupported key with true as the value.

At the top, set the request type to GET and enter https://ip/suite-api/internal/resources/groups/groupID for the request URL.

Note: Replace ip with the IP address of the vRealize Operations Manager Primary node and replace groupID with the 32 alphanumeric unique identifier (UUID) observed in the browser's URL when navigating to the custom group in question under Environment

Example: https://192.168.3.10/ui/index.action#/object/12440fa8-bb8f-46a1-8cbb-a0a48e5c99ee/summary

Click Send.

The output will display all the specified group, and it's included/excluded resources.

Example:
{
"resourceKey": {
"name": "Test Custom Group",
"adapterKindKey": "Container",
"resourceKindKey": "Environment",
"resourceIdentifiers": []
},
"membershipDefinition": {
"includedResources": [
"b2c825db-f307-4149-bad7-62338262cdb9",
"a1b29660-7003-4a34-a9ae-91bc0c4ef802"
],
"excludedResources": [],
"rules": []
},
"links": [
{
"href": "/suite-api/api/groups/12440fa8-bb8f-46a1-8cbb-a0a48e5c99ee",
"rel": "SELF",
"name": "linkToSelf"
},
{
"href": "/suite-api/api/groups",
"rel": "RELATED",
"name": "allGroups",
"description": "Link to all custom groups in the system"
}
],
"identifier": "12440fa8-bb8f-46a1-8cbb-a0a48e5c99ee"
}

Copy the entirety of the output, including all braces/brackets into the Body tab, select raw and change the type to JSON (application/json).

Add the UUIDs for the objects you wish to exclude to the excludedResources list

Note: The UUIDs for the objects to be excluded can be obtained from the end of the URL once you've browsed to that object in vRealize Operations. Be sure to match the syntax as seen beneath, with no comma after the last value.

Example:
{
"resourceKey": {
"name": "Test Custom Group",
"adapterKindKey": "Container",
"resourceKindKey": "Environment",
"resourceIdentifiers": []
},
"membershipDefinition": {
"includedResources": [
"b2c825db-f307-4149-bad7-62338262cdb9",
"a1b29660-7003-4a34-a9ae-91bc0c4ef802"
],

"excludedResources": [

"f881d6f2-2587-4d7a-97e7-18f1f06b15d1",

"b526539c-4447-48c9-a1d5-bde87679d368",

"d4e82dfb-f487-405f-8b74-8c7530e5fe4d"
],
"rules": []
},
"links": [
{
"href": "/suite-api/api/groups/12440fa8-bb8f-46a1-8cbb-a0a48e5c99ee",
"rel": "SELF",
"name": "linkToSelf"
},
{
"href": "/suite-api/api/groups",
"rel": "RELATED",
"name": "allGroups",
"description": "Link to all custom groups in the system"
}
],
"identifier": "12440fa8-bb8f-46a1-8cbb-a0a48e5c99ee"
}

Set the request type to POST, remove the UUID from the URL and click Send.

Example: https://192.168.3.10/suite-api/internal/resources/groups/

Custom Group

Note:  This method creates an custom group to include/exclude in the original custom group.

Create a new custom group to include/exclude under the original custom group.  The criteria would include objects that you would want to include/exclude from the original custom group.

Edit the original group.

From the include/exclude select Custom Groups from Filter Object.

Expand Environment and select you new custom group, hit ADD.

Preview to ensure the custom group is listed and hit OK.

Related Information

To be notified when this article is updated, click Subscribe under the Actions box.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vRealize Operations Manager

VMware vRealize Operations

Related Versions:

VMware vRealize Operations Manager 7.5.x

VMware vRealize Operations Manager 7.0.x

VMware vRealize Operations Manager 6.7.x

VMware vRealize Operations Manager 6.6.x

Take Our Survey

Support Assistant