Skip to content

Commit 2650283

Browse files
authored
[Microsoft.Workloads/monitors] Add a new API version 2023-10-01-preview (#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
1 parent 035fd78 commit 2650283

File tree

44 files changed

+4557
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4557
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-10-01-preview",
5+
"title": "Workloads Client",
6+
"description": "Workload client provides access to various workload operations"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {},
19+
"definitions": {
20+
"ManagedServiceIdentityType": {
21+
"description": "The managed service identity for all identities.",
22+
"enum": [
23+
"None",
24+
"UserAssigned",
25+
"SystemAssigned"
26+
],
27+
"type": "string",
28+
"x-ms-enum": {
29+
"name": "ManagedServiceIdentityType",
30+
"modelAsString": true
31+
}
32+
},
33+
"ManagedServiceIdentity": {
34+
"description": "The Managed service identity.",
35+
"type": "object",
36+
"properties": {
37+
"principalId": {
38+
"readOnly": true,
39+
"format": "uuid",
40+
"type": "string",
41+
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
42+
},
43+
"tenantId": {
44+
"readOnly": true,
45+
"format": "uuid",
46+
"type": "string",
47+
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
48+
},
49+
"userAssignedIdentities": {
50+
"$ref": "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/UserAssignedIdentities"
51+
},
52+
"type": {
53+
"$ref": "#/definitions/ManagedServiceIdentityType"
54+
}
55+
},
56+
"required": [
57+
"type"
58+
]
59+
}
60+
},
61+
"parameters": {}
62+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "mySapMonitor",
7+
"providerInstanceName": "myProviderInstance",
8+
"providerInstanceParameter": {
9+
"properties": {
10+
"providerSettings": {
11+
"providerType": "Db2",
12+
"sapSid": "SID",
13+
"hostname": "hostname",
14+
"dbUsername": "username",
15+
"dbName": "dbName",
16+
"dbPassword": "password",
17+
"dbPasswordUri": "",
18+
"dbPort": "dbPort",
19+
"sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename",
20+
"sslPreference": "ServerCertificate"
21+
}
22+
}
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"body": {
28+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance",
29+
"name": "myProviderInstance",
30+
"type": "Microsoft.Workloads/monitors/providerInstances",
31+
"systemData": {
32+
"createdBy": "user@xyz.com",
33+
"createdByType": "User",
34+
"createdAt": "2021-08-19T15:10:46.196Z",
35+
"lastModifiedBy": "user@xyz.com",
36+
"lastModifiedByType": "User",
37+
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
38+
},
39+
"properties": {
40+
"provisioningState": "Succeeded",
41+
"health": {
42+
"healthState": "Healthy",
43+
"impactingReasons": "None"
44+
},
45+
"providerSettings": {
46+
"providerType": "Db2",
47+
"sapSid": "SID",
48+
"hostname": "vmname.azure.com",
49+
"dbUsername": "Db2OPA",
50+
"dbName": "OPA",
51+
"dbPort": "5912",
52+
"dbPasswordUri": "",
53+
"sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename",
54+
"sslPreference": "ServerCertificate"
55+
}
56+
}
57+
}
58+
},
59+
"201": {
60+
"body": {
61+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance",
62+
"name": "myProviderInstance",
63+
"type": "Microsoft.Workloads/monitors/providerInstances",
64+
"properties": {
65+
"provisioningState": "Accepted",
66+
"health": {
67+
"healthState": "Healthy",
68+
"impactingReasons": "None"
69+
},
70+
"providerSettings": {
71+
"providerType": "Db2",
72+
"sapSid": "SID",
73+
"hostname": "vmname.azure.com",
74+
"dbUsername": "Db2OPA",
75+
"dbName": "OPA",
76+
"dbPort": "5912",
77+
"dbPasswordUri": "",
78+
"sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename",
79+
"sslPreference": "ServerCertificate"
80+
}
81+
}
82+
}
83+
}
84+
}
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "mySapMonitor",
7+
"providerInstanceName": "myProviderInstance",
8+
"providerInstanceParameter": {
9+
"properties": {
10+
"providerSettings": {
11+
"providerType": "Db2",
12+
"sapSid": "SID",
13+
"hostname": "hostname",
14+
"dbUsername": "username",
15+
"dbName": "dbName",
16+
"dbPassword": "password",
17+
"dbPasswordUri": "",
18+
"dbPort": "dbPort",
19+
"sslPreference": "RootCertificate"
20+
}
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance",
28+
"name": "myProviderInstance",
29+
"type": "Microsoft.Workloads/monitors/providerInstances",
30+
"systemData": {
31+
"createdBy": "user@xyz.com",
32+
"createdByType": "User",
33+
"createdAt": "2021-08-19T15:10:46.196Z",
34+
"lastModifiedBy": "user@xyz.com",
35+
"lastModifiedByType": "User",
36+
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
37+
},
38+
"properties": {
39+
"provisioningState": "Succeeded",
40+
"health": {
41+
"healthState": "Healthy",
42+
"impactingReasons": "None"
43+
},
44+
"providerSettings": {
45+
"providerType": "Db2",
46+
"sapSid": "SID",
47+
"hostname": "vmname.azure.com",
48+
"dbUsername": "Db2OPA",
49+
"dbName": "OPA",
50+
"dbPort": "5912",
51+
"dbPasswordUri": "",
52+
"sslPreference": "RootCertificate"
53+
}
54+
}
55+
}
56+
},
57+
"201": {
58+
"body": {
59+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance",
60+
"name": "myProviderInstance",
61+
"type": "Microsoft.Workloads/monitors/providerInstances",
62+
"properties": {
63+
"provisioningState": "Accepted",
64+
"health": {
65+
"healthState": "Healthy",
66+
"impactingReasons": "None"
67+
},
68+
"providerSettings": {
69+
"providerType": "Db2",
70+
"sapSid": "SID",
71+
"hostname": "vmname.azure.com",
72+
"dbUsername": "Db2OPA",
73+
"dbName": "OPA",
74+
"dbPort": "5912",
75+
"dbPasswordUri": "",
76+
"sslPreference": "RootCertificate"
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "mySapMonitor",
7+
"providerInstanceName": "myProviderInstance"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor/providerInstances/myProviderInstance",
13+
"name": "myProviderInstance",
14+
"type": "Microsoft.Workloads/monitors/providerInstances",
15+
"systemData": {
16+
"createdBy": "user@xyz.com",
17+
"createdByType": "User",
18+
"createdAt": "2021-08-19T15:10:46.196Z",
19+
"lastModifiedBy": "user@xyz.com",
20+
"lastModifiedByType": "User",
21+
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
22+
},
23+
"properties": {
24+
"provisioningState": "Succeeded",
25+
"health": {
26+
"healthState": "Healthy",
27+
"impactingReasons": "None"
28+
},
29+
"providerSettings": {
30+
"providerType": "Db2",
31+
"sapSid": "SID",
32+
"hostname": "vmname.azure.com",
33+
"dbUsername": "Db2OPA",
34+
"dbName": "OPA",
35+
"dbPort": "5912",
36+
"dbPasswordUri": "",
37+
"sslCertificateUri": "https://storageaccount.blob.core.windows.net/containername/filename",
38+
"sslPreference": "ServerCertificate"
39+
}
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"monitorName": "mySapMonitor",
7+
"MonitorParameter": {
8+
"location": "westus",
9+
"tags": {
10+
"key": "value"
11+
},
12+
"properties": {
13+
"appLocation": "westus",
14+
"routingPreference": "RouteAll",
15+
"managedResourceGroupConfiguration": {
16+
"name": "myManagedRg"
17+
},
18+
"logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
19+
"monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
20+
}
21+
}
22+
},
23+
"responses": {
24+
"200": {
25+
"body": {
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor",
27+
"name": "mySapMonitor",
28+
"type": "Microsoft.Workloads/monitors",
29+
"location": "westus",
30+
"tags": {
31+
"key": "value"
32+
},
33+
"systemData": {
34+
"createdBy": "user@xyz.com",
35+
"createdByType": "User",
36+
"createdAt": "2021-08-19T15:10:46.196Z",
37+
"lastModifiedBy": "user@xyz.com",
38+
"lastModifiedByType": "User",
39+
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
40+
},
41+
"properties": {
42+
"provisioningState": "Succeeded",
43+
"errors": [
44+
{
45+
"code": "0000",
46+
"message": "Error message",
47+
"target": "",
48+
"details": "Error details",
49+
"innerError": "Error stack trace"
50+
}
51+
],
52+
"appLocation": "eastus",
53+
"routingPreference": "RouteAll",
54+
"zoneRedundancyPreference": "ZoneRedundantApp",
55+
"managedResourceGroupConfiguration": {
56+
"name": "myManagedRg"
57+
},
58+
"logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
59+
"monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet",
60+
"msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi",
61+
"storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"
62+
}
63+
}
64+
},
65+
"201": {
66+
"body": {
67+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/mySapMonitor",
68+
"name": "mySapMonitor",
69+
"type": "Microsoft.Workloads/monitors",
70+
"location": "westus",
71+
"tags": {
72+
"key": "value"
73+
},
74+
"properties": {
75+
"provisioningState": "Accepted",
76+
"errors": [
77+
{
78+
"code": "0000",
79+
"message": "Error message",
80+
"target": "",
81+
"details": "Error details",
82+
"innerError": "Error stack trace"
83+
}
84+
],
85+
"appLocation": "eastus",
86+
"routingPreference": "RouteAll",
87+
"managedResourceGroupConfiguration": {
88+
"name": "myManagedRg"
89+
},
90+
"logAnalyticsWorkspaceArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace",
91+
"monitorSubnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet",
92+
"msiArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi",
93+
"storageAccountArmId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"
94+
}
95+
}
96+
}
97+
}
98+
}

0 commit comments

Comments
 (0)