Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zZWN1cml0eWluc2lnaHRzL3dhdGNobGlzdHMve30vd2F0Y2hsaXN0aXRlbXMve30=/2022-06-01-preview.xml (512 lines of code) (raw):

<?xml version='1.0' encoding='utf-8'?> <CodeGen plane="mgmt-plane"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/watchlists/{}/watchlistitems/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvd2F0Y2hsaXN0cy97d2F0Y2hsaXN0QWxpYXN9L3dhdGNobGlzdEl0ZW1zL3t3YXRjaGxpc3RJdGVtSWR9/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <commandGroup name="sentinel watchlist item"> <command name="show" version="2022-06-01-preview"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/watchlists/{}/watchlistitems/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvd2F0Y2hsaXN0cy97d2F0Y2hsaXN0QWxpYXN9L3dhdGNobGlzdEl0ZW1zL3t3YXRjaGxpc3RJdGVtSWR9/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.watchlistAlias" options="watchlist-alias" required="True" idPart="child_name_1"> <help short="Watchlist Alias"/> </arg> <arg type="string" var="$Path.watchlistItemId" options="watchlist-item-id name n" required="True" idPart="child_name_2"> <help short="Watchlist Item Id (GUID)"/> </arg> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <operation operationId="WatchlistItems_Get"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}/watchlistItems/{watchlistItemId}"> <request method="get"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="watchlistAlias" arg="$Path.watchlistAlias" required="True"/> <param type="string" name="watchlistItemId" arg="$Path.watchlistItemId" required="True"/> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <body> <json var="$Instance"> <schema type="object"> <prop type="string" name="etag"/> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="dateTime" name="created"/> <prop type="object" name="createdBy" cls="UserInfo_read"> <prop readOnly="True" type="string" name="email"/> <prop readOnly="True" type="string" name="name"/> <prop nullable="True" type="uuid" name="objectId"/> </prop> <prop type="boolean" name="isDeleted"/> <prop type="object" name="itemsKeyValue" required="True"/> <prop type="string" name="tenantId"/> <prop type="dateTime" name="updated"/> <prop type="@UserInfo_read" name="updatedBy"/> <prop type="string" name="watchlistItemId"/> <prop type="string" name="watchlistItemType"/> </prop> <prop readOnly="True" type="object" name="systemData"> <prop readOnly="True" type="dateTime" name="createdAt"/> <prop readOnly="True" type="string" name="createdBy"/> <prop readOnly="True" type="string" name="createdByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> <prop readOnly="True" type="dateTime" name="lastModifiedAt"/> <prop readOnly="True" type="string" name="lastModifiedBy"/> <prop readOnly="True" type="string" name="lastModifiedByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="string" name="type"/> </schema> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> <command name="delete" version="2022-06-01-preview" confirmation="Are you sure you want to perform this operation?"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/watchlists/{}/watchlistitems/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvd2F0Y2hsaXN0cy97d2F0Y2hsaXN0QWxpYXN9L3dhdGNobGlzdEl0ZW1zL3t3YXRjaGxpc3RJdGVtSWR9/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.watchlistAlias" options="watchlist-alias" required="True" idPart="child_name_1"> <help short="Watchlist Alias"/> </arg> <arg type="string" var="$Path.watchlistItemId" options="watchlist-item-id name n" required="True" idPart="child_name_2"> <help short="Watchlist Item Id (GUID)"/> </arg> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <operation operationId="WatchlistItems_Delete"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}/watchlistItems/{watchlistItemId}"> <request method="delete"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="watchlistAlias" arg="$Path.watchlistAlias" required="True"/> <param type="string" name="watchlistItemId" arg="$Path.watchlistItemId" required="True"/> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"/> <response statusCode="204"/> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> </command> <command name="create" version="2022-06-01-preview"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/watchlists/{}/watchlistitems/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvd2F0Y2hsaXN0cy97d2F0Y2hsaXN0QWxpYXN9L3dhdGNobGlzdEl0ZW1zL3t3YXRjaGxpc3RJdGVtSWR9/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.watchlistAlias" options="watchlist-alias" required="True" idPart="child_name_1"> <help short="Watchlist Alias"/> </arg> <arg type="string" var="$Path.watchlistItemId" options="watchlist-item-id name n" required="True" idPart="child_name_2"> <help short="Watchlist Item Id (GUID)"/> </arg> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <argGroup name="Properties"> <arg type="dateTime" var="$watchlistItem.properties.created" options="created" group="Properties"> <help short="The time the watchlist item was created"/> </arg> <arg type="object" var="$watchlistItem.properties.createdBy" options="created-by" group="Properties" cls="UserInfo_create"> <help short="Describes a user that created the watchlist item"/> <arg nullable="True" type="uuid" var="@UserInfo_create.objectId" options="object-id"> <help short="The object id of the user."/> </arg> </arg> <arg type="boolean" var="$watchlistItem.properties.isDeleted" options="is-deleted" group="Properties"> <help short="A flag that indicates if the watchlist item is deleted or not"/> </arg> <arg type="object" var="$watchlistItem.properties.itemsKeyValue" options="items-key-value" group="Properties"> <help short="key-value pairs for a watchlist item"/> </arg> <arg type="string" var="$watchlistItem.properties.tenantId" options="tenant-id" group="Properties"> <help short="The tenantId to which the watchlist item belongs to"/> </arg> <arg type="dateTime" var="$watchlistItem.properties.updated" options="updated" group="Properties"> <help short="The last time the watchlist item was updated"/> </arg> <arg type="@UserInfo_create" var="$watchlistItem.properties.updatedBy" options="updated-by" group="Properties"> <help short="Describes a user that updated the watchlist item"/> </arg> <arg type="string" var="$watchlistItem.properties.watchlistItemType" options="watchlist-item-type" group="Properties"> <help short="The type of the watchlist item"/> </arg> </argGroup> <argGroup name="WatchlistItem"> <arg type="string" var="$watchlistItem.etag" options="etag" group="WatchlistItem"> <help short="Etag of the azure resource"/> </arg> </argGroup> <operation operationId="WatchlistItems_CreateOrUpdate"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}/watchlistItems/{watchlistItemId}"> <request method="put"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="watchlistAlias" arg="$Path.watchlistAlias" required="True"/> <param type="string" name="watchlistItemId" arg="$Path.watchlistItemId" required="True"/> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> <body> <json> <schema type="object" name="watchlistItem" required="True" clientFlatten="True"> <prop type="string" name="etag" arg="$watchlistItem.etag"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="dateTime" name="created" arg="$watchlistItem.properties.created"/> <prop type="object" name="createdBy" arg="$watchlistItem.properties.createdBy" cls="UserInfo_create"> <prop nullable="True" type="uuid" name="objectId" arg="@UserInfo_create.objectId"/> </prop> <prop type="boolean" name="isDeleted" arg="$watchlistItem.properties.isDeleted"/> <prop type="object" name="itemsKeyValue" arg="$watchlistItem.properties.itemsKeyValue" required="True"/> <prop type="string" name="tenantId" arg="$watchlistItem.properties.tenantId"/> <prop type="dateTime" name="updated" arg="$watchlistItem.properties.updated"/> <prop type="@UserInfo_create" name="updatedBy" arg="$watchlistItem.properties.updatedBy"/> <prop type="string" name="watchlistItemId" arg="$Path.watchlistItemId"/> <prop type="string" name="watchlistItemType" arg="$watchlistItem.properties.watchlistItemType"/> </prop> </schema> </json> </body> </request> <response statusCode="200 201"> <body> <json var="$Instance"> <schema type="object"> <prop type="string" name="etag"/> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="dateTime" name="created"/> <prop type="object" name="createdBy" cls="UserInfo_read"> <prop readOnly="True" type="string" name="email"/> <prop readOnly="True" type="string" name="name"/> <prop nullable="True" type="uuid" name="objectId"/> </prop> <prop type="boolean" name="isDeleted"/> <prop type="object" name="itemsKeyValue" required="True"/> <prop type="string" name="tenantId"/> <prop type="dateTime" name="updated"/> <prop type="@UserInfo_read" name="updatedBy"/> <prop type="string" name="watchlistItemId"/> <prop type="string" name="watchlistItemType"/> </prop> <prop readOnly="True" type="object" name="systemData"> <prop readOnly="True" type="dateTime" name="createdAt"/> <prop readOnly="True" type="string" name="createdBy"/> <prop readOnly="True" type="string" name="createdByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> <prop readOnly="True" type="dateTime" name="lastModifiedAt"/> <prop readOnly="True" type="string" name="lastModifiedBy"/> <prop readOnly="True" type="string" name="lastModifiedByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="string" name="type"/> </schema> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> <command name="update" version="2022-06-01-preview"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/providers/microsoft.securityinsights/watchlists/{}/watchlistitems/{}" version="2022-06-01-preview" swagger="mgmt-plane/securityinsights/ResourceProviders/Microsoft.SecurityInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9wcm92aWRlcnMvTWljcm9zb2Z0LlNlY3VyaXR5SW5zaWdodHMvd2F0Y2hsaXN0cy97d2F0Y2hsaXN0QWxpYXN9L3dhdGNobGlzdEl0ZW1zL3t3YXRjaGxpc3RJdGVtSWR9/V/MjAyMi0wNi0wMS1wcmV2aWV3"/> <argGroup name=""> <arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/> <arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/> <arg type="string" var="$Path.watchlistAlias" options="watchlist-alias" required="True" idPart="child_name_1"> <help short="Watchlist Alias"/> </arg> <arg type="string" var="$Path.watchlistItemId" options="watchlist-item-id name n" required="True" idPart="child_name_2"> <help short="Watchlist Item Id (GUID)"/> </arg> <arg type="string" var="$Path.workspaceName" options="workspace-name w" required="True" stage="Experimental" idPart="name"> <help short="The name of the workspace."/> <format maxLength="90" minLength="1"/> </arg> </argGroup> <argGroup name="Properties"> <arg nullable="True" type="dateTime" var="$watchlistItem.properties.created" options="created" group="Properties"> <help short="The time the watchlist item was created"/> </arg> <arg nullable="True" type="object" var="$watchlistItem.properties.createdBy" options="created-by" group="Properties" cls="UserInfo_update"> <help short="Describes a user that created the watchlist item"/> <arg nullable="True" type="uuid" var="@UserInfo_update.objectId" options="object-id"> <help short="The object id of the user."/> </arg> </arg> <arg nullable="True" type="boolean" var="$watchlistItem.properties.isDeleted" options="is-deleted" group="Properties"> <help short="A flag that indicates if the watchlist item is deleted or not"/> </arg> <arg type="object" var="$watchlistItem.properties.itemsKeyValue" options="items-key-value" group="Properties"> <help short="key-value pairs for a watchlist item"/> </arg> <arg nullable="True" type="string" var="$watchlistItem.properties.tenantId" options="tenant-id" group="Properties"> <help short="The tenantId to which the watchlist item belongs to"/> </arg> <arg nullable="True" type="dateTime" var="$watchlistItem.properties.updated" options="updated" group="Properties"> <help short="The last time the watchlist item was updated"/> </arg> <arg nullable="True" type="@UserInfo_update" var="$watchlistItem.properties.updatedBy" options="updated-by" group="Properties"> <help short="Describes a user that updated the watchlist item"/> </arg> <arg nullable="True" type="string" var="$watchlistItem.properties.watchlistItemType" options="watchlist-item-type" group="Properties"> <help short="The type of the watchlist item"/> </arg> </argGroup> <argGroup name="WatchlistItem"> <arg nullable="True" type="string" var="$watchlistItem.etag" options="etag" group="WatchlistItem"> <help short="Etag of the azure resource"/> </arg> </argGroup> <operation operationId="WatchlistItems_Get"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}/watchlistItems/{watchlistItemId}"> <request method="get"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="watchlistAlias" arg="$Path.watchlistAlias" required="True"/> <param type="string" name="watchlistItemId" arg="$Path.watchlistItemId" required="True"/> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <body> <json var="$Instance"> <schema type="object" cls="WatchlistItem_read"> <prop type="string" name="etag"/> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/providers/Microsoft.SecurityInsights/watchlists/{}/watchlistItems/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="dateTime" name="created"/> <prop type="object" name="createdBy" cls="UserInfo_read"> <prop readOnly="True" type="string" name="email"/> <prop readOnly="True" type="string" name="name"/> <prop nullable="True" type="uuid" name="objectId"/> </prop> <prop type="boolean" name="isDeleted"/> <prop type="object" name="itemsKeyValue" required="True"/> <prop type="string" name="tenantId"/> <prop type="dateTime" name="updated"/> <prop type="@UserInfo_read" name="updatedBy"/> <prop type="string" name="watchlistItemId"/> <prop type="string" name="watchlistItemType"/> </prop> <prop readOnly="True" type="object" name="systemData"> <prop readOnly="True" type="dateTime" name="createdAt"/> <prop readOnly="True" type="string" name="createdBy"/> <prop readOnly="True" type="string" name="createdByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> <prop readOnly="True" type="dateTime" name="lastModifiedAt"/> <prop readOnly="True" type="string" name="lastModifiedBy"/> <prop readOnly="True" type="string" name="lastModifiedByType"> <enum> <item value="&quot;Application&quot;"/> <item value="&quot;Key&quot;"/> <item value="&quot;ManagedIdentity&quot;"/> <item value="&quot;User&quot;"/> </enum> </prop> </prop> <prop readOnly="True" type="string" name="type"/> </schema> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> <operation> <instanceUpdate instance="$Instance"> <json> <schema type="object" name="watchlistItem" required="True" clientFlatten="True"> <prop type="string" name="etag" arg="$watchlistItem.etag"/> <prop type="object" name="properties" clientFlatten="True"> <prop type="dateTime" name="created" arg="$watchlistItem.properties.created"/> <prop type="object" name="createdBy" arg="$watchlistItem.properties.createdBy" cls="UserInfo_update"> <prop nullable="True" type="uuid" name="objectId" arg="@UserInfo_update.objectId"/> </prop> <prop type="boolean" name="isDeleted" arg="$watchlistItem.properties.isDeleted"/> <prop type="object" name="itemsKeyValue" arg="$watchlistItem.properties.itemsKeyValue" required="True"/> <prop type="string" name="tenantId" arg="$watchlistItem.properties.tenantId"/> <prop type="dateTime" name="updated" arg="$watchlistItem.properties.updated"/> <prop type="@UserInfo_update" name="updatedBy" arg="$watchlistItem.properties.updatedBy"/> <prop type="string" name="watchlistItemId" arg="$Path.watchlistItemId"/> <prop type="string" name="watchlistItemType" arg="$watchlistItem.properties.watchlistItemType"/> </prop> </schema> </json> </instanceUpdate> </operation> <operation operationId="WatchlistItems_CreateOrUpdate"> <http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/watchlists/{watchlistAlias}/watchlistItems/{watchlistItemId}"> <request method="put"> <path> <param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"> <format maxLength="90" minLength="1"/> </param> <param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"> <format minLength="1"/> </param> <param type="string" name="watchlistAlias" arg="$Path.watchlistAlias" required="True"/> <param type="string" name="watchlistItemId" arg="$Path.watchlistItemId" required="True"/> <param type="string" name="workspaceName" arg="$Path.workspaceName" required="True"> <format maxLength="90" minLength="1"/> </param> </path> <query> <const readOnly="True" const="True" type="string" name="api-version" required="True"> <default value="&quot;2022-06-01-preview&quot;"/> <format minLength="1"/> </const> </query> <body> <json ref="$Instance"/> </body> </request> <response statusCode="200 201"> <body> <json var="$Instance"> <schema type="@WatchlistItem_read"/> </json> </body> </response> <response isError="True"> <body> <json> <schema type="@ODataV4Format"/> </json> </body> </response> </http> </operation> <output type="object" ref="$Instance" clientFlatten="True"/> </command> </commandGroup> </CodeGen>