diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/common-types/v2/commonTypes.json b/specification/workloads/resource-manager/Microsoft.Workloads/common-types/v2/commonTypes.json new file mode 100644 index 000000000000..62b7418db4b5 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/common-types/v2/commonTypes.json @@ -0,0 +1,62 @@ +{ + "swagger": "2.0", + "info": { + "version": "2023-10-01-preview", + "title": "Workloads Client", + "description": "Workload client provides access to various workload operations" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "ManagedServiceIdentityType": { + "description": "The managed service identity for all identities.", + "enum": [ + "None", + "UserAssigned", + "SystemAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "ManagedServiceIdentityType", + "modelAsString": true + } + }, + "ManagedServiceIdentity": { + "description": "The Managed service identity.", + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "format": "uuid", + "type": "string", + "description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "format": "uuid", + "type": "string", + "description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity." + }, + "userAssignedIdentities": { + "$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentities" + }, + "type": { + "$ref": "#/definitions/ManagedServiceIdentityType" + } + }, + "required": [ + "type" + ] + } + }, + "parameters": {} +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create.json new file mode 100644 index 000000000000..109995be5a38 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "hostname", + "dbUsername": "username", + "dbName": "dbName", + "dbPassword": "password", + "dbPasswordUri": "", + "dbPort": "dbPort", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "vmname.azure.com", + "dbUsername": "Db2OPA", + "dbName": "OPA", + "dbPort": "5912", + "dbPasswordUri": "", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "vmname.azure.com", + "dbUsername": "Db2OPA", + "dbName": "OPA", + "dbPort": "5912", + "dbPasswordUri": "", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create_Root_Certificate.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create_Root_Certificate.json new file mode 100644 index 000000000000..0bbb022900b4 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create_Root_Certificate.json @@ -0,0 +1,82 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "hostname", + "dbUsername": "username", + "dbName": "dbName", + "dbPassword": "password", + "dbPasswordUri": "", + "dbPort": "dbPort", + "sslPreference": "RootCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "vmname.azure.com", + "dbUsername": "Db2OPA", + "dbName": "OPA", + "dbPort": "5912", + "dbPasswordUri": "", + "sslPreference": "RootCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "vmname.azure.com", + "dbUsername": "Db2OPA", + "dbName": "OPA", + "dbPort": "5912", + "dbPasswordUri": "", + "sslPreference": "RootCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Get.json new file mode 100644 index 000000000000..9ed462abf4c6 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "vmname.azure.com", + "dbUsername": "Db2OPA", + "dbName": "OPA", + "dbPort": "5912", + "dbPasswordUri": "", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create.json new file mode 100644 index 000000000000..887ff4b567a6 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create.json @@ -0,0 +1,98 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "MonitorParameter": { + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "appLocation": "westus", + "routingPreference": "RouteAll", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Accepted", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create_Identity.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create_Identity.json new file mode 100644 index 000000000000..a05c1690d7d9 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create_Identity.json @@ -0,0 +1,111 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "MonitorParameter": { + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "appLocation": "westus", + "routingPreference": "RouteAll", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "identity": { + "type": "SystemAssigned" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "SystemAssigned" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Accepted", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "SystemAssigned" + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create_UserAssignedIdentity.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create_UserAssignedIdentity.json new file mode 100644 index 000000000000..6ee9091a2024 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create_UserAssignedIdentity.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "MonitorParameter": { + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "appLocation": "westus", + "routingPreference": "RouteAll", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userassignedmsi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userassignedmsi": { + "principalId": "00000000-0000-0000-0000-000000000000", + "clientId": "00000000-0000-0000-0000-000000000000" + } + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Accepted", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + }, + "identity": { + "principalId": "cac47a92-2856-11ed-a261-0242ac120002", + "tenantId": "cac47a92-2856-11ed-a261-0242ac120002", + "type": "SystemAssigned" + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Delete.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Delete.json new file mode 100644 index 000000000000..140ca0eb948d --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor" + }, + "responses": { + "202": { + "headers": { + "azure-AsyncOperation": "https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Workloads/locations/NORTHEUROPE/operationStatuses/sample-op-status?api-version=2021-12-01-preview" + } + }, + "204": { + "headers": { + "azure-AsyncOperation": "https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Workloads/locations/NORTHEUROPE/operationStatuses/sample-op-status?api-version=2021-12-01-preview" + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Get.json new file mode 100644 index 000000000000..316a8690272a --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Get.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor1", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_List.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_List.json new file mode 100644 index 000000000000..66f24351a256 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_List.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor1", + "name": "mySapMonitor1", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg1" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor2", + "name": "mySapMonitor2", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "westus", + "routingPreference": "Default", + "managedResourceGroupConfiguration": { + "name": "myManagedRg2" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + ] + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_ListByRG.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_ListByRG.json new file mode 100644 index 000000000000..b7fe3e1fc439 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_ListByRG.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "example-rg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Workloads/monitors/mySapMonitor1", + "name": "mySapMonitor1", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg1" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/example-rg/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Workloads/monitors/mySapMonitor2", + "name": "mySapMonitor2", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "westus", + "routingPreference": "Default", + "managedResourceGroupConfiguration": { + "name": "myManagedRg2" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/example-rg/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + ] + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_PatchTags.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_PatchTags.json new file mode 100644 index 000000000000..333d076d0942 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_PatchTags.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "body": { + "tags": { + "testkey": "testvalue" + }, + "identity": { + "type": "None" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "testkey": "testvalue" + }, + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_PatchTags_Delete.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_PatchTags_Delete.json new file mode 100644 index 000000000000..3433992d9ce9 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_PatchTags_Delete.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "body": { + "tags": {}, + "identity": { + "type": "None" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor", + "name": "mySapMonitor", + "type": "Microsoft.Workloads/monitors", + "location": "westus", + "tags": { + "testkey": "testvalue" + }, + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "provisioningState": "Succeeded", + "errors": [ + { + "code": "0000", + "message": "Error message", + "target": "", + "details": "Error details", + "innerError": "Error stack trace" + } + ], + "appLocation": "eastus", + "routingPreference": "RouteAll", + "zoneRedundancyPreference": "ZoneRedundantApp", + "managedResourceGroupConfiguration": { + "name": "myManagedRg" + }, + "logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace", + "monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + "msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi", + "storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount" + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create.json new file mode 100644 index 000000000000..daaa65a09a81 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create.json @@ -0,0 +1,80 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPassword": "****", + "dbPasswordUri": "", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create_Root_Certificate.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create_Root_Certificate.json new file mode 100644 index 000000000000..6f92be1054cd --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create_Root_Certificate.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPassword": "****", + "dbPasswordUri": "", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslPreference": "RootCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslPreference": "RootCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslPreference": "RootCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Get.json new file mode 100644 index 000000000000..f1d989dafdb5 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPort": "5912", + "hostname": "hostname", + "dbPasswordUri": "", + "sapSid": "sid", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create.json new file mode 100644 index 000000000000..3424496e65b9 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPassword": "****", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create_Root_Certificate.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create_Root_Certificate.json new file mode 100644 index 000000000000..2c6856670e63 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create_Root_Certificate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPassword": "****", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "RootCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "RootCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "RootCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Get.json new file mode 100644 index 000000000000..21226f6e21a4 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Get.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create.json new file mode 100644 index 000000000000..40884042d5d6 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json new file mode 100644 index 000000000000..7d303c36026e --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslPreference": "RootCertificate" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslPreference": "RootCertificate" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslPreference": "RootCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Get.json new file mode 100644 index 000000000000..322fa5248002 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Get.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create.json new file mode 100644 index 000000000000..8c0040a139c2 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate", + "sapSid": "SID" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate", + "sapSid": "SID" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate", + "sapSid": "SID" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create_Root_Certificate.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create_Root_Certificate.json new file mode 100644 index 000000000000..fd7fc23a1328 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create_Root_Certificate.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslPreference": "RootCertificate", + "sapSid": "SID" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslPreference": "RootCertificate", + "sapSid": "SID" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslPreference": "RootCertificate", + "sapSid": "SID" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Get.json new file mode 100644 index 000000000000..9624a26a1ed3 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Get.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate", + "sapSid": "SID" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Create.json new file mode 100644 index 000000000000..aa8f142d5c7c --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Create.json @@ -0,0 +1,91 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPassword": "****", + "dbPasswordUri": "", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslHostNameInCertificate": "xyz.domain.com", + "sapSid": "SID" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sapSid": "SID" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sapSid": "SID" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Create_Root_Certificate.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Create_Root_Certificate.json new file mode 100644 index 000000000000..03b07a317860 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Create_Root_Certificate.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance", + "providerInstanceParameter": { + "properties": { + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPassword": "****", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "RootCertificate", + "sapSid": "SID" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "RootCertificate", + "sapSid": "SID" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Accepted", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "RootCertificate", + "sapSid": "SID" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Delete.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Delete.json new file mode 100644 index 000000000000..097991cc7a3e --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Delete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "202": { + "headers": { + "azure-AsyncOperation": "https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Workloads/locations/NORTHEUROPE/operationStatuses/sample-op-status?api-version=2021-12-01-preview" + } + }, + "204": { + "headers": { + "azure-AsyncOperation": "https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Workloads/locations/NORTHEUROPE/operationStatuses/sample-op-status?api-version=2021-12-01-preview" + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Get.json new file mode 100644 index 000000000000..52ec968e2918 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_Get.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "providerInstanceName": "myProviderInstance" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance", + "name": "myProviderInstance", + "type": "Microsoft.Workloads/monitors/providerInstances", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sapSid": "SID" + } + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_List.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_List.json new file mode 100644 index 000000000000..6f1b0bcb38e1 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/ProviderInstances/ProviderInstances_List.json @@ -0,0 +1,152 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance1", + "name": "myProviderInstance1", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapHana", + "hostname": "name", + "dbName": "db", + "sqlPort": "0000", + "instanceNumber": "00", + "dbUsername": "user", + "dbPasswordUri": "", + "sslHostNameInCertificate": "xyz.domain.com", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sapSid": "SID" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance1", + "name": "myProviderInstance2", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "SapNetWeaver", + "sapSid": "SID", + "sapHostname": "name", + "sapInstanceNr": "00", + "sapHostFileEntries": [ + "127.0.0.1 name fqdn" + ], + "sapUsername": "username", + "sapPasswordUri": "", + "sapPortNumber": "1234", + "sapClientId": "111", + "sslPreference": "ServerCertificate", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance1", + "name": "myProviderInstance4", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "MsSqlServer", + "dbUsername": "user", + "dbPort": "5912", + "hostname": "hostname", + "sapSid": "sid", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance1", + "name": "myProviderInstance3", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusOS", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate", + "sapSid": "SID" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance1", + "name": "myProviderInstance3", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "PrometheusHaCluster", + "prometheusUrl": "http://192.168.0.0:9090/metrics", + "hostname": "hostname", + "sid": "sid", + "clusterName": "clusterName", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance1", + "name": "myProviderInstance3", + "type": "Microsoft.Workloads/monitors/providerInstances", + "properties": { + "provisioningState": "Succeeded", + "health": { + "healthState": "Healthy", + "impactingReasons": "None" + }, + "providerSettings": { + "providerType": "Db2", + "sapSid": "SID", + "hostname": "vmname.azure.com", + "dbUsername": "Db2OPA", + "dbName": "OPA", + "dbPort": "5912", + "dbPasswordUri": "", + "sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename", + "sslPreference": "ServerCertificate" + } + } + } + ] + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Create.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Create.json new file mode 100644 index 000000000000..aa9eb63f9bba --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Create.json @@ -0,0 +1,132 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "sapLandscapeMonitorParameter": { + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default", + "name": "default", + "type": "Microsoft.Workloads/monitors/sapLandscapeMonitor", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default", + "name": "default", + "type": "Microsoft.Workloads/monitors/sapLandscapeMonitor", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Delete.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Delete.json new file mode 100644 index 000000000000..e66cf4357d29 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Get.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Get.json new file mode 100644 index 000000000000..27d7cd79127c --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Get.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default", + "name": "default", + "type": "Microsoft.Workloads/monitors/sapLandscapeMonitor", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_List.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_List.json new file mode 100644 index 000000000000..ec31dad05fee --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_List.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default", + "name": "default", + "type": "Microsoft.Workloads/monitors/sapLandscapeMonitor", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default", + "name": "default", + "type": "Microsoft.Workloads/monitors/sapLandscapeMonitor", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + ] + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Update.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Update.json new file mode 100644 index 000000000000..9f0a1955e3ac --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/examples/SapLandscapeMonitor/SapLandscapeMonitor_Update.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2023-10-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "myResourceGroup", + "monitorName": "mySapMonitor", + "sapLandscapeMonitorParameter": { + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default", + "name": "default", + "type": "Microsoft.Workloads/monitors/sapLandscapeMonitor", + "systemData": { + "createdBy": "user@xyz.com", + "createdByType": "User", + "createdAt": "2021-08-19T15:10:46.196Z", + "lastModifiedBy": "user@xyz.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-08-19T15:10:46.196Z" + }, + "properties": { + "grouping": { + "landscape": [ + { + "name": "Prod", + "topSid": [ + "SID1", + "SID2" + ] + } + ], + "sapApplication": [ + { + "name": "ERP1", + "topSid": [ + "SID1", + "SID2" + ] + } + ] + }, + "topMetricsThresholds": [ + { + "name": "Instance Availability", + "green": 90, + "yellow": 75, + "red": 50 + } + ] + } + } + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/monitors.json b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/monitors.json new file mode 100644 index 000000000000..26f1379c8167 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/preview/2023-10-01-preview/monitors.json @@ -0,0 +1,1706 @@ +{ + "swagger": "2.0", + "info": { + "title": "Workloads Client", + "description": "The workload SAP monitor Client.", + "version": "2023-10-01-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/monitors": { + "get": { + "tags": [ + "Monitors" + ], + "operationId": "monitors_List", + "summary": "Gets a list of SAP monitors in the specified subscription.", + "description": "Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.", + "x-ms-examples": { + "List all SAP monitors in a subscription": { + "$ref": "./examples/Monitors/monitors_List.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MonitorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors": { + "get": { + "tags": [ + "Monitors" + ], + "operationId": "monitors_ListByResourceGroup", + "summary": "Gets a list of SAP monitors", + "description": "Gets a list of SAP monitors in the specified resource group.", + "x-ms-examples": { + "List all SAP monitors in a resource group": { + "$ref": "./examples/Monitors/monitors_ListByRG.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MonitorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}": { + "get": { + "tags": [ + "Monitors" + ], + "operationId": "monitors_Get", + "summary": "Gets properties of a SAP monitor.", + "description": "Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Get properties of a SAP monitor": { + "$ref": "./examples/Monitors/monitors_Get.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Monitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Monitors" + ], + "operationId": "monitors_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "summary": "Creates a SAP monitor.", + "description": "Creates a SAP monitor for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Create a SAP monitor": { + "$ref": "./examples/Monitors/monitors_Create.json" + }, + "Create a SAP monitor with system assigned identity": { + "$ref": "./examples/Monitors/monitors_Create_Identity.json" + }, + "Create a SAP monitor with user assigned identity": { + "$ref": "./examples/Monitors/monitors_Create_UserAssignedIdentity.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "$ref": "#/parameters/MonitorParameter" + } + ], + "responses": { + "200": { + "description": "Created SAP monitor", + "schema": { + "$ref": "#/definitions/Monitor" + } + }, + "201": { + "description": "Creating SAP monitor", + "schema": { + "$ref": "#/definitions/Monitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Monitors" + ], + "operationId": "monitors_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "summary": "Deletes a SAP monitor.", + "description": "Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.", + "x-ms-examples": { + "Deletes a SAP monitor": { + "$ref": "./examples/Monitors/monitors_Delete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + } + ], + "responses": { + "202": { + "description": "Deleting SAP monitor", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "No SAP monitor to delete" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Monitors" + ], + "operationId": "monitors_Update", + "summary": "Patches the Tags field of a SAP monitor.", + "description": "Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.", + "x-ms-examples": { + "Update Tags field of a SAP monitor": { + "$ref": "./examples/Monitors/monitors_PatchTags.json" + }, + "Delete Tags field of a SAP monitor": { + "$ref": "./examples/Monitors/monitors_PatchTags_Delete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "in": "body", + "name": "body", + "required": true, + "description": "The Update SAP workload monitor request body.", + "schema": { + "$ref": "#/definitions/UpdateMonitorRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Monitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/providerInstances": { + "get": { + "tags": [ + "ProviderInstances" + ], + "operationId": "ProviderInstances_List", + "summary": "Gets a list of provider instances in the specified SAP monitor.", + "description": "Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each provider instances.", + "x-ms-examples": { + "List all SAP monitors providers in a subscription": { + "$ref": "./examples/ProviderInstances/ProviderInstances_List.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProviderInstanceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/providerInstances/{providerInstanceName}": { + "get": { + "tags": [ + "ProviderInstances" + ], + "operationId": "ProviderInstances_Get", + "summary": "Gets properties of a provider instance.", + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "description": "Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and resource name.", + "x-ms-examples": { + "Get properties of a SAP monitor Hana provider": { + "$ref": "./examples/ProviderInstances/ProviderInstances_Get.json" + }, + "Get properties of a SAP monitor NetWeaver provider": { + "$ref": "./examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Get.json" + }, + "Get properties of a OS provider": { + "$ref": "./examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Get.json" + }, + "Get properties of a Db2 provider": { + "$ref": "./examples/Db2ProviderInstances/Db2ProviderInstances_Get.json" + }, + "Get properties of a MsSqlServer provider": { + "$ref": "./examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Get.json" + }, + "Get properties of a PrometheusHaCluster provider": { + "$ref": "./examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Get.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "$ref": "#/parameters/ProviderInstanceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ProviderInstance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "ProviderInstances" + ], + "operationId": "ProviderInstances_Create", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "summary": "Creates a provider instance.", + "description": "Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name.", + "x-ms-examples": { + "Create a SAP monitor Hana provider": { + "$ref": "./examples/ProviderInstances/ProviderInstances_Create.json" + }, + "Create a SAP monitor NetWeaver provider": { + "$ref": "./examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create.json" + }, + "Create a OS provider": { + "$ref": "./examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create.json" + }, + "Create a Db2 provider": { + "$ref": "./examples/Db2ProviderInstances/Db2ProviderInstances_Create.json" + }, + "Create a MsSqlServer provider": { + "$ref": "./examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create.json" + }, + "Create a PrometheusHaCluster provider": { + "$ref": "./examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create.json" + }, + "Create a SAP monitor Hana provider with Root Certificate": { + "$ref": "./examples/ProviderInstances/ProviderInstances_Create_Root_Certificate.json" + }, + "Create a SAP monitor NetWeaver provider with Root Certificate": { + "$ref": "./examples/NetWeaverProviderInstances/NetWeaverProviderInstances_Create_Root_Certificate.json" + }, + "Create a OS provider with Root Certificate": { + "$ref": "./examples/PrometheusOSProviderInstances/PrometheusOSProviderInstances_Create_Root_Certificate.json" + }, + "Create a Db2 provider with Root Certificate": { + "$ref": "./examples/Db2ProviderInstances/Db2ProviderInstances_Create_Root_Certificate.json" + }, + "Create a MsSqlServer provider with Root Certificate": { + "$ref": "./examples/MsSqlServerProviderInstance/MsSqlServerProviderInstance_Create_Root_Certificate.json" + }, + "Create a PrometheusHaCluster provider with Root Certificate": { + "$ref": "./examples/PrometheusHaClusterProviderInstances/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "$ref": "#/parameters/ProviderInstanceNameParameter" + }, + { + "$ref": "#/parameters/ProviderInstanceParameter" + } + ], + "responses": { + "200": { + "description": "Created provider instance", + "schema": { + "$ref": "#/definitions/ProviderInstance" + } + }, + "201": { + "description": "Creating provider instance", + "schema": { + "$ref": "#/definitions/ProviderInstance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "ProviderInstances" + ], + "operationId": "ProviderInstances_Delete", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "summary": "Deletes a provider instance.", + "description": "Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name.", + "x-ms-examples": { + "Deletes a SAP monitor provider": { + "$ref": "./examples/ProviderInstances/ProviderInstances_Delete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "$ref": "#/parameters/ProviderInstanceNameParameter" + } + ], + "responses": { + "202": { + "description": "Deleting provider instance", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "No provider instance to delete" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor/default": { + "get": { + "tags": [ + "SapLandscapeMonitor" + ], + "operationId": "SapLandscapeMonitor_Get", + "summary": "Gets configuration values for Single Pane Of Glass for SAP monitor.", + "description": "Gets configuration values for Single Pane Of Glass for SAP monitor for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Get properties of a SAP monitor": { + "$ref": "./examples/SapLandscapeMonitor/SapLandscapeMonitor_Get.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SapLandscapeMonitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "SapLandscapeMonitor" + ], + "operationId": "SapLandscapeMonitor_Create", + "summary": "Creates a SAP Landscape Monitor Dashboard.", + "description": "Creates a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Create for SAP Landscape monitor Dashboard": { + "$ref": "./examples/SapLandscapeMonitor/SapLandscapeMonitor_Create.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "$ref": "#/parameters/SapLandscapeMonitorParameter" + } + ], + "responses": { + "200": { + "description": "Updated SAP Landscape Monitor Dashboard.", + "schema": { + "$ref": "#/definitions/SapLandscapeMonitor" + } + }, + "201": { + "description": "Creating SAP Landscape Monitor Dashboard", + "schema": { + "$ref": "#/definitions/SapLandscapeMonitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "SapLandscapeMonitor" + ], + "operationId": "SapLandscapeMonitor_Delete", + "summary": "Deletes a SAP Landscape Monitor Dashboard.", + "description": "Deletes a SAP Landscape Monitor Dashboard with the specified subscription, resource group, and SAP monitor name.", + "x-ms-examples": { + "Deletes SAP monitor": { + "$ref": "./examples/SapLandscapeMonitor/SapLandscapeMonitor_Delete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + } + ], + "responses": { + "200": { + "description": "Delete SAP Landscape Monitor Dashboard" + }, + "204": { + "description": "SAP Landscape Monitor Dashboard is already deleted or not found." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "SapLandscapeMonitor" + ], + "operationId": "SapLandscapeMonitor_Update", + "summary": "Patches the SAP Landscape Monitor Dashboard.", + "description": "Patches the SAP Landscape Monitor Dashboard for the specified subscription, resource group, and SAP monitor name.", + "x-ms-examples": { + "Update SAP monitor": { + "$ref": "./examples/SapLandscapeMonitor/SapLandscapeMonitor_Update.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + }, + { + "$ref": "#/parameters/SapLandscapeMonitorParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SapLandscapeMonitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor": { + "get": { + "tags": [ + "SapLandscapeMonitor" + ], + "operationId": "SapLandscapeMonitor_List", + "summary": "Gets configuration values for Single Pane Of Glass for SAP monitor.", + "description": "Gets configuration values for Single Pane Of Glass for SAP monitor for the specified subscription, resource group, and resource name.", + "x-ms-examples": { + "Get properties of a SAP monitor": { + "$ref": "./examples/SapLandscapeMonitor/SapLandscapeMonitor_List.json" + } + }, + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/monitorNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SapLandscapeMonitorListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "HealthState": { + "readOnly": true, + "type": "string", + "enum": [ + "Healthy", + "Degraded", + "Unavailable", + "Unknown" + ], + "x-ms-enum": { + "name": "WorkloadProviderInstanceHealthState", + "modelAsString": true + }, + "description": "State of health of the provider instance" + }, + "Health": { + "type": "object", + "properties": { + "healthState": { + "$ref": "#/definitions/HealthState" + }, + "impactingReasons": { + "readOnly": true, + "type": "string", + "description": "Reasons impacting health state" + } + }, + "description": "Resource health details" + }, + "SslPreference": { + "description": "Gets or sets certificate preference if secure communication is enabled.", + "type": "string", + "enum": [ + "Disabled", + "RootCertificate", + "ServerCertificate" + ], + "x-ms-enum": { + "name": "sslPreference", + "modelAsString": true + } + }, + "OperationsDisplayDefinition": { + "description": "Defines the workload operation.", + "required": [ + "description", + "operation", + "provider", + "resource" + ], + "type": "object", + "properties": { + "provider": { + "type": "string", + "description": "Defines the workload provider." + }, + "resource": { + "type": "string", + "description": "Defines the workload resource." + }, + "operation": { + "type": "string", + "description": "Defines the workload operation." + }, + "description": { + "type": "string", + "description": "Describes the workload operation." + } + } + }, + "OperationsDefinition": { + "required": [ + "display", + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the operation." + }, + "isDataAction": { + "type": "boolean", + "description": "Indicates whether the operation applies to data-plane." + }, + "origin": { + "enum": [ + "NotSpecified", + "User", + "System" + ], + "type": "string", + "description": "Defines the workload operation origin.", + "x-ms-enum": { + "name": "OperationProperties", + "modelAsString": true + } + }, + "display": { + "description": "Display information of the operation.", + "allOf": [ + { + "$ref": "#/definitions/OperationsDisplayDefinition" + } + ] + }, + "actionType": { + "enum": [ + "NotSpecified", + "Internal" + ], + "x-ms-enum": { + "name": "WorkloadMonitorActionType", + "modelAsString": true + }, + "description": "Defines the action type of workload operation.", + "type": "string" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Defines the workload operation properties." + } + }, + "description": "Properties of an Operation." + }, + "OperationsContent": { + "type": "object", + "description": "Defines the workload operation content.", + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/Resource" + } + ], + "properties": { + "properties": { + "description": "Operations content.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/OperationsDefinition" + } + }, + "x-ms-azure-resource": true + }, + "OperationsDefinitionArrayResponseWithContinuation": { + "type": "object", + "description": "Defines the workload operation definition response.", + "properties": { + "value": { + "description": "Defines the workload operation definition response properties.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationsDefinition" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "description": "The URL to get to the next set of results, if there are any.", + "type": "string" + } + } + }, + "Error": { + "description": "Standard error object.", + "type": "object", + "properties": { + "code": { + "description": "Server-defined set of error codes.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Human-readable representation of the error.", + "type": "string", + "readOnly": true + }, + "target": { + "description": "Target of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Array of details about specific errors that led to this reported error.", + "type": "array", + "items": { + "$ref": "#/definitions/Error" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "innerError": { + "description": "Object containing more specific information than the current object about the error.", + "type": "object", + "properties": { + "innerError": { + "$ref": "#/definitions/Error" + } + }, + "readOnly": true + } + } + }, + "ManagedRGConfiguration": { + "description": "Managed resource group configuration", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Managed resource group name" + } + } + }, + "Tags": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags field of the resource." + } + }, + "description": "Tags field of the resource." + }, + "MonitorListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Monitor" + }, + "description": "The list of SAP monitors." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of SAP monitors." + } + }, + "description": "The response from the List SAP monitors operation." + }, + "Monitor": { + "type": "object", + "properties": { + "identity": { + "$ref": "../../../common-types/v2/commonTypes.json#/definitions/ManagedServiceIdentity" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MonitorProperties", + "description": "SAP monitor properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ], + "description": "SAP monitor info on Azure (ARM properties and SAP monitor properties)" + }, + "MonitorProperties": { + "type": "object", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating", + "Canceled" + ], + "x-ms-enum": { + "name": "WorkloadMonitorProvisioningState", + "modelAsString": true + }, + "description": "State of provisioning of the SAP monitor." + }, + "errors": { + "description": "Defines the SAP monitor errors.", + "allOf": [ + { + "$ref": "#/definitions/Error" + } + ], + "readOnly": true + }, + "appLocation": { + "type": "string", + "description": "The SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the SAP monitoring region." + }, + "routingPreference": { + "type": "string", + "description": "Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET.", + "enum": [ + "Default", + "RouteAll" + ], + "x-ms-enum": { + "name": "RoutingPreference", + "modelAsString": true + } + }, + "zoneRedundancyPreference": { + "type": "string", + "description": "Sets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be created which do not support zone redundancy." + }, + "managedResourceGroupConfiguration": { + "description": "Managed resource group configuration", + "$ref": "#/definitions/ManagedRGConfiguration" + }, + "logAnalyticsWorkspaceArmId": { + "type": "string", + "description": "The ARM ID of the Log Analytics Workspace that is used for SAP monitoring." + }, + "monitorSubnet": { + "type": "string", + "description": "The subnet which the SAP monitor will be deployed in" + }, + "msiArmId": { + "readOnly": true, + "type": "string", + "description": "The ARM ID of the MSI used for SAP monitoring." + }, + "storageAccountArmId": { + "readOnly": true, + "type": "string", + "description": "The ARM ID of the Storage account used for SAP monitoring." + } + }, + "description": "Describes the properties of a SAP monitor." + }, + "UpdateMonitorRequest": { + "description": "Defines the request body for updating SAP monitor resource.", + "type": "object", + "properties": { + "tags": { + "description": "Gets or sets the Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "identity": { + "$ref": "../../../common-types/v2/commonTypes.json#/definitions/ManagedServiceIdentity" + } + } + }, + "ProviderInstanceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderInstance" + }, + "description": "The list of provider instances." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of provider instances." + } + }, + "description": "The response from the List provider instances operation." + }, + "ProviderInstance": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ProviderInstanceProperties", + "description": "Provider Instance properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "description": "A provider instance associated with SAP monitor." + }, + "HanaDbProviderInstanceProperties": { + "description": "Gets or sets the provider properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProviderSpecificProperties" + } + ], + "properties": { + "hostname": { + "description": "Gets or sets the target virtual machine size.", + "type": "string" + }, + "dbName": { + "description": "Gets or sets the hana database name.", + "type": "string" + }, + "sqlPort": { + "description": "Gets or sets the database sql port.", + "type": "string" + }, + "instanceNumber": { + "description": "Gets or sets the database instance number.", + "type": "string" + }, + "dbUsername": { + "description": "Gets or sets the database user name.", + "type": "string" + }, + "dbPassword": { + "description": "Gets or sets the database password.", + "type": "string", + "x-ms-secret": true + }, + "dbPasswordUri": { + "description": "Gets or sets the key vault URI to secret with the database password.", + "type": "string" + }, + "sslCertificateUri": { + "description": "Gets or sets the blob URI to SSL certificate for the DB.", + "type": "string" + }, + "sslHostNameInCertificate": { + "description": "Gets or sets the hostname(s) in the SSL certificate.", + "type": "string" + }, + "sslPreference": { + "$ref": "#/definitions/SslPreference" + }, + "sapSid": { + "description": "Gets or sets the SAP System Identifier.", + "type": "string" + } + }, + "x-ms-discriminator-value": "SapHana" + }, + "SapNetWeaverProviderInstanceProperties": { + "description": "Gets or sets the provider properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProviderSpecificProperties" + } + ], + "properties": { + "sapSid": { + "description": "Gets or sets the SAP System Identifier", + "type": "string" + }, + "sapHostname": { + "description": "Gets or sets the target virtual machine IP Address/FQDN.", + "type": "string" + }, + "sapInstanceNr": { + "description": "Gets or sets the instance number of SAP NetWeaver.", + "type": "string" + }, + "sapHostFileEntries": { + "description": "Gets or sets the list of HostFile Entries", + "type": "array", + "items": { + "type": "string" + } + }, + "sapUsername": { + "description": "Gets or sets the SAP user name.", + "type": "string" + }, + "sapPassword": { + "description": "Sets the SAP password.", + "type": "string", + "x-ms-secret": true + }, + "sapPasswordUri": { + "description": "Gets or sets the key vault URI to secret with the SAP password.", + "type": "string" + }, + "sapClientId": { + "description": "Gets or sets the SAP Client ID.", + "type": "string" + }, + "sapPortNumber": { + "description": "Gets or sets the SAP HTTP port number.", + "type": "string" + }, + "sslCertificateUri": { + "description": "Gets or sets the blob URI to SSL certificate for the SAP system.", + "type": "string" + }, + "sslPreference": { + "$ref": "#/definitions/SslPreference" + } + }, + "x-ms-discriminator-value": "SapNetWeaver" + }, + "PrometheusOSProviderInstanceProperties": { + "description": "Gets or sets the PrometheusOS provider properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProviderSpecificProperties" + } + ], + "properties": { + "prometheusUrl": { + "description": "URL of the Node Exporter endpoint", + "type": "string" + }, + "sslPreference": { + "$ref": "#/definitions/SslPreference" + }, + "sslCertificateUri": { + "description": "Gets or sets the blob URI to SSL certificate for the prometheus node exporter.", + "type": "string" + }, + "sapSid": { + "description": "Gets or sets the SAP System Identifier", + "type": "string" + } + }, + "x-ms-discriminator-value": "PrometheusOS" + }, + "DB2ProviderInstanceProperties": { + "description": "Gets or sets the DB2 provider properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProviderSpecificProperties" + } + ], + "properties": { + "hostname": { + "description": "Gets or sets the target virtual machine name.", + "type": "string" + }, + "dbName": { + "description": "Gets or sets the db2 database name.", + "type": "string" + }, + "dbPort": { + "description": "Gets or sets the db2 database sql port.", + "type": "string" + }, + "dbUsername": { + "description": "Gets or sets the db2 database user name.", + "type": "string" + }, + "dbPassword": { + "description": "Gets or sets the db2 database password.", + "type": "string", + "x-ms-secret": true + }, + "dbPasswordUri": { + "description": "Gets or sets the key vault URI to secret with the database password.", + "type": "string" + }, + "sapSid": { + "description": "Gets or sets the SAP System Identifier", + "type": "string" + }, + "sslPreference": { + "$ref": "#/definitions/SslPreference" + }, + "sslCertificateUri": { + "description": "Gets or sets the blob URI to SSL certificate for the DB2 Database.", + "type": "string" + } + }, + "x-ms-discriminator-value": "Db2" + }, + "PrometheusHaClusterProviderInstanceProperties": { + "description": "Gets or sets the PrometheusHaCluster provider properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProviderSpecificProperties" + } + ], + "properties": { + "prometheusUrl": { + "description": "URL of the Node Exporter endpoint.", + "type": "string" + }, + "hostname": { + "description": "Gets or sets the target machine name.", + "type": "string" + }, + "sid": { + "description": "Gets or sets the cluster sid.", + "type": "string" + }, + "clusterName": { + "description": "Gets or sets the clusterName.", + "type": "string" + }, + "sslPreference": { + "$ref": "#/definitions/SslPreference" + }, + "sslCertificateUri": { + "description": "Gets or sets the blob URI to SSL certificate for the HA cluster exporter.", + "type": "string" + } + }, + "x-ms-discriminator-value": "PrometheusHaCluster" + }, + "MsSqlServerProviderInstanceProperties": { + "description": "Gets or sets the SQL server provider properties.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProviderSpecificProperties" + } + ], + "properties": { + "hostname": { + "description": "Gets or sets the SQL server host name.", + "type": "string" + }, + "dbPort": { + "description": "Gets or sets the database sql port.", + "type": "string" + }, + "dbUsername": { + "description": "Gets or sets the database user name.", + "type": "string" + }, + "dbPassword": { + "description": "Gets or sets the database password.", + "type": "string", + "x-ms-secret": true + }, + "dbPasswordUri": { + "description": "Gets or sets the key vault URI to secret with the database password.", + "type": "string" + }, + "sapSid": { + "description": "Gets or sets the SAP System Identifier", + "type": "string" + }, + "sslPreference": { + "$ref": "#/definitions/SslPreference" + }, + "sslCertificateUri": { + "description": "Gets or sets the blob URI to SSL certificate for the SQL Database.", + "type": "string" + } + }, + "x-ms-discriminator-value": "MsSqlServer" + }, + "ProviderSpecificProperties": { + "description": "Gets or sets the provider specific properties.", + "type": "object", + "required": [ + "providerType" + ], + "properties": { + "providerType": { + "description": "The provider type. For example, the value can be SapHana.", + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] + } + }, + "discriminator": "providerType" + }, + "ProviderInstanceProperties": { + "type": "object", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating", + "Canceled" + ], + "x-ms-enum": { + "name": "WorkloadMonitorProvisioningState", + "modelAsString": true + }, + "description": "State of provisioning of the provider instance" + }, + "health": { + "readOnly": true, + "type": "object", + "description": "Resource health details", + "$ref": "#/definitions/Health" + }, + "errors": { + "description": "Defines the provider instance errors.", + "allOf": [ + { + "$ref": "#/definitions/Error" + } + ], + "readOnly": true + }, + "providerSettings": { + "description": "Defines the provider specific properties.", + "$ref": "#/definitions/ProviderSpecificProperties" + } + }, + "description": "Describes the properties of a provider instance." + }, + "SapLandscapeMonitorMetricThresholds": { + "description": "Gets or sets the Threshold Values for Top Metrics Health.", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the name of the threshold.", + "type": "string" + }, + "green": { + "description": "Gets or sets the threshold value for Green.", + "type": "number" + }, + "yellow": { + "description": "Gets or sets the threshold value for Yellow.", + "type": "number" + }, + "red": { + "description": "Gets or sets the threshold value for Red.", + "type": "number" + } + } + }, + "SapLandscapeMonitorSidMapping": { + "description": "Gets or sets the mapping for SID to Environment/Applications.", + "type": "object", + "properties": { + "name": { + "description": "Gets or sets the name of the grouping.", + "type": "string" + }, + "topSid": { + "description": "Gets or sets the list of SID's.", + "type": "array", + "items": { + "type": "string" + }, + "maxLength": 50 + } + } + }, + "SapLandscapeMonitorListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SapLandscapeMonitor" + }, + "description": "The list of Sap Landscape Monitor configuration." + }, + "nextLink": { + "type": "string", + "description": "The URL to get the next set of SAP Landscape Monitor Dashboard." + } + }, + "description": "The response from the List SAP Landscape Monitor Dashboard operation." + }, + "SapLandscapeMonitor": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SapLandscapeMonitorProperties", + "description": "Sap Landscape Monitor properties" + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ], + "description": "configuration associated with SAP Landscape Monitor Dashboard." + }, + "SapLandscapeMonitorProperties": { + "description": "Gets or sets the properties for Sap Landscape Monitor Dashboard.", + "type": "object", + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "enum": [ + "Accepted", + "Created", + "Failed", + "Succeeded", + "Canceled" + ], + "x-ms-enum": { + "name": "SapLandscapeMonitorProvisioningState", + "modelAsString": true + }, + "description": "State of provisioning of the SAP monitor." + }, + "grouping": { + "description": "Gets or sets the SID groupings by landscape and Environment.", + "type": "object", + "properties": { + "landscape": { + "description": "Gets or sets the list of landscape to SID mappings.", + "type": "array", + "items": { + "$ref": "#/definitions/SapLandscapeMonitorSidMapping" + }, + "maxLength": 50, + "x-ms-identifiers": [ + "name" + ] + }, + "sapApplication": { + "description": "Gets or sets the list of Sap Applications to SID mappings.", + "type": "array", + "items": { + "$ref": "#/definitions/SapLandscapeMonitorSidMapping" + }, + "maxLength": 50, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "topMetricsThresholds": { + "description": "Gets or sets the list Top Metric Thresholds for SAP Landscape Monitor Dashboard", + "type": "array", + "items": { + "$ref": "#/definitions/SapLandscapeMonitorMetricThresholds" + }, + "maxLength": 50, + "x-ms-identifiers": [ + "name" + ] + } + } + } + }, + "parameters": { + "monitorNameParameter": { + "name": "monitorName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-_]+$", + "description": "Name of the SAP monitor resource.", + "x-ms-parameter-location": "method" + }, + "ProviderInstanceNameParameter": { + "name": "providerInstanceName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9-]+$", + "description": "Name of the provider instance.", + "x-ms-parameter-location": "method" + }, + "MonitorParameter": { + "name": "MonitorParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Monitor" + }, + "description": "Request body representing a SAP monitor", + "x-ms-parameter-location": "method" + }, + "ProviderInstanceParameter": { + "name": "providerInstanceParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ProviderInstance" + }, + "description": "Request body representing a provider instance associated with a SAP monitor." + }, + "SapLandscapeMonitorParameter": { + "name": "sapLandscapeMonitorParameter", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SapLandscapeMonitor" + }, + "description": "Request body representing a configuration for Sap Landscape Monitor Dashboard", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.az.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.az.md new file mode 100644 index 000000000000..3be06081b8a0 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.az.md @@ -0,0 +1,16 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: sapmonitors + namespace: azure.mgmt.workloads.sapmonitors + package-name: azure-mgmt-workloads-sapmonitors +az-output-folder: $(azure-cli-extension-folder)/src/workloads/sapmonitors +python-sdk-output-folder: "$(az-output-folder)/azext_workloads/vendored_sdks/workloads/sapmonitors" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` \ No newline at end of file diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.cli.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.csharp.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.csharp.md new file mode 100644 index 000000000000..4c882f5dba3a --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.csharp.md @@ -0,0 +1,14 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Workloads.SAPMonitors + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/workloads/Microsoft.Workloads.SAPMonitors/src/Generated + clear-output-folder: true +``` \ No newline at end of file diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.go.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.go.md new file mode 100644 index 000000000000..76e6fb85173c --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/workloads/sapmonitors +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.md new file mode 100644 index 000000000000..aa64d2eab496 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.md @@ -0,0 +1,87 @@ +# workloads + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for workloads. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the workloads. + +``` yaml +openapi-type: arm +openapi-subtype: rpaas +tag: package-preview-2023-10-01-preview +``` + + +### Tag: package-preview-2023-10-01-preview + +These settings apply only when `--tag=package-preview-2023-10-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-10-01-preview' +input-file: + - preview/2023-10-01-preview/monitors.json + - ../common-types/v2/commonTypes.json + - ../operations/preview/2023-10-01-preview/operations.json +suppressions: + - code: GuidUsage + reason: GUIDs are used for principalId and tenantId under MSI properties. +``` + +--- + +# 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-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-sdk-for-net + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` + +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) \ No newline at end of file diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.python.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.python.md new file mode 100644 index 000000000000..4c5da72bd333 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.python.md @@ -0,0 +1,18 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-workloads-sapmonitors +namespace: azure.mgmt.workloads.sapmonitors +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/workloads/azure-mgmt-workloads/azure/mgmt/sapmonitors +``` \ No newline at end of file diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.typescript.md b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.typescript.md new file mode 100644 index 000000000000..feb9f51c4076 --- /dev/null +++ b/specification/workloads/resource-manager/Microsoft.Workloads/monitors/readme.typescript.md @@ -0,0 +1,19 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-workloads-sapmonitors" + output-folder: "$(typescript-sdks-folder)/sdk/workloads/sapmonitors" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +directive: + - where-operation: monitors_Create + transform: delete $["x-ms-long-running-operation-options"] + - where-operation: ProviderInstances_Create + transform: delete $["x-ms-long-running-operation-options"] +``` \ No newline at end of file diff --git a/specification/workloads/resource-manager/Microsoft.Workloads/operations/preview/2023-10-01-preview/examples/Operations_List.json b/specification/workloads/resource-manager/Microsoft.Workloads/operations/preview/2023-10-01-preview/examples/Operations_List.json index 2752362fecf3..c60ff77c3020 100644 --- a/specification/workloads/resource-manager/Microsoft.Workloads/operations/preview/2023-10-01-preview/examples/Operations_List.json +++ b/specification/workloads/resource-manager/Microsoft.Workloads/operations/preview/2023-10-01-preview/examples/Operations_List.json @@ -6,6 +6,146 @@ "200": { "body": { "value": [ + { + "name": "Microsoft.Workloads/monitors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors", + "operation": "monitors_List", + "description": "Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor." + } + }, + { + "name": "Microsoft.Workloads/monitors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors", + "operation": "monitors_ListByResourceGroup", + "description": "Gets a list of SAP monitors in the specified resource group." + } + }, + { + "name": "Microsoft.Workloads/monitors/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors", + "operation": "monitors_Get", + "description": "Gets properties of a SAP monitor for the specified subscription, resource group, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors", + "operation": "monitors_Create", + "description": "Creates a SAP monitor for the specified subscription, resource group, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors", + "operation": "monitors_Delete", + "description": "Deletes a SAP monitor with the specified subscription, resource group, and monitor name." + } + }, + { + "name": "Microsoft.Workloads/monitors/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors", + "operation": "monitors_Update", + "description": "Patches the Tags field of a SAP monitor for the specified subscription, resource group, and monitor name." + } + }, + { + "name": "Microsoft.Workloads/monitors/providerInstances/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/providerInstances", + "operation": "ProviderInstances_List", + "description": "Gets a list of provider instances in the specified SAP monitor. The operations returns various properties of each provider instances." + } + }, + { + "name": "Microsoft.Workloads/monitors/providerInstances/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/providerInstances", + "operation": "ProviderInstances_Get", + "description": "Gets properties of a provider instance for the specified subscription, resource group, Monitor name, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/providerInstances/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/providerInstances", + "operation": "ProviderInstances_Create", + "description": "Creates a provider instance for the specified subscription, resource group, Monitor name, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/providerInstances/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/providerInstances", + "operation": "ProviderInstances_Delete", + "description": "Deletes a provider instance for the specified subscription, resource group, Monitor name, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/sapLandscapeMonitor/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/sapLandscapeMonitor", + "operation": "SapLandscapeMonitor_List", + "description": "Gets a list of properties of a SAP Landscape monitor configuration for the specified subscription, resource group, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/sapLandscapeMonitor/read", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/sapLandscapeMonitor", + "operation": "SapLandscapeMonitor_Get", + "description": "Gets properties of a SAP Landscape monitor configuration for the specified subscription, resource group, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/sapLandscapeMonitor/write", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/sapLandscapeMonitor", + "operation": "SapLandscapeMonitor_Create", + "description": "Creates a SAP Landscape monitor configuration for the specified subscription, resource group, and resource name." + } + }, + { + "name": "Microsoft.Workloads/monitors/sapLandscapeMonitor/delete", + "isDataAction": false, + "display": { + "provider": "Microsoft.Workloads", + "resource": "monitors/sapLandscapeMonitor", + "operation": "SapLandscapeMonitor_Delete", + "description": "Deletes a SAP Landscape monitor configuration with the specified subscription, resource group, and monitor name." + } + }, { "name": "Microsoft.Workloads/SapDiscoverySites/Write", "isDataAction": false,