Skip to content

Commit 5219b6b

Browse files
Add snapshot related new APIs and properties to AKS 2021-08-01 swagger (#15586)
* Add CreationData property to Agentpool level in 2021-08-01 API * Add snapshot related APIs and properties to AKS 2021-08-01 swagger * fix lint and spell checks * fix lint and spell checks * fix PrettierCheck * Change some Nodepool to NodePool * some changes according to ARM team's review comments Co-authored-by: Charlie Li <charlili@microsoft.com>
1 parent c3d81be commit 5219b6b

File tree

8 files changed

+561
-0
lines changed

8 files changed

+561
-0
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,3 +2259,4 @@ XLSM
22592259
DOCM
22602260
multislot
22612261
Tebibytes
2262+
NodePool
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "snapshot1",
7+
"parameters": {
8+
"location": "westus",
9+
"tags": {
10+
"key1": "val1",
11+
"key2": "val2"
12+
},
13+
"properties": {
14+
"creationData": {
15+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
16+
}
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"name": "snapshot1",
24+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
25+
"type": "Microsoft.ContainerService/Snapshots",
26+
"location": "westus",
27+
"tags": {
28+
"key1": "val1",
29+
"key2": "val2"
30+
},
31+
"systemData": {
32+
"createdBy": "user1",
33+
"createdByType": "User",
34+
"createdAt": "2021-08-09T20:13:23.298420761Z"
35+
},
36+
"properties": {
37+
"creationData": {
38+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
39+
},
40+
"snapshotType": "NodePool"
41+
}
42+
}
43+
},
44+
"201": {
45+
"body": {
46+
"name": "snapshot1",
47+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
48+
"type": "Microsoft.ContainerService/Snapshots",
49+
"location": "westus",
50+
"tags": {
51+
"key1": "val1",
52+
"key2": "val2"
53+
},
54+
"systemData": {
55+
"createdBy": "user1",
56+
"createdByType": "User",
57+
"createdAt": "2021-08-09T20:13:23.298420761Z"
58+
},
59+
"properties": {
60+
"creationData": {
61+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
62+
},
63+
"snapshotType": "NodePool"
64+
}
65+
}
66+
}
67+
}
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "snapshot1"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "snapshot1"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "snapshot1",
12+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
13+
"type": "Microsoft.ContainerService/Snapshots",
14+
"location": "westus",
15+
"tags": {
16+
"key1": "val1",
17+
"key2": "val2"
18+
},
19+
"systemData": {
20+
"createdBy": "user1",
21+
"createdByType": "User",
22+
"createdAt": "2021-08-09T20:13:23.298420761Z"
23+
},
24+
"properties": {
25+
"creationData": {
26+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
27+
},
28+
"snapshotType": "NodePool"
29+
}
30+
}
31+
}
32+
}
33+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-01",
4+
"subscriptionId": "subid1"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "snapshot1",
12+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
13+
"type": "Microsoft.ContainerService/Snapshots",
14+
"location": "westus",
15+
"tags": {
16+
"key1": "val1",
17+
"key2": "val2"
18+
},
19+
"systemData": {
20+
"createdBy": "user1",
21+
"createdByType": "User",
22+
"createdAt": "2021-08-09T20:13:23.298420761Z"
23+
},
24+
"properties": {
25+
"creationData": {
26+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
27+
},
28+
"snapshotType": "NodePool"
29+
}
30+
}
31+
]
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "snapshot1",
13+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
14+
"type": "Microsoft.ContainerService/Snapshots",
15+
"location": "westus",
16+
"tags": {
17+
"key1": "val1",
18+
"key2": "val2"
19+
},
20+
"systemData": {
21+
"createdBy": "user1",
22+
"createdByType": "User",
23+
"createdAt": "2021-08-09T20:13:23.298420761Z"
24+
},
25+
"properties": {
26+
"creationData": {
27+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
28+
},
29+
"snapshotType": "NodePool"
30+
}
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "snapshot1",
7+
"parameters": {
8+
"tags": {
9+
"key2": "new-val2",
10+
"key3": "val3"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"name": "snapshot1",
18+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1",
19+
"type": "Microsoft.ContainerService/Snapshots",
20+
"location": "westus",
21+
"tags": {
22+
"key1": "val1",
23+
"key2": "val2"
24+
},
25+
"systemData": {
26+
"createdBy": "user1",
27+
"createdByType": "User",
28+
"createdAt": "2021-08-09T20:13:23.298420761Z"
29+
},
30+
"properties": {
31+
"creationData": {
32+
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0"
33+
},
34+
"snapshotType": "NodePool"
35+
}
36+
}
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)