Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vZGF0YWV4cG9ydHMve30=/2020-08-01.xml (434 lines of code) (raw):
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/dataexports/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9kYXRhRXhwb3J0cy97ZGF0YUV4cG9ydE5hbWV9/V/MjAyMC0wOC0wMQ=="/>
<commandGroup name="monitor log-analytics workspace data-export">
<command name="show" version="2020-08-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/dataexports/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9kYXRhRXhwb3J0cy97ZGF0YUV4cG9ydE5hbWV9/V/MjAyMC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.dataExportName" options="data-export-name name n" required="True" idPart="child_name_1">
<help short="The data export rule name."/>
</arg>
<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.workspaceName" options="workspace-name" required="True" idPart="name">
<help short="The name of the workspace."/>
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</arg>
</argGroup>
<operation operationId="DataExports_Get">
<http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}">
<request method="get">
<path>
<param type="string" name="dataExportName" arg="$Path.dataExportName" required="True"/>
<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="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2020-08-01""/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/dataExports/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop type="string" name="createdDate"/>
<prop type="string" name="dataExportId"/>
<prop type="object" name="destination" required="True">
<prop type="object" name="metaData" clientFlatten="True">
<prop type="string" name="eventHubName"/>
</prop>
<prop type="string" name="resourceId" required="True"/>
<prop readOnly="True" type="string" name="type">
<enum>
<item value=""EventHub""/>
<item value=""StorageAccount""/>
</enum>
</prop>
</prop>
<prop type="boolean" name="enable"/>
<prop type="string" name="lastModifiedDate"/>
<prop type="array<string>" name="tableNames" required="True">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="delete" version="2020-08-01" confirmation="Are you sure you want to perform this operation?">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/dataexports/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9kYXRhRXhwb3J0cy97ZGF0YUV4cG9ydE5hbWV9/V/MjAyMC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.dataExportName" options="data-export-name name n" required="True" idPart="child_name_1">
<help short="The data export rule name."/>
</arg>
<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.workspaceName" options="workspace-name" required="True" idPart="name">
<help short="The name of the workspace."/>
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</arg>
</argGroup>
<operation operationId="DataExports_Delete">
<http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}">
<request method="delete">
<path>
<param type="string" name="dataExportName" arg="$Path.dataExportName" required="True"/>
<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="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2020-08-01""/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
</command>
<command name="create" version="2020-08-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/dataexports/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9kYXRhRXhwb3J0cy97ZGF0YUV4cG9ydE5hbWV9/V/MjAyMC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.dataExportName" options="data-export-name name n" required="True" idPart="child_name_1">
<help short="The data export rule name."/>
<format pattern="^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</arg>
<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.workspaceName" options="workspace-name" required="True" idPart="name">
<help short="The name of the workspace."/>
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</arg>
</argGroup>
<argGroup name="Destination">
<arg type="string" var="$parameters.properties.destination.metaData.eventHubName" options="event-hub-name" group="Destination">
<help short="Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account."/>
</arg>
<arg type="string" var="$parameters.properties.destination.resourceId" options="destination" required="True" group="Destination">
<help short="The destination resource ID. It should be a storage account, an event hub namespace. If event hub namespace is provided without --event-hub-name, event hub would be created for each table automatically."/>
</arg>
</argGroup>
<argGroup name="Properties">
<arg type="string" var="$parameters.properties.createdDate" options="created-date" hide="True" group="Properties">
<help short="The latest data export rule modification time."/>
</arg>
<arg type="string" var="$parameters.properties.dataExportId" options="data-export-id" hide="True" group="Properties">
<help short="The data export rule ID."/>
</arg>
<arg type="boolean" var="$parameters.properties.enable" options="enable" group="Properties">
<help short="Active when enabled."/>
</arg>
<arg type="string" var="$parameters.properties.lastModifiedDate" options="last-modified-date" hide="True" group="Properties">
<help short="Date and time when the export was last modified."/>
</arg>
<arg type="array<string>" var="$parameters.properties.tableNames" options="tables t" required="True" group="Properties">
<help short="An array of tables to export."/>
<item type="string"/>
</arg>
</argGroup>
<operation operationId="DataExports_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}">
<request method="put">
<path>
<param type="string" name="dataExportName" arg="$Path.dataExportName" required="True">
<format pattern="^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
<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="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2020-08-01""/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop type="string" name="createdDate" arg="$parameters.properties.createdDate"/>
<prop type="string" name="dataExportId" arg="$parameters.properties.dataExportId"/>
<prop type="object" name="destination" required="True">
<prop type="object" name="metaData" clientFlatten="True">
<prop type="string" name="eventHubName" arg="$parameters.properties.destination.metaData.eventHubName"/>
</prop>
<prop type="string" name="resourceId" arg="$parameters.properties.destination.resourceId" required="True"/>
</prop>
<prop type="boolean" name="enable" arg="$parameters.properties.enable"/>
<prop type="string" name="lastModifiedDate" arg="$parameters.properties.lastModifiedDate"/>
<prop type="array<string>" name="tableNames" arg="$parameters.properties.tableNames" required="True">
<item type="string"/>
</prop>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/dataExports/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop type="string" name="createdDate"/>
<prop type="string" name="dataExportId"/>
<prop type="object" name="destination" required="True">
<prop type="object" name="metaData" clientFlatten="True">
<prop type="string" name="eventHubName"/>
</prop>
<prop type="string" name="resourceId" required="True"/>
<prop readOnly="True" type="string" name="type">
<enum>
<item value=""EventHub""/>
<item value=""StorageAccount""/>
</enum>
</prop>
</prop>
<prop type="boolean" name="enable"/>
<prop type="string" name="lastModifiedDate"/>
<prop type="array<string>" name="tableNames" required="True">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="update" version="2020-08-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/dataexports/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9kYXRhRXhwb3J0cy97ZGF0YUV4cG9ydE5hbWV9/V/MjAyMC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.dataExportName" options="data-export-name name n" required="True" idPart="child_name_1">
<help short="The data export rule name."/>
</arg>
<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.workspaceName" options="workspace-name" required="True" idPart="name">
<help short="The name of the workspace."/>
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</arg>
</argGroup>
<argGroup name="Destination">
<arg nullable="True" type="string" var="$parameters.properties.destination.metaData.eventHubName" options="event-hub-name" group="Destination">
<help short="Optional. Allows to define an Event Hub name. Not applicable when destination is Storage Account."/>
</arg>
<arg type="string" var="$parameters.properties.destination.resourceId" options="destination" group="Destination">
<help short="The destination resource ID. It should be a storage account, an event hub namespace. If event hub namespace is provided without --event-hub-name, event hub would be created for each table automatically."/>
</arg>
</argGroup>
<argGroup name="Properties">
<arg nullable="True" type="string" var="$parameters.properties.createdDate" options="created-date" hide="True" group="Properties">
<help short="The latest data export rule modification time."/>
</arg>
<arg nullable="True" type="string" var="$parameters.properties.dataExportId" options="data-export-id" hide="True" group="Properties">
<help short="The data export rule ID."/>
</arg>
<arg nullable="True" type="boolean" var="$parameters.properties.enable" options="enable" group="Properties">
<help short="Active when enabled."/>
</arg>
<arg nullable="True" type="string" var="$parameters.properties.lastModifiedDate" options="last-modified-date" hide="True" group="Properties">
<help short="Date and time when the export was last modified."/>
</arg>
<arg type="array<string>" var="$parameters.properties.tableNames" options="tables t" group="Properties">
<help short="An array of tables to export."/>
<item nullable="True" type="string"/>
</arg>
</argGroup>
<operation operationId="DataExports_Get">
<http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}">
<request method="get">
<path>
<param type="string" name="dataExportName" arg="$Path.dataExportName" required="True"/>
<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="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2020-08-01""/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object" cls="DataExport_read">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/dataExports/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop type="string" name="createdDate"/>
<prop type="string" name="dataExportId"/>
<prop type="object" name="destination" required="True">
<prop type="object" name="metaData" clientFlatten="True">
<prop type="string" name="eventHubName"/>
</prop>
<prop type="string" name="resourceId" required="True"/>
<prop readOnly="True" type="string" name="type">
<enum>
<item value=""EventHub""/>
<item value=""StorageAccount""/>
</enum>
</prop>
</prop>
<prop type="boolean" name="enable"/>
<prop type="string" name="lastModifiedDate"/>
<prop type="array<string>" name="tableNames" required="True">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<operation>
<instanceUpdate instance="$Instance">
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="object" name="properties" required="True" clientFlatten="True">
<prop type="string" name="createdDate" arg="$parameters.properties.createdDate"/>
<prop type="string" name="dataExportId" arg="$parameters.properties.dataExportId"/>
<prop type="object" name="destination" required="True">
<prop type="object" name="metaData" clientFlatten="True">
<prop type="string" name="eventHubName" arg="$parameters.properties.destination.metaData.eventHubName"/>
</prop>
<prop type="string" name="resourceId" arg="$parameters.properties.destination.resourceId" required="True"/>
</prop>
<prop type="boolean" name="enable" arg="$parameters.properties.enable"/>
<prop type="string" name="lastModifiedDate" arg="$parameters.properties.lastModifiedDate"/>
<prop type="array<string>" name="tableNames" arg="$parameters.properties.tableNames" required="True">
<item type="string"/>
</prop>
</prop>
</schema>
</json>
</instanceUpdate>
</operation>
<operation operationId="DataExports_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataExports/{dataExportName}">
<request method="put">
<path>
<param type="string" name="dataExportName" arg="$Path.dataExportName" required="True">
<format pattern="^[A-Za-z][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
<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="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2020-08-01""/>
<format minLength="1"/>
</const>
</query>
<body>
<json ref="$Instance"/>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="@DataExport_read"/>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>