Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vbGlua2Vkc3RvcmFnZWFjY291bnRzL3t9/2020-08-01.xml (416 lines of code) (raw):

<?xml version='1.0' encoding='utf-8'?> <CodeGen plane="mgmt-plane"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/linkedstorageaccounts/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9saW5rZWRTdG9yYWdlQWNjb3VudHMve2RhdGFTb3VyY2VUeXBlfQ==/V/MjAyMC0wOC0wMQ=="/> <commandGroup name="monitor log-analytics workspace linked-storage"> <command name="show" version="2020-08-01"> <resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/linkedstorageaccounts/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9saW5rZWRTdG9yYWdlQWNjb3VudHMve2RhdGFTb3VyY2VUeXBlfQ==/V/MjAyMC0wOC0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.dataSourceType" options="data-source-type type" required="True" idPart="child_name_1"> <help short="Data source type for the linked storage account."/> <enum> <item name="Alerts" value="&quot;Alerts&quot;"/> <item name="AzureWatson" value="&quot;AzureWatson&quot;"/> <item name="CustomLogs" value="&quot;CustomLogs&quot;"/> <item name="Ingestion" value="&quot;Ingestion&quot;"/> <item name="Query" value="&quot;Query&quot;"/> </enum> </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 n" 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="LinkedStorageAccounts_Get"> <http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}"> <request method="get"> <path> <param type="string" name="dataSourceType" arg="$Path.dataSourceType" required="True"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </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="&quot;2020-08-01&quot;"/> <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/{}/linkedStorageAccounts/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop readOnly="True" type="string" name="dataSourceType"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </prop> <prop type="array<string>" name="storageAccountIds" 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/{}/linkedstorageaccounts/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9saW5rZWRTdG9yYWdlQWNjb3VudHMve2RhdGFTb3VyY2VUeXBlfQ==/V/MjAyMC0wOC0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.dataSourceType" options="data-source-type type" required="True" idPart="child_name_1"> <help short="Data source type for the linked storage account."/> <enum> <item name="Alerts" value="&quot;Alerts&quot;"/> <item name="AzureWatson" value="&quot;AzureWatson&quot;"/> <item name="CustomLogs" value="&quot;CustomLogs&quot;"/> <item name="Ingestion" value="&quot;Ingestion&quot;"/> <item name="Query" value="&quot;Query&quot;"/> </enum> </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 n" 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="LinkedStorageAccounts_Delete"> <http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}"> <request method="delete"> <path> <param type="string" name="dataSourceType" arg="$Path.dataSourceType" required="True"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </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="&quot;2020-08-01&quot;"/> <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/{}/linkedstorageaccounts/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9saW5rZWRTdG9yYWdlQWNjb3VudHMve2RhdGFTb3VyY2VUeXBlfQ==/V/MjAyMC0wOC0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.dataSourceType" options="data-source-type type" required="True" idPart="child_name_1"> <help short="Data source type for the linked storage account."/> <enum> <item name="Alerts" value="&quot;Alerts&quot;"/> <item name="AzureWatson" value="&quot;AzureWatson&quot;"/> <item name="CustomLogs" value="&quot;CustomLogs&quot;"/> <item name="Ingestion" value="&quot;Ingestion&quot;"/> <item name="Query" value="&quot;Query&quot;"/> </enum> </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 n" 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="Properties"> <arg type="array<string>" var="$parameters.properties.storageAccountIds" options="storage-accounts" required="True" group="Properties"> <help short="List of Name or ID of Azure Storage Account."/> <item type="string"/> </arg> </argGroup> <operation operationId="LinkedStorageAccounts_CreateOrUpdate"> <http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}"> <request method="put"> <path> <param type="string" name="dataSourceType" arg="$Path.dataSourceType" required="True"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </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="&quot;2020-08-01&quot;"/> <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="array<string>" name="storageAccountIds" arg="$parameters.properties.storageAccountIds" required="True"> <item type="string"/> </prop> </prop> </schema> </json> </body> </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/{}/linkedStorageAccounts/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop readOnly="True" type="string" name="dataSourceType"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </prop> <prop type="array<string>" name="storageAccountIds" 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/{}/linkedstorageaccounts/{}" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9saW5rZWRTdG9yYWdlQWNjb3VudHMve2RhdGFTb3VyY2VUeXBlfQ==/V/MjAyMC0wOC0wMQ=="/> <argGroup name=""> <arg type="string" var="$Path.dataSourceType" options="data-source-type type" required="True" idPart="child_name_1"> <help short="Data source type for the linked storage account."/> <enum> <item name="Alerts" value="&quot;Alerts&quot;"/> <item name="AzureWatson" value="&quot;AzureWatson&quot;"/> <item name="CustomLogs" value="&quot;CustomLogs&quot;"/> <item name="Ingestion" value="&quot;Ingestion&quot;"/> <item name="Query" value="&quot;Query&quot;"/> </enum> </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 n" 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="Properties"> <arg type="array<string>" var="$parameters.properties.storageAccountIds" options="storage-accounts" group="Properties"> <help short="List of Name or ID of Azure Storage Account."/> <item nullable="True" type="string"/> </arg> </argGroup> <operation operationId="LinkedStorageAccounts_Get"> <http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}"> <request method="get"> <path> <param type="string" name="dataSourceType" arg="$Path.dataSourceType" required="True"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </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="&quot;2020-08-01&quot;"/> <format minLength="1"/> </const> </query> </request> <response statusCode="200"> <body> <json var="$Instance"> <schema type="object" cls="LinkedStorageAccountsResource_read"> <prop readOnly="True" type="ResourceId" name="id"> <format template="/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/linkedStorageAccounts/{}"/> </prop> <prop readOnly="True" type="string" name="name"/> <prop type="object" name="properties" required="True" clientFlatten="True"> <prop readOnly="True" type="string" name="dataSourceType"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </prop> <prop type="array<string>" name="storageAccountIds" 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="array<string>" name="storageAccountIds" arg="$parameters.properties.storageAccountIds" required="True"> <item type="string"/> </prop> </prop> </schema> </json> </instanceUpdate> </operation> <operation operationId="LinkedStorageAccounts_CreateOrUpdate"> <http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}"> <request method="put"> <path> <param type="string" name="dataSourceType" arg="$Path.dataSourceType" required="True"> <enum> <item value="&quot;Alerts&quot;"/> <item value="&quot;AzureWatson&quot;"/> <item value="&quot;CustomLogs&quot;"/> <item value="&quot;Ingestion&quot;"/> <item value="&quot;Query&quot;"/> </enum> </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="&quot;2020-08-01&quot;"/> <format minLength="1"/> </const> </query> <body> <json ref="$Instance"/> </body> </request> <response statusCode="200"> <body> <json var="$Instance"> <schema type="@LinkedStorageAccountsResource_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>