From fc4c6de2330e10a969067e07e00815a14678484e Mon Sep 17 00:00:00 2001 From: jasondavis-MS <122496947+jasondavis-MS@users.noreply.github.com> Date: Mon, 17 Apr 2023 22:31:05 -0700 Subject: [PATCH] [Hub Generated] Review request for Microsoft.Monitor to add version stable/2023-04-03 (#23107) * Adds base for updating Microsoft.Monitor from version preview/2021-06-03-preview to version 2023-04-03 * Updates readme * Updates API version in new specs and examples * add publicNetworkAccess * add PrivateEndpointConnections * add PrivateEndpointConnections subclasses * give PrivateEndpointConnectionProperties.ProvisioningState enum vals * give publicNetworkAccess an enum * add privateEndpointConnections and publicNetworkAccess to Create example * add PrivateEndpointConnection and PublicNetworkAccess to other examples * attempt to fix XmsIdentifierValidation linter error * attempt to fix ArrayMustHaveType linter error * attempt to fix XmsEnumValidation and retry XmsIdentifierValidation errors * attempt to fix MISSING_APIS_IN_DEFAULT_TAG * use common-type for PrivateEndpointConnection ref, remove nested fields * update Create and Delete responses for async operations * further async update * Revert "further async update" This reverts commit c9c17da74b47425d3d61dfbf42864e8f52cbb41a. * Revert "update Create and Delete responses for async operations" This reverts commit c0b10315fb54429d9477e235b8a0106edaaa9f50. * remove 201 from Create, 200 and 204 from Delete, add 202 to Delete * readd 204 to Delete * make corresponding response updates to API * add x-ms-long-running-operation: true to Delete * add x-ms-long-running-operation-options for Delete * try to fix Lro errors * try to fix errors * try to fix errors * attempt fix again * try again * continue * continue * once more * another try * last one for real * last one v2 * just one more * last or second to last one, guaranteed * attempt cleanup * Revert "attempt cleanup" This reverts commit 0fc498fb40230cc0b72dc75ae457f6ac599f4731. * reintroduce 201 response for PUT * remove double readme entry * resolve Go SDK duplication schema issue * revert change --------- Co-authored-by: James Lai Co-authored-by: Chenjie Shi --- .../AzureMonitorWorkspacesCreate.json | 123 ++++ .../AzureMonitorWorkspacesDelete.json | 17 + .../examples/AzureMonitorWorkspacesGet.json | 65 ++ ...eMonitorWorkspacesListByResourceGroup.json | 122 ++++ ...reMonitorWorkspacesListBySubscription.json | 121 ++++ .../AzureMonitorWorkspacesUpdate.json | 73 +++ .../2023-04-03/examples/OperationsGet.json | 68 +++ .../2023-04-03/monitoringAccounts_API.json | 561 ++++++++++++++++++ .../stable/2023-04-03/operations_API.json | 89 +++ .../monitor/resource-manager/readme.go.md | 1 - .../monitor/resource-manager/readme.md | 48 +- 11 files changed, 1281 insertions(+), 7 deletions(-) create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/monitoringAccounts_API.json create mode 100644 specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/operations_API.json diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json new file mode 100644 index 000000000000..e8a7e07937e6 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "api-version": "2023-04-03", + "azureMonitorWorkspaceProperties": { + "location": "eastus" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Updating", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + }, + "201": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "provisioningState": "Creating", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json new file mode 100644 index 000000000000..3f1684ee2a72 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "api-version": "2023-04-03" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/AzureMonitorWorkspace/default?api-version=2023-04-03", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-04-03" + } + }, + "204": {} + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json new file mode 100644 index 000000000000..adaa85f94146 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "api-version": "2023-04-03" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json new file mode 100644 index 000000000000..af20c7e467b7 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json @@ -0,0 +1,122 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "api-version": "2023-04-03" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-abcd.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace", + "name": "herAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "westus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "metrics": { + "prometheusQueryEndpoint": "https://herAzureMonitorWorkspace-xywz.eastus.prometheus.monitor.azure.com", + "internalId": "mac_823220c6-0415-44d8-bfb2-d5c1c9ea1172" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/herAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/herAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json new file mode 100644 index 000000000000..ad5aaf6389ef --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json @@ -0,0 +1,121 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "api-version": "2023-04-03" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace", + "name": "herAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "westus", + "tags": { + "tag1": "A", + "tag2": "B" + }, + "properties": { + "accountId": "823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "metrics": { + "prometheusQueryEndpoint": "https://herazuremonitorworkspace-xywz.eastus.prometheus.monitor.azure.com", + "internalId": "mac_823220c6-0415-44d8-bfb2-d5c1c9ea1172" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/herAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/herAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json new file mode 100644 index 000000000000..ebfa2df4274c --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "myResourceGroup", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "api-version": "2023-04-03", + "azureMonitorWorkspaceProperties": { + "tags": { + "tag1": "A", + "tag2": "B", + "tag3": "C" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "eastus", + "tags": { + "tag1": "A", + "tag2": "B", + "tag3": "C" + }, + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/myAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_myAzureMonitorWorkspace_eastus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/myAzureMonitorWorkspace" + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/privateEndpointConnections/myPrivateEndpointConnection", + "name": "myPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-approved", + "actionsRequired": "None" + } + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + }, + "etag": "070057da-0000-0000-0000-5ba70d6c0000" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json new file mode 100644 index 000000000000..c76a7437121c --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2023-04-03" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "microsoft.monitor/accounts/read", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Workspaces", + "operation": "Read Azure Monitor Workspaces", + "description": "Read any Azure Monitor Workspace" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/accounts/write", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Workspaces", + "operation": "Create or Update Azure Monitor Workspaces", + "description": "Create or Update any Azure Monitor Workspace" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/accounts/delete", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Workspaces", + "operation": "Delete Azure Monitor Workspaces", + "description": "Delete any Azure Monitor Workspace" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/accounts/metrics/read", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Workspaces", + "operation": "Read Azure Monitor Workspace metrics", + "description": "Read Azure Monitor Workspace metrics" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/accounts/data/metrics/read", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Workspaces", + "operation": "Read Metrics Data", + "description": "Read metrics data in any Azure Monitor Workspace" + }, + "isDataAction": true, + "origin": "user, system" + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/monitoringAccounts_API.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/monitoringAccounts_API.json new file mode 100644 index 000000000000..2a4f36743165 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/monitoringAccounts_API.json @@ -0,0 +1,561 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Monitor Workspaces Control Plane API", + "description": "Provides operations for working with Azure Monitor Workspaces", + "version": "2023-04-03", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" + }, + "contact": { + "email": "obsaccounts@microsoft.com" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "tags": [ + { + "name": "AzureMonitorWorkspaces", + "description": "A management operation for microsoft.monitor/accounts" + } + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts": { + "get": { + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Lists all workspaces in the specified resource group", + "operationId": "AzureMonitorWorkspaces_ListByResourceGroup", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List monitor workspaces by resource group": { + "$ref": "./examples/AzureMonitorWorkspacesListByResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Monitor/accounts": { + "get": { + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Lists all workspaces in the specified subscription", + "operationId": "AzureMonitorWorkspaces_ListBySubscription", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List workspaces by subscription": { + "$ref": "./examples/AzureMonitorWorkspacesListBySubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}": { + "get": { + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Returns the specific Azure Monitor workspace", + "operationId": "AzureMonitorWorkspaces_Get", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureMonitorWorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get workspace": { + "$ref": "./examples/AzureMonitorWorkspacesGet.json" + } + } + }, + "put": { + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Create or update a workspace", + "operationId": "AzureMonitorWorkspaces_Create", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureMonitorWorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureMonitorWorkspaceProperties", + "description": "Properties that need to be specified to create a new workspace", + "required": true, + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + } + ], + "responses": { + "200": { + "description": "Azure Monitor workspace was successfully updated", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "201": { + "description": "Azure Monitor workspace was successfully created", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update workspace": { + "$ref": "./examples/AzureMonitorWorkspacesCreate.json" + } + } + }, + "patch": { + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Updates part of a workspace", + "operationId": "AzureMonitorWorkspaces_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureMonitorWorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "azureMonitorWorkspaceProperties", + "description": "The payload", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceForUpdate" + } + } + ], + "responses": { + "200": { + "description": "Monitor workspace was successfully updated", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update workspace": { + "$ref": "./examples/AzureMonitorWorkspacesUpdate.json" + } + } + }, + "delete": { + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Delete a workspace", + "operationId": "AzureMonitorWorkspaces_Delete", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureMonitorWorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Workspace was successfully deleted", + "headers": { + "Azure-AsyncOperation": { + "type": "string" + }, + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Workspace did not exist" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete workspace": { + "$ref": "./examples/AzureMonitorWorkspacesDelete.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "Metrics": { + "description": "Information about metrics for the workspace", + "type": "object", + "properties": { + "prometheusQueryEndpoint": { + "description": "The Prometheus query endpoint for the workspace", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + }, + "internalId": { + "description": "An internal identifier for the metrics container. Only to be used by the system", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + } + } + }, + "IngestionSettings": { + "description": "Settings for data ingestion", + "type": "object", + "properties": { + "dataCollectionRuleResourceId": { + "description": "The Azure resource Id of the default data collection rule for this workspace.", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + }, + "dataCollectionEndpointResourceId": { + "description": "The Azure resource Id of the default data collection endpoint for this workspace.", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + } + } + }, + "AzureMonitorWorkspace": { + "description": "Properties of an Azure Monitor workspace", + "type": "object", + "properties": { + "accountId": { + "description": "The immutable ID of the Azure Monitor workspace. This property is read-only.", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + }, + "metrics": { + "description": "Information about metrics for the Azure Monitor workspace", + "allOf": [ + { + "$ref": "#/definitions/Metrics" + } + ], + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + }, + "provisioningState": { + "description": "The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.", + "enum": [ + "Creating", + "Succeeded", + "Deleting", + "Failed", + "Canceled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "x-ms-mutability": [ + "read" + ] + }, + "defaultIngestionSettings": { + "description": "The Data Collection Rule and Endpoint used for ingestion by default.", + "allOf": [ + { + "$ref": "#/definitions/IngestionSettings" + } + ], + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + }, + "privateEndpointConnections": { + "description": "List of private endpoint connections", + "type": "array", + "items": { + "$ref": "../../../../../common-types/resource-management/v4/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "readOnly": true, + "x-ms-mutability": [ + "read" + ], + "x-ms-identifiers": [ + "id" + ] + }, + "publicNetworkAccess": { + "description": "Gets or sets allow or disallow public network access to workspace", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + }, + "x-ms-mutability": [ + "read" + ] + } + } + }, + "AzureMonitorWorkspaceResource": { + "description": "An Azure Monitor Workspace definition", + "required": [ + "location" + ], + "type": "object", + "properties": { + "properties": { + "description": "Resource properties", + "allOf": [ + { + "$ref": "#/definitions/AzureMonitorWorkspace" + } + ], + "x-ms-client-flatten": true + }, + "etag": { + "description": "Resource entity tag (ETag)", + "type": "string", + "readOnly": true, + "x-ms-mutability": [ + "read" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "x-ms-azure-resource": true + }, + "AzureMonitorWorkspaceResourceListResult": { + "description": "A pageable list of resources", + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "description": "A list of resources", + "type": "array", + "items": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "nextLink": { + "description": "The URL to use for getting the next set of results", + "type": "string" + } + } + }, + "AzureMonitorWorkspaceResourceForUpdate": { + "description": "Definition of ARM tracked top level resource properties for update operation", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "parameters": { + "AzureMonitorWorkspaceNameParameter": { + "in": "path", + "name": "azureMonitorWorkspaceName", + "description": "The name of the Azure Monitor workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/operations_API.json b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/operations_API.json new file mode 100644 index 000000000000..f1b5bc72d34f --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/operations_API.json @@ -0,0 +1,89 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Monitor Workspaces Control Plane API", + "description": "Provides operations for working with Azure Monitor Workspaces", + "version": "2023-04-03", + "x-ms-code-generation-settings": { + "name": "MonitorManagementClient" + }, + "contact": { + "email": "obsaccounts@microsoft.com" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "description": "Azure Active Directory OAuth2 Flow" + } + }, + "tags": [ + { + "name": "Operations", + "description": "List available operations API" + } + ], + "paths": { + "/providers/Microsoft.Monitor/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists available Operations for this Resource Provider", + "operationId": "MonitorOperations_List", + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get operations list": { + "$ref": "./examples/OperationsGet.json" + } + } + } + } + } +} diff --git a/specification/monitor/resource-manager/readme.go.md b/specification/monitor/resource-manager/readme.go.md index 5e6af753c5a1..c8aca4d41e1f 100644 --- a/specification/monitor/resource-manager/readme.go.md +++ b/specification/monitor/resource-manager/readme.go.md @@ -23,7 +23,6 @@ directive: - rename-operation: from: 'MonitorOperations_List' to: 'OperationsForMonitor_List' - modelerfour: lenient-model-deduplication: true ``` diff --git a/specification/monitor/resource-manager/readme.md b/specification/monitor/resource-manager/readme.md index 32aa8d7539f9..1a6699c67241 100644 --- a/specification/monitor/resource-manager/readme.md +++ b/specification/monitor/resource-manager/readme.md @@ -31,17 +31,51 @@ title: MonitorClient ``` yaml description: Monitor Management Client openapi-type: arm -tag: package-preview-2023-04 +tag: package-2023-04 directive: - suppress: Example Validations reason: 'There are open issues (bugs) in the validator affecting some of the examples and since there is no way to selectively disable the validation for a particular example or paths, all of the example validation is being turned off.' ``` + +### Tag: package-2023-04 + +These settings apply only when `--tag=package-2023-04` is specified on the command line. + +```yaml $(tag) == 'package-2023-04' +input-file: + - Microsoft.Monitor/stable/2023-04-03/monitoringAccounts_API.json + - Microsoft.Monitor/stable/2023-04-03/operations_API.json + - Microsoft.Insights/stable/2022-10-01/autoscale_API.json + - Microsoft.Insights/stable/2015-04-01/operations_API.json + - Microsoft.Insights/stable/2016-03-01/alertRulesIncidents_API.json + - Microsoft.Insights/stable/2016-03-01/alertRules_API.json + - Microsoft.Insights/stable/2016-03-01/logProfiles_API.json + - Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettings_API.json + - Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettingsCategories_API.json + - Microsoft.Insights/stable/2023-01-01/actionGroups_API.json + - Microsoft.Insights/preview/2023-03-01-preview/tenantActionGroups_API.json + - Microsoft.Insights/stable/2015-04-01/activityLogs_API.json + - Microsoft.Insights/stable/2015-04-01/eventCategories_API.json + - Microsoft.Insights/stable/2015-04-01/tenantActivityLogs_API.json + - Microsoft.Insights/stable/2021-05-01/metricDefinitions_API.json + - Microsoft.Insights/stable/2021-05-01/metrics_API.json + - Microsoft.Insights/stable/2019-03-01/metricBaselines_API.json + - Microsoft.Insights/stable/2018-03-01/metricAlert_API.json + - Microsoft.Insights/preview/2022-08-01-preview/scheduledQueryRule_API.json + - Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json + - Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json + - Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json + - Microsoft.Insights/stable/2020-10-01/activityLogAlerts_API.json + - Microsoft.Insights/stable/2022-06-01/dataCollectionEndpoints_API.json + - Microsoft.Insights/stable/2022-06-01/dataCollectionRuleAssociations_API.json + - Microsoft.Insights/stable/2022-06-01/dataCollectionRules_API.json +``` ### Tag: package-preview-2023-04 These settings apply only when `--tag=package-preview-2023-04` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-04' +``` yaml $(tag) == 'package-preview-2023-04' input-file: - Microsoft.Insights/stable/2022-10-01/autoscale_API.json - Microsoft.Insights/stable/2015-04-01/operations_API.json @@ -90,6 +124,7 @@ These settings apply only when `--tag=package-2023-03-01-preview-only` is specif input-file: - Microsoft.Insights/preview/2023-03-01-preview/tenantActionGroups_API.json ``` + ### Tag: package-2023-01-only These settings apply only when `--tag=package-2023-01-only` is specified on the command line @@ -99,15 +134,15 @@ input-file: - Microsoft.Insights/stable/2023-01-01/actionGroups_API.json ``` - ### Tag: package-preview-2023-01 These settings apply only when `--tag=package-preview-2023-01` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-01' +``` yaml $(tag) == 'package-preview-2023-01' input-file: - Microsoft.Insights/preview/2023-01-01-preview/activityLogAlerts_API.json ``` + ### Tag: package-2022-08-01-preview-only These settings apply only when `--tag=package-2022-08-01-preview-only` is specified on the command line @@ -116,11 +151,12 @@ These settings apply only when `--tag=package-2022-08-01-preview-only` is specif input-file: - Microsoft.Insights/preview/2022-08-01-preview/scheduledQueryRule_API.json ``` + ### Tag: package-preview-2023-03 These settings apply only when `--tag=package-preview-2023-03` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-03' +``` yaml $(tag) == 'package-preview-2023-03' input-file: - Microsoft.Insights/stable/2022-10-01/autoscale_API.json - Microsoft.Insights/stable/2015-04-01/operations_API.json @@ -1318,4 +1354,4 @@ input-file: - Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettingsCategories_API.json - Microsoft.Insights/stable/2015-04-01/eventCategories_API.json - Microsoft.Insights/stable/2015-04-01/operations_API.json -``` \ No newline at end of file +```