NSX-T Data Center REST API
Create or update a SHA monitor profile
Create or update a SHA monitor profile.This API is available when using VMware NSX or VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers).
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/infra/sha/monitors/{monitor-id}/profiles/{monitor-profile-id}
Request Headers:
n/a
Query Parameters:
ShaMonitorProfileUpdateParameters+
Request Body:
ShaMonitorProfile+
Example Request:
{ "default": true, "applied_to_group_path": "/infra/domains/default/groups/81422b9c-a416-4624-802b-a3132bd35f51", "configs": { "check_interval": 300, "resource_type": "ShaEsxObsrvStatsMonitorConfig", "enable": true }, "sub_monitor_configs": [ { "resource_type": "ShaEsxObsrvDatapathTrafficStatsMonitorConfig", "enable": false } ], "resource_type": "ShaMonitorProfile", "id": "default-profile", "display_name": "default-profile", "path": "/infra/sha/monitors/esx-obsrv-stats-monitor/profiles/default-profile", "relative_path": "default-profile", "parent_path": "/infra/sha/monitors/esx-obsrv-stats-monitor", "remote_path": "", "unique_id": "4b1f1d68-7640-4020-9ee7-44ca8c1a179f", "realization_id": "4b1f1d68-7640-4020-9ee7-44ca8c1a179f", "owner_id": "3d2f9344-3880-4710-a5b4-47ccde614a28", "marked_for_delete": false, "overridden": false, "_create_time": 1705394286179, "_create_user": "system", "_last_modified_time": 1705394286179, "_last_modified_user": "system", "_system_owned": true, "_protection": "NOT_PROTECTED", "_revision": 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ShaMonitorProfile+