Skip to content

Commit b7050b7

Browse files
authored
Added examples for Microsoft.Solutions 2018-06-01 for S360 item. (#12571)
* Added examples for Microsoft.Solutions 2018-06-01 for S360 item. * Added examples for Microsoft.Solutions 2018-06-01 for S360 item.
1 parent 391fb8c commit b7050b7

File tree

8 files changed

+273
-1
lines changed

8 files changed

+273
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"applicationId": "myApplicationId",
4+
"api-version": "2018-06-01",
5+
"parameters": {
6+
"properties": {
7+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG"
8+
},
9+
"location": "East US 2",
10+
"kind": "ServiceCatalog"
11+
}
12+
},
13+
"responses": {
14+
"201": {
15+
"headers": {},
16+
"body": {
17+
"name": "myManagedApplication",
18+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication",
19+
"type": "Microsoft.Solutions/applications",
20+
"location": "East US 2",
21+
"managedBy": null,
22+
"tags": null,
23+
"plan": null,
24+
"identity": null,
25+
"kind": "ServiceCatalog",
26+
"sku": null,
27+
"properties": {
28+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
29+
"outputs": null,
30+
"parameters": null,
31+
"provisioningState": "Created"
32+
}
33+
}
34+
},
35+
"200": {
36+
"headers": {},
37+
"body": {
38+
"name": "myManagedApplication",
39+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication",
40+
"type": "Microsoft.Solutions/applications",
41+
"location": "East US 2",
42+
"managedBy": null,
43+
"tags": null,
44+
"plan": null,
45+
"identity": null,
46+
"kind": "ServiceCatalog",
47+
"sku": null,
48+
"properties": {
49+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
50+
"outputs": null,
51+
"parameters": null,
52+
"provisioningState": "Created"
53+
}
54+
}
55+
}
56+
}
57+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"applicationName": "myManagedApplication",
6+
"api-version": "2018-06-01"
7+
},
8+
"responses": {
9+
"204": {},
10+
"202": {}
11+
}
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"applicationId": "myApplicationId",
4+
"api-version": "2018-06-01"
5+
},
6+
"responses": {
7+
"204": {},
8+
"202": {}
9+
}
10+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"applicationId": "myApplicationId",
4+
"api-version": "2018-06-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"name": "myManagedApplication",
11+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication",
12+
"type": "Microsoft.Solutions/applications",
13+
"location": "East US 2",
14+
"managedBy": null,
15+
"tags": null,
16+
"plan": null,
17+
"identity": null,
18+
"kind": "ServiceCatalog",
19+
"sku": null,
20+
"properties": {
21+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
22+
"outputs": null,
23+
"parameters": null,
24+
"provisioningState": "Created"
25+
}
26+
}
27+
},
28+
"404": {}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"api-version": "2018-06-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {},
9+
"body": {
10+
"value": [
11+
{
12+
"name": "myManagedApplication",
13+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication",
14+
"type": "Microsoft.Solutions/applications",
15+
"location": "East US 2",
16+
"managedBy": null,
17+
"tags": null,
18+
"plan": null,
19+
"identity": null,
20+
"kind": "ServiceCatalog",
21+
"sku": null,
22+
"properties": {
23+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
24+
"outputs": null,
25+
"parameters": null,
26+
"provisioningState": "Created"
27+
}
28+
},
29+
{
30+
"name": "myManagedApplication2",
31+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2",
32+
"type": "Microsoft.Solutions/applications",
33+
"location": "West US",
34+
"managedBy": null,
35+
"tags": null,
36+
"plan": null,
37+
"identity": null,
38+
"kind": "ServiceCatalog",
39+
"sku": null,
40+
"properties": {
41+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
42+
"outputs": null,
43+
"parameters": null,
44+
"provisioningState": "Created"
45+
}
46+
}
47+
]
48+
}
49+
}
50+
}
51+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg",
5+
"applicationName": "myManagedApplication",
6+
"api-version": "2018-06-01",
7+
"parameters": {
8+
"properties": {
9+
"applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef",
10+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG"
11+
},
12+
"kind": "ServiceCatalog"
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"headers": {},
18+
"body": {
19+
"name": "myManagedApplication",
20+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication",
21+
"type": "Microsoft.Solutions/applications",
22+
"managedBy": null,
23+
"plan": null,
24+
"identity": null,
25+
"kind": "ServiceCatalog",
26+
"sku": null,
27+
"properties": {
28+
"applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef",
29+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
30+
"outputs": null,
31+
"parameters": null,
32+
"provisioningState": "Created"
33+
}
34+
}
35+
}
36+
}
37+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"applicationId": "myApplicationId",
4+
"api-version": "2018-06-01",
5+
"parameters": {
6+
"properties": {
7+
"applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef",
8+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG"
9+
},
10+
"kind": "ServiceCatalog"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"headers": {},
16+
"body": {
17+
"name": "myManagedApplication",
18+
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication",
19+
"type": "Microsoft.Solutions/applications",
20+
"managedBy": null,
21+
"plan": null,
22+
"identity": null,
23+
"kind": "ServiceCatalog",
24+
"sku": null,
25+
"properties": {
26+
"applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef",
27+
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG",
28+
"outputs": null,
29+
"parameters": null,
30+
"provisioningState": "Created"
31+
}
32+
}
33+
}
34+
}
35+
}

specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@
127127
],
128128
"operationId": "Applications_Delete",
129129
"description": "Deletes the managed application.",
130+
"x-ms-examples": {
131+
"Deletes a managed application": {
132+
"$ref": "./examples/deleteApplication.json"
133+
}
134+
},
130135
"parameters": [
131136
{
132137
"name": "resourceGroupName",
@@ -245,6 +250,11 @@
245250
],
246251
"operationId": "Applications_Update",
247252
"description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.",
253+
"x-ms-examples": {
254+
"Updates a managed application": {
255+
"$ref": "./examples/updateApplication.json"
256+
}
257+
},
248258
"parameters": [
249259
{
250260
"name": "resourceGroupName",
@@ -359,6 +369,11 @@
359369
],
360370
"operationId": "ApplicationDefinitions_Delete",
361371
"description": "Deletes the managed application definition.",
372+
"x-ms-examples": {
373+
"Deletes a managed application": {
374+
"$ref": "./examples/deleteApplicationDefinition.json"
375+
}
376+
},
362377
"parameters": [
363378
{
364379
"name": "resourceGroupName",
@@ -580,6 +595,11 @@
580595
],
581596
"operationId": "Applications_ListBySubscription",
582597
"description": "Gets all the applications within a subscription.",
598+
"x-ms-examples": {
599+
"Lists applications by subscription": {
600+
"$ref": "./examples/listApplicationsBySubscription.json"
601+
}
602+
},
583603
"parameters": [
584604
{
585605
"$ref": "#/parameters/ApiVersionParameter"
@@ -614,6 +634,11 @@
614634
],
615635
"operationId": "Applications_GetById",
616636
"description": "Gets the managed application.",
637+
"x-ms-examples": {
638+
"Get application by id": {
639+
"$ref": "./examples/getApplicationById.json"
640+
}
641+
},
617642
"parameters": [
618643
{
619644
"name": "applicationId",
@@ -651,6 +676,11 @@
651676
],
652677
"operationId": "Applications_DeleteById",
653678
"description": "Deletes the managed application.",
679+
"x-ms-examples": {
680+
"Delete application by id": {
681+
"$ref": "./examples/deleteApplicationById.json"
682+
}
683+
},
654684
"parameters": [
655685
{
656686
"name": "applicationId",
@@ -686,6 +716,11 @@
686716
],
687717
"operationId": "Applications_CreateOrUpdateById",
688718
"description": "Creates a new managed application.",
719+
"x-ms-examples": {
720+
"Create or update application by id": {
721+
"$ref": "./examples/createOrUpdateApplicationById.json"
722+
}
723+
},
689724
"parameters": [
690725
{
691726
"name": "applicationId",
@@ -736,6 +771,11 @@
736771
],
737772
"operationId": "Applications_UpdateById",
738773
"description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.",
774+
"x-ms-examples": {
775+
"Update application by id": {
776+
"$ref": "./examples/updateApplicationById.json"
777+
}
778+
},
739779
"parameters": [
740780
{
741781
"name": "applicationId",
@@ -839,7 +879,7 @@
839879
"operationId": "ApplicationDefinitions_DeleteById",
840880
"description": "Deletes the managed application definition.",
841881
"x-ms-examples": {
842-
"Get managed application definition": {
882+
"Delete application definition": {
843883
"$ref": "./examples/deleteApplicationDefinition.json"
844884
}
845885
},

0 commit comments

Comments
 (0)