-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
c3d81be
commit 5219b6b
Showing
8 changed files
with
561 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2259,3 +2259,4 @@ XLSM | |
DOCM | ||
multislot | ||
Tebibytes | ||
NodePool |
68 changes: 68 additions & 0 deletions
68
...source-manager/Microsoft.ContainerService/stable/2021-08-01/examples/SnapshotsCreate.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,68 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "snapshot1", | ||
"parameters": { | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "snapshot1", | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1", | ||
"type": "Microsoft.ContainerService/Snapshots", | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-09T20:13:23.298420761Z" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
}, | ||
"snapshotType": "NodePool" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "snapshot1", | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1", | ||
"type": "Microsoft.ContainerService/Snapshots", | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-09T20:13:23.298420761Z" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
}, | ||
"snapshotType": "NodePool" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...source-manager/Microsoft.ContainerService/stable/2021-08-01/examples/SnapshotsDelete.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,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "snapshot1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../resource-manager/Microsoft.ContainerService/stable/2021-08-01/examples/SnapshotsGet.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,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "snapshot1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "snapshot1", | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1", | ||
"type": "Microsoft.ContainerService/Snapshots", | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-09T20:13:23.298420761Z" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
}, | ||
"snapshotType": "NodePool" | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...resource-manager/Microsoft.ContainerService/stable/2021-08-01/examples/SnapshotsList.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,35 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01", | ||
"subscriptionId": "subid1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "snapshot1", | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1", | ||
"type": "Microsoft.ContainerService/Snapshots", | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-09T20:13:23.298420761Z" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
}, | ||
"snapshotType": "NodePool" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...r/Microsoft.ContainerService/stable/2021-08-01/examples/SnapshotsListByResourceGroup.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,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "snapshot1", | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1", | ||
"type": "Microsoft.ContainerService/Snapshots", | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-09T20:13:23.298420761Z" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
}, | ||
"snapshotType": "NodePool" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ce-manager/Microsoft.ContainerService/stable/2021-08-01/examples/SnapshotsUpdateTags.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,39 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-01", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "snapshot1", | ||
"parameters": { | ||
"tags": { | ||
"key2": "new-val2", | ||
"key3": "val3" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "snapshot1", | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/snapshots/snapshot1", | ||
"type": "Microsoft.ContainerService/Snapshots", | ||
"location": "westus", | ||
"tags": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"systemData": { | ||
"createdBy": "user1", | ||
"createdByType": "User", | ||
"createdAt": "2021-08-09T20:13:23.298420761Z" | ||
}, | ||
"properties": { | ||
"creationData": { | ||
"sourceResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1/agentPools/pool0" | ||
}, | ||
"snapshotType": "NodePool" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.