diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..fc22de29ef11 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,150 @@ +{ + "title": "AzureMonitorWorkspaces_CreateOrUpdate - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "resource": { + "location": "eastus", + "properties": { + "metrics": { + "enableAccessUsingResourcePermissions": true + }, + "publicNetworkAccess": "Enabled" + }, + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "metrics": { + "enableAccessUsingResourcePermissions": true, + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "defaultIngestionSettings": { + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2" + }, + "publicNetworkAccess": "Enabled", + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "provisioningState": "Succeeded", + "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", + "actionsRequired": "None", + "description": "zvmlxhzwd" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ] + }, + "tags": {}, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + }, + "201": { + "body": { + "location": "eastus", + "properties": { + "metrics": { + "enableAccessUsingResourcePermissions": true, + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "defaultIngestionSettings": { + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2" + }, + "publicNetworkAccess": "Enabled", + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "provisioningState": "Succeeded", + "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", + "actionsRequired": "None", + "description": "zvmlxhzwd" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ] + }, + "tags": {}, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..7368043d9765 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "AzureMonitorWorkspaces_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_Delete", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/AzureMonitorWorkspace/default?api-version=2023-04-03", + "Location": "https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/locations/eastus/operationStatus/default/operationId/00000000-0000-0000-0000-000000000000?api-version=2023-04-03" + } + }, + "204": {} + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..fbcdf8882e55 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json @@ -0,0 +1,79 @@ +{ + "title": "AzureMonitorWorkspaces_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_Get", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace" + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "tags": { + "key1693": "xkjnypgoxx", + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..ca5c63518e0a --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,146 @@ +{ + "title": "AzureMonitorWorkspaces_ListByResourceGroup - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace" + }, + "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", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + } + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace", + "name": "herAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "westus", + "properties": { + "accountId": "823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "metrics": { + "prometheusQueryEndpoint": "https://herAzureMonitorWorkspace-xywz.westus.prometheus.monitor.azure.com", + "internalId": "mac_823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "enableAccessUsingResourcePermissions": true + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionRules/herAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/herAzureMonitorWorkspace", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace/privateEndpointConnections/herPrivateEndpointConnection", + "name": "herPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Network/privateEndpoints/herPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None", + "description": "ujtgmztnkqnqzcawmbbmr" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key583": "deudtkpbrajjhz" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..9ba92452467f --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,145 @@ +{ + "title": "AzureMonitorWorkspaces_ListBySubscription - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_ListBySubscription", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2" + }, + "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", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "603362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + } + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace", + "name": "herAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "westus", + "properties": { + "accountId": "823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "metrics": { + "prometheusQueryEndpoint": "https://herAzureMonitorWorkspace-xywz.westus.prometheus.monitor.azure.com", + "internalId": "mac_823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "enableAccessUsingResourcePermissions": true + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionRules/herAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/herAzureMonitorWorkspace", + "dataCollectionRuleImmutableId": "903362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://herAzureMonitorWorkspace-gb69.westus-1.metrics.ingest.monitor.azure.com" + } + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace/privateEndpointConnections/herPrivateEndpointConnection", + "name": "herPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Network/privateEndpoints/herPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None", + "description": "ujtgmztnkqnqzcawmbbmr" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key583": "deudtkpbrajjhz" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..b56a5a98c59a --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json @@ -0,0 +1,88 @@ +{ + "title": "AzureMonitorWorkspaces_Update - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_Update", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "properties": { + "tags": {}, + "properties": { + "publicNetworkAccess": "Enabled", + "metrics": { + "enableAccessUsingResourcePermissions": true + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "tags": { + "key1693": "xkjnypgoxx", + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..78f2faf35796 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,65 @@ +{ + "title": "MetricsContainers_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule", + "operationId": "MetricsContainers_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "metricsContainerName": "default", + "resource": { + "properties": { + "limits": { + "maxActiveTimeSeries": 100000, + "maxEventsPerMinute": 100000 + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "limits": { + "maxActiveTimeSeries": 100000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + }, + "201": { + "body": { + "properties": { + "limits": { + "maxActiveTimeSeries": 100000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_Get_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..122886c17124 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_Get_MaximumSet_Gen.json @@ -0,0 +1,35 @@ +{ + "title": "MetricsContainers_Get_MaximumSet - generated by [MaximumSet] rule", + "operationId": "MetricsContainers_Get", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "metricsContainerName": "default" + }, + "responses": { + "200": { + "body": { + "properties": { + "limits": { + "maxActiveTimeSeries": 1000000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json new file mode 100644 index 000000000000..7ef630e14d00 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/examples/2025-05-03-preview/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json @@ -0,0 +1,38 @@ +{ + "title": "MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet - generated by [MaximumSet] rule", + "operationId": "MetricsContainers_ListByAzureMonitorWorkspace", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "limits": { + "maxActiveTimeSeries": 1000000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ] + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/main.tsp b/specification/monitor/Microsoft.Monitor.Accounts.Management/main.tsp new file mode 100644 index 000000000000..233e51177c0b --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/main.tsp @@ -0,0 +1,3 @@ +import "./typespec/service.tsp"; +import "./typespec/AzureMonitorWorkspace.tsp"; +import "./typespec/models.tsp"; diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/tspconfig.yaml b/specification/monitor/Microsoft.Monitor.Accounts.Management/tspconfig.yaml new file mode 100644 index 000000000000..4a96c39b3f2f --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/tspconfig.yaml @@ -0,0 +1,50 @@ +parameters: + service-dir: + default: "sdk/monitor" +emit: + - "@azure-tools/typespec-autorest" +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + arm-types-dir: "{project-root}/../../common-types/resource-management" + output-file: "{azure-resource-provider-folder}/{service-name}/Accounts/{version-status}/{version}/azuremonitorworkspace.json" + new-line: lf + omit-unreachable-types: true + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.MonitorAccounts" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-monitoraccounts" + namespace: "azure.mgmt.monitoraccounts" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-monitoraccounts" + namespace: "com.azure.resourcemanager.monitoraccounts" + service-name: "Monitor Accounts" + flavor: azure + "@azure-tools/typespec-ts": + package-dir: "arm-monitoraccounts" + flavor: azure + experimental-extensible-enums: true + package-details: + name: "@azure/arm-monitoraccounts" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/monitor" + package-dir: "armmonitor" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/AzureMonitorWorkspace.tsp b/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/AzureMonitorWorkspace.tsp new file mode 100644 index 000000000000..2fbe8e84123f --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/AzureMonitorWorkspace.tsp @@ -0,0 +1,106 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/http"; +import "@typespec/rest"; +import "@typespec/versioning"; +import "@typespec/openapi"; +import "./models.tsp"; +import "./service.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; + +namespace Microsoft.Monitor { + /** + * An Azure Monitor Workspace definition + */ + model AzureMonitorWorkspaceResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = AzureMonitorWorkspaceResource, + KeyName = "azureMonitorWorkspaceName", + SegmentName = "accounts", + NamePattern = "^(?!-)[a-zA-Z0-9-]+[^-]$" + >; + } + + /** + * Metrics container resource for an Azure Monitor Workspace. + */ + @parentResource(AzureMonitorWorkspaceResource) + model MacMetricsContainerResource + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = MacMetricsContainer, + KeyName = "metricsContainerName", + SegmentName = "metricsContainers", + /** + * The name of the metrics container. Always 'default'. + */ + NamePattern = "^default$" + >; + } + + @armResourceOperations + interface AzureMonitorWorkspaces { + /** + * Returns the specified Azure Monitor Workspace + */ + get is ArmResourceRead; + + /** + * Creates or updates an Azure Monitor Workspace + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Updates part of an Azure Monitor Workspace + */ + update is ArmResourcePatchSync< + AzureMonitorWorkspaceResource, + AzureMonitorWorkspace + >; + + /** + * Deletes an Azure Monitor Workspace + */ + delete is ArmResourceDeleteWithoutOkAsync; + + /** + * Lists all Azure Monitor Workspaces in the specified resource group + */ + listByResourceGroup is ArmResourceListByParent; + + /** + * Lists all Azure Monitor Workspaces in the specified subscription + */ + listBySubscription is ArmListBySubscription; + } + + #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "Metrics container is always present with the Azure Monitor Workspace and cannot be deleted" + @armResourceOperations + interface MetricsContainers { + /** + * Gets metrics container settings for a monitoring account. + */ + get is ArmResourceRead; + + /** + * Creates or updates metrics container settings for a monitoring account. + */ + createOrUpdate is ArmResourceCreateOrReplaceSync; + + /** + * Lists metrics containers for a monitoring account. + */ + listByAzureMonitorWorkspace is ArmResourceListByParent; + } + + @@doc(AzureMonitorWorkspaceResource.name, + "The name of the Azure Monitor Workspace. The name is case insensitive" + ); + @@doc(AzureMonitorWorkspaceResource.properties, "Resource properties"); + @@doc(AzureMonitorWorkspaces.createOrUpdate::parameters.resource, + "Properties that need to be specified to create a new Azure Monitor Workspace" + ); +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/models.tsp b/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/models.tsp new file mode 100644 index 000000000000..e81de6351a2e --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/models.tsp @@ -0,0 +1,163 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@typespec/openapi"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./AzureMonitorWorkspace.tsp"; + +using Azure.Core; + +namespace Microsoft.Monitor { + /** + * Gets or sets allow or disallow public network access to Azure Monitor Workspace + */ + union PublicNetworkAccess { + string, + + /** Public network access is enabled. */ + Enabled: "Enabled", + + /** Public network access is disabled. */ + Disabled: "Disabled", + } + + /** + * A pageable list of resources + */ + model AzureMonitorWorkspaceResourceListResult + is Page; + + /** + * Properties of an Azure Monitor Workspace + */ + model AzureMonitorWorkspace { + /** + * The immutable Id of the Azure Monitor Workspace. This property is read-only. + */ + @visibility(Lifecycle.Read) + accountId?: string; + + /** + * Properties related to the metrics container in the Azure Monitor Workspace + */ + @visibility(Lifecycle.Read) + metrics?: AzureMonitorWorkspaceMetrics; + + /** + * The provisioning state of the Azure Monitor Workspace. Set to Succeeded if everything is healthy. + */ + @visibility(Lifecycle.Read) + provisioningState?: Azure.ResourceManager.ResourceProvisioningState; + + /** + * The Data Collection Rule and Endpoint used for ingestion by default. + */ + @visibility(Lifecycle.Read) + defaultIngestionSettings?: AzureMonitorWorkspaceDefaultIngestionSettings; + + /** + * List of private endpoint connections + */ + @visibility(Lifecycle.Read) + @TypeSpec.OpenAPI.extension("x-ms-identifiers", #["id"]) + privateEndpointConnections?: Azure.ResourceManager.CommonTypes.PrivateEndpointConnection[]; + + /** + * Gets or sets allow or disallow public network access to Azure Monitor Workspace + */ + publicNetworkAccess?: PublicNetworkAccess; + } + + /** + * Properties related to the metrics container in the Azure Monitor Workspace + */ + model AzureMonitorWorkspaceMetrics { + /** + * The Prometheus query endpoint for the Azure Monitor Workspace + */ + @visibility(Lifecycle.Read) + prometheusQueryEndpoint?: string; + + /** + * An internal identifier for the metrics container. Only to be used by the system. + */ + @visibility(Lifecycle.Read) + internalId?: string; + + /** + * Flag that indicates whether to enable access using resource permissions. + */ + enableAccessUsingResourcePermissions?: boolean; + } + + /** + * The Data Collection Rule and Endpoint used for ingestion by default. + */ + model AzureMonitorWorkspaceDefaultIngestionSettings { + /** + * The Azure resource Id of the default data collection rule for this Azure Monitor Workspace. + */ + @visibility(Lifecycle.Read) + dataCollectionRuleResourceId?: string; + + /** + * The Azure resource Id of the default data collection endpoint for this Azure Monitor Workspace. + */ + @visibility(Lifecycle.Read) + dataCollectionEndpointResourceId?: string; + + /** + * The immutable Id of the default data collection rule for this Azure Monitor Workspace. + */ + @visibility(Lifecycle.Read) + dataCollectionRuleImmutableId?: string; + + /** + * The ingestion endpoints for this Azure Monitor Workspace. + */ + @visibility(Lifecycle.Read) + ingestionEndpoints?: IngestionEndpoints; + } + + /** + * The ingestion endpoints for an Azure Monitor Workspace. + */ + model IngestionEndpoints { + /** + * The metrics ingestion endpoint for this Azure Monitor Workspace. + */ + @visibility(Lifecycle.Read) + metrics?: string; + } + + /** + * Definition of Geneva Metrics limits + */ + model MacMetricsLimits { + /** + * Maximum number of active time series allowed on the metrics containers. + */ + maxActiveTimeSeries?: int64; + + /** + * Maximum rate (events per minute) that can be processed on the metrics containers. + */ + maxEventsPerMinute?: int64; + } + + /** + * Properties of a metrics container. + */ + model MacMetricsContainer { + /** + * The provisioning state of the metrics container. + */ + @visibility(Lifecycle.Read) + provisioningState?: Azure.ResourceManager.ResourceProvisioningState; + + /** + * Geneva Metrics limits. + */ + limits?: MacMetricsLimits; + } +} diff --git a/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/service.tsp b/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/service.tsp new file mode 100644 index 000000000000..429df8f59bd6 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Accounts.Management/typespec/service.tsp @@ -0,0 +1,31 @@ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.Versioning; + +/** + * Monitor Management Client + */ +#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Operations API was moved to its own service." +@armProviderNamespace("Microsoft.Monitor") +@service(#{ title: "Azure Monitor Workspaces Control Plane API" }) +@versioned(Versions) +namespace Microsoft.Monitor; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2025-05-03-preview API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) + @doc("API Version 2025-05-03-preview") + v2025_05_03: "2025-05-03-preview", +} diff --git a/specification/monitor/Microsoft.Monitor.Operations.Management/examples/2025-05-03-preview/OperationsList.json b/specification/monitor/Microsoft.Monitor.Operations.Management/examples/2025-05-03-preview/OperationsList.json new file mode 100644 index 000000000000..b8e0f1d15882 --- /dev/null +++ b/specification/monitor/Microsoft.Monitor.Operations.Management/examples/2025-05-03-preview/OperationsList.json @@ -0,0 +1,103 @@ +{ + "title": "Lists the Microsoft.Monitor resource provider operations", + "operationId": "Operations_List", + "parameters": { + "api-version": "2025-05-03-preview" + }, + "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" + }, + { + "name": "microsoft.monitor/pipelinegroups/read", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Pipelines", + "operation": "Read Azure Monitor Pipelines", + "description": "Read any Azure Monitor Pipelines" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/pipelinegroups/write", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Pipelines", + "operation": "Create Or Update Azure Monitor Pipelines", + "description": "Create or Update any Azure Monitor Pipelines" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/pipelinegroups/delete", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Pipelines", + "operation": "Delete Azure Monitor Pipelines", + "description": "Delete any Azure Monitor Pipelines" + }, + "isDataAction": false, + "origin": "user, system" + } + ] + } + } + } +} diff --git a/specification/monitor/Microsoft.Monitor.Operations.Management/typespec/service.tsp b/specification/monitor/Microsoft.Monitor.Operations.Management/typespec/service.tsp index 7925fc9a6a79..da96fbbc8e8b 100644 --- a/specification/monitor/Microsoft.Monitor.Operations.Management/typespec/service.tsp +++ b/specification/monitor/Microsoft.Monitor.Operations.Management/typespec/service.tsp @@ -23,6 +23,11 @@ enum Versions { @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) @doc("API Version 2024-10-01") v2024_10_01_preview: "2024-10-01-preview", + + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) + @doc("API Version 2025-05-03") + v2025_05_03_preview: "2025-05-03-preview", } interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/azuremonitorworkspace.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/azuremonitorworkspace.json new file mode 100644 index 000000000000..c30471f0a9a5 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/azuremonitorworkspace.json @@ -0,0 +1,819 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Monitor Workspaces Control Plane API", + "version": "2025-05-03-preview", + "description": "Monitor Management Client", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "AzureMonitorWorkspaces" + }, + { + "name": "MetricsContainers" + } + ], + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Monitor/accounts": { + "get": { + "operationId": "AzureMonitorWorkspaces_ListBySubscription", + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Lists all Azure Monitor Workspaces in the specified subscription", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureMonitorWorkspaces_ListBySubscription - generated by [MaximumSet] rule - generated by [MaximumSet] rule": { + "$ref": "./examples/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts": { + "get": { + "operationId": "AzureMonitorWorkspaces_ListByResourceGroup", + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Lists all Azure Monitor Workspaces in the specified resource group", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureMonitorWorkspaces_ListByResourceGroup - generated by [MaximumSet] rule - generated by [MaximumSet] rule": { + "$ref": "./examples/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}": { + "get": { + "operationId": "AzureMonitorWorkspaces_Get", + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Returns the specified Azure Monitor Workspace", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureMonitorWorkspaces_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule": { + "$ref": "./examples/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "AzureMonitorWorkspaces_CreateOrUpdate", + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Creates or updates an Azure Monitor Workspace", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + }, + { + "name": "resource", + "in": "body", + "description": "Properties that need to be specified to create a new Azure Monitor Workspace", + "required": true, + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'AzureMonitorWorkspaceResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "201": { + "description": "Resource 'AzureMonitorWorkspaceResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureMonitorWorkspaces_CreateOrUpdate - generated by [MaximumSet] rule - generated by [MaximumSet] rule": { + "$ref": "./examples/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json" + } + } + }, + "patch": { + "operationId": "AzureMonitorWorkspaces_Update", + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Updates part of an Azure Monitor Workspace", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureMonitorWorkspaces_Update - generated by [MaximumSet] rule - generated by [MaximumSet] rule": { + "$ref": "./examples/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json" + } + } + }, + "delete": { + "operationId": "AzureMonitorWorkspaces_Delete", + "tags": [ + "AzureMonitorWorkspaces" + ], + "description": "Deletes an Azure Monitor Workspace", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AzureMonitorWorkspaces_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule": { + "$ref": "./examples/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/metricsContainers": { + "get": { + "operationId": "MetricsContainers_ListByAzureMonitorWorkspace", + "tags": [ + "MetricsContainers" + ], + "description": "Lists metrics containers for a monitoring account.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MacMetricsContainerResourceListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet - generated by [MaximumSet] rule": { + "$ref": "./examples/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/metricsContainers/{metricsContainerName}": { + "get": { + "operationId": "MetricsContainers_Get", + "tags": [ + "MetricsContainers" + ], + "description": "Gets metrics container settings for a monitoring account.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + }, + { + "name": "metricsContainerName", + "in": "path", + "description": "The name of the MacMetricsContainer", + "required": true, + "type": "string", + "pattern": "^default$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MacMetricsContainerResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MetricsContainers_Get_MaximumSet - generated by [MaximumSet] rule": { + "$ref": "./examples/MetricsContainers_Get_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "MetricsContainers_CreateOrUpdate", + "tags": [ + "MetricsContainers" + ], + "description": "Creates or updates metrics container settings for a monitoring account.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "azureMonitorWorkspaceName", + "in": "path", + "description": "The name of the Azure Monitor Workspace. The name is case insensitive", + "required": true, + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + }, + { + "name": "metricsContainerName", + "in": "path", + "description": "The name of the MacMetricsContainer", + "required": true, + "type": "string", + "pattern": "^default$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/MacMetricsContainerResource" + } + } + ], + "responses": { + "200": { + "description": "Resource 'MacMetricsContainerResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/MacMetricsContainerResource" + } + }, + "201": { + "description": "Resource 'MacMetricsContainerResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/MacMetricsContainerResource" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MetricsContainers_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule": { + "$ref": "./examples/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json" + } + } + } + } + }, + "definitions": { + "Azure.ResourceManager.CommonTypes.TrackedResourceUpdate": { + "type": "object", + "title": "Tracked Resource", + "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/Resource" + } + ] + }, + "Azure.ResourceManager.ResourceProvisioningState": { + "type": "string", + "description": "The provisioning state of a resource type.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ResourceProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + } + ] + }, + "readOnly": true + }, + "AzureMonitorWorkspace": { + "type": "object", + "description": "Properties of an Azure Monitor Workspace", + "properties": { + "accountId": { + "type": "string", + "description": "The immutable Id of the Azure Monitor Workspace. This property is read-only.", + "readOnly": true + }, + "metrics": { + "$ref": "#/definitions/AzureMonitorWorkspaceMetrics", + "description": "Properties related to the metrics container in the Azure Monitor Workspace", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/Azure.ResourceManager.ResourceProvisioningState", + "description": "The provisioning state of the Azure Monitor Workspace. Set to Succeeded if everything is healthy.", + "readOnly": true + }, + "defaultIngestionSettings": { + "$ref": "#/definitions/AzureMonitorWorkspaceDefaultIngestionSettings", + "description": "The Data Collection Rule and Endpoint used for ingestion by default.", + "readOnly": true + }, + "privateEndpointConnections": { + "type": "array", + "description": "List of private endpoint connections", + "items": { + "$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "readOnly": true, + "x-ms-identifiers": [ + "id" + ] + }, + "publicNetworkAccess": { + "$ref": "#/definitions/PublicNetworkAccess", + "description": "Gets or sets allow or disallow public network access to Azure Monitor Workspace" + } + } + }, + "AzureMonitorWorkspaceDefaultIngestionSettings": { + "type": "object", + "description": "The Data Collection Rule and Endpoint used for ingestion by default.", + "properties": { + "dataCollectionRuleResourceId": { + "type": "string", + "description": "The Azure resource Id of the default data collection rule for this Azure Monitor Workspace.", + "readOnly": true + }, + "dataCollectionEndpointResourceId": { + "type": "string", + "description": "The Azure resource Id of the default data collection endpoint for this Azure Monitor Workspace.", + "readOnly": true + }, + "dataCollectionRuleImmutableId": { + "type": "string", + "description": "The immutable Id of the default data collection rule for this Azure Monitor Workspace.", + "readOnly": true + }, + "ingestionEndpoints": { + "$ref": "#/definitions/IngestionEndpoints", + "description": "The ingestion endpoints for this Azure Monitor Workspace.", + "readOnly": true + } + } + }, + "AzureMonitorWorkspaceMetrics": { + "type": "object", + "description": "Properties related to the metrics container in the Azure Monitor Workspace", + "properties": { + "prometheusQueryEndpoint": { + "type": "string", + "description": "The Prometheus query endpoint for the Azure Monitor Workspace", + "readOnly": true + }, + "internalId": { + "type": "string", + "description": "An internal identifier for the metrics container. Only to be used by the system.", + "readOnly": true + }, + "enableAccessUsingResourcePermissions": { + "type": "boolean", + "description": "Flag that indicates whether to enable access using resource permissions." + } + } + }, + "AzureMonitorWorkspaceResource": { + "type": "object", + "description": "An Azure Monitor Workspace definition", + "properties": { + "properties": { + "$ref": "#/definitions/AzureMonitorWorkspace", + "description": "Resource properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "AzureMonitorWorkspaceResourceListResult": { + "type": "object", + "description": "The response of a AzureMonitorWorkspaceResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The AzureMonitorWorkspaceResource items on this page", + "items": { + "$ref": "#/definitions/AzureMonitorWorkspaceResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "AzureMonitorWorkspaceResourceUpdate": { + "type": "object", + "description": "An Azure Monitor Workspace definition", + "properties": { + "properties": { + "$ref": "#/definitions/AzureMonitorWorkspace", + "description": "Resource properties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Azure.ResourceManager.CommonTypes.TrackedResourceUpdate" + } + ] + }, + "IngestionEndpoints": { + "type": "object", + "description": "The ingestion endpoints for an Azure Monitor Workspace.", + "properties": { + "metrics": { + "type": "string", + "description": "The metrics ingestion endpoint for this Azure Monitor Workspace.", + "readOnly": true + } + } + }, + "MacMetricsContainer": { + "type": "object", + "description": "Properties of a metrics container.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/Azure.ResourceManager.ResourceProvisioningState", + "description": "The provisioning state of the metrics container.", + "readOnly": true + }, + "limits": { + "$ref": "#/definitions/MacMetricsLimits", + "description": "Geneva Metrics limits." + } + } + }, + "MacMetricsContainerResource": { + "type": "object", + "description": "Metrics container resource for an Azure Monitor Workspace.", + "properties": { + "properties": { + "$ref": "#/definitions/MacMetricsContainer", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "MacMetricsContainerResourceListResult": { + "type": "object", + "description": "The response of a MacMetricsContainerResource list operation.", + "properties": { + "value": { + "type": "array", + "description": "The MacMetricsContainerResource items on this page", + "items": { + "$ref": "#/definitions/MacMetricsContainerResource" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MacMetricsLimits": { + "type": "object", + "description": "Definition of Geneva Metrics limits", + "properties": { + "maxActiveTimeSeries": { + "type": "integer", + "format": "int64", + "description": "Maximum number of active time series allowed on the metrics containers." + }, + "maxEventsPerMinute": { + "type": "integer", + "format": "int64", + "description": "Maximum rate (events per minute) that can be processed on the metrics containers." + } + } + }, + "PublicNetworkAccess": { + "type": "string", + "description": "Gets or sets allow or disallow public network access to Azure Monitor Workspace", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "Public network access is enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "Public network access is disabled." + } + ] + } + } + }, + "parameters": {} +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..fc22de29ef11 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,150 @@ +{ + "title": "AzureMonitorWorkspaces_CreateOrUpdate - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "resource": { + "location": "eastus", + "properties": { + "metrics": { + "enableAccessUsingResourcePermissions": true + }, + "publicNetworkAccess": "Enabled" + }, + "tags": {} + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "metrics": { + "enableAccessUsingResourcePermissions": true, + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "defaultIngestionSettings": { + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2" + }, + "publicNetworkAccess": "Enabled", + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "provisioningState": "Succeeded", + "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", + "actionsRequired": "None", + "description": "zvmlxhzwd" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ] + }, + "tags": {}, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + }, + "201": { + "body": { + "location": "eastus", + "properties": { + "metrics": { + "enableAccessUsingResourcePermissions": true, + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f" + }, + "defaultIngestionSettings": { + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2" + }, + "publicNetworkAccess": "Enabled", + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "provisioningState": "Succeeded", + "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", + "actionsRequired": "None", + "description": "zvmlxhzwd" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ] + }, + "tags": {}, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..7368043d9765 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Delete_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "AzureMonitorWorkspaces_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_Delete", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000/AzureMonitorWorkspace/default?api-version=2023-04-03", + "Location": "https://management.azure.com/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/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/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..fbcdf8882e55 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Get_MaximumSet_Gen.json @@ -0,0 +1,79 @@ +{ + "title": "AzureMonitorWorkspaces_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_Get", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace" + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "tags": { + "key1693": "xkjnypgoxx", + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json new file mode 100644 index 000000000000..ca5c63518e0a --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_ListByResourceGroup_MaximumSet_Gen.json @@ -0,0 +1,146 @@ +{ + "title": "AzureMonitorWorkspaces_ListByResourceGroup - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_ListByResourceGroup", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace" + }, + "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", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + } + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace", + "name": "herAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "westus", + "properties": { + "accountId": "823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "metrics": { + "prometheusQueryEndpoint": "https://herAzureMonitorWorkspace-xywz.westus.prometheus.monitor.azure.com", + "internalId": "mac_823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "enableAccessUsingResourcePermissions": true + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionRules/herAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/herAzureMonitorWorkspace", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace/privateEndpointConnections/herPrivateEndpointConnection", + "name": "herPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Network/privateEndpoints/herPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None", + "description": "ujtgmztnkqnqzcawmbbmr" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key583": "deudtkpbrajjhz" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..9ba92452467f --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,145 @@ +{ + "title": "AzureMonitorWorkspaces_ListBySubscription - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_ListBySubscription", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2" + }, + "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", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "603362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + } + }, + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace", + "name": "herAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "location": "westus", + "properties": { + "accountId": "823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "metrics": { + "prometheusQueryEndpoint": "https://herAzureMonitorWorkspace-xywz.westus.prometheus.monitor.azure.com", + "internalId": "mac_823220c6-0415-44d8-bfb2-d5c1c9ea1172", + "enableAccessUsingResourcePermissions": true + }, + "provisioningState": "Succeeded", + "defaultIngestionSettings": { + "dataCollectionRuleResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionRules/herAzureMonitorWorkspace", + "dataCollectionEndpointResourceId": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/MA_herAzureMonitorWorkspace_westus_managed/providers/Microsoft.Insights/dataCollectionEndpoints/herAzureMonitorWorkspace", + "dataCollectionRuleImmutableId": "903362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://herAzureMonitorWorkspace-gb69.westus-1.metrics.ingest.monitor.azure.com" + } + }, + "privateEndpointConnections": [ + { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Monitor/accounts/herAzureMonitorWorkspace/privateEndpointConnections/herPrivateEndpointConnection", + "name": "herPrivateEndpointConnection", + "type": "Microsoft.Monitor/accounts/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/herResourceGroup/providers/Microsoft.Network/privateEndpoints/herPrivateEndpointConnection" + }, + "groupIds": [ + "prometheusMetrics" + ], + "privateLinkServiceConnectionState": { + "status": "Approved", + "actionsRequired": "None", + "description": "ujtgmztnkqnqzcawmbbmr" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "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" + }, + "tags": { + "key583": "deudtkpbrajjhz" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..b56a5a98c59a --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/AzureMonitorWorkspaces_Update_MaximumSet_Gen.json @@ -0,0 +1,88 @@ +{ + "title": "AzureMonitorWorkspaces_Update - generated by [MaximumSet] rule - generated by [MaximumSet] rule", + "operationId": "AzureMonitorWorkspaces_Update", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "properties": { + "tags": {}, + "properties": { + "publicNetworkAccess": "Enabled", + "metrics": { + "enableAccessUsingResourcePermissions": true + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "eastus", + "properties": { + "accountId": "2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "metrics": { + "prometheusQueryEndpoint": "https://myAzureMonitorWorkspace-v8hx.eastus.prometheus.monitor.azure.com", + "internalId": "mac_2df515bf-c3ce-4920-84d4-1d9d16542d9f", + "enableAccessUsingResourcePermissions": true + }, + "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", + "dataCollectionRuleImmutableId": "503362b3-f278-4e4b-9179-c76eaf41ffc2", + "ingestionEndpoints": { + "metrics": "https://myAzureMonitorWorkspace-gb69.eastus-1.metrics.ingest.monitor.azure.com" + } + }, + "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", + "actionsRequired": "None", + "description": "jawmectradlpxxaalglrydamehym" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ], + "publicNetworkAccess": "Enabled" + }, + "tags": { + "key1693": "xkjnypgoxx", + "key4981": "akpkhqbugamcavvmdqevahsnqebh" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace", + "name": "myAzureMonitorWorkspace", + "type": "Microsoft.Monitor/accounts", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..78f2faf35796 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,65 @@ +{ + "title": "MetricsContainers_CreateOrUpdate_MaximumSet - generated by [MaximumSet] rule", + "operationId": "MetricsContainers_CreateOrUpdate", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "metricsContainerName": "default", + "resource": { + "properties": { + "limits": { + "maxActiveTimeSeries": 100000, + "maxEventsPerMinute": 100000 + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "limits": { + "maxActiveTimeSeries": 100000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + }, + "201": { + "body": { + "properties": { + "limits": { + "maxActiveTimeSeries": 100000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_Get_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..122886c17124 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_Get_MaximumSet_Gen.json @@ -0,0 +1,35 @@ +{ + "title": "MetricsContainers_Get_MaximumSet - generated by [MaximumSet] rule", + "operationId": "MetricsContainers_Get", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace", + "metricsContainerName": "default" + }, + "responses": { + "200": { + "body": { + "properties": { + "limits": { + "maxActiveTimeSeries": 1000000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json new file mode 100644 index 000000000000..7ef630e14d00 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/preview/2025-05-03-preview/examples/MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet_Gen.json @@ -0,0 +1,38 @@ +{ + "title": "MetricsContainers_ListByAzureMonitorWorkspace_MaximumSet - generated by [MaximumSet] rule", + "operationId": "MetricsContainers_ListByAzureMonitorWorkspace", + "parameters": { + "api-version": "2025-05-03-preview", + "subscriptionId": "703362b3-f278-4e4b-9179-c76eaf41ffc2", + "resourceGroupName": "rgazuremonitorworkspace", + "azureMonitorWorkspaceName": "myAzureMonitorWorkspace" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "limits": { + "maxActiveTimeSeries": 1000000, + "maxEventsPerMinute": 100000 + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/rgazuremonitorworkspace/providers/Microsoft.Monitor/accounts/myAzureMonitorWorkspace/metricsContainers/default", + "name": "default", + "type": "Microsoft.Monitor/accounts/metricsContainers", + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-04-01T12:34:56.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-04-02T12:34:56.1234567Z" + } + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.go.md b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.go.md new file mode 100644 index 000000000000..e0318e9c4980 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) && $(track2) +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/monitor/armmonitor +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +azure-arm: true +``` diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.java.md b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.java.md new file mode 100644 index 000000000000..c2afe2984a84 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.java.md @@ -0,0 +1,13 @@ +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.azure.resourcemanager.monitoraccounts +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-monitoraccounts +``` diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.md b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.md new file mode 100644 index 000000000000..c088fe4a4a57 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.md @@ -0,0 +1,86 @@ +# AzureMonitorAccountsClient + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for AzureMonitorAccountsClient. + +--- + +## Getting Started + +To build the SDK for AzureMonitorAccountsClient, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` + +--- + +## Configuration + +### Basic Information + +These are the global settings for the AzureMonitorAccountsClient API. + +``` yaml !$(python) || !$(track2) +title: AzureMonitorAccountsClient +``` + +``` yaml +description: Azure Monitor Accounts Management Client +openapi-type: arm +openapi-subtype: rpaas +tag: package-2025-05-03-preview +``` + +### Tag: package-2025-05-03-preview + +These settings apply only when `--tag=package-2025-05-03-preview` is specified on the command line + +``` yaml $(tag) == 'package-2025-05-03-preview' +input-file: +- preview/2025-05-03-preview/azuremonitorworkspace.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-net + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-powershell +``` + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Java + +See configuration in [readme.java.md](./readme.java.md) + +## Suppression + +``` yaml +suppressions: + - code: OperationsAPIImplementation + reason: Operations API is defined in a separate swagger spec for Microsoft.Monitor namespace (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Monitor/Operations) + from: azuremonitorworkspace.json +``` diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.python.md b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.python.md new file mode 100644 index 000000000000..ff00e5baf4fd --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Accounts/readme.python.md @@ -0,0 +1,24 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +title: AzureMonitorAccountsClient +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-monitoraccounts +namespace: azure.mgmt.monitoraccounts +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/monitoraccounts/azure-mgmt-monitoraccounts/azure/mgmt/monitoraccounts +``` + +``` yaml $(python) +modelerfour: + lenient-model-deduplication: true +``` diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Operations/preview/2025-05-03-preview/examples/OperationsList.json b/specification/monitor/resource-manager/Microsoft.Monitor/Operations/preview/2025-05-03-preview/examples/OperationsList.json new file mode 100644 index 000000000000..b8e0f1d15882 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Operations/preview/2025-05-03-preview/examples/OperationsList.json @@ -0,0 +1,103 @@ +{ + "title": "Lists the Microsoft.Monitor resource provider operations", + "operationId": "Operations_List", + "parameters": { + "api-version": "2025-05-03-preview" + }, + "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" + }, + { + "name": "microsoft.monitor/pipelinegroups/read", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Pipelines", + "operation": "Read Azure Monitor Pipelines", + "description": "Read any Azure Monitor Pipelines" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/pipelinegroups/write", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Pipelines", + "operation": "Create Or Update Azure Monitor Pipelines", + "description": "Create or Update any Azure Monitor Pipelines" + }, + "isDataAction": false, + "origin": "user, system" + }, + { + "name": "microsoft.monitor/pipelinegroups/delete", + "display": { + "provider": "Microsoft Monitoring", + "resource": "Azure Monitor Pipelines", + "operation": "Delete Azure Monitor Pipelines", + "description": "Delete any Azure Monitor Pipelines" + }, + "isDataAction": false, + "origin": "user, system" + } + ] + } + } + } +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Operations/preview/2025-05-03-preview/operations.json b/specification/monitor/resource-manager/Microsoft.Monitor/Operations/preview/2025-05-03-preview/operations.json new file mode 100644 index 000000000000..2385eaa0a76e --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Operations/preview/2025-05-03-preview/operations.json @@ -0,0 +1,86 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Monitor Operations Control Plane API", + "version": "2025-05-03-preview", + "description": "Provides operations for working with Azure Monitor", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + } + ], + "paths": { + "/providers/Microsoft.Monitor/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists the Microsoft.Monitor resource provider operations": { + "$ref": "./examples/OperationsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": {}, + "parameters": {} +} diff --git a/specification/monitor/resource-manager/Microsoft.Monitor/Operations/readme.md b/specification/monitor/resource-manager/Microsoft.Monitor/Operations/readme.md index a27d2069bfd3..ca007e6f02e7 100644 --- a/specification/monitor/resource-manager/Microsoft.Monitor/Operations/readme.md +++ b/specification/monitor/resource-manager/Microsoft.Monitor/Operations/readme.md @@ -32,7 +32,16 @@ title: AzureMonitorOperationsClient description: Azure Monitor Operations Management Client openapi-type: arm openapi-subtype: rpaas -tag: package-2024-10-01-preview +tag: package-2025-05-03-preview +``` + +### Tag: package-2025-05-03-preview + +These settings apply only when `--tag=package-2025-05-03-preview` is specified on the command line + +``` yaml $(tag) == 'package-2025-05-03-preview' +input-file: +- preview/2025-05-03-preview/operations.json ``` ### Tag: package-2024-10-01-preview @@ -41,7 +50,7 @@ These settings apply only when `--tag=package-2024-10-01-preview` is specified o ``` yaml $(tag) == 'package-2024-10-01-preview' input-file: -- preview\2024-10-01-preview\operations.json +- preview/2024-10-01-preview/operations.json ```