Policy > Monitoring > System Health Agent > Profile

Create or Replace Sha profile

Create or Replace Sha profile.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/sha/plugin-profiles/<sha-profile-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ShaDynamicPluginProfile+
ShaPredefinedPluginProfile+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/sha/plugin-profiles/profile1 { "plugin_path": "/infra/sha/pre-defined-plugins/daemon-health", "plugin_type": "PredefinedPlugin", "applied_to_group_path": "/infra/domains/d1/groups/group1", "enabled": true, "config": { "check_interval": 20, "report_interval": 180, "smallest_report_interval_if_change": 60 } }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ShaDynamicPluginProfile+
ShaPredefinedPluginProfile+

Example Response:

{ "resource_type": "ShaPluginProfile", "id": "profile1", "display_name": "/infra/sha/plugin-profiles/profile1", "path": "/infra/sha/plugin-profiles/profile1", "parent_path": "/infra", "relative_path": "profile1", "plugin_path": "/infra/sha/pre-defined-plugins/daemon-health", "plugin_type": "PredefinedPlugin", "applied_to_group_path": "/infra/domains/d1/groups/group1", "enabled": true, "config": { "check_interval": 20, "report_interval": 180, "smallest_report_interval_if_change": 60 } "_create_user": "admin", "_create_time": 1517354268091, "_last_modified_user": "admin", "_last_modified_time": 1517354315280, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 }

Required Permissions:

crud

Feature:

policy_ops

Additional Errors: