-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Microsoft.Workloads/monitors] Add a new API version 2023-10-01-previ…
…ew (#26341) * Adding the base for Microsoft.Workloads/monitors from previous version * Added readme files * Added new version changes * Added commonTypes v2 file and updated Operations_List * Updated readme * Removed Canceled provisioning state from existing resources * Changed extension name in readme files and updated readme for go * Fixed lint errors * Removed 200 status code from delete examples * Added suppression for GuidUsage lint error * Reverting back to v3 for common-types to fix failing SDK checks * Updated readme * Removed length constraints * Updated regex patterns for monitors and providers
- Loading branch information
1 parent
628a68d
commit 51bb75b
Showing
44 changed files
with
4,557 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...ification/workloads/resource-manager/Microsoft.Workloads/common-types/v2/commonTypes.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": {} | ||
} |
85 changes: 85 additions & 0 deletions
85
...preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...1-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Create_Root_Certificate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...rs/preview/2023-10-01-preview/examples/Db2ProviderInstances/Db2ProviderInstances_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
...soft.Workloads/monitors/preview/2023-10-01-preview/examples/Monitors/monitors_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.